Skip to content

Commit

Permalink
Merge pull request netblue30#6126 from kmk3/build-mkrpm-append-args
Browse files Browse the repository at this point in the history
build: mkrpm.sh: append instead of override configure args
  • Loading branch information
netblue30 committed Dec 21, 2023
2 parents c245fec + 8fd9ab0 commit a0b5dc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions platform/rpm/mkrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit a0b5dc4

Please sign in to comment.