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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6FB1813835A for ; Mon, 22 Mar 2021 08:59:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FDC0E082B; Mon, 22 Mar 2021 08:59:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 274C7E082B for ; Mon, 22 Mar 2021 08:59:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA82E335D9B for ; Mon, 22 Mar 2021 08:59:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38ABBC3 for ; Mon, 22 Mar 2021 08:59:11 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1616403462.9c56995f410c33050133c71a45da78f4d3ee9868.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/grep/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/grep/grep-3.5.ebuild sys-apps/grep/grep-3.6.ebuild X-VCS-Directories: sys-apps/grep/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 9c56995f410c33050133c71a45da78f4d3ee9868 X-VCS-Branch: master Date: Mon, 22 Mar 2021 08:59:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1c2679d9-71bf-41da-bde3-dfc4bfde57df X-Archives-Hash: 3a4ad860c05b7766d3924fab4c339cfb commit: 9c56995f410c33050133c71a45da78f4d3ee9868 Author: Sam James gentoo org> AuthorDate: Fri Mar 19 22:11:14 2021 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Mar 22 08:57:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c56995f sys-apps/grep: use dev-libs/libsigsegv for stack overflow handling on sparc This fixes test failures on sparc in grep 3.6, although 3.5 still fails. (This seems to be because of an older copy of gnulib in that version.) It seems too risky to to backport gnulib changes to grep 3.5. [Note that I ended up discovering an independent issue because filename-lineno.pl failed on sparc too. This ended up being a real bug in that libpcre upstream doesn't support JIT on sparc64 which manifested in both the test failing and e.g. grep -P foo dying with SIGBUS. I've therefore masked dev-libs/libpcre[jit] on sparc64 in fd573f4.] URL: https://lists.gnu.org/archive/html/bug-gnulib/2021-02/msg00002.html URL: https://debbugs.gnu.org/46227 Bug: https://bugs.gentoo.org/673524 Closes: https://bugs.gentoo.org/768135 Signed-off-by: Sam James gentoo.org> Signed-off-by: Lars Wendler gentoo.org> sys-apps/grep/grep-3.5.ebuild | 15 ++++++++++++--- sys-apps/grep/grep-3.6.ebuild | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/sys-apps/grep/grep-3.5.ebuild b/sys-apps/grep/grep-3.5.ebuild index c66425de596..4360f8880ff 100644 --- a/sys-apps/grep/grep-3.5.ebuild +++ b/sys-apps/grep/grep-3.5.ebuild @@ -15,7 +15,11 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="nls pcre static" -LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )" +# We lack dev-libs/libsigsegv[static-libs] for now +REQUIRED_USE="static? ( !sparc )" + +LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] ) + sparc? ( dev-libs/libsigsegv )" RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) nls? ( virtual/libintl ) virtual/libiconv" @@ -39,8 +43,13 @@ src_prepare() { src_configure() { use static && append-ldflags -static - # don't link against libsigsegv even when available, bug #673524 - export ac_cv_libsigsegv=no + + # We used to turn this off unconditionally (bug #673524) but we now + # allow it for cases where libsigsegv is better for userspace handling + # of stack overflows. + # In particular, it's necessary for sparc: bug #768135 + export ac_cv_libsigsegv=$(usex sparc) + # Always use pkg-config to get lib info for pcre. export ac_cv_search_pcre_compile=$( usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" '' diff --git a/sys-apps/grep/grep-3.6.ebuild b/sys-apps/grep/grep-3.6.ebuild index 576125c1c74..5d2f499deab 100644 --- a/sys-apps/grep/grep-3.6.ebuild +++ b/sys-apps/grep/grep-3.6.ebuild @@ -14,7 +14,11 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="nls pcre static" -LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )" +# We lack dev-libs/libsigsegv[static-libs] for now +REQUIRED_USE="static? ( !sparc )" + +LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] ) + sparc? ( dev-libs/libsigsegv )" RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) nls? ( virtual/libintl ) virtual/libiconv" @@ -38,8 +42,13 @@ src_prepare() { src_configure() { use static && append-ldflags -static - # don't link against libsigsegv even when available, bug #673524 - export ac_cv_libsigsegv=no + + # We used to turn this off unconditionally (bug #673524) but we now + # allow it for cases where libsigsegv is better for userspace handling + # of stack overflows. + # In particular, it's necessary for sparc: bug #768135 + export ac_cv_libsigsegv=$(usex sparc) + # Always use pkg-config to get lib info for pcre. export ac_cv_search_pcre_compile=$( usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" ''