From nobody Sat Jan 20 19:39:58 2024 X-Original-To: go@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 4THRdr2Fptz57LZL for ; Sat, 20 Jan 2024 19:40:00 +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 4THRdq6DLDz4lHw 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=mRFdcOwLza7+WoTO/6oBv2HNjTdcHp8SUU+yFyy7UKygJmIxPNgsDUjtGu8+D/3dV8SDMj OZXiRrfivThAGcnJBH1Vh1xopOrksJj0b7zw6+RbKlA3XJ74GWIiWlp/r2u/VrIIysHZ5o q8DHlMHl1VunThSLeGdhzvDwpVBLAjt4z7SHgtayIYxLDcBC6IDrEa09K5b28Ay7qBp7Tx Rs2eAHsf3mfRm7/SlQdv72FH3EE53aRI6imj5ie4RXtdExkfVupS0b5q1RoF4wmRwxVsM4 dlJsXEDMCpKAJ/f6C/txjjFe7GoUnEcKmEA8TuEC21mcNNRIeChXRl5WyXITag== 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=HnOQyTlbUJzqiX+KlfeYAC8qcpVGTlvEuJP+r6FFVx9aDE6+Hh2wohkdoywxk70vJyzS/C AMbiu2YV7pPQ0CMOA+BhF++HhXnxVgu98MrdL3o6D9grxjyOIuYUT1afzmTFhdrZBLrhHZ z6etJdP+myKNgGlwr2omBJTByXgmYbZ1RTKb5sckMlOKqoQUbsCPAF+3lL9Ad8sOZJZtAN W3XklBjw6SWy9tVFgzTtYahbOAvXTSOSujBtPtuDsILJ6zBLdOoTzhsOHWcMG6e63/q2zR mG84Ft+Kjv3w6zFqT3S1e3JS0Yyx2Z/JZYLC7QNkWT8zfieWxYpQtmepm7OzTg== 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 4THRdq5K3kznd5 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 40KJdx9C062583 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 40KJdxHD062581 for go@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: go@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: Go language ports maintenance List-Archive: https://lists.freebsd.org/archives/freebsd-go List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-go@freebsd.org X-BeenThere: freebsd-go@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.= From nobody Sun Jan 21 19:50:58 2024 X-Original-To: go@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 4TJ3r40j75z57c8N for ; Sun, 21 Jan 2024 19:51:00 +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 4TJ3r34T0bz4gjj for ; Sun, 21 Jan 2024 19:50: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=1705866659; 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=W66cV2e/nY3n8YaA1Dkw71haTkrKNDnZWIO2RCbI4kQ=; b=Txgw8ifmK20ykCNAOc25jfwInhI5l8YeD5twW9XNcH1mnsplH3VlK16s66k0rgOcYPEwWo zKfZLFdPcG2BRpbNT5zPxcATK8rQ/w73KAPtC7JP/XbyKcJz7tLBhClsXxbLe2oztoh5al MZCEET1ARExI3Dg+THuX8vAxFYCs1lwiKzwO+n8hsFx7l7f+tJkIlv3ldDUKSsfe84ZLub 6VI78jXXZEfwhMEDWmmQYlL/kHjD8dZM8XOCFWMyaMgE6IdC0dAd7AD4asiauBLwFnovIv KvZDu8J4jmfNFVNHi4qhqULG30HJkpem0NcGjNMIL/aRlhD+vek1NAzJT+mt5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705866659; a=rsa-sha256; cv=none; b=TzsrZajbplEApjcTDm3IeBcNmfMagJ73ytjyRnSW5+cs4Vkuq3F+CgRvX0AUO7rjSqSRY6 9Bq1Ztee439An9B9KWl8TmAA+KZ9fa7dC1G0AMC3fLYZerdiKKRk+9el27y+OlRExRoFFm XygzJ2e0WouQXFKmMvz8/vVVGlr67By8KRqVwcjb+RC6Y5xwR/iXF4g4O+9PypqhrE65TX FQ4P6VNwLGceoDldPPPU8FM3t3jgS5Y/tvJeFIMZYaeNqkHT/QK/ja2K2RfBUe4lrr7kLl chpBzqZLEXWD7RMULKne+TeUaEAbJT2np12B16XsOaJbjgGlP5FOgBJppELZoQ== 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 4TJ3r33Z2xzX4w for ; Sun, 21 Jan 2024 19:50: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 40LJoxOF054573 for ; Sun, 21 Jan 2024 19:50:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40LJoxCv054571 for go@FreeBSD.org; Sun, 21 Jan 2024 19:50: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: go@FreeBSD.org Subject: [Bug 276478] Mk/*: Build with a clean environment Date: Sun, 21 Jan 2024 19:50:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: antoine@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: 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: Go language ports maintenance List-Archive: https://lists.freebsd.org/archives/freebsd-go List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-go@freebsd.org X-BeenThere: freebsd-go@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276478 --- Comment #1 from Antoine Brodin --- I think there is a minimum environment to keep to avoid breaking things, l= ike: UNAME_r UNAME_v OSVERSION UNAME_m UNAME_p Some new failure logs: https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/mongodb-tools-100.9.4.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/rubygem-do_postgres-0.10.17_2.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/bazel-buildtools-3.2.1_15.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/elixir-hex-2.0.6.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/elixir-make-0.4.2.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/coreos-etcd31-3.1.20_20.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/coreos-etcd32-3.2.32_18.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/git-codereview-1.8.0_1.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/goredo-1.32.0_1.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/yandex-ddns-g20200613_14.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/python27-2.7.18_2.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/python310-3.10.13.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/python311-3.11.7.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/python38-3.8.18.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/python39-3.9.18.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/tauthon-2.8.5.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/mailhog-1.0.1_15.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/gap-4.12.2.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/reduce-psl-20231218_1.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/cryptoballot-g20181015_18.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/carbon-relay-ng-0.10.0_1.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/intel-snap-0.0.1_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/kapacitor-1.5.1_15.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/mqtt2prometheus-0.1.6_15.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/nvidia_gpu_prometheus_exporter-g20181028_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/prometheus-collectd-exporter-0.5.0_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/prometheus1-1.8.2_18.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/cf-6.49.0_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/revsocks-2.8_1.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/nss-3.95.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/cbsd-mq-api-0.3_15.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/cbsd-mq-router-0.2_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/hared-1.0.45_16.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/jest-3.0.16_17.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/gron-0.6.1_14.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/rubygem-prism-0.19.0.log https://pkg-status.freebsd.org/pb2/data/140i386-default-foo/2024-01-21_08h1= 8m04s/logs/nginx-vts-exporter-0.10.7_15.log --=20 You are receiving this mail because: You are on the CC list for the bug.=