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 =

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

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
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 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

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 This

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 it in your configure

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