logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 5b058a2b81a9f7dc31bdb7981aba4d94faff5b13
parent 6276da59cdd82b58d9d6984e19ed8d8d7ec7e9f8
Author: Dor Askayo <dor.askayo@gmail.com>
Date:   Thu, 13 Jul 2023 18:58:15 +0300

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.

Diffstat:

Msysc/autogen-5.18.16/autogen-5.18.16.sh10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sysc/autogen-5.18.16/autogen-5.18.16.sh b/sysc/autogen-5.18.16/autogen-5.18.16.sh @@ -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