[MacPorts] #65313: ports that change prefix fail to install without root privileges
MacPorts
noreply at macports.org
Fri Sep 9 16:51:21 UTC 2022
#65313: ports that change prefix fail to install without root privileges
------------------------------+-----------------------------
Reporter: lyskov | Owner: jmroot
Type: defect | Status: closed
Priority: Normal | Milestone: MacPorts Future
Component: base | Version:
Resolution: fixed | Keywords:
Port: cmake-bootstrap |
------------------------------+-----------------------------
Comment (by AgilentGCMS):
Could someone explain to me how to apply the patch/fix being discussed? I
looked in `${prefix}/libexec/macports/lib/port1.0/portinstall.tcl`, but it
currently looks a little different from the "before" version at
https://github.com/macports/macports-
base/commit/fbfcb9ff67ae55f477652fe6b7e7fc809782dbbf. Specifically, on
that commit lines 51 through 53 are
{{{
default activate.asroot no
proc portactivate::activate_start {args} {
}}}
whereas in my `${prefix}/libexec/macports/lib/port1.0/portinstall.tcl`
that area of the code looks different. Lines 52-56 ('''not''' 51-53) have
{{{
default install.asroot no
set_ui_prefix
proc portinstall::install_start {args} {
}}}
and even the line after that is different,
{{{
global UI_PREFIX subport version revision portvariants \
prefix registry_open registry.path
}}}
I'm hesitant to change anything here, since it's clear that my
`portinstall.tcl` is different from the "before" version in that commit.
--
Ticket URL: <https://trac.macports.org/ticket/65313#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list