From e2d644f11002741dd214a4ef4971cbc3c6fe08ad6c1ee9ee31704f651ee8726e Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 13 May 2013 15:28:17 +0000 Subject: [PATCH] add missing part of multilib patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=140 --- python-2.7.4-multilib.patch | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/python-2.7.4-multilib.patch b/python-2.7.4-multilib.patch index d9c6e83..ab01bda 100644 --- a/python-2.7.4-multilib.patch +++ b/python-2.7.4-multilib.patch @@ -1,3 +1,49 @@ +Index: configure.ac +=================================================================== +--- configure.ac.orig 2012-03-16 02:26:39.000000000 +0100 ++++ configure.ac 2012-03-28 20:09:13.000000000 +0200 +@@ -630,6 +630,41 @@ + ;; + esac + ++AC_SUBST(ARCH) ++AC_MSG_CHECKING(ARCH) ++ARCH=`uname -m` ++case $ARCH in ++i?86) ARCH=i386;; ++esac ++AC_MSG_RESULT($ARCH) ++ ++AC_SUBST(LIB) ++AC_MSG_CHECKING(LIB) ++case $ac_sys_system in ++Linux*) ++ # Test if the compiler is 64bit ++ echo 'int i;' > conftest.$ac_ext ++ python_cv_cc_64bit_output=no ++ if AC_TRY_EVAL(ac_compile); then ++ case `/usr/bin/file conftest.$ac_objext` in ++ *"ELF 64"*) ++ python_cv_cc_64bit_output=yes ++ ;; ++ esac ++ fi ++ rm -rf conftest* ++ ;; ++esac ++ ++case $ARCH:$python_cv_cc_64bit_output in ++aarch64:yes | ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) ++ LIB="lib64" ++ ;; ++*:*) ++ LIB="lib" ++ ;; ++esac ++AC_MSG_RESULT($LIB) + + AC_SUBST(LIBRARY) + AC_MSG_CHECKING(LIBRARY) Index: Include/pythonrun.h =================================================================== --- Include/pythonrun.h.orig 2013-05-09 15:56:43.404729874 +0200