[71114] trunk/dports/science

Rainer Müller raimue at macports.org
Thu Sep 2 07:23:55 PDT 2010


On 2010-09-01 20:54 , michaelld at macports.org wrote:
> Revision: 71114
>           http://trac.macports.org/changeset/71114
> Author:   michaelld at macports.org
> Date:     2010-09-01 11:54:21 -0700 (Wed, 01 Sep 2010)
> Log Message:
> -----------
> Update GNU Radio and USRP to version 3.3.0.
> Added new ports for QtGUI, NOAA, MSDD6000.
> Renamed 'grc' to 'gnuradio companion', and now the 'grc' port just
>    prints a NOTE about this change.
> Added in support for Python 2.7.

[...]

> Modified: trunk/dports/science/usrp/Portfile
> ===================================================================
> --- trunk/dports/science/usrp/Portfile	2010-09-01 17:59:47 UTC (rev 71113)
> +++ trunk/dports/science/usrp/Portfile	2010-09-01 18:54:21 UTC (rev 71114)

[...]

> +variant libusb-legacy \
> +description "Use LIBUSB legacy version for USB transport" {
> +    depends_lib-append     port:libusb-legacy
> +    archcheck.files-append [exec find ${prefix}/lib/libusb-legacy \
> +                                -name "libusb*.dylib" -type f | \
> +                                grep -v pp | \
> +                                sed -e "s@${prefix}/@@g"]
> +
> +    # fix LIBUSB search to include 'usb_debug' symbol, so-as
> +    # to avoid using the 'compat' library.
> +    patchfiles      patch-configure-libusb.diff
> +}

This variant is causing issues during portindex (and also prevents usage
of the Portfile) if libusb-legacy is not installed:

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

This exec should fail gracefully if the directory is not found or should
not be executed in the top level of the Portfile.

Rainer


More information about the macports-dev mailing list