summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChema Alonso Josa <nimiux@gentoo.org>2018-04-24 18:44:18 +0200
committerChema Alonso Josa <nimiux@gentoo.org>2018-04-24 18:44:45 +0200
commitdd50481730ca188d5b9b2f038f50339fde936cab (patch)
tree87d4ad8448e4102d3c5a5603e5796111801c870a /dev-libs/libsigsegv
parentnet-misc/freerdp: bump to 2.0.0_rc2 (diff)
downloadgentoo-dd50481730ca188d5b9b2f038f50339fde936cab.tar.gz
gentoo-dd50481730ca188d5b9b2f038f50339fde936cab.tar.bz2
gentoo-dd50481730ca188d5b9b2f038f50339fde936cab.zip
dev-libs/libsigsegv: Skip stack overflow tests
Closes: https://bugs.gentoo.org/363503 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-libs/libsigsegv')
-rw-r--r--dev-libs/libsigsegv/files/libsigsegv-2.12-skip-stackoverflow-tests.patch13
-rw-r--r--dev-libs/libsigsegv/libsigsegv-2.12-r1.ebuild34
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/libsigsegv/files/libsigsegv-2.12-skip-stackoverflow-tests.patch b/dev-libs/libsigsegv/files/libsigsegv-2.12-skip-stackoverflow-tests.patch
new file mode 100644
index 000000000000..710424958692
--- /dev/null
+++ b/dev-libs/libsigsegv/files/libsigsegv-2.12-skip-stackoverflow-tests.patch
@@ -0,0 +1,13 @@
+diff -Nuar a/tests/Makefile.am b/tests/Makefile.am
+--- a/tests/Makefile.am 2016-10-22 04:41:06.000000000 +0200
++++ b/tests/Makefile.am 2018-04-24 14:23:16.658681749 +0200
+@@ -20,7 +20,8 @@
+
+ AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests
+
+-TESTS = sigsegv1 sigsegv2 sigsegv3 stackoverflow1 stackoverflow2
++#TESTS = sigsegv1 sigsegv2 sigsegv3 stackoverflow1 stackoverflow2
++TESTS = sigsegv1 sigsegv2 sigsegv3
+
+ EXTRA_DIST = mmaputil.h altstack.h
+
diff --git a/dev-libs/libsigsegv/libsigsegv-2.12-r1.ebuild b/dev-libs/libsigsegv/libsigsegv-2.12-r1.ebuild
new file mode 100644
index 000000000000..a6dc0c1e2139
--- /dev/null
+++ b/dev-libs/libsigsegv/libsigsegv-2.12-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Library for handling page faults in user mode"
+HOMEPAGE="https://www.gnu.org/software/libsigsegv/"
+SRC_URI="mirror://gnu/libsigsegv/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+PATCHES=(
+ # Bug #363503
+ "${FILESDIR}/${P}-skip-stackoverflow-tests.patch"
+)
+
+src_prepare() {
+ default
+}
+src_configure () {
+ econf --enable-shared
+}
+
+src_test () {
+ emake check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog* NEWS PORTING README
+}