[MacPorts] #17633: MacPorts port needs to be built from an /opt/local-installed MacPorts
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Building the MacPorts port with a MacPorts install not using /opt/local as its prefix can cause issues. Overriding prefix in the MacPorts Portfile (either directly or just overriding --prefix in configure.pre_args) doesn't work as MacPorts' configure (via MP_PATH_SCAN) will now ignore /opt/local, not your true MacPorts prefix. Hence it can pick up stuff installed in your true MacPorts install. This is best demonstrated by installing MacPorts to an alternate path (for this example, /mp), and installing the tcl and curl ports. Now, if you just run the configure phase on the MacPorts port, you'll see {{{ checking for Tcl configuration... found /usr/lib/tclConfig.sh checking for existence of /usr/lib/tclConfig.sh... loading checking for Tcl public headers... /usr/include checking for tclsh... /mp/bin/tclsh checking for Tcl package directory... /mp/lib/tcl8.5 checking whether tclsh was compiled with threads... yes checking for curl-config... /mp/bin/curl-config checking for curl_easy_strerror in -lcurl... no }}} Note that it now picks up the tcl and curl from your initial MacPorts install because you've overridden what it thinks of as prefix, and hence doesn't ignore the original install's prefix. For now, the MacPorts Portfile errors out if you try to use a port from anywhere but /opt/local. -- Ticket URL: <http://trac.macports.org/ticket/17633> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Comment(by mmpestorich@…): I was able to get around this by commenting out MP_PATH_SCAN in configure.ac and regenerating the configure files by running regen.sh. {{{ pre-configure { reinplace "s|MP_PATH_SCAN|#MP_PATH_SCAN|" ${worksrcpath}/configure.ac system "cd ${worksrcpath} && ./regen.sh" } }}} I don't know the ramifications of disabling the MP_PATH_SCAN routine, but do know that by enusring my path is set correctly prior to installing the port and disabling that routine allowed the configure script to properly detect the correct tcl and curl installations when installing to a different prefix. -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Comment(by jmr@…): There were also multiple hardcoded /opt/local references in the preflight script, though that's now reduced to one in InstallationCheck. -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.1 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Changes (by jmr@…): * milestone: MacPorts 1.8.0 => MacPorts 1.8.1 -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.1 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Changes (by raimue@…): * cc: raimue@… (added) Comment: Would `configure.env PATH=/bin:/sbin:/usr/bin:/usr/sbin` in the MacPorts Portfile be a possible solution? -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.9.0 Component: base | Version: 1.7.0 Keywords: prefix | Port: ------------------------------+--------------------------------------------- Changes (by blb@…): * milestone: MacPorts 1.8.1 => MacPorts 1.9.0 -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17633: MacPorts port needs to be built from an /opt/local-installed MacPorts -------------------------------+-------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.9.0 Component: base | Version: 1.7.0 Resolution: fixed | Keywords: prefix Port: | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Hardcoded /opt/local removed from dmg resources in r66776, MacPorts port updated in r66777. -- Ticket URL: <http://trac.macports.org/ticket/17633#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts