[MacPorts] #26321: usrp: Portfile fails to parse during portindex when libusb-legacy is not installed

MacPorts noreply at macports.org
Wed Sep 1 17:08:49 PDT 2010


#26321: usrp: Portfile fails to parse during portindex when libusb-legacy is not
installed
---------------------------------+------------------------------------------
 Reporter:  devans@…             |       Owner:  michaelld@…           
     Type:  defect               |      Status:  new                   
 Priority:  Normal               |   Milestone:                        
Component:  ports                |     Version:  1.9.1                 
 Keywords:  libusb-legacy        |        Port:  usrp                  
---------------------------------+------------------------------------------
 When invoking

 {{{
 portindex
 }}}

 on the local ports tree, port usrp fails to parse if libusb_legacy is not
 installed with this error

 {{{
 Creating port index in /Volumes/wdc-320/opt/macports/trunk/dports
 Error: usrp: Error executing libusb-legacy: find: /opt/local/lib/libusb-
 legacy: No such file or directory
 Failed to parse file science/usrp/Portfile: Error evaluating variants

 Total number of ports parsed:   1
 Ports successfully parsed:      0
 Ports failed:                   1
 Up-to-date ports skipped:       7318

 }}}

 The problem is that the find command in the libusb-legacy variant
 is executed during the parsing process whether or not that
 variant is selected and the find start path does not exist
 if libusb-legacy is not installed.

-- 
Ticket URL: <http://trac.macports.org/ticket/26321>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list