From 94df60b34aaaf049d9cefe973550f5ce39cf4577 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Thu, 5 Jul 2018 22:34:49 -0400 Subject: [PATCH] Fix unversioned Python shebangs --- jack-audio-connection-kit.spec | 8 +++- jack2-1.9.12-python-shebang.patch | 72 +++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 jack2-1.9.12-python-shebang.patch diff --git a/jack-audio-connection-kit.spec b/jack-audio-connection-kit.spec index 39dd79c..b25f266 100644 --- a/jack-audio-connection-kit.spec +++ b/jack-audio-connection-kit.spec @@ -11,7 +11,7 @@ Summary: The Jack Audio Connection Kit Name: jack-audio-connection-kit Version: 1.9.12 -Release: 4%{?dist} +Release: 5%{?dist} # The entire source (~500 files) is a mixture of these three licenses License: GPLv2 and GPLv2+ and LGPLv2+ Group: System Environment/Daemons @@ -30,6 +30,8 @@ Patch2: jack2-1.9.12-nointernalapi.patch Patch3: jack-realtime-compat.patch # Remove binary junk from README Patch4: jack2-1.9.12-nojunk.patch +# Proper Python2 shebangs +Patch5: jack2-1.9.12-python-shebang.patch BuildRequires: alsa-lib-devel @@ -98,6 +100,7 @@ Small example clients that use the Jack Audio Connection Kit. %patch2 -p1 -b .nointernalapi %patch3 -p1 -b .priority %patch4 -p1 -b .nojunk +%patch5 -p1 -b .shebang %build export CPPFLAGS="$RPM_OPT_FLAGS" @@ -245,6 +248,9 @@ exit 0 %changelog +* Thu Jul 05 2018 Orcan Ogetbil - 1.9.12-5 +- Fix unversioned Python shebangs + * Sat Feb 10 2018 Igor Gnatenko - 1.9.12-4 - Switch to %%ldconfig_scriptlets diff --git a/jack2-1.9.12-python-shebang.patch b/jack2-1.9.12-python-shebang.patch new file mode 100644 index 0000000..c44c57c --- /dev/null +++ b/jack2-1.9.12-python-shebang.patch @@ -0,0 +1,72 @@ +diff -rupN jack2-1.9.12.org/common/wscript jack2-1.9.12/common/wscript +--- jack2-1.9.12.org/common/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/common/wscript 2018-07-05 22:32:26.811067221 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + + import re +diff -rupN jack2-1.9.12.org/dbus/wscript jack2-1.9.12/dbus/wscript +--- jack2-1.9.12.org/dbus/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/dbus/wscript 2018-07-05 22:32:26.812067218 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + + import os.path +diff -rupN jack2-1.9.12.org/example-clients/jack_control jack2-1.9.12/example-clients/jack_control +--- jack2-1.9.12.org/example-clients/jack_control 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/example-clients/jack_control 2018-07-05 22:32:26.814067212 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + + name_base = 'org.jackaudio' + control_interface_name = name_base + '.JackControl' +diff -rupN jack2-1.9.12.org/example-clients/wscript jack2-1.9.12/example-clients/wscript +--- jack2-1.9.12.org/example-clients/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/example-clients/wscript 2018-07-05 22:32:26.813067215 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + + example_programs = { +diff -rupN jack2-1.9.12.org/man/wscript jack2-1.9.12/man/wscript +--- jack2-1.9.12.org/man/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/man/wscript 2018-07-05 22:32:26.813067215 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + + import re +diff -rupN jack2-1.9.12.org/tests/wscript jack2-1.9.12/tests/wscript +--- jack2-1.9.12.org/tests/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/tests/wscript 2018-07-05 22:32:26.813067215 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + + test_programs = { +diff -rupN jack2-1.9.12.org/waf jack2-1.9.12/waf +--- jack2-1.9.12.org/waf 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/waf 2018-07-05 22:32:26.806067234 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python2 + # encoding: ISO8859-1 + # Thomas Nagy, 2005-2015 + +diff -rupN jack2-1.9.12.org/wscript jack2-1.9.12/wscript +--- jack2-1.9.12.org/wscript 2017-12-13 16:19:04.000000000 -0500 ++++ jack2-1.9.12/wscript 2018-07-05 22:32:26.810067223 -0400 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python2 + # encoding: utf-8 + from __future__ import print_function +