Opened 14 years ago

Closed 14 years ago

#26321 closed defect (fixed)

usrp: Portfile fails to parse during portindex when libusb-legacy is not installed

Reported by: dbevans (David B. Evans) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: libusb-legacy Cc:
Port: usrp

Description

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.

Change History (1)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

This was fixed in r71141.

Note: See TracTickets for help on using tickets.