Next: Package configuration, Previous: Advanced configuration, Up: Advanced configuration [Contents]
Building a package loads the following configuration files:
Specifies the installation directory prefix. Created by the configure script from config.mk.in
Specifies general configuration variables
Defines the environment variables that are set during each build step.
Defines the list of mirror sites used to download the source tarballs. It is recommended to modify this to use local mirrors.
The local file gar.site.mk is loaded last and can be used to override any configuration variables.
Some of the more important configuration variables are:
BOOTSTRAPIf defined (the default), the environment variables
C_INCLUDE_PATH, CPLUS_INCLUDE_PATH and LDFLAGS
point to the include and lib subdirectories of the
installation directory. This forces the use of any previously
installed libraries in preference to the normal system libraries. To
disable this feature, remove the definition BOOTSTRAP=1 in
config.mk.in and rerun configure, or build with
BOOTSTRAP undefined on the command-line:
$ make -C gnu/gnupg BOOTSTRAP=
Set in conf.mk
IGNORE_DEPSSpecifies any packages that should be skipped as dependencies (for example, if you prefer to use existing system packages instead). A space separated list. Set in gar.conf.mk.
GARCHIVEDIRGARBALLDIRSpecifies the directories used to cache downloaded source code
archives (GARCHIVEDIR) and the archives of the installed
packages (GARBALLDIR). Set in gar.conf.mk.
MAKE_ARGS_PARALLELSet this to -j N to allow N parallel processes in the
build. Note that multiple dependencies are built one-by-one, only the
commands within each build are performed in parallel. Set in
gar.conf.mk
USE_COLORIt’s easy to miss the messages printed by GSRC amongst all the output
of the build process. Set this to “y” to enable colorized output of
GSRC messages, which may make them more visible. Set it to anything
else to disable color. In either case, four more variables are
defined: MSG, ERR, OK and OFF. The first
three define strings to insert at the beginning of a normal message,
an error message, or a message indicating success, respectively. The
OFF code is inserted at the end of the message. When
USE_COLOR is “y”, these variables contain ANSI escape
sequences to change properties of the text (i.e. to set colors or text
weight). Otherwise, they may contain textual indicators, such as
“==> ” to begin a message. Some sensible default values for both
cases are included. Set in gar.conf.mk.
REDIRECT_OUTPUTA typical build process produces a lot of textual output. In some
cases, you may wish to redirect this output to somewhere other than
your screen. In this case, you may set the variable
REDIRECT_OUTPUT to any value other than “n”. To edit where
the output will be redirected, set the OUTPUT variable. By default, if
you set REDIRECT_OUTPUT, standard text output will be
redirected to /dev/null, which means it is thrown away, while
errors will be printed to the screen. You can instead, for example,
redirect to log files of your choosing (see Redirections in Bash for more details on redirection). Set in gar.conf.mk
Next: Package configuration, Previous: Advanced configuration, Up: Advanced configuration [Contents]