source: scripts/untested/blfs-patches/Python-2.4.1-lib64-1.patch@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 8.1 KB
  • Lib/distutils/command/install.py

    diff -uNr Python-2.4-orig/Lib/distutils/command/install.py Python-2.4/Lib/distutils/command/install.py
    old new  
    3939INSTALL_SCHEMES = {
    4040    'unix_prefix': {
    4141        'purelib': '$base/lib/python$py_version_short/site-packages',
    42         'platlib': '$platbase/lib/python$py_version_short/site-packages',
     42        'platlib': '$platbase/lib64/python$py_version_short/site-packages',
    4343        'headers': '$base/include/python$py_version_short/$dist_name',
    4444        'scripts': '$base/bin',
    4545        'data'   : '$base',
    4646        },
    4747    'unix_home': {
    4848        'purelib': '$base/lib/python',
    49         'platlib': '$base/lib/python',
     49        'platlib': '$base/lib64/python',
    5050        'headers': '$base/include/python/$dist_name',
    5151        'scripts': '$base/bin',
    5252        'data'   : '$base',
  • Lib/distutils/sysconfig.py

    diff -uNr Python-2.4-orig/Lib/distutils/sysconfig.py Python-2.4/Lib/distutils/sysconfig.py
    old new  
    9999        prefix = plat_specific and EXEC_PREFIX or PREFIX
    100100
    101101    if os.name == "posix":
     102        if plat_specific or standard_lib:
     103            lib = "lib64"
     104        else:
     105            lib = "lib"
    102106        libpython = os.path.join(prefix,
    103                                  "lib", "python" + get_python_version())
     107                                 "lib64", "python" + get_python_version())
    104108        if standard_lib:
    105109            return libpython
    106110        else:
  • Lib/site.py

    diff -uNr Python-2.4-orig/Lib/site.py Python-2.4/Lib/site.py
    old new  
    179179                sitedirs = [os.path.join(prefix, "Lib", "site-packages")]
    180180            elif os.sep == '/':
    181181                sitedirs = [os.path.join(prefix,
     182                                         "lib64",
     183                                         "python" + sys.version[:3],
     184                                         "site-packages"),
     185                            os.path.join(prefix,
    182186                                         "lib",
    183187                                         "python" + sys.version[:3],
    184188                                         "site-packages"),
     189                                                       os.path.join(prefix, "lib64", "site-python"),
    185190                            os.path.join(prefix, "lib", "site-python")]
    186191            else:
    187192                sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")]
  • Makefile.pre.in

    diff -uNr Python-2.4-orig/Makefile.pre.in Python-2.4/Makefile.pre.in
    old new  
    7979
    8080# Expanded directories
    8181BINDIR=         $(exec_prefix)/bin
    82 LIBDIR=         $(exec_prefix)/lib
     82LIBDIR=         $(exec_prefix)/lib64
    8383MANDIR=         @mandir@
    8484INCLUDEDIR=     @includedir@
    8585CONFINCLUDEDIR= $(exec_prefix)/include
    86 SCRIPTDIR=      $(prefix)/lib
     86SCRIPTDIR=      $(prefix)/lib64
    8787
    8888# Detailed destination directories
    8989BINLIBDEST=     $(LIBDIR)/python$(VERSION)
  • Modules/Setup.dist

    diff -uNr Python-2.4-orig/Modules/Setup.dist Python-2.4/Modules/Setup.dist
    old new  
    325325# *** Uncomment and edit to reflect your Tcl/Tk versions:
    326326#       -ltk8.2 -ltcl8.2 \
    327327# *** Uncomment and edit to reflect where your X11 libraries are:
    328 #       -L/usr/X11R6/lib \
     328        -L/usr/X11R6/lib64 \
    329329# *** Or uncomment this for Solaris:
    330330#       -L/usr/openwin/lib \
    331331# *** Uncomment these for TOGL extension only:
     
    396396#DB=/usr/local/BerkeleyDB.4.0
    397397#DBLIBVER=4.0
    398398#DBINC=$(DB)/include
    399 #DBLIB=$(DB)/lib
     399DBLIB=$(DB)/lib64
    400400#_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
    401401
    402402# Historical Berkeley DB 1.85
     
    442442# Andrew Kuchling's zlib module.
    443443# This require zlib 1.1.3 (or later).
    444444# See http://www.gzip.org/zlib/
    445 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
     445zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib64 -lz
    446446
    447447# Interface to the Expat XML parser
    448448#
  • Modules/getpath.c

    diff -uNr Python-2.4-orig/Modules/getpath.c Python-2.4/Modules/getpath.c
    old new  
    112112#endif
    113113
    114114#ifndef PYTHONPATH
    115 #define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
    116               EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
     115#define PYTHONPATH PREFIX "/lib64/python" VERSION ":" \
     116              EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload"
    117117#endif
    118118
    119119#ifndef LANDMARK
     
    124124static char exec_prefix[MAXPATHLEN+1];
    125125static char progpath[MAXPATHLEN+1];
    126126static char *module_search_path = NULL;
    127 static char lib_python[] = "lib/python" VERSION;
     127static char lib_python[] = "lib64/python" VERSION;
    128128
    129129static void
    130130reduce(char *dir)
     
    515515    }
    516516    else
    517517        strncpy(zip_path, PREFIX, MAXPATHLEN);
    518     joinpath(zip_path, "lib/python00.zip");
     518    joinpath(zip_path, "lib64/python00.zip");
    519519    bufsz = strlen(zip_path);   /* Replace "00" with version */
    520520    zip_path[bufsz - 6] = VERSION[0];
    521521    zip_path[bufsz - 5] = VERSION[2];
     
    525525            fprintf(stderr,
    526526                "Could not find platform dependent libraries <exec_prefix>\n");
    527527        strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN);
    528         joinpath(exec_prefix, "lib/lib-dynload");
     528        joinpath(exec_prefix, "lib64/lib-dynload");
    529529    }
    530530    /* If we found EXEC_PREFIX do *not* reduce it!  (Yet.) */
    531531
  • setup.py

    diff -uNr Python-2.4-orig/setup.py Python-2.4/setup.py
    old new  
    239239
    240240    def detect_modules(self):
    241241        # Ensure that /usr/local is always used
    242         add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
     242        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib64')
    243243        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
    244244
    245245        # Add paths to popular package managers on OS X/darwin
     
    429429            elif self.compiler.find_library_file(lib_dirs, 'curses'):
    430430                readline_libs.append('curses')
    431431            elif self.compiler.find_library_file(lib_dirs +
    432                                                ['/usr/lib/termcap'],
     432                                               ['/usr/lib64/termcap'],
    433433                                               'termcap'):
    434434                readline_libs.append('termcap')
    435435            exts.append( Extension('readline', ['readline.c'],
    436                                    library_dirs=['/usr/lib/termcap'],
     436                                   library_dirs=['/usr/lib64/termcap'],
    437437                                   libraries=readline_libs) )
    438438        if platform not in ['mac']:
    439439            # crypt module.
     
    462462            if krb5_h:
    463463                ssl_incs += krb5_h
    464464        ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
    465                                      ['/usr/local/ssl/lib',
    466                                       '/usr/contrib/ssl/lib/'
     465                                     ['/usr/local/ssl/lib64',
     466                                      '/usr/contrib/ssl/lib64/'
    467467                                     ] )
    468468
    469469        if (ssl_incs is not None and
     
    10001000            added_lib_dirs.append('/usr/X11R6/lib')
    10011001        elif os.path.exists('/usr/X11R5/include'):
    10021002            include_dirs.append('/usr/X11R5/include')
    1003             added_lib_dirs.append('/usr/X11R5/lib')
     1003            added_lib_dirs.append('/usr/X11R5/lib64')
    10041004        else:
    10051005            # Assume default location for X11
    10061006            include_dirs.append('/usr/X11/include')
    1007             added_lib_dirs.append('/usr/X11/lib')
     1007            added_lib_dirs.append('/usr/X11/lib64')
    10081008
    10091009        # If Cygwin, then verify that X is installed before proceeding
    10101010        if platform == 'cygwin':
Note: See TracBrowser for help on using the repository browser.