trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: June 2012

Tim: pytdeextensions FTBFS on 64-bit

From: Darrell Anderson <humanreadable@...>
Date: Wed, 13 Jun 2012 18:32:41 -0700 (PDT)
Tim,

I traced the build failure to a Debian patch from Debian bug report 357775. The specific patch is 11_fix_get_libdir_name.diff, which can be viewed here, about midpoint in the page:

http://lists.alioth.debian.org/pipermail/pkg-kde-commits/2006-June/003702.html

I reversed the patch and then was able to build on 64-bit. Ignoring obvious file size differences, my 64-bit package looks exactly the same as my 32-bit package.

In my patch I added some informational text to help debugging because the specific build failure message appears in three different locations. Here is my proposed patch:

===========================================================
diff -urN pytdeextensions/setup.py pytdeextensions.new/setup.py
--- pytdeextensions/setup.py  2012-05-27 17:59:26.000000000 -0500
+++ pytdeextensions.new/setup.py  2012-06-13 20:12:18.000000000 -0500
@@ -135,7 +135,7 @@
                     if self.clib!=None:
                         self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0]
             if self.clib is None:
-                raise SystemExit, "Failed to find a suitable libgcc library"
+                raise SystemExit, "setup.py: Failed to find a suitable libgcc library"
             self.announce("Using %s for clib" % self.clib)

             # Make a list of places to look for python .so modules
diff -urN pytdeextensions/src/kdedistutils.py pytdeextensions.new/src/kdedistutils.py
--- pytdeextensions/src/kdedistutils.py 2012-06-13 11:01:28.000000000 -0500
+++ pytdeextensions.new/src/kdedistutils.py 2012-06-13 20:17:43.000000000 -0500
@@ -660,7 +660,7 @@
                     if self.clib!=None:
                         self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0]
             if self.clib is None:
-                raise SystemExit, "Failed to find a suitable libgcc library"
+                raise SystemExit, "kdedistutils.py (1): Failed to find a suitable libgcc library"
             self.announce("Using %s for clib" % self.clib)

             # Make a list of places to look for python .so modules
@@ -1591,7 +1591,7 @@
                     if self.clib!=None:
                         self.clib = glob.glob(os.path.join(self.clib,'libgcc*.a'))[0]
             if self.clib is None:
-                raise SystemExit, "Failed to find a suitable libgcc library"
+                raise SystemExit, "kdedistutils.py (2): Failed to find a suitable libgcc library"
             self.announce("Using %s for clib" % self.clib)

             # Make a list of places to look for python .so modules
@@ -2229,7 +2229,7 @@

 ###########################################################################
 def get_libdir_name():
-    #if os.uname()[4] in ['x86_64','mips64','ppc64','sparc64','s390x']:
-    #    return 'lib64'
-    #else:
+    if os.uname()[4] in ['x86_64','mips64','ppc64','sparc64','s390x']:
+        return 'lib64'
+    else:
         return 'lib'
===========================================================

Do you want me to push this patch to GIT or do you want to first run a Debian/Ubuntu test build?

Darrell