bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #21297] wrong GNUstep.conf position


From: Nicola Pero
Subject: [bug #21297] wrong GNUstep.conf position
Date: Wed, 10 Oct 2007 01:41:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7

Follow-up Comment #2, bug #21297 (project gnustep):

Well, GNUstep.conf goes outside the prefix (usually), but you
can change it to go inside {prefix} using 

./configure --with-config-file=PATH

This is only recommended if you know what you're doing though;
the reason GNUstep.conf goes outside {prefix} by default 
is that you have your GNUstep installation inside {prefix}, and 
GNUstep.conf is used to find out where your installation is.  Eg,
you install things in /opt/nicola/GNUstep, and have 
/etc/GNUstep.conf that records that location.  When you then
run some GNUstep stuff, they know the installation is in
/opt/nicola/GNUstep because it's recorded in /etc/GNUstep.conf.
If you have GNUstep.conf itself inside 
/opt/nicola/.../GNUstep.conf, well, you have a chicken-and-egg problem - to
fix it you need to use the GNUSTEP_CONFIG_FILE
shell variable to tell GNUstep where the GNUstep.conf file
is.  This is great for advanced users that are doing "clever"
things and don't mind setting up shell variables, but "ordinary"
users just want things to work out of the box with no 
manual configuration or shell variables - no matter what
{prefix} they use to install GNUstep.

Now on OpenBSD I'm not surprised GNUstep.conf is ending up in
/usr/etc/GNUstep.conf ... since we have the following lines in configure.ac:

if test "$GNUSTEP_CONFIG_FILE" = "" -o "$GNUSTEP_CONFIG_FILE" = "no"; then
  case "$target_os" in
    freebsd* | openbsd* ) GNUSTEP_CONFIG_FILE=/usr/etc/GNUstep.conf ;;
    netbsd* )             GNUSTEP_CONFIG_FILE=/usr/pkg/etc/GNUstep.conf ;;
    *)                    GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf ;;
  esac
fi

So it's being put there on purpose :-)

I don't know why that is the default location though.  Are you saying that's
not a good location for it ?  Should it
go in /etc/GNUstep/GNUstep.conf (as on Linux) ?

Thanks


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21297>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]