summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2016-10-20 12:03:09 +0200
committerKeri Harris <keri@gentoo.org>2016-10-20 12:03:09 +0200
commitea50a5c77edf7bbd82ddf026a90c77c4865bb740 (patch)
treef720281029aa663bb9182dde85fb583d936f8f48 /dev-lang/qu-prolog
parentdev-util/cmake: Bump to version 3.7.0_rc2. Removed old. (diff)
downloadgentoo-ea50a5c77edf7bbd82ddf026a90c77c4865bb740.tar.gz
gentoo-ea50a5c77edf7bbd82ddf026a90c77c4865bb740.tar.bz2
gentoo-ea50a5c77edf7bbd82ddf026a90c77c4865bb740.zip
dev-lang/qu-prolog: fix compile with GCCv6
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-lang/qu-prolog')
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-10.0-gcc6.patch38
-rw-r--r--dev-lang/qu-prolog/qu-prolog-10.0.ebuild1
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-lang/qu-prolog/files/qu-prolog-10.0-gcc6.patch b/dev-lang/qu-prolog/files/qu-prolog-10.0-gcc6.patch
new file mode 100644
index 000000000000..626a15b5de99
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-10.0-gcc6.patch
@@ -0,0 +1,38 @@
+--- qp10.0/src/io_qp.h.old 2016-10-12 02:50:04.343499674 -0400
++++ qp10.0/src/io_qp.h 2016-10-12 02:50:10.605264154 -0400
+@@ -662,7 +662,7 @@
+
+ bool seekp(streampos pos, ios::seekdir d = ios::beg)
+ {
+- return stream->seekp(pos, d);
++ return !stream->seekp(pos, d).fail();
+ }
+
+ bool put(char ch)
+@@ -736,7 +736,7 @@
+
+ bool seekp(streampos pos, ios::seekdir d = ios::beg)
+ {
+- return stream.seekp(pos, d);
++ return !stream.seekp(pos, d).fail();
+ }
+
+ bool put(char ch)
+@@ -816,7 +816,7 @@
+
+ bool seekp(streampos pos, ios::seekdir d = ios::beg)
+ {
+- return stream.seekp(pos, d);
++ return !stream.seekp(pos, d).fail();
+ }
+
+ bool put(char ch);
+@@ -876,7 +876,7 @@
+
+ bool seekp(streampos pos, ios::seekdir d = ios::beg)
+ {
+- return stream.seekp(pos, d);
++ return !stream.seekp(pos, d).fail();
+ }
+
+ bool put(char ch);
diff --git a/dev-lang/qu-prolog/qu-prolog-10.0.ebuild b/dev-lang/qu-prolog/qu-prolog-10.0.ebuild
index 4914f078c8c5..bb4fb1f309df 100644
--- a/dev-lang/qu-prolog/qu-prolog-10.0.ebuild
+++ b/dev-lang/qu-prolog/qu-prolog-10.0.ebuild
@@ -31,6 +31,7 @@ S="${WORKDIR}"/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-configure.patch
epatch "${FILESDIR}"/${P}-associated-item.patch
+ epatch "${FILESDIR}"/${P}-gcc6.patch
}
src_configure() {