From nobody Sun Jul 28 14:53:13 2024 X-Original-To: perl@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WX4HF3jYyz5SJq6 for ; Sun, 28 Jul 2024 14:53:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WX4HF19kWz4fKv for ; Sun, 28 Jul 2024 14:53:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722178393; a=rsa-sha256; cv=none; b=U+sEWiJmt+Meew+y8MqmKruj3FV/TTccJhjuxM5HJFx0AeRvGcWfFEuMHJw2QZPmj1skLr BZ8JGpjETTkHd+wCvfjeVLPOku+JcQ1xp1DUF8R/DYW0Q/Rf+UXzGpZBexVchQ3Y8TbB9E nwv5+G2kZBt/Kdu1GeZITDRYofXAlUK4DMb6KggfjE49Vl1cvnOdbx3iPeB2N8h/ZaUfDS jF0UVHm3V+XLC2LA0+hRNchiwcZ09WvKtehSc1jV3Oq5+yNIMh4h5cN4BLNs5R2a78bPX6 NlKVgoh3fyBmAnO/RT8erdYW/IAPgZQcLX/UtH0xLIGQCBvjCnBSbM8vrK1tEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722178393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WvbX97lYH10/wRc715tknSoAcRave+cB4OFH6c+LT9Q=; b=SSlER6+RS2PWVMFjNgDKisahl+s00z7sfUBbuSsoqWyzx6yhzgyJiO+HlKY7z87pZW+df4 RYRjjRcMPG1OVuHCfMi8owY0oEFB/cxgXCw4TQnt9/5/iVw8+b6W8LtYbJHSsCGgKPwZEh poFjlVhoiWqAVIdaA6DI0+dd6bxRLzLj5ojgCsdLSb3rC5TQQ1FRNl8NQbmzz8ZNTrJ/Jy uuNwXl9nKzSqrYrdei7EGzCnzXh0MYnmgo5i5GkFGIIwIfyHFRTh1kutGguAD+R5ZeQULK 37rpuxfm/D0cIi94gBADcq7cpT777arRruGVdJBpFi/Qs7oggFAUECX6+vnZ4g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WX4HF0lyWzvGh for ; Sun, 28 Jul 2024 14:53:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46SErDLS055972 for ; Sun, 28 Jul 2024 14:53:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46SErD3D055969 for perl@FreeBSD.org; Sun, 28 Jul 2024 14:53:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 280458] lang/perl5*: fix 'pkg -r' installation Date: Sun, 28 Jul 2024 14:53:13 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@svmhdvn.name X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: maintainer of a number of perl-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-perl List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-perl@freebsd.org Sender: owner-freebsd-perl@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280458 Siva Mahadevan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |me@svmhdvn.name --- Comment #2 from Siva Mahadevan --- 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.=