]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/install_into_home_dir_fails.mdwn
split off todo item for multiple dependency types
[ikiwiki.git] / doc / bugs / install_into_home_dir_fails.mdwn
1 dunno if it just me, but I had to add PREFIX a few places to get 'perl INSTALL_BASE=$HOME' to work
2
3 > That will cause the files to be installed into a place that ikiwiki
4 > doesn't look for them. It will also cause them to be installed into
5 > /usr/etc by default, where ikiwiki also won't find them. 
6
7 > Thomas Keller also ran into some sort of problem with the MacPort
8 > involving the installation into /etc. From that discussion:
9
10 > Both ikiwiki-update-wikilist and ikiwiki-mass-rebuild hardcode /etc; so
11 > do several pages in the doc wiki.
12
13 > The real problem though is that MakeMaker does not have a standard way
14 > of specifying where /etc files go. In Debian we want everything to go
15 > into /usr, rather than the default /usr/local, so set PREFIX=/usr -- but
16 > we still want config files in /etc, not /usr/etc. The only way I can see
17 > around this is to add a nonstandard variable to control the location of
18 > /etc, that would override the PREFIX.
19
20 > Which implies that you can't just use "$installdir/etc/" in the /etc
21 > hardcoding scripts, and would instead need to record the new variable
22 > at build time, like PREFIX is recorded in $installdir.
23 >
24 > Instead, let's ignore failure of the lines. [[done]]
25
26 > --[[Joey]]
27
28 <pre>
29 From a1e02fbdaba3725730418a837b506e713904ada5 Mon Sep 17 00:00:00 2001
30 From: David Bremner <bremner@pivot.cs.unb.ca>
31 Date: Fri, 29 Aug 2008 15:18:24 -0300
32 Subject: [PATCH] add missing $(PREFIX) to install path
33
34 ---
35  Makefile.PL |    6 +++---
36  1 files changed, 3 insertions(+), 3 deletions(-)
37
38 diff --git a/Makefile.PL b/Makefile.PL
39 index 979483c..1f27394 100755
40 --- a/Makefile.PL
41 +++ b/Makefile.PL
42 @@ -50,9 +50,9 @@ extra_clean:
43         $(MAKE) -C po clean
44
45  extra_install:
46 -       install -d $(DESTDIR)/etc/ikiwiki
47 -       install -m 0644 wikilist $(DESTDIR)/etc/ikiwiki
48 -       install -m 0644 auto.setup $(DESTDIR)/etc/ikiwiki
49 +       install -d $(DESTDIR)$(PREFIX)/etc/ikiwiki
50 +       install -m 0644 wikilist $(DESTDIR)$(PREFIX)/etc/ikiwiki
51 +       install -m 0644 auto.setup $(DESTDIR)$(PREFIX)/etc/ikiwiki
52
53         install -d $(DESTDIR)$(PREFIX)/share/ikiwiki
54         for dir in `cd underlays && find . -follow -type d ! -regex '.*\.svn.*'`; do \
55 --
56 1.5.6.3
57 </pre>