[MacPorts] #24891: fix to build py26-pyusb by making it find usb.h
#24891: fix to build py26-pyusb by making it find usb.h --------------------------------------+------------------------------------- Reporter: Lars.Rasmusson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-pyusb --------------------------------------+------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/24891> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24891: fix to build py26-pyusb by making it find usb.h ---------------------------------------+------------------------------------ Reporter: Lars.Rasmusson@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: py26-pyusb | ---------------------------------------+------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r67635 -- Ticket URL: <http://trac.macports.org/ticket/24891#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24891: fix to build py26-pyusb by making it find usb.h ---------------------------------------+------------------------------------ Reporter: Lars.Rasmusson@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: Port: py26-pyusb | ---------------------------------------+------------------------------------ Changes (by Lars.Rasmusson@…): * status: closed => reopened * resolution: fixed => Comment: 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. }}} -- Ticket URL: <http://trac.macports.org/ticket/24891#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24891: fix to build py26-pyusb by making it find usb.h ---------------------------------------+------------------------------------ Reporter: Lars.Rasmusson@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: py26-pyusb | ---------------------------------------+------------------------------------ Changes (by jmr@…): * status: reopened => closed * resolution: => fixed Comment: r67733 -- Ticket URL: <http://trac.macports.org/ticket/24891#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts