[PATCH modular 0/8] Review environment variables for directories

Gaetan Nadon memsize at videotron.ca
Thu Dec 16 18:31:42 PST 2010


A number of directories are either created or supplied as values to env variables.
The Autoconf configure script describe the default values relative to the PREFIX
directory. The build.sh script interpreted that too literally and assumed that
the various directories (bin, lib, etc...) could not have a value other than PREFIX/...

The net of it is that the build script cannot support scenarios where a bin directory
would be /usr/bin while a datadir would be $HOME/share. This is possible when configuring
a package using --bindir /usr/bin and --datadir $HOME/share.

In addition some values were squarely hard-coded such as "var" and "share" which does not
reflect what you do with "configure".

Environment variables specific to build.sh:
  PREFIX      Install architecture-independent files in PREFIX [/usr/local]
              Each module/components is invoked with --prefix
  EPREFIX     Install architecture-dependent files in EPREFIX [PREFIX]
              Each module/components is invoked with --exec-prefix
  BINDIR      Install user executables [EPREFIX/bin]
              Each module/components is invoked with --bindir
  DATAROOTDIR Install read-only arch-independent data root [PREFIX/share]
              Each module/components is invoked with --datarootdir
  DATADIR     Install read-only architecture-independent data [DATAROOTDIR]
              Each module/components is invoked with --datadir
  LIBDIR      Install object code libraries [EPREFIX/lib]
              Each module/components is invoked with --libdir
  LOCALSTATEDIR Modifiable single-machine data [PREFIX/var]
              Each module/components is invoked with --localstatedir

Gaetan Nadon (8):
  build.sh: expose the PREFIX variable for the user to set
  build.sh: add support for EPREFIX for architecture-dependent files
  build.sh: allow user to specify an alternate bin directory
  build.sh: allow user to specify an alternate datadir
  build.sh: allow user to specify an alternate localstatedir
  build.sh: allow user to specify an alternate libdir
  config: add user input checking for *DIR environment variables
  build.sh: document the ACLOCAL env variable to find m4 macros

 build.sh |  139 ++++++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 117 insertions(+), 22 deletions(-)



More information about the xorg-devel mailing list