|
From: | Ivan Vučica |
Subject: | Re: gnustep-make: /etc/GNUstep.conf in case of --prefix and --sysconfdir |
Date: | Mon, 3 Apr 2017 11:55:01 +0100 |
> Am 02.04.2017 um 18:19 schrieb Ivan Vučica <address@hidden>:
> 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
> ============================================================ 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="$=======
> --- 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
sysconfdir/GNUstep/GNUstep. conf" (on non-Darwin systems, that is).
[Prev in Thread] | Current Thread | [Next in Thread] |