aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpm/generic/spl-dkms.spec.in10
-rw-r--r--rpm/generic/spl.spec.in10
2 files changed, 20 insertions, 0 deletions
diff --git a/rpm/generic/spl-dkms.spec.in b/rpm/generic/spl-dkms.spec.in
index 419624058..a8691d229 100644
--- a/rpm/generic/spl-dkms.spec.in
+++ b/rpm/generic/spl-dkms.spec.in
@@ -7,6 +7,16 @@
%define module @PACKAGE@
%define mkconf scripts/dkms.mkconf
+# Python permits the !/usr/bin/python shebang for scripts that are cross
+# compatible between python2 and python3, but Fedora 28 does not. Fedora
+# wants us to choose python3 for cross-compatible scripts. Since we want
+# to support python2 and python3 users, exclude our scripts from Fedora 28's
+# RPM build check, so that we don't get a bunch of build warnings.
+#
+# Details: https://github.com/zfsonlinux/zfs/issues/7360
+#
+%global __brp_mangle_shebangs_exclude_from splslab.py
+
Name: %{module}-dkms
Version: @VERSION@
diff --git a/rpm/generic/spl.spec.in b/rpm/generic/spl.spec.in
index 8fee0b87e..7ba71fd58 100644
--- a/rpm/generic/spl.spec.in
+++ b/rpm/generic/spl.spec.in
@@ -1,3 +1,13 @@
+# Python permits the !/usr/bin/python shebang for scripts that are cross
+# compatible between python2 and python3, but Fedora 28 does not. Fedora
+# wants us to choose python3 for cross-compatible scripts. Since we want
+# to support python2 and python3 users, exclude our scripts from Fedora 28's
+# RPM build check, so that we don't get a bunch of build warnings.
+#
+# Details: https://github.com/zfsonlinux/zfs/issues/7360
+#
+%global __brp_mangle_shebangs_exclude_from splslab.py
+
Name: @PACKAGE@
Version: @VERSION@
Release: @RELEASE@%{?dist}