From e7214707e2370f5a9083d3bfd29f2e6919682d53 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 14 Mar 2013 08:18:03 -0700 Subject: [PATCH] Fix up shared library extension (rhbz#889784) --- python3-upstream-issue16754-so-extension.patch | 11 +++++++++++ python3.spec | 11 ++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 python3-upstream-issue16754-so-extension.patch diff --git a/python3-upstream-issue16754-so-extension.patch b/python3-upstream-issue16754-so-extension.patch new file mode 100644 index 0000000..4af618a --- /dev/null +++ b/python3-upstream-issue16754-so-extension.patch @@ -0,0 +1,11 @@ +--- Python-3.3.0/Lib/distutils/sysconfig.py 2012-09-29 10:00:28.000000000 +0200 ++++ Python-3.3.0/Lib/distutils/sysconfig.py 2012-12-22 20:14:49.661337174 +0100 +@@ -228,7 +228,7 @@ def customize_compiler(compiler): + linker_exe=cc, + archiver=archiver) + +- compiler.shared_lib_extension = so_ext ++ #compiler.shared_lib_extension = so_ext + + + def get_config_h_filename(): diff --git a/python3.spec b/python3.spec index 85fbdab..4c74e0c 100644 --- a/python3.spec +++ b/python3.spec @@ -126,7 +126,7 @@ Summary: Version 3 of the Python programming language aka Python 3000 Name: python3 Version: %{pybasever}.0 -Release: 6%{?dist} +Release: 7%{?dist} License: Python Group: Development/Languages @@ -542,6 +542,11 @@ Patch164: 00164-disable-interrupted_write-tests-on-ppc.patch # (rhbz#913732) Patch173: 00173-workaround-ENOPROTOOPT-in-bind_port.patch +# Potential patch for so extensions being wrong since SOABI in upstream python3. +# http://bugs.python.org/issue16754 +# (rhbz#889784) +Patch174: python3-upstream-issue16754-so-extension.patch + # (New patches go here ^^^) # # When adding new patches to "python" and "python3" in Fedora 17 onwards, @@ -788,6 +793,7 @@ done #00171: TODO #00172: TODO %patch173 -p1 +%patch174 -p1 # Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there # are many differences between 2.6 and the Python 3 library. @@ -1644,6 +1650,9 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Thu Mar 14 2013 Toshio Kuratomi - .0-7 +- Fix up shared library extension (rhbz#889784) + * Thu Mar 07 2013 Karsten Hopp 3.3.0-6 - add ppc64p7 build target, optimized for Power7