summaryrefslogtreecommitdiffstats
path: root/system/opendoas
diff options
context:
space:
mode:
author K. Eugene Carlson2021-08-10 11:25:39 +0200
committer Willy Sudiarto Raharjo2021-08-14 16:18:00 +0200
commit574d0b9d899369b25bd80f4f95f1464a5915e4c2 (patch)
tree9dad0fb4a258d9f7b5c50de221267e7e6c6bf8a4 /system/opendoas
parent841ae7d17209f19e94603ddac9a0023330f99e80 (diff)
downloadslackbuilds-574d0b9d899369b25bd80f4f95f1464a5915e4c2.tar.gz
system/opendoas: Workaround internal usage of the $BUILD variable.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/opendoas')
-rw-r--r--system/opendoas/opendoas.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/opendoas/opendoas.SlackBuild b/system/opendoas/opendoas.SlackBuild
index 879b14d8b1..6606982e3b 100644
--- a/system/opendoas/opendoas.SlackBuild
+++ b/system/opendoas/opendoas.SlackBuild
@@ -97,6 +97,11 @@ if [ ! -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
SHADOW="--with-shadow"
fi
+# Passing BUILD from the command line otherwise causes the build to fail (the
+# configure script uses the variable name).
+SBBUILD=$BUILD
+unset BUILD
+
# No CXXFLAGS
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -108,6 +113,8 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+BUILD=$SBBUILD
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true