[MacPorts] #27618: subversion links to previous install

MacPorts noreply at macports.org
Thu Dec 9 07:21:18 PST 2010


#27618: subversion links to previous install
------------------------------------+---------------------------------------
 Reporter:  michaelld@…             |       Owner:  dluke@…           
     Type:  defect                  |      Status:  assigned          
 Priority:  Normal                  |   Milestone:                    
Component:  ports                   |     Version:  1.9.2             
 Keywords:  haspatch                |        Port:  subversion        
------------------------------------+---------------------------------------

Comment(by michaelld@…):

 I didn't quite get that correct either.  What I've been doing in my ports
 is to remove ${prefix}/include and ${prefix}/lib from *FLAGS (e.g.,
 CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS, etc.) and adding them to *PATH
 instead (CPATH and LIBRARY_PATH).  That way, when all else fails the
 compiler will still look to those paths for headers & libraries -- but
 only when all else fails.  Doing this helps keep the path ordering correct
 internal to the build; should be: internal_paths followed by
 external_paths and system_paths (generally in whatever order for these
 last 2).  When using Autotools, CMake, or QMake (which represent most of
 the ports), having "-L${prefix}/lib" at the start of LDFLAGS almost always
 results in that directory being searched before any others -- which isn't
 the correct ordering though it does work most of the time since most ports
 do not require internal linking.

-- 
Ticket URL: <https://trac.macports.org/ticket/27618#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list