Skip to content

Commit a0b5dc4

Browse files
authored
Merge pull request #6126 from kmk3/build-mkrpm-append-args
build: mkrpm.sh: append instead of override configure args
2 parents c245fec + 8fd9ab0 commit a0b5dc4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

platform/rpm/mkrpm.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
name="$TARNAME"
1515
# Strip any trailing prefix from the version like -rc1 etc
1616
version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')"
17-
config_opt="$*"
17+
config_opt="--disable-userns --disable-contrib-install $*"
1818

1919
if [[ ! -f "platform/rpm/${name}.spec" ]]; then
2020
printf 'error: spec file not found for name %s\n' "${name}" >&2
@@ -26,10 +26,6 @@ if [[ -z "${version}" ]]; then
2626
exit 1
2727
fi
2828

29-
if [[ -z "${config_opt}" ]]; then
30-
config_opt="--disable-userns --disable-contrib-install"
31-
fi
32-
3329
# Make a temporary directory and arrange to clean up on exit
3430
tmpdir="$(mktemp -d)"
3531
mkdir -p "${tmpdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

0 commit comments

Comments
 (0)