First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 138647
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Python Gentoo Team <python@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rick Harris <rickfharris@yahoo.com.au>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 138647 depends on: Show dependency tree
Bug 138647 blocks: 131527 145984
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-30 18:55 0000
Old bug here (6 years), but trips up many apps. that use Python's distutils
module.

Distutils tries to pass '-R' to GCC instead of '-Wl,-R' when linking libraries.
If any of the libraries linked against in the built library are located in
directories that are not in the system's LDPATH, the application will fail to
find the linked library.

Read about it here ->
http://sourceforge.net/tracker/index.php?func=detail&aid=445902&group_id=5470&atid=105470

One line patch is included on that page from last year.

------- Comment #1 From Rick Harris 2006-06-30 18:57:37 0000 -------
Correction, patch is located here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1254718&group_id=5470&atid=305470

Thanks

------- Comment #2 From Stefan Schweizer 2006-07-02 09:08:10 0000 -------
Can we apply this simple patch please, seems it does not work correctly on
gentoo without it.


To get the patchfile please run:
wget -q
'http://sourceforge.net/tracker/download.php?group_id=5470&atid=305470&file_id=144928&aid=1254718'
-O patchfile

It looks like that:
--- Lib/distutils/unixccompiler.py.orig 2005-08-09 11:54:17.000000000 +0900
+++ Lib/distutils/unixccompiler.py      2005-08-09 12:54:37.000000000 +0900
@@ -207,7 +207,8 @@
             return "+s -L" + dir
         elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
             return ["-rpath", dir]
-        elif compiler[:3] == "gcc" or compiler[:3] == "g++":
+        # This should recognize gcc, g++, gcc-x.y, ccache gcc, etc.
+        elif compiler.find("gcc") >= 0 or compiler.find("g++") >= 0:
             return "-Wl,-R" + dir
         else:
             return "-R" + dir

------- Comment #3 From Stefan Schweizer 2006-12-01 15:34:47 0000 -------
ping

------- Comment #4 From Stefan Schweizer 2007-02-11 11:37:12 0000 -------
ping?

------- Comment #5 From Stefan Schweizer 2007-03-27 10:10:37 0000 -------
ping

------- Comment #6 From Bryan Østergaard (RETIRED) 2007-05-07 07:51:22 0000 -------
Fixed in 2.3.6-r1, 2.4.4-r1 and 2.5.1.

First Last Prev Next    No search results available      Search page      Enter new bug