summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-22 16:11:52 +0000
committerSam James <sam@gentoo.org>2024-01-23 15:13:47 +0000
commit39e7dae5ae53f438bb94c464b05aba169938d9fb (patch)
tree7ebe4583e8a405650446acf66b46c8820041c567
parentapp-emacs/ebib: Stabilize 2.40.3-r1 amd64, #922731 (diff)
downloadgentoo-39e7dae5ae53f438bb94c464b05aba169938d9fb.tar.gz
gentoo-39e7dae5ae53f438bb94c464b05aba169938d9fb.tar.bz2
gentoo-39e7dae5ae53f438bb94c464b05aba169938d9fb.zip
profiles: workaround sandbox bug with getcwd() configure test (gl_cv_func_getcwd_path_max)
Workaround for sandbox bug which causes this gnulib configure test to take many real hours on slower machines, and certainly a huge amount of CPU hours on others. Spoof the same result as configure gets on a modern glibc & musl system for now. Bug: https://bugs.gentoo.org/447970 Closes: https://bugs.gentoo.org/922652 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--profiles/default/linux/make.defaults9
-rw-r--r--profiles/features/musl/make.defaults7
2 files changed, 15 insertions, 1 deletions
diff --git a/profiles/default/linux/make.defaults b/profiles/default/linux/make.defaults
index 74dd59d5d817..4e21cd58fdf2 100644
--- a/profiles/default/linux/make.defaults
+++ b/profiles/default/linux/make.defaults
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# System-wide defaults for the Portage system
@@ -54,3 +54,10 @@ LDFLAGS="-Wl,-O1 -Wl,--as-needed"
# Prevent automagic use of 64-bit time_t.
# https://bugs.gentoo.org/828001
enable_year2038="no"
+
+# Sam James <sam@gentoo.org> (2024-01-22)
+# Workaround for sandbox bug which causes this gnulib configure test to take
+# many real hours on slower machines, and certainly a huge amount of CPU hours
+# 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"
diff --git a/profiles/features/musl/make.defaults b/profiles/features/musl/make.defaults
index 3078bdd61b09..ca792276e394 100644
--- a/profiles/features/musl/make.defaults
+++ b/profiles/features/musl/make.defaults
@@ -17,3 +17,10 @@ FEATURES="-multilib-strict"
# that use a charset, it causes package collisons.
# Note: we use a full path for locale.alias for bug #799437
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
+
+# Sam James <sam@gentoo.org> (2024-01-22)
+# Workaround for sandbox bug which causes this gnulib configure test to take
+# many real hours on slower machines, and certainly a huge amount of CPU hours
+# on others. Spoof the same result as configure gets on a modern musl system
+# for now. See bug #447970 and bug #922652.
+gl_cv_func_getcwd_path_max="no, but it is partly working"