mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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 commit3d97332fd("Add configure options when building rpm (#3422)", 2020-05-19). The support for appending arguments was added to mkdeb.sh on commit9a0fbbd71("mkdeb.sh.in: pass remaining arguments to ./configure", 2022-05-13) / PR #5154.
This commit is contained in:
parent
d44be8ed94
commit
8fd9ab03d6
1 changed files with 1 additions and 5 deletions
|
|
@ -14,7 +14,7 @@
|
|||
name="$TARNAME"
|
||||
# Strip any trailing prefix from the version like -rc1 etc
|
||||
version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')"
|
||||
config_opt="$*"
|
||||
config_opt="--disable-userns --disable-contrib-install $*"
|
||||
|
||||
if [[ ! -f "platform/rpm/${name}.spec" ]]; then
|
||||
printf 'error: spec file not found for name %s\n' "${name}" >&2
|
||||
|
|
@ -26,10 +26,6 @@ if [[ -z "${version}" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "${config_opt}" ]]; then
|
||||
config_opt="--disable-userns --disable-contrib-install"
|
||||
fi
|
||||
|
||||
# Make a temporary directory and arrange to clean up on exit
|
||||
tmpdir="$(mktemp -d)"
|
||||
mkdir -p "${tmpdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue