public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: base-system@gentoo.org, Sam James <sam@gentoo.org>
Subject: [gentoo-dev] [PATCH] profiles/default/linux: export cache variables for sed and friends
Date: Wed,  4 Dec 2024 22:55:22 +0000	[thread overview]
Message-ID: <4bfc3e7b67c2a1398c8efa9700b66fe9ac0f2736.1733352922.git.sam@gentoo.org> (raw)

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 <sam@gentoo.org>
---
 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 <sam@gentoo.org> (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



             reply	other threads:[~2024-12-04 22:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04 22:55 Sam James [this message]
2024-12-06  0:44 ` [gentoo-dev] [PATCH] profiles/default/linux: export cache variables for sed and friends Michael Orlitzky
2024-12-10  5:46   ` Sam James
2024-12-10  8:02     ` Ionen Wolkens
2024-12-10  8:13       ` Sam James
2024-12-10  8:26       ` Eli Schwartz
2024-12-10  8:57         ` Ionen Wolkens
2024-12-10  9:22         ` Ionen Wolkens
2024-12-10  5:54   ` Eli Schwartz
2024-12-10 18:31     ` Michael Orlitzky
2024-12-10 19:33       ` Eli Schwartz
2024-12-10 22:03         ` Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bfc3e7b67c2a1398c8efa9700b66fe9ac0f2736.1733352922.git.sam@gentoo.org \
    --to=sam@gentoo.org \
    --cc=base-system@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox