jhbuild r1843 - in trunk: . modulesets patches



Author: fpeters
Date: Fri Jan 18 17:50:14 2008
New Revision: 1843
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1843&view=rev

Log:
* modulesets/bootstrap.modules, patches/python-2.4.4-lib64.patch: added
patch to Python so it works better on x86_64  (closes: #505128)
(forward-ported Mandriva patch from 2.4.1 to 2.4.4)


Added:
   trunk/patches/python-2.4.4-lib64.patch
Modified:
   trunk/ChangeLog
   trunk/modulesets/bootstrap.modules

Modified: trunk/modulesets/bootstrap.modules
==============================================================================
--- trunk/modulesets/bootstrap.modules	(original)
+++ trunk/modulesets/bootstrap.modules	Fri Jan 18 17:50:14 2008
@@ -66,7 +66,9 @@
   <autotools id="python" autogenargs="--enable-shared" autogen-sh="configure">
     <branch repo="python"
 	    module="2.4.4/Python-2.4.4.tar.bz2" version="2.4.4"
-	    size="8158073" md5sum="0ba90c79175c017101100ebf5978e906" />
+	    size="8158073" md5sum="0ba90c79175c017101100ebf5978e906">
+      <patch file="python-2.4.4-lib64.patch" strip="1" />
+    </branch>
   </autotools>
 
   <autotools id="waf" autogen-sh="utils/autogen.sh">

Added: trunk/patches/python-2.4.4-lib64.patch
==============================================================================
--- (empty file)
+++ trunk/patches/python-2.4.4-lib64.patch	Fri Jan 18 17:50:14 2008
@@ -0,0 +1,404 @@
+diff -Naur Python-2.4.4-orig/configure Python-2.4.4-lib64/configure
+--- Python-2.4.4-orig/configure	2006-10-17 18:03:36.000000000 +0200
++++ Python-2.4.4-lib64/configure	2008-01-18 18:37:09.000000000 +0100
+@@ -1,5 +1,5 @@
+ #! /bin/sh
+-# From configure.in Revision: 52231 .
++# From configure.in Revision: 52358 .
+ # Guess values for system-dependent variables and create Makefiles.
+ # Generated by GNU Autoconf 2.59 for python 2.4.
+ #
+@@ -312,7 +312,7 @@
+ # include <unistd.h>
+ #endif"
+ 
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDS
 HARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT ARCH LIB LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRU
 FT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
+ ac_subst_files=''
+ 
+ # Initialize some variables set by options.
+@@ -3294,6 +3288,49 @@
+ esac
+ 
+ 
++echo "$as_me:$LINENO: checking ARCH" >&5
++echo $ECHO_N "checking ARCH... $ECHO_C" >&6
++ARCH=`uname -m`
++case $ARCH in
++i?86) ARCH=i386;;
++esac
++echo "$as_me:$LINENO: result: $ARCH" >&5
++echo "${ECHO_T}$ARCH" >&6
++
++
++echo "$as_me:$LINENO: checking LIB" >&5
++echo $ECHO_N "checking LIB... $ECHO_C" >&6
++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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; 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
++ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
++  LIB="lib64"
++  ;;
++*:*)
++  LIB="lib"
++  ;;
++esac
++echo "$as_me:$LINENO: result: $LIB" >&5
++echo "${ECHO_T}$LIB" >&6
++
+ 
+ echo "$as_me:$LINENO: checking LIBRARY" >&5
+ echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
+@@ -21340,6 +21169,8 @@
+ s,@CPP@,$CPP,;t t
+ s,@EGREP@,$EGREP,;t t
+ s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
++s,@ARCH@,$ARCH,;t t
++s,@LIB@,$LIB,;t t
+ s,@LIBRARY@,$LIBRARY,;t t
+ s,@LDLIBRARY@,$LDLIBRARY,;t t
+ s,@DLLLIBRARY@,$DLLLIBRARY,;t t
+@@ -21553,11 +21384,6 @@
+   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+   esac
+ 
+-  if test x"$ac_file" != x-; then
+-    { echo "$as_me:$LINENO: creating $ac_file" >&5
+-echo "$as_me: creating $ac_file" >&6;}
+-    rm -f "$ac_file"
+-  fi
+   # Let's still pretend it is `configure' which instantiates (i.e., don't
+   # use $as_me), people would be surprised to read:
+   #    /* config.h.  Generated by config.status.  */
+diff -Naur Python-2.4.4-orig/configure.in Python-2.4.4-lib64/configure.in
+--- Python-2.4.4-orig/configure.in	2006-10-17 18:03:36.000000000 +0200
++++ Python-2.4.4-lib64/configure.in	2008-01-18 18:15:59.000000000 +0100
+@@ -494,6 +494,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
++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)
+diff -Naur Python-2.4.4-orig/Include/pythonrun.h Python-2.4.4-lib64/Include/pythonrun.h
+--- Python-2.4.4-orig/Include/pythonrun.h	2004-10-07 05:58:07.000000000 +0200
++++ Python-2.4.4-lib64/Include/pythonrun.h	2008-01-18 18:16:43.000000000 +0100
+@@ -93,6 +93,8 @@
+ /* In their own files */
+ PyAPI_FUNC(const char *) Py_GetVersion(void);
+ PyAPI_FUNC(const char *) Py_GetPlatform(void);
++PyAPI_FUNC(const char *) Py_GetArch(void);
++PyAPI_FUNC(const char *) Py_GetLib(void);
+ PyAPI_FUNC(const char *) Py_GetCopyright(void);
+ PyAPI_FUNC(const char *) Py_GetCompiler(void);
+ PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
+diff -Naur Python-2.4.4-orig/Lib/distutils/command/install.py Python-2.4.4-lib64/Lib/distutils/command/install.py
+--- Python-2.4.4-orig/Lib/distutils/command/install.py	2005-01-20 20:15:39.000000000 +0100
++++ Python-2.4.4-lib64/Lib/distutils/command/install.py	2008-01-18 18:16:35.000000000 +0100
+@@ -19,6 +19,8 @@
+ from distutils.errors import DistutilsOptionError
+ from glob import glob
+ 
++libname = sys.lib
++
+ if sys.version < "2.2":
+     WINDOWS_SCHEME = {
+         'purelib': '$base',
+@@ -39,14 +41,14 @@
+ INSTALL_SCHEMES = {
+     'unix_prefix': {
+         'purelib': '$base/lib/python$py_version_short/site-packages',
+-        'platlib': '$platbase/lib/python$py_version_short/site-packages',
++        'platlib': '$platbase/'+libname+'/python$py_version_short/site-packages',
+         'headers': '$base/include/python$py_version_short/$dist_name',
+         'scripts': '$base/bin',
+         'data'   : '$base',
+         },
+     'unix_home': {
+         'purelib': '$base/lib/python',
+-        'platlib': '$base/lib/python',
++        'platlib': '$base/'+libname+'/python',
+         'headers': '$base/include/python/$dist_name',
+         'scripts': '$base/bin',
+         'data'   : '$base',
+diff -Naur Python-2.4.4-orig/Lib/distutils/sysconfig.py Python-2.4.4-lib64/Lib/distutils/sysconfig.py
+--- Python-2.4.4-orig/Lib/distutils/sysconfig.py	2006-10-08 19:41:25.000000000 +0200
++++ Python-2.4.4-lib64/Lib/distutils/sysconfig.py	2008-01-18 18:19:45.000000000 +0100
+@@ -99,8 +99,12 @@
+         prefix = plat_specific and EXEC_PREFIX or PREFIX
+ 
+     if os.name == "posix":
++        if plat_specific:
++            lib = sys.lib
++        else:
++            lib = 'lib'
+         libpython = os.path.join(prefix,
+-                                 "lib", "python" + get_python_version())
++                                 lib, "python" + get_python_version())
+         if standard_lib:
+             return libpython
+         else:
+@@ -189,6 +193,8 @@
+         inc_dir = os.curdir
+     else:
+         inc_dir = get_python_inc(plat_specific=1)
++        prefix = EXEC_PREFIX or PREFIX
++        inc_dir = os.path.join(prefix, "include", "multiarch-" + sys.arch + "-linux", "python" + sys.version[:3])
+     if sys.version < '2.2':
+         config_h = 'config.h'
+     else:
+diff -Naur Python-2.4.4-orig/Lib/distutils/tests/test_install.py Python-2.4.4-lib64/Lib/distutils/tests/test_install.py
+--- Python-2.4.4-orig/Lib/distutils/tests/test_install.py	2004-06-26 01:02:59.000000000 +0200
++++ Python-2.4.4-lib64/Lib/distutils/tests/test_install.py	2008-01-18 18:16:33.000000000 +0100
+@@ -1,6 +1,6 @@
+ """Tests for distutils.command.install."""
+ 
+-import os
++import os,sys
+ import unittest
+ 
+ from distutils.command.install import install
+@@ -39,8 +39,9 @@
+             self.assertEqual(got, expected)
+ 
+         libdir = os.path.join(destination, "lib", "python")
++        platlibdir =  os.path.join(destination, sys.lib, "python")
+         check_path(cmd.install_lib, libdir)
+-        check_path(cmd.install_platlib, libdir)
++        check_path(cmd.install_platlib, platlibdir)
+         check_path(cmd.install_purelib, libdir)
+         check_path(cmd.install_headers,
+                    os.path.join(destination, "include", "python", "foopkg"))
+diff -Naur Python-2.4.4-orig/Lib/site.py Python-2.4.4-lib64/Lib/site.py
+--- Python-2.4.4-orig/Lib/site.py	2004-07-20 04:28:28.000000000 +0200
++++ Python-2.4.4-lib64/Lib/site.py	2008-01-18 18:16:26.000000000 +0100
+@@ -179,12 +179,18 @@
+                 sitedirs = [os.path.join(prefix, "Lib", "site-packages")]
+             elif os.sep == '/':
+                 sitedirs = [os.path.join(prefix,
+-                                         "lib",
++                                         sys.lib,
+                                          "python" + sys.version[:3],
+                                          "site-packages"),
+-                            os.path.join(prefix, "lib", "site-python")]
++                            os.path.join(prefix, sys.lib, "site-python")]
++                if sys.lib != 'lib':
++                    sitedirs.append(os.path.join(prefix,
++                                                 'lib',
++                                                 "python" + sys.version[:3],
++                                                 "site-packages"))
++                    sitedirs.append(os.path.join(prefix, 'lib', "site-python"))
+             else:
+-                sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")]
++                sitedirs = [prefix, os.path.join(prefix, sys.lib, "site-packages")]
+             if sys.platform == 'darwin':
+                 # for framework builds *only* we add the standard Apple
+                 # locations. Currently only per-user, but /Library and
+diff -Naur Python-2.4.4-orig/Makefile.pre.in Python-2.4.4-lib64/Makefile.pre.in
+--- Python-2.4.4-orig/Makefile.pre.in	2006-10-08 19:41:25.000000000 +0200
++++ Python-2.4.4-lib64/Makefile.pre.in	2008-01-18 18:15:59.000000000 +0100
+@@ -70,6 +70,8 @@
+ 
+ # Machine-dependent subdirectories
+ MACHDEP=	@MACHDEP@
++LIB=		@LIB@
++ARCH=		@ARCH@
+ 
+ # Install prefix for architecture-independent files
+ prefix=		@prefix@
+@@ -79,11 +81,11 @@
+ 
+ # Expanded directories
+ BINDIR=		$(exec_prefix)/bin
+-LIBDIR=		$(exec_prefix)/lib
++LIBDIR=		$(exec_prefix)/$(LIB)
+ MANDIR=		@mandir@
+ INCLUDEDIR=	@includedir@
+ CONFINCLUDEDIR=	$(exec_prefix)/include
+-SCRIPTDIR=	$(prefix)/lib
++SCRIPTDIR=	$(prefix)/$(LIB)
+ 
+ # Detailed destination directories
+ BINLIBDEST=	$(LIBDIR)/python$(VERSION)
+@@ -471,7 +473,7 @@
+ Python/compile.o Python/symtable.o: $(GRAMMAR_H)
+ 
+ Python/getplatform.o: $(srcdir)/Python/getplatform.c
+-		$(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
++		$(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -DARCH='"$(ARCH)"' -DLIB='"$(LIB)"' -o $@ $(srcdir)/Python/getplatform.c
+ 
+ Python/importdl.o: $(srcdir)/Python/importdl.c
+ 		$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
+diff -Naur Python-2.4.4-orig/Modules/getpath.c Python-2.4.4-lib64/Modules/getpath.c
+--- Python-2.4.4-orig/Modules/getpath.c	2006-02-20 18:37:39.000000000 +0100
++++ Python-2.4.4-lib64/Modules/getpath.c	2008-01-18 18:16:19.000000000 +0100
+@@ -111,9 +111,17 @@
+ #define EXEC_PREFIX PREFIX
+ #endif
+ 
++#ifndef LIB_PYTHON
++#if defined(__x86_64__) || defined(__powerpc64__)
++#define LIB_PYTHON "lib64/python" VERSION
++#else
++#define LIB_PYTHON "lib/python" VERSION
++#endif
++#endif
++
+ #ifndef PYTHONPATH
+-#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
+-              EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
++#define PYTHONPATH PREFIX "/" LIB_PYTHON ":" \
++              EXEC_PREFIX "/" LIB_PYTHON "/lib-dynload"
+ #endif
+ 
+ #ifndef LANDMARK
+@@ -124,7 +132,7 @@
+ static char exec_prefix[MAXPATHLEN+1];
+ static char progpath[MAXPATHLEN+1];
+ static char *module_search_path = NULL;
+-static char lib_python[] = "lib/python" VERSION;
++static char lib_python[] = LIB_PYTHON;
+ 
+ static void
+ reduce(char *dir)
+diff -Naur Python-2.4.4-orig/Python/getplatform.c Python-2.4.4-lib64/Python/getplatform.c
+--- Python-2.4.4-orig/Python/getplatform.c	2000-09-02 01:29:29.000000000 +0200
++++ Python-2.4.4-lib64/Python/getplatform.c	2008-01-18 18:16:37.000000000 +0100
+@@ -10,3 +10,23 @@
+ {
+ 	return PLATFORM;
+ }
++
++#ifndef ARCH
++#define ARCH "unknown"
++#endif
++
++const char *
++Py_GetArch(void)
++{
++	return ARCH;
++}
++
++#ifndef LIB
++#define LIB "lib"
++#endif
++
++const char *
++Py_GetLib(void)
++{
++	return LIB;
++}
+diff -Naur Python-2.4.4-orig/Python/sysmodule.c Python-2.4.4-lib64/Python/sysmodule.c
+--- Python-2.4.4-orig/Python/sysmodule.c	2006-10-05 20:08:58.000000000 +0200
++++ Python-2.4.4-lib64/Python/sysmodule.c	2008-01-18 18:16:41.000000000 +0100
+@@ -1037,6 +1037,10 @@
+ 			    PyString_FromString(Py_GetPlatform()));
+ 	SET_SYS_FROM_STRING("executable",
+ 			    PyString_FromString(Py_GetProgramFullPath()));
++	SET_SYS_FROM_STRING("arch",
++			    PyString_FromString(Py_GetArch()));
++	SET_SYS_FROM_STRING("lib",
++			    PyString_FromString(Py_GetLib()));
+ 	SET_SYS_FROM_STRING("prefix",
+ 			    PyString_FromString(Py_GetPrefix()));
+ 	SET_SYS_FROM_STRING("exec_prefix",
+diff -Naur Python-2.4.4-orig/setup.py Python-2.4.4-lib64/setup.py
+--- Python-2.4.4-orig/setup.py	2006-10-08 19:41:25.000000000 +0200
++++ Python-2.4.4-lib64/setup.py	2008-01-18 18:17:53.000000000 +0100
+@@ -263,12 +263,12 @@
+         except NameError:
+             have_unicode = 0
+ 
++        libname = sys.lib
+         # lib_dirs and inc_dirs are used to search for files;
+         # if a file is found in one of those directories, it can
+         # be assumed that no additional -I,-L directives are needed.
+         lib_dirs = self.compiler.library_dirs + [
+-            '/lib64', '/usr/lib64',
+-            '/lib', '/usr/lib',
++            libname, '/usr/'+libname
+             ]
+         inc_dirs = self.compiler.include_dirs + ['/usr/include']
+         exts = []
+@@ -450,7 +450,7 @@
+             elif self.compiler.find_library_file(lib_dirs, 'curses'):
+                 readline_libs.append('curses')
+             elif self.compiler.find_library_file(lib_dirs +
+-                                               ['/usr/lib/termcap'],
++                                               ['/usr/'+libname+'/termcap'],
+                                                'termcap'):
+                 readline_libs.append('termcap')
+ 
+@@ -465,7 +465,7 @@
+                 readline_extra_link_args = ()
+ 
+             exts.append( Extension('readline', ['readline.c'],
+-                                   library_dirs=['/usr/lib/termcap'],
++                                   library_dirs=['/usr/'+libname+'/termcap'],
+                                    extra_link_args=readline_extra_link_args,
+                                    libraries=readline_libs) )
+         if platform not in ['mac']:
+@@ -1069,8 +1069,8 @@
+             added_lib_dirs.append('/usr/openwin/lib')
+         elif os.path.exists('/usr/X11R6/include'):
+             include_dirs.append('/usr/X11R6/include')
+-            added_lib_dirs.append('/usr/X11R6/lib64')
+-            added_lib_dirs.append('/usr/X11R6/lib')
++            added_lib_dirs.append('/usr/X11R6/'+sys.lib)
++            #added_lib_dirs.append('/usr/X11R6/lib')
+         elif os.path.exists('/usr/X11R5/include'):
+             include_dirs.append('/usr/X11R5/include')
+             added_lib_dirs.append('/usr/X11R5/lib')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]