From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4CCE71581D8 for ; Wed, 4 Dec 2024 22:55:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E7E8E086A; Wed, 4 Dec 2024 22:55:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E790AE0837 for ; Wed, 4 Dec 2024 22:55:33 +0000 (UTC) From: Sam James To: gentoo-dev@lists.gentoo.org Cc: base-system@gentoo.org, Sam James Subject: [gentoo-dev] [PATCH] profiles/default/linux: export cache variables for sed and friends Date: Wed, 4 Dec 2024 22:55:22 +0000 Message-ID: <4bfc3e7b67c2a1398c8efa9700b66fe9ac0f2736.1733352922.git.sam@gentoo.org> X-Mailer: git-send-email 2.47.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: c803ab46-ad9d-452c-a301-8c8cb7d18ef8 X-Archives-Hash: 27e59da5f1865472417d0403e5505e75 Prompted by yet another instance of this, this time at https://forums.gentoo.org/viewtopic-t-1171999.html. The results of these tests are often hardcoded into installed files which causes issues if using a binpkg of them from a merged-usr system on a non-merged-usr system. Just set the cache variables to avoid that. Bug: https://bugs.gentoo.org/927837 Bug: https://bugs.gentoo.org/927864 Bug: https://bugs.gentoo.org/935721 Signed-off-by: Sam James --- profiles/default/linux/make.defaults | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/profiles/default/linux/make.defaults b/profiles/default/linux/make.defaults index 12dd86f25c531..f74c0cb8e3a5d 100644 --- a/profiles/default/linux/make.defaults +++ b/profiles/default/linux/make.defaults @@ -58,3 +58,14 @@ enable_year2038="no" # on others. Spoof the same result as configure gets on a modern glibc system # for now. See bug #447970 and bug #922652. gl_cv_func_getcwd_path_max="yes" + +# Sam James (2024-12-04) +# The results of these tests are often hardcoded into installed files +# which causes issues if using a binpkg of them from a merged-usr system +# on a non-merged-usr system. Just set the cache variables to avoid that. +ac_cv_path_SED="sed" +ac_cv_path_EGREP="grep -E" +ac_cv_path_EGREP_TRADITIONAL="grep -E" +ac_cv_path_FGREP="grep -F" +ac_cv_path_GREP="grep" +ac_cv_path_lt_DD="dd" -- 2.47.1