app-editors/ee: fix build with >=sys-libs/glibc-2.26
authorAkinori Hattori <hattya@gentoo.org>
Sat, 9 Dec 2017 13:14:35 +0000 (22:14 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sat, 9 Dec 2017 13:16:22 +0000 (22:16 +0900)
Closes: https://bugs.gentoo.org/638502
Package-Manager: Portage-2.3.13, Repoman-2.3.4

app-editors/ee/ee-1.5.2.ebuild
app-editors/ee/files/ee-signal.patch [new file with mode: 0644]

index 0d343a67d9eaa06c5ea1d6a9ba60663694195e75..fc1aec479af452705db6adba9e15aae6ce18a18c 100644 (file)
@@ -20,6 +20,7 @@ S="${WORKDIR}/easyedit-${PV}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-init-location.patch
+       "${FILESDIR}"/${PN}-signal.patch
        "${FILESDIR}"/${PN}-Wformat-security.patch
 )
 DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
diff --git a/app-editors/ee/files/ee-signal.patch b/app-editors/ee/files/ee-signal.patch
new file mode 100644 (file)
index 0000000..41cfa40
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/ee.c
++++ b/ee.c
+@@ -552,7 +552,7 @@
+ {
+       int counter;
+ 
+-      for (counter = 1; counter < SIGUNUSED; counter++)
++      for (counter = 1; counter < SIGSYS; counter++)
+               signal(counter, SIG_IGN);
+ 
+       signal(SIGCHLD, SIG_DFL);