#36491: bob opportunistically links with opencv and qt4-mac --------------------------+--------------------------- Reporter: ryandesign@… | Owner: andre.anjos@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: bob --------------------------+--------------------------- If you have opencv or qt4-mac installed, and you install bob with the opencv or qt4 variants deselected, bob still build with opencv or qt support enabled: {{{ $ port installed opencv qt4-mac The following ports are currently installed: opencv @2.4.2_1+universal (active) qt4-mac @4.8.3_1+quartz+universal (active) $ sudo port install bob -opencv -qt4 ---> Computing dependencies for bob ---> Fetching distfiles for bob ---> Verifying checksum(s) for bob ---> Extracting bob ---> Configuring bob ---> Building bob ---> Staging bob into destroot ---> Installing bob @1.1.0_0+python27 ---> Activating bob @1.1.0_0+python27 ---> Cleaning bob $ port -q contents bob|xargs /usr/bin/otool -L|sort -u|/usr/bin/grep -i -E 'lib.*(cv|qt)' /opt/local/Library/Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.3) /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.3) /opt/local/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.2) /opt/local/lib/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.2) $ }}} This is because the opencv and qt4 variants do nothing more than add a dependency. They need to do more—such as add a configure argument, set an environment variable, or maybe even apply a patchfile—to ensure that opencv and qt support are only enabled if the corresponding variant is selected. -- Ticket URL: <https://trac.macports.org/ticket/36491> MacPorts <http://www.macports.org/> Ports system for Mac OS