forked from pool/python
- Add patch python-fix-shebang.patch to fix bsc#1078326
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=219
This commit is contained in:
parent
de4df0721d
commit
9cc8a2d881
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 30 16:08:33 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Add patch python-fix-shebang.patch to fix bsc#1078326
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 22 16:49:38 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
|
@ -56,6 +56,8 @@ Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||
Patch35: python-ncurses-6.0-accessors.patch
|
||||
# PATCH-FIX-UPSTREAM bmwiedemann@suse.de -- allow python packages to build reproducibly
|
||||
Patch38: reproducible.patch
|
||||
# PATCH-FIX-UPSTREAM taken from upstream fix py3 shebang
|
||||
Patch39: python-fix-shebang.patch
|
||||
# COMMON-PATCH-END
|
||||
%define python_version %(echo %{tarversion} | head -c 3)
|
||||
BuildRequires: automake
|
||||
@ -159,6 +161,7 @@ other applications.
|
||||
%endif
|
||||
%patch35 -p1
|
||||
%patch38 -p1
|
||||
%patch39 -p1
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||
|
@ -57,6 +57,8 @@ Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||
Patch35: python-ncurses-6.0-accessors.patch
|
||||
# PATCH-FIX-UPSTREAM bmwiedemann@suse.de -- allow python packages to build reproducibly
|
||||
Patch38: reproducible.patch
|
||||
# PATCH-FIX-UPSTREAM taken from upstream fix py3 shebang
|
||||
Patch39: python-fix-shebang.patch
|
||||
# COMMON-PATCH-END
|
||||
Provides: pyth_doc
|
||||
Provides: pyth_ps
|
||||
@ -106,6 +108,7 @@ Python, and Macintosh Module Reference in PDF format.
|
||||
%endif
|
||||
%patch35 -p1
|
||||
%patch38 -p1
|
||||
%patch39 -p1
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||
|
20
python-fix-shebang.patch
Normal file
20
python-fix-shebang.patch
Normal file
@ -0,0 +1,20 @@
|
||||
From 448c6739877a4143a2c3599f041fa6127f354044 Mon Sep 17 00:00:00 2001
|
||||
From: Victor Stinner <victor.stinner@gmail.com>
|
||||
Date: Thu, 23 Nov 2017 17:04:34 +0100
|
||||
Subject: [PATCH] bpo-29512: Fix Lib/test/bisect.py shebang (#4522)
|
||||
|
||||
Replace python3 with python2.
|
||||
---
|
||||
Lib/test/bisect.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Lib/test/bisect.py b/Lib/test/bisect.py
|
||||
index 6fc561890262..1bf32ef06dd9 100755
|
||||
--- a/Lib/test/bisect.py
|
||||
+++ b/Lib/test/bisect.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python3
|
||||
+#!/usr/bin/env python2
|
||||
"""
|
||||
Command line tool to bisect failing CPython tests.
|
||||
|
@ -62,6 +62,8 @@ Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||
Patch35: python-ncurses-6.0-accessors.patch
|
||||
# PATCH-FIX-UPSTREAM bmwiedemann@suse.de -- allow python packages to build reproducibly
|
||||
Patch38: reproducible.patch
|
||||
# PATCH-FIX-UPSTREAM taken from upstream fix py3 shebang
|
||||
Patch39: python-fix-shebang.patch
|
||||
# COMMON-PATCH-END
|
||||
BuildRequires: automake
|
||||
BuildRequires: db-devel
|
||||
@ -212,6 +214,7 @@ that rely on earlier non-verification behavior.
|
||||
%endif
|
||||
%patch35 -p1
|
||||
%patch38 -p1
|
||||
%patch39 -p1
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||
|
Loading…
x
Reference in New Issue
Block a user