[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnustep-make: /etc/GNUstep.conf in case of --prefix and --sysconfdir
From: |
Wolfgang Lux |
Subject: |
Re: gnustep-make: /etc/GNUstep.conf in case of --prefix and --sysconfdir |
Date: |
Mon, 3 Apr 2017 09:43:41 +0200 |
> Am 02.04.2017 um 18:19 schrieb Ivan Vučica <address@hidden>:
>
> Hey,
>
> I'm trying to install GNUstep into /GNUstep with folders such as
> /GNUstep/System, /GNUstep/Local, etc. However, GNUstep.conf should live in
> /etc/GNUstep/GNUstep.conf.
>
> ./configure --prefix=/GNUstep --with-layout=gnustep --sysconfdir=/etc
>
> Looks like sysconfdir is not used here. And in fact, GNUstep.conf ends up in
> /GNUstep/etc/GNUstep/GNUstep.conf, where it presumably won't be found by
> things trying to find where GNUstep is installed.
You could of course use the --with-config-file option to install the config
file to any path of your likening, including
--with-config-file=/etc/GNUstep/GNUstep.conf. :-)
> I'd like to submit this:
>
> Index: configure.ac
> ===================================================================
> --- configure.ac (revision 40432)
> +++ configure.ac (working copy)
> @@ -573,7 +573,7 @@
> Example: --with-config-file=/usr/GNUstep/GNUstep.conf
> By default, if this option is not specified, the config file is
> /etc/GNUstep/GNUstep.conf if the prefix is /, /usr or /usr/GNUstep
> - and $prefix/etc/GNUstep/GNUstep.conf otherwise. On Apple, it is
> + and $sysconfdir/GNUstep/GNUstep.conf otherwise. On Apple, it is
> always /Library/GNUstep/GNUstep.conf regardless of prefix.
> ],
> GNUSTEP_CONFIG_FILE="$withval",)
> @@ -584,7 +584,7 @@
> x) GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf;;
> x/usr) GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf;;
> x/usr/GNUstep) GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf;;
> - *)
> GNUSTEP_CONFIG_FILE="$GNUSTEP_PREFIX/etc/GNUstep/GNUstep.conf";;
> + *)
> GNUSTEP_CONFIG_FILE="$sysconfdir/GNUstep/GNUstep.conf";;
> esac ;;
> esac
> fi
I like the idea of using $sysconfdir, but I'd prefer going a step further and
stripping the whole case expression altogether and just always use
GNUSTEP_CONFIG_FILE="$sysconfdir/GNUstep/GNUstep.conf" (on non-Darwin systems,
that is).
Wolfgang