From nobody Sat Jan 20 19:39:58 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 4THRdq5wnrz57LX1 for ; Sat, 20 Jan 2024 19:39:59 +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 4THRdq45ksz4lHt for ; Sat, 20 Jan 2024 19:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705779599; 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=Z9To010piAgDvRKJWOp3Q6cPXHf0ZMhWgZqj5JNrYGU=; b=o3NyH+oLv6bYxu9eEQXtBooYlYulc+1VDIfEn/2tbGkKKuqFyGeP86LYCzSvi/FUn8+54p Az/J9bDXPG4OM5+vWKuPhfXb5CHBFDDV3o+VPhW1KStWRZS1S3h6B1nICO5ASAuUs+thOJ Eyu8w33P8r9l8r6KV7U/bH2+NcdFJyCDmurADyyqrZl8La41CMyk5FX2TR6DANnJgFoTi/ vL/K3oN3LdFWjzoV6md9peFJgIglZnoLFgp6p347LR9HbTfNcucFNafuLiw0CZGPjODvRS WCLdNJ1V+Y/CUsjx9VK6b+x7ECsRXocGF+6WZnlWeTWFvV11oiIMs+pTt3PJIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705779599; a=rsa-sha256; cv=none; b=K9xVWyBHeXKaG02xV9odH0Q7FJFjHQUvumm73pC5pynEEKBxC2WDi5YME2JxEYivSxsguS ZAteMWvFdVtQ9PTbwJKzXQ/5WyprCGf/1GGrPU/u1Z6OBAP/BLDvsN6Q43IeTrf8BmNt8i ITXATlzeyBQS2mnltE3XWQd9xQu4mwnOO8Zisfoj0RykuuMlvWmNhg2PDhUxI0B1C22EgG cQ17Ynd9DDuI5nUy+9pqvXF5F54VsGqYHpsULQKpgqaQWhFrN42uwi/lWuvmOAEe2Np9Sd tEVm7qcQU8vg1r5+YBQ4c01giqFV7LnwYMx+1oSgIejUUvwfsTMD/HhBxgU5pg== 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 4THRdq3CtBznd4 for ; Sat, 20 Jan 2024 19:39:59 +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 40KJdx7D062560 for ; Sat, 20 Jan 2024 19:39:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40KJdxMl062559 for perl@FreeBSD.org; Sat, 20 Jan 2024 19:39:59 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 276478] Mk/*: Build with a clean environment Date: Sat, 20 Jan 2024 19:39:58 +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: tijl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: exp-run? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc blocked flagtypes.name attachments.created 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: 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: Sender: owner-freebsd-perl@freebsd.org X-BeenThere: freebsd-perl@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276478 Bug ID: 276478 Summary: Mk/*: Build with a clean environment Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: tijl@FreeBSD.org CC: acm@FreeBSD.org, amdmi3@FreeBSD.org, gnome@FreeBSD.org, go@FreeBSD.org, haskell@FreeBSD.org, java@FreeBSD.org, kde@FreeBSD.org, olgeni@FreeBSD.org, perl@FreeBSD.org, ports-bugs@FreeBSD.org, python@FreeBSD.org, ruby@FreeBSD.org, rust@FreeBSD.org, x11@FreeBSD.org Blocks: 272216 Flags: exp-run? Created attachment 247801 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247801&action= =3Dedit patch Both our make and gmake use the MAKEFLAGS environment variable but the valu= es aren't compatible and the latest version of gmake complains about that. To prevent that environment variables interfere with the build process like th= is, this patch adds a new command SETENVI=3D/usr/bin/env -i that clears the environment. The idea is to use SETENVI instead of SETENV when running bui= ld tools and scripts so their environment only contains variables from CONFIGURE_ENV or MAKE_ENV or TEST_ENV or similar. This way it doesn't matt= er what variables our make uses or what environment variables a user might have set. This patch takes care of Mk/* and Mk/Uses/*. Individual ports can be chang= ed later. If you are the maintainer of any of the Mk/Uses/* files please review the changes. A minor open problem is that the TERM environment variable is now missing w= hich means that error messages are no longer colored for instance. I'd like to introduce a new variable WRK_ENV that would contain common environment variables like TERM, PATH, and SHELL, and perhaps other variables that are common between CONFIGURE_ENV and MAKE_ENV. It would be used in every make target while CONFIGURE_ENV, MAKE_ENV, and TEST_ENV contain target specific environment variables. Any objections to this? Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272216 [Bug 272216] devel/gmake: Update to 4.4.1 --=20 You are receiving this mail because: You are on the CC list for the bug.=