Date: Sun, 28 Jul 2024 14:53:13 +0000 From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 280458] lang/perl5*: fix 'pkg -r' installation Message-ID: <bug-280458-14331-46VBO1Kfcf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-280458-14331@https.bugs.freebsd.org/bugzilla/> References: <bug-280458-14331@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280458 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 chr= oot. 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 proble= m 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 insta= ll' and find it to be useful. I'd like to help fix this issue in the ports collection entirely. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280458-14331-46VBO1Kfcf>