commit:     af79ad934c992e953b72dd65fffeec9c9e9f13d6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 22 09:47:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 22 09:54:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af79ad93

sys-libs/glibc: add I_ALLOW_TO_BREAK_MY_SYSTEM for syscall check

See 414f21a6b310ec7d4e0885dd7ac5e379cd49dfe2.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/glibc/glibc-2.41-r8.ebuild | 2 +-
 sys-libs/glibc/glibc-2.42-r3.ebuild | 2 +-
 sys-libs/glibc/glibc-9999.ebuild    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.41-r8.ebuild 
b/sys-libs/glibc/glibc-2.41-r8.ebuild
index 5ea78892531a..331224630e15 100644
--- a/sys-libs/glibc/glibc-2.41-r8.ebuild
+++ b/sys-libs/glibc/glibc-2.41-r8.ebuild
@@ -802,7 +802,7 @@ sanity_prechecks() {
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
                        eerror "Your old kernel is broken. You need to update 
it to a newer"
                        eerror "version as syscall(<bignum>) will break. See 
bug 279260."
-                       die "Old and broken kernel."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Old 
and broken kernel."
                fi
        fi
 

diff --git a/sys-libs/glibc/glibc-2.42-r3.ebuild 
b/sys-libs/glibc/glibc-2.42-r3.ebuild
index 92011858f289..cf9e901fc584 100644
--- a/sys-libs/glibc/glibc-2.42-r3.ebuild
+++ b/sys-libs/glibc/glibc-2.42-r3.ebuild
@@ -802,7 +802,7 @@ sanity_prechecks() {
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
                        eerror "Your old kernel is broken. You need to update 
it to a newer"
                        eerror "version as syscall(<bignum>) will break. See 
bug 279260."
-                       die "Old and broken kernel."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Old 
and broken kernel."
                fi
        fi
 

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 20b5aec460fa..390a559cb394 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -759,7 +759,7 @@ sanity_prechecks() {
                if ! do_run_test '#include <unistd.h>\n#include 
<sys/syscall.h>\nint main(){return syscall(1000)!=-1;}\n' ; then
                        eerror "Your old kernel is broken. You need to update 
it to a newer"
                        eerror "version as syscall(<bignum>) will break. See 
bug 279260."
-                       die "Old and broken kernel."
+                       [[ ${I_ALLOW_TO_BREAK_MY_SYSTEM} = yes ]] || die "Old 
and broken kernel."
                fi
        fi
 

Reply via email to