Opened 20 years ago

Last modified 9 years ago

#1827 closed defect

Have port honor prefix setting in portconf — at Initial Version

Reported by: cykyc@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

Hello,

According to the darwinports/README, the prefix variable in portconf (e.g. /etc/ports/port.conf or ${HOME}/.portsrc) is supposed to be honored as a "directory in which to install ports". AFAIK, base/ src/port1.0/portmain.tcl overrides prefix set in base/src/darwinports1.0/darwinports.tcl by hardcoding prefix to /opt/local. This patch allows portmain.tcl to use the prefix value specified in portconf.

--- base/src/port1.0/portmain.tcl.orig Sat May 8 12:58:41 2004 +++ base/src/port1.0/portmain.tcl Sat May 8 12:59:14 2004 @@ -54,7 +54,7 @@

default distpath {[file join $portdbpath distfiles]} default workdir work default workpath {[file join $portpath $workdir]}

-default prefix /opt/local +default prefix $prefix

default x11prefix /usr/X11R6 default destdir destroot default destpath {${workpath}/${destdir}}

Change History (0)

Note: See TracTickets for help on using tickets.