[MacPorts] #1827: Have port honor prefix setting in portconf

MacPorts noreply at macports.org
Thu Mar 24 06:52:10 PDT 2016


#1827: Have port honor prefix setting in portconf
----------------------+--------------------------------
  Reporter:  cykyc@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  closed
  Priority:  Normal   |  Milestone:
 Component:  base     |    Version:  1.0
Resolution:  invalid  |   Keywords:
      Port:           |
----------------------+--------------------------------
Description changed by ryandesign@…:

Old 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}}

New 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}}
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/1827#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list