Blame SOURCES/00102-lib64.patch

8524d8
--- Python-3.4.0b1/Lib/distutils/command/install.py.lib64     2013-11-24 21:36:54.000000000 +0100
8524d8
+++ Python-3.4.0b1/Lib/distutils/command/install.py     2013-11-27 11:10:43.821150774 +0100
8524d8
@@ -45,14 +45,14 @@ else:
8524d8
 INSTALL_SCHEMES = {
8524d8
     'unix_prefix': {
8524d8
         'purelib': '$base/lib/python$py_version_short/site-packages',
8524d8
-        'platlib': '$platbase/lib/python$py_version_short/site-packages',
8524d8
+        'platlib': '$platbase/lib64/python$py_version_short/site-packages',
8524d8
         'headers': '$base/include/python$py_version_short$abiflags/$dist_name',
8524d8
         'scripts': '$base/bin',
8524d8
         'data'   : '$base',
8524d8
         },
8524d8
     'unix_home': {
8524d8
         'purelib': '$base/lib/python',
8524d8
-        'platlib': '$base/lib/python',
8524d8
+        'platlib': '$base/lib64/python',
8524d8
         'headers': '$base/include/python/$dist_name',
8524d8
         'scripts': '$base/bin',
8524d8
         'data'   : '$base',
8524d8
--- Python-3.4.0b1/Lib/distutils/sysconfig.py.lib64	2013-11-24 21:36:54.000000000 +0100
8524d8
+++ Python-3.4.0b1/Lib/distutils/sysconfig.py	2013-11-27 11:10:43.821150774 +0100
8524d8
@@ -141,8 +141,12 @@
8524d8
             prefix = plat_specific and EXEC_PREFIX or PREFIX
8524d8
 
8524d8
     if os.name == "posix":
8524d8
+        if plat_specific or standard_lib:
8524d8
+            lib = "lib64"
8524d8
+        else:
8524d8
+            lib = "lib"
8524d8
         libpython = os.path.join(prefix,
8524d8
-                                 "lib", "python" + get_python_version())
8524d8
+                                 lib, "python" + get_python_version())
8524d8
         if standard_lib:
8524d8
             return libpython
8524d8
         else:
8524d8
--- Python-3.4.0b1/Lib/site.py.lib64	2013-11-24 21:36:54.000000000 +0100
8524d8
+++ Python-3.4.0b1/Lib/site.py	2013-11-27 11:10:43.822150773 +0100
8524d8
@@ -304,12 +304,16 @@
8524d8
         seen.add(prefix)
8524d8
 
8524d8
         if os.sep == '/':
8524d8
+            sitepackages.append(os.path.join(prefix, "lib64",
8524d8
+                                        "python" + sys.version[:3],
8524d8
+                                        "site-packages"))
8524d8
             sitepackages.append(os.path.join(prefix, "lib",
8524d8
                                         "python" + sys.version[:3],
8524d8
                                         "site-packages"))
8524d8
             sitepackages.append(os.path.join(prefix, "lib", "site-python"))
8524d8
         else:
8524d8
             sitepackages.append(prefix)
8524d8
+            sitepackages.append(os.path.join(prefix, "lib64", "site-packages"))
8524d8
             sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
8524d8
         if sys.platform == "darwin":
8524d8
             # for framework builds *only* we add the standard Apple
8524d8
--- Python-3.4.0b1/Lib/sysconfig.py.lib64	2013-11-24 21:36:54.000000000 +0100
8524d8
+++ Python-3.4.0b1/Lib/sysconfig.py	2013-11-27 11:10:43.822150773 +0100
8524d8
@@ -20,10 +20,10 @@
8524d8
 
8524d8
 _INSTALL_SCHEMES = {
8524d8
     'posix_prefix': {
8524d8
-        'stdlib': '{installed_base}/lib/python{py_version_short}',
8524d8
-        'platstdlib': '{platbase}/lib/python{py_version_short}',
8524d8
+        'stdlib': '{installed_base}/lib64/python{py_version_short}',
8524d8
+        'platstdlib': '{platbase}/lib64/python{py_version_short}',
8524d8
         'purelib': '{base}/lib/python{py_version_short}/site-packages',
8524d8
-        'platlib': '{platbase}/lib/python{py_version_short}/site-packages',
8524d8
+        'platlib': '{platbase}/lib64/python{py_version_short}/site-packages',
8524d8
         'include':
8524d8
             '{installed_base}/include/python{py_version_short}{abiflags}',
8524d8
         'platinclude':
8524d8
@@ -61,10 +61,10 @@
8524d8
         'data': '{userbase}',
8524d8
         },
8524d8
     'posix_user': {
8524d8
-        'stdlib': '{userbase}/lib/python{py_version_short}',
8524d8
-        'platstdlib': '{userbase}/lib/python{py_version_short}',
8524d8
+        'stdlib': '{userbase}/lib64/python{py_version_short}',
8524d8
+        'platstdlib': '{userbase}/lib64/python{py_version_short}',
8524d8
         'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
8524d8
-        'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
8524d8
+        'platlib': '{userbase}/lib64/python{py_version_short}/site-packages',
8524d8
         'include': '{userbase}/include/python{py_version_short}',
8524d8
         'scripts': '{userbase}/bin',
8524d8
         'data': '{userbase}',
8524d8
--- Python-3.4.0b1/Lib/test/test_site.py.lib64	2013-11-24 21:36:55.000000000 +0100
8524d8
+++ Python-3.4.0b1/Lib/test/test_site.py	2013-11-27 11:10:43.822150773 +0100
8524d8
@@ -244,12 +244,15 @@
8524d8
             self.assertEqual(dirs[2], wanted)
8524d8
         elif os.sep == '/':
8524d8
             # OS X non-framwework builds, Linux, FreeBSD, etc
8524d8
-            self.assertEqual(len(dirs), 2)
8524d8
-            wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
8524d8
+            self.assertEqual(len(dirs), 3)
8524d8
+            wanted = os.path.join('xoxo', 'lib64', 'python' + sys.version[:3],
8524d8
                                   'site-packages')
8524d8
             self.assertEqual(dirs[0], wanted)
8524d8
-            wanted = os.path.join('xoxo', 'lib', 'site-python')
8524d8
+            wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
8524d8
+                                  'site-packages')
8524d8
             self.assertEqual(dirs[1], wanted)
8524d8
+            wanted = os.path.join('xoxo', 'lib', 'site-python')
8524d8
+            self.assertEqual(dirs[2], wanted)
8524d8
         else:
8524d8
             # other platforms
8524d8
             self.assertEqual(len(dirs), 2)
8524d8
--- Python-3.4.0b1/Makefile.pre.in.lib64	2013-11-27 11:10:43.814150786 +0100
8524d8
+++ Python-3.4.0b1/Makefile.pre.in	2013-11-27 11:10:43.823150771 +0100
8524d8
@@ -115,7 +115,7 @@
8524d8
 MANDIR=		@mandir@
8524d8
 INCLUDEDIR=	@includedir@
8524d8
 CONFINCLUDEDIR=	$(exec_prefix)/include
8524d8
-SCRIPTDIR=	$(prefix)/lib
8524d8
+SCRIPTDIR=	$(prefix)/lib64
8524d8
 ABIFLAGS=	@ABIFLAGS@
8524d8
 
8524d8
 # Detailed destination directories
8524d8
--- Python-3.4.0b1/Modules/getpath.c.lib64	2013-11-24 21:36:56.000000000 +0100
8524d8
+++ Python-3.4.0b1/Modules/getpath.c	2013-11-27 11:17:33.619449704 +0100
8524d8
@@ -122,8 +122,8 @@
8524d8
 #endif
8524d8
 
8524d8
 #ifndef PYTHONPATH
8524d8
-#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
8524d8
-              EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
8524d8
+#define PYTHONPATH PREFIX "/lib64/python" VERSION ":" \
8524d8
+              EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload"
8524d8
 #endif
8524d8
 
8524d8
 #ifndef LANDMARK
8524d8
@@ -498,7 +498,7 @@
8524d8
     _pythonpath = _Py_char2wchar(PYTHONPATH, NULL);
8524d8
     _prefix = _Py_char2wchar(PREFIX, NULL);
8524d8
     _exec_prefix = _Py_char2wchar(EXEC_PREFIX, NULL);
8524d8
-    lib_python = _Py_char2wchar("lib/python" VERSION, NULL);
8524d8
+    lib_python = _Py_char2wchar("lib64/python" VERSION, NULL);
8524d8
 
8524d8
     if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python) {
8524d8
         Py_FatalError(
8524d8
@@ -687,7 +687,7 @@
8524d8
     }
8524d8
     else
8524d8
         wcsncpy(zip_path, _prefix, MAXPATHLEN);
8524d8
-    joinpath(zip_path, L"lib/python00.zip");
8524d8
+    joinpath(zip_path, L"lib64/python00.zip");
8524d8
     bufsz = wcslen(zip_path);   /* Replace "00" with version */
8524d8
     zip_path[bufsz - 6] = VERSION[0];
8524d8
     zip_path[bufsz - 5] = VERSION[2];
8524d8
@@ -699,7 +699,7 @@
8524d8
             fprintf(stderr,
8524d8
                 "Could not find platform dependent libraries <exec_prefix>\n");
8524d8
         wcsncpy(exec_prefix, _exec_prefix, MAXPATHLEN);
8524d8
-        joinpath(exec_prefix, L"lib/lib-dynload");
8524d8
+        joinpath(exec_prefix, L"lib64/lib-dynload");
8524d8
     }
8524d8
     /* If we found EXEC_PREFIX do *not* reduce it!  (Yet.) */
8524d8
 
8524d8
--- Python-3.4.0b1/setup.py.lib64	2013-11-24 21:36:56.000000000 +0100
8524d8
+++ Python-3.4.0b1/setup.py	2013-11-27 11:10:43.824150769 +0100
8524d8
@@ -441,7 +441,7 @@
8524d8
         # directories (i.e. '.' and 'Include') must be first.  See issue
8524d8
         # 10520.
8524d8
         if not cross_compiling:
8524d8
-            add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
8524d8
+            add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib64')
8524d8
             add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
8524d8
         # only change this for cross builds for 3.3, issues on Mageia
8524d8
         if cross_compiling:
8524d8
@@ -718,11 +718,11 @@
8524d8
             elif curses_library:
8524d8
                 readline_libs.append(curses_library)
8524d8
             elif self.compiler.find_library_file(lib_dirs +
8524d8
-                                                     ['/usr/lib/termcap'],
8524d8
+                                                     ['/usr/lib64/termcap'],
8524d8
                                                      'termcap'):
8524d8
                 readline_libs.append('termcap')
8524d8
             exts.append( Extension('readline', ['readline.c'],
8524d8
-                                   library_dirs=['/usr/lib/termcap'],
8524d8
+                                   library_dirs=['/usr/lib64/termcap'],
8524d8
                                    extra_link_args=readline_extra_link_args,
8524d8
                                    libraries=readline_libs) )
8524d8
         else:
8524d8
@@ -759,8 +759,8 @@
8524d8
             if krb5_h:
8524d8
                 ssl_incs += krb5_h
8524d8
         ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
8524d8
-                                     ['/usr/local/ssl/lib',
8524d8
-                                      '/usr/contrib/ssl/lib/'
8524d8
+                                     ['/usr/local/ssl/lib64',
8524d8
+                                      '/usr/contrib/ssl/lib64/'
8524d8
                                      ] )
8524d8
 
8524d8
         if (ssl_incs is not None and