aboutsummaryrefslogtreecommitdiff
path: root/xbps-src
diff options
context:
space:
mode:
authorPeter Bui <pbui@github.bx612.space>2019-05-22 14:47:58 +0000
committerHelmut Pozimski <helmut@pozimski.eu>2019-06-04 13:44:49 +0000
commit7e1ffb6d71bf51890c480790cb032871103ab0b2 (patch)
treed520fb86b4467607e6d55fd513ab7e6c7900ae8e /xbps-src
parentc15d85987f1a0617d73f761ace0bd32c5851511a (diff)
downloadvoid-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar.gz
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar.bz2
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar.lz
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar.xz
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.tar.zst
void-packages-7e1ffb6d71bf51890c480790cb032871103ab0b2.zip
export XBPS_BINPKG_EXISTS rather than mark it as readonly
srcpkg_get_version and srcpkg_get_pkgver require unsetting XBPS_BINPKG_EXISTS to work properly (e.g. without it, some packages have a trailing -). Unfortunately, bash does not allow unsetting readonly variables, which XBPS_BINPKG_EXISTS is exported as in xbps-src. To resolve this problem, simply export XBPS_BINPKG_EXISTS as a normal variable rather than marking it as readonly. This addresses #11740.
Diffstat (limited to 'xbps-src')
-rwxr-xr-xxbps-src2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbps-src b/xbps-src
index 3cb9db24038..65c45ada56d 100755
--- a/xbps-src
+++ b/xbps-src
@@ -435,7 +435,7 @@ while getopts "$XBPS_OPTSTRING" opt; do
1) export XBPS_BUILD_ONLY_ONE_PKG=yes; XBPS_OPTIONS+=" -1";;
a) readonly XBPS_CROSS_BUILD="$OPTARG"; XBPS_OPTIONS+=" -a $OPTARG";;
C) readonly XBPS_KEEP_ALL=1; XBPS_OPTIONS+=" -C";;
- E) readonly XBPS_BINPKG_EXISTS=1; XBPS_OPTIONS+=" -E";;
+ E) export XBPS_BINPKG_EXISTS=1; XBPS_OPTIONS+=" -E";;
f) readonly XBPS_BUILD_FORCEMODE=1; XBPS_OPTIONS+=" -f";;
G) readonly XBPS_USE_GIT_REVS=1; XBPS_OPTIONS+=" -G";;
g) readonly XBPS_DEBUG_PKGS=1; XBPS_OPTIONS+=" -g";;