From nobody Sun Apr 21 18:30:06 2024 X-Original-To: ports-bugs@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 4VMxkk3LJkz5HT2w for ; Sun, 21 Apr 2024 18:30:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMxkk2HMrz4Zbj for ; Sun, 21 Apr 2024 18:30:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713724206; a=rsa-sha256; cv=none; b=pI+Vvi7Q7hjLft9JMGGFiDHiLpb3p4GRoCgfKB+YMEa0hWuCNhAJ2UMMg0LF7lwCGxnoY3 fSaZhM308whUDVznUcAUNCV9I1uI5yAnOwhPNmzCxb1yw7ewmdFMApig/2R8Ga2MnlE/2I LcQTKiWw56PTNd46/1eiEnSFiywPQm62p5Il/DvF3KJFUlmAqwLSkfMPiWX7JCr8ClZzrO cT6X7unpBVYYUHUx/KMhwnTlK1PYrbJ9e3baGRkOcZD+hdUzGEDD2oSYEtH3O+QfzeYlVD jACVv1CTI+4c11d1nBd5scn07QEFfuyhW6T7coaOphnCJQuQ6fWPIBrBxxe5sA== 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=1713724206; 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; bh=+iXUIYRtqm26f7JePQf+32/kOGebp314ZykYpJ9uVpg=; b=N7aZTQMY8F5MRbpEIIuZfInYNgJVI5N12CaeExavi3FfhI54Y5pGVoUgQ507CJ5yKIOP0P aRTB+yEyqorX044w/JkK3tD01yD6EC9T/ZVr8Sj1iU0/QKEulDzPbu+vP0afSAvmhG/Zpp DtYmcKoTbQjJNd5Zy092c/FOeDOXnKyZOQJ0wCxXzVWbWQmU8uKC0BgWFcfGIPH0UK+pnX OHBPMy9y1rfPsx9IzShrr003+R/0R3g0O98KAzXTRND+8ZTueWlEethga/FX5vrt/iHfPt jCfKyFuSmHrxK9AKcxB/Mz8UUje784GV6uQrIGwJCnXnwqrFEa9aMhfXLWgqCw== 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 4VMxkk1v6fzGSB for ; Sun, 21 Apr 2024 18:30:06 +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 43LIU6Kq097782 for ; Sun, 21 Apr 2024 18:30:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43LIU68r097777 for ports-bugs@FreeBSD.org; Sun, 21 Apr 2024 18:30:06 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: ports-bugs@FreeBSD.org Subject: [Bug 278511] Mk/Scripts/do-depends.sh: `pkg autoremove` removes itself if `pkg` is installed as a result of `cd /usr/ports/security/sudo; make install` Date: Sun, 21 Apr 2024 18:30:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278511 Bug ID: 278511 Summary: Mk/Scripts/do-depends.sh: `pkg autoremove` removes itself if `pkg` is installed as a result of `cd /usr/ports/security/sudo; make install` Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: yasu@freebsd.org CC: ports-bugs@FreeBSD.org, tijl@FreeBSD.org At first let me assume conditions as following. * System is 14.0-RELEASE amd64. * No package is installed at all. * Latest main branch of ports repository is checked out under /usr/ports. Then try following steps 1. cd /usr/ports/security/sudo 2. make install clean 3. pkg autoremove With latest main branch of ports repository, 'pkg' itself is removed with s= tep 3. But IIRC it wasn't removed last time when I executed the command under s= uch situation. So I updated ports tree to following commit and tried same step. ---------------------------------------------------------------------- commit 5f5f3d7a8808 Author: Piotr Kubaj AuthorDate: Mon Nov 20 15:29:31 2023 +0100 Commit: Piotr Kubaj CommitDate: Mon Nov 20 15:32:05 2023 +0100 shells/oksh: update to 7.4 ---------------------------------------------------------------------- Then 'pkg' isn't removed after step 3 is finished. I tried bisect, and according to the result of it the issue starts with following commit. ---------------------------------------------------------------------- commit 830ec3717024 Author: Tijl Coosemans AuthorDate: Wed Mar 6 20:13:39 2024 +0100 Commit: Tijl Coosemans CommitDate: Wed Mar 6 21:22:21 2024 +0100 Mk/Scripts/do-depends.sh: Avoid make -D flag Both FreeBSD make and GNU make pass command line flags to sub-makes through the MAKEFLAGS environment variable, but the flags aren't compatible and GNU make 4.4 exits with an error when it encounters flags it doesn't understand, e.g. -D. Avoid using the flag for now until ports run gmake with SETENVI. This fixes the case where a port is built using make directly and it recurses to build a dependency that uses gmake. Poudriere does not use this feature of the ports tree to build dependencies so it's not affected. PR: 272216, 277492 ---------------------------------------------------------------------- As far as I read commit message, the issue seems to be unintended result of this commit. CC-ing committer of ports 830ec3717024. --=20 You are receiving this mail because: You are on the CC list for the bug.=