]> git.pld-linux.org Git - packages/python3.git/commitdiff
- fixes for x32 arch
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 23 Dec 2014 07:53:15 +0000 (07:53 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 23 Dec 2014 07:53:15 +0000 (07:53 +0000)
- added xz BR

python3-lib64.patch
python3.spec

index 2faac0d3150a0257de134dc1788a40367d4dd670..a6c13e66a9920a212aaebbf072bdbb7e976cc3ee 100644 (file)
@@ -1,6 +1,6 @@
 --- Python-3.3.1/configure.ac.orig     2013-04-18 16:31:07.244030129 +0200
 +++ Python-3.3.1/configure.ac  2013-04-18 17:30:31.800622500 +0200
-@@ -769,6 +768,42 @@
+@@ -769,6 +768,45 @@
  MULTIARCH=$($CC --print-multiarch 2>/dev/null)
  AC_SUBST(MULTIARCH)
  
@@ -34,6 +34,9 @@
 +powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
 +  LIB="lib64"
 +  ;;
++x86_64:no)
++  LIB="libx32"
++  ;;
 +*:*)
 +  LIB="lib"
 +  ;;
                $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
 --- Python-3.2.1.orig/Modules/getpath.c        2011-07-09 07:58:54.000000000 +0100
 +++ Python-3.2.1/Modules/getpath.c     2011-07-12 22:21:48.000000000 +0100
-@@ -121,9 +121,17 @@
+@@ -121,9 +121,21 @@
  #define EXEC_PREFIX PREFIX
  #endif
  
 +#ifndef LIB_PYTHON
 +#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
++#if defined(__ILP32__)
++#define LIB_PYTHON "libx32/python"
++#else
 +#define LIB_PYTHON "lib64/python"
++#endif
 +#else
 +#define LIB_PYTHON "lib/python"
 +#endif
index 1c9fe7b03e87f7c71dffa6d2f22880333e8a8056..eec25f4d36b7368191dbb0759ba250bd24748f84 100644 (file)
@@ -76,6 +76,7 @@ BuildRequires:        tar >= 1:1.22
 %{?with_info:BuildRequires:    tetex-makeindex}
 %{?with_tkinter:BuildRequires: tix-devel >= 1:8.1.4-4}
 %{?with_tkinter:BuildRequires: tk-devel >= 8.4.3}
+BuildRequires: xz-devel
 BuildRequires: zlib-devel
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -499,6 +500,7 @@ fi
 
 %{__autoconf}
 %configure \
+       CC="%{__cc}" \
        OPT="%{rpmcflags} -fno-caller-saves" \
        CPPFLAGS="%{rpmcppflags}" \
        LDFLAGS="%{rpmldflags}" \
This page took 0.258876 seconds and 4 git commands to generate.