[Bug 280458] lang/perl5*: fix 'pkg -r' installation
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 280458] lang/perl5*: fix 'pkg -r' installation"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jul 2024 14:53:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280458
Siva Mahadevan <me@svmhdvn.name> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |me@svmhdvn.name
--- Comment #2 from Siva Mahadevan <me@svmhdvn.name> ---
The problem: when you 'pkg -r /some/root install' a port, its POST-INSTALL or
@postexec commands will execute from / instead of inside the /some/root chroot.
This means that any commands that reference PREFIX or %D will be rooted in /
and operate in the wrong root. This fix does work to correctly root those
POST-INSTALL or @postexec commands in PKG_ROOTDIR which is provided here
https://github.com/freebsd/pkg/blob/main/libpkg/scripts.c#L116. This problem is
widespread in the ports collection.
See the related discussion here
https://github.com/freebsd/pkg/issues/2132#issuecomment-1517770514 for a fix
recommendation, and the whole thread for why my patch isn't against 'pkg'
itself.
@bapt any newer recommendations on this? I am a heavy user of 'pkg -r install'
and find it to be useful. I'd like to help fix this issue in the ports
collection entirely.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.