Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Fix spl-kmod builds when using rpm >= 4.14
Browse files Browse the repository at this point in the history
With rpm-software-management/rpm@5e94633 a package version containing
invalid characters (most commonly a double '-') causes the kmod package
generation to terminate with an error.  This change takes advantage of
the newly introduced rpm macro "_wrong_version_format_terminate_build"
to allow kmod packages to be built.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by:  loli10K <[email protected]>
Closes #691
  • Loading branch information
loli10K authored and behlendorf committed Mar 9, 2018
1 parent 3673d03 commit 43983eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/spl-build.m4
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ AC_DEFUN([SPL_AC_RPM], [
RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
RPM_DEFINE_UTIL=
RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
RPM_DEFINE_DKMS=
SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
Expand Down

0 comments on commit 43983eb

Please sign in to comment.