From 466f55334ac9b353948d4309bbcd44573e9a3024 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Wed, 23 Jan 2019 11:31:24 -0800 Subject: [PATCH] Exclude test-runner.py from the rpmbuild shebang check Exclude test-runner.py from the rpmbuild shebang check to allow it to run under Python 2 and 3. Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #8331 --- rpm/generic/zfs.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 44837f028..9faa3ba77 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -53,6 +53,10 @@ %bcond_with asan %bcond_with systemd +# Exclude test-runner.py from the rpmbuild shebang check to allow it to run +# under Python 2 and 3. +%global __brp_mangle_shebangs_exclude_from test-runner.py + # Generic enable switch for systemd %if %{with systemd} %define _systemd 1