commit: 13f730c14669d06d45748037511237cf1833592d Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Nov 23 13:44:14 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Nov 23 13:55:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13f730c1
dev-debug/gdb: add config checks for ptrace See https://forums.gentoo.org/viewtopic-p-8846891.html. Signed-off-by: Sam James <sam <AT> gentoo.org> dev-debug/gdb/gdb-15.2-r100.ebuild | 16 +++++++++++++++- dev-debug/gdb/gdb-9999.ebuild | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/dev-debug/gdb/gdb-15.2-r100.ebuild b/dev-debug/gdb/gdb-15.2-r100.ebuild index 207845f2a580..84b680ba31c0 100644 --- a/dev-debug/gdb/gdb-15.2-r100.ebuild +++ b/dev-debug/gdb/gdb-15.2-r100.ebuild @@ -8,7 +8,7 @@ EAPI=8 GUILE_COMPAT=( 2-2 3-0 ) PYTHON_COMPAT=( python3_{10..13} ) -inherit flag-o-matic guile-single python-single-r1 strip-linguas toolchain-funcs +inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs export CTARGET=${CTARGET:-${CHOST}} @@ -126,6 +126,20 @@ PATCHES=( ) pkg_setup() { + local CONFIG_CHECK + + if kernel_is -ge 6.11.3 ; then + # https://forums.gentoo.org/viewtopic-p-8846891.html + # + # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE + # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. + CONFIG_CHECK+=" + ~!PROC_MEM_NO_FORCE + " + fi + + linux-info_pkg_setup + use guile && guile-single_pkg_setup use python && python-single-r1_pkg_setup } diff --git a/dev-debug/gdb/gdb-9999.ebuild b/dev-debug/gdb/gdb-9999.ebuild index 02518991189f..7c3816fa9eb2 100644 --- a/dev-debug/gdb/gdb-9999.ebuild +++ b/dev-debug/gdb/gdb-9999.ebuild @@ -8,7 +8,7 @@ EAPI=8 GUILE_COMPAT=( 2-2 3-0 ) PYTHON_COMPAT=( python3_{10..13} ) -inherit flag-o-matic guile-single python-single-r1 strip-linguas toolchain-funcs +inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs export CTARGET=${CTARGET:-${CHOST}} @@ -126,6 +126,20 @@ PATCHES=( ) pkg_setup() { + local CONFIG_CHECK + + if kernel_is -ge 6.11.3 ; then + # https://forums.gentoo.org/viewtopic-p-8846891.html + # + # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE + # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. + CONFIG_CHECK+=" + ~!PROC_MEM_NO_FORCE + " + fi + + linux-info_pkg_setup + use guile && guile-single_pkg_setup use python && python-single-r1_pkg_setup }
