aboutsummaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-12-13 00:54:24 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-12-13 01:15:04 -0300
commit8fd9ab03d662a0bdca7cf2435a25fbc82f36adb0 (patch)
tree980c152e1f9e3969f242c57448e0e987594c294c /platform
parentlandlock: use uint32_t instead of __u32 in firejail.h (diff)
downloadfirejail-8fd9ab03d662a0bdca7cf2435a25fbc82f36adb0.tar.gz
firejail-8fd9ab03d662a0bdca7cf2435a25fbc82f36adb0.tar.zst
firejail-8fd9ab03d662a0bdca7cf2435a25fbc82f36adb0.zip
build: mkrpm.sh: append instead of override configure args
For consistency with mkdeb.sh. Note: The default arguments and support for argument overriding was added to to mkrpm.sh on commit 3d97332fd ("Add configure options when building rpm (#3422)", 2020-05-19). The support for appending arguments was added to mkdeb.sh on commit 9a0fbbd71 ("mkdeb.sh.in: pass remaining arguments to ./configure", 2022-05-13) / PR #5154.
Diffstat (limited to 'platform')
-rwxr-xr-xplatform/rpm/mkrpm.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/platform/rpm/mkrpm.sh b/platform/rpm/mkrpm.sh
index 0572480c6..f32f4b7de 100755
--- a/platform/rpm/mkrpm.sh
+++ b/platform/rpm/mkrpm.sh
@@ -14,7 +14,7 @@
14name="$TARNAME" 14name="$TARNAME"
15# Strip any trailing prefix from the version like -rc1 etc 15# Strip any trailing prefix from the version like -rc1 etc
16version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')" 16version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')"
17config_opt="$*" 17config_opt="--disable-userns --disable-contrib-install $*"
18 18
19if [[ ! -f "platform/rpm/${name}.spec" ]]; then 19if [[ ! -f "platform/rpm/${name}.spec" ]]; then
20 printf 'error: spec file not found for name %s\n' "${name}" >&2 20 printf 'error: spec file not found for name %s\n' "${name}" >&2
@@ -26,10 +26,6 @@ if [[ -z "${version}" ]]; then
26 exit 1 26 exit 1
27fi 27fi
28 28
29if [[ -z "${config_opt}" ]]; then
30 config_opt="--disable-userns --disable-contrib-install"
31fi
32
33# Make a temporary directory and arrange to clean up on exit 29# Make a temporary directory and arrange to clean up on exit
34tmpdir="$(mktemp -d)" 30tmpdir="$(mktemp -d)"
35mkdir -p "${tmpdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 31mkdir -p "${tmpdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS}