[MacPorts] #22728: root links with non-MacPorts libraries

MacPorts noreply at macports.org
Mon Nov 30 07:17:42 PST 2009


#22728: root links with non-MacPorts libraries
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  mattiafrancescomoro@…        
     Type:  defect                   |      Status:  new                          
 Priority:  Normal                   |   Milestone:                               
Component:  ports                    |     Version:  1.8.1                        
 Keywords:                           |        Port:  root                         
-------------------------------------+--------------------------------------
 root @5.24.00_0 links with non-MacPorts libraries. Some examples:

 {{{
 $ otool -L /opt/local/bin/root /opt/local/bin/rootd
 /opt/local/bin/root:
         /usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current
 version 16.0.0)
         /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0,
 current version 11.0.0)
         /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
 version 9.0.0)
         /usr/X11/lib/libXft.2.dylib (compatibility version 4.0.0, current
 version 4.2.0)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 7.4.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.4)
 /opt/local/bin/rootd:
         /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
 (compatibility version 5.0.0, current version 5.0.0)
         /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current
 version 0.9.7)
         /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7,
 current version 0.9.7)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.4)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 7.4.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
 }}}

 As you see, root is linking with various X libraries in /usr/X11 and rootd
 is linking with openssl in /usr/lib. [wiki:FAQ#syslibs MacPorts policy] is
 that ports should link to libraries provided by other ports whenever
 possible.

 Also, root declares dependencies on libpng, giflib, tiff, qt4-mac, and
 freetype, but doesn't appear to link with any of them (at least, not that
 I could determine with `otool`).

 The root distfile seems to include its own copies of the pcre, freetype
 and unuran source, and the root build process appears to build and install
 these. This is unusual; again we would prefer root to use the existing
 MacPorts ports for this software. (There is no unuran port at this time
 but hopefully that can be quickly remedied.)

 Finally, root doesn't ensure it's UsingTheRightCompiler.

 Most of these problems probably stem from the configure environment
 variables MacPorts sets not being propagated to the Makefile for some
 reason.

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


More information about the macports-tickets mailing list