summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpm/generic/zfs.spec.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index 0a5d1c543..3a46c127e 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -36,6 +36,16 @@
%bcond_with debug
%bcond_with systemd
+# 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 arc_summary.py|arcstat.py|dbufstat.py|test-runner.py
+
# Generic enable switch for systemd
%if %{with systemd}
%define _systemd 1