Re: make distcheck and the /etc dir

2007-06-10 Thread Daniel Leidert
Am Sonntag, den 10.06.2007, 09:01 +0200 schrieb Ralf Wildenhues: > * Daniel Leidert wrote on Mon, Jun 04, 2007 at 07:38:18PM CEST: > > Am Montag, den 04.06.2007, 15:56 +0200 schrieb Jason Curl: > > > > > ># Makefile.am for installing configuration data > > >etcdir=/etc/lx2005 > > > > This

Re: make distcheck and the /etc dir

2007-06-10 Thread Ralf Wildenhues
Hello, * Daniel Leidert wrote on Mon, Jun 04, 2007 at 07:38:18PM CEST: > Am Montag, den 04.06.2007, 15:56 +0200 schrieb Jason Curl: > > > ># Makefile.am for installing configuration data > >etcdir=/etc/lx2005 > > This line misses a $(DESTDIR) to not break package builds and distcheck. N

Re: make distcheck and the /etc dir

2007-06-10 Thread Ralf Wildenhues
Hello, and sorry for chiming in so late, * Noah Slater wrote on Mon, Jun 04, 2007 at 06:57:43PM CEST: > > # Makefile.am for installing configuration data > > etcdir=/etc/lx2005 > > etc_DATA = serlog.conf > > This is seriously broken. What if my /etc directory is read-only, for > example.

Re: make distcheck and the /etc dir

2007-06-05 Thread Stepan Kasal
Hello Jason, On Mon, Jun 04, 2007 at 07:25:16PM +0200, Jason Curl wrote: > Sounds like my best solution would be to use the "sysconf_DATA" option. this was also the fist solution which came to my mind. > Any ideas how to take 'sysconfdir' and somehow import it into my program > so it knows whe

Re: make distcheck and the /etc dir

2007-06-05 Thread Daniel Leidert
Am Montag, den 04.06.2007, 22:15 +0100 schrieb Noah Slater: > > Sounds like my best solution would be to use the "sysconf_DATA" option. > > Any ideas how to take 'sysconfdir' and somehow import it into my program > > so it knows where the default configuration files are? > > Well, I use Python and

Re: make distcheck and the /etc dir

2007-06-04 Thread Noah Slater
Sounds like my best solution would be to use the "sysconf_DATA" option. Any ideas how to take 'sysconfdir' and somehow import it into my program so it knows where the default configuration files are? Well, I use Python and I have a file called 'lib/foo/__init__.py.in' that is has the following l

Re: make distcheck and the /etc dir

2007-06-04 Thread deckrider
On 6/4/07, deckrider <[EMAIL PROTECTED]> wrote: On 6/4/07, Jason Curl <[EMAIL PROTECTED]> wrote: > Daniel Leidert wrote: > > BTW: If you use > > > > etcdir=${sysconfdir} > > > > you can set > > > > DISTCHECK_CONFIGURE_FLAGS = --sysconfdir=/etc > > > > And if you want to make this the default, set

Re: make distcheck and the /etc dir

2007-06-04 Thread deckrider
On 6/4/07, Jason Curl <[EMAIL PROTECTED]> wrote: Daniel Leidert wrote: > BTW: If you use > > etcdir=${sysconfdir} > > you can set > > DISTCHECK_CONFIGURE_FLAGS = --sysconfdir=/etc > > And if you want to make this the default, set it in your configure > script: > > AC_SUBST([sysconfdir],[/etc]) >

Re: make distcheck and the /etc dir

2007-06-04 Thread Jason Curl
Daniel Leidert wrote: Am Montag, den 04.06.2007, 15:56 +0200 schrieb Jason Curl: Hello, I have a project where the program expects the configuration files to be stored in '/etc/lx2005'. Appropriately, I've got such a Makefile.am: # Makefile.am for installing configuration data etcdir

Re: make distcheck and the /etc dir

2007-06-04 Thread Daniel Leidert
Am Montag, den 04.06.2007, 15:56 +0200 schrieb Jason Curl: > Hello, > > I have a project where the program expects the configuration files to be > stored in '/etc/lx2005'. Appropriately, I've got such a Makefile.am: > ># Makefile.am for installing configuration data >etcdir=/etc/lx2005

Re: make distcheck and the /etc dir

2007-06-04 Thread Jason Curl
deckrider wrote: On 6/4/07, Jason Curl <[EMAIL PROTECTED]> wrote: Hello, I have a project where the program expects the configuration files to be stored in '/etc/lx2005'. Appropriately, I've got such a Makefile.am: # Makefile.am for installing configuration data etcdir=/etc/lx2005 I of

Re: make distcheck and the /etc dir

2007-06-04 Thread Jason Curl
Noah Slater wrote: # Makefile.am for installing configuration data etcdir=/etc/lx2005 etc_DATA = serlog.conf This is seriously broken. What if my /etc directory is read-only, for example. As I mentioned below, I could override this by using: make DESTDIR="/home/user/progs" install

Re: make distcheck and the /etc dir

2007-06-04 Thread Noah Slater
http://sources.redhat.com/automake/automake.html#Hard_002dCoded-Install-Paths Informative. Though I still maintain that it's a Bad Thing. Heh.

Re: make distcheck and the /etc dir

2007-06-04 Thread deckrider
On 6/4/07, Jason Curl <[EMAIL PROTECTED]> wrote: Hello, I have a project where the program expects the configuration files to be stored in '/etc/lx2005'. Appropriately, I've got such a Makefile.am: # Makefile.am for installing configuration data etcdir=/etc/lx2005 I often struggle with

Re: make distcheck and the /etc dir

2007-06-04 Thread Noah Slater
# Makefile.am for installing configuration data etcdir=/etc/lx2005 etc_DATA = serlog.conf This is seriously broken. What if my /etc directory is read-only, for example. This breaks any hope of getting a VPATH build. When I run 'make distcheck' it fails as it cannot install the files

make distcheck and the /etc dir

2007-06-04 Thread Jason Curl
Hello, I have a project where the program expects the configuration files to be stored in '/etc/lx2005'. Appropriately, I've got such a Makefile.am: # Makefile.am for installing configuration data etcdir=/etc/lx2005 etc_DATA = serlog.conf CLEANFILES = serlog.conf EXTRA_DIST = serlo