Use "declare -x" to export variables in autogen-5.18.16
Using the "declare -x" build-in instead of "export" allows variables to be exported only to child processes that are executed in the scope of the function in which the variables are declared, including nested function calls. This avoid polluting the environment of every package build that follows.
This commit is contained in:
parent
6276da59cd
commit
5b058a2b81
|
@ -15,13 +15,13 @@ src_prepare() {
|
|||
src_compile() {
|
||||
(
|
||||
set -e
|
||||
export PKG_CONFIG_PATH="${LIBDIR}/pkgconfig"
|
||||
declare -x PKG_CONFIG_PATH="${LIBDIR}/pkgconfig"
|
||||
sed -i "s/make install/make install DESTDIR=\${DESTDIR}/" bootstrap_tarball.sh
|
||||
sed -i "/make check/d" bootstrap_tarball.sh
|
||||
export FINALPREFIX="${PREFIX}"
|
||||
export GUILE_STATIC="--static"
|
||||
export GNULIBDIR="${PWD}"/../gnulib-8f4538a5
|
||||
export MAN_PAGE_DATE=1970-01-01
|
||||
declare -x FINALPREFIX="${PREFIX}"
|
||||
declare -x GUILE_STATIC="--static"
|
||||
declare -x GNULIBDIR="${PWD}"/../gnulib-8f4538a5
|
||||
declare -x MAN_PAGE_DATE=1970-01-01
|
||||
|
||||
SKIP_MAIN=1 . ./bootstrap_tarball.sh
|
||||
prepare_tarball
|
||||
|
|
Loading…
Reference in New Issue