Opened 15 years ago
Closed 15 years ago
#24891 closed defect (fixed)
fix to build py26-pyusb by making it find usb.h
Reported by: | Lars.Rasmusson@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | py26-pyusb |
Description
pyusb includes usb.h , but the setup.py file does not include /opt/local/include and /opt/local/lib. I've attached a patch to setup.py that adds /opt/local/include and /opt/local/lib to the gcc arguments.
Attachments (1)
Change History (4)
Changed 15 years ago by Lars.Rasmusson@…
Attachment: | pyusb.patch added |
---|
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by Lars.Rasmusson@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The patch to setup.py that ended up in macports was incorrect. It should include from __PREFIX__/include
, not __PREFIX__/lib
.
So setup.py.diff should be changed like this.
--- setup.py.diff.orig 2010-05-17 11:42:27.000000000 +0200 +++ setup.py.diff 2010-05-17 11:42:45.000000000 +0200 @@ -8,7 +8,7 @@ - '-L/usr/local/lib'] - extra_compile_args = ['-I/sw/include','-I/usr/local/lib'] + '-L__PREFIX__/lib'] -+ extra_compile_args = ['-I__PREFIX__/lib'] ++ extra_compile_args = ['-I__PREFIX__/include'] # Juha Torkkel has reported problems compiling on freebsd # when libusb is in /usr/local tree. I don't know on freebsd, but # on Linux the paths to usr/local are in $PATH.
comment:3 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
patch of setup.py and Portfile to use the patch