dev-lang/qu-prolog: fix compile with GCCv6
authorKeri Harris <keri@gentoo.org>
Thu, 20 Oct 2016 10:03:09 +0000 (12:03 +0200)
committerKeri Harris <keri@gentoo.org>
Thu, 20 Oct 2016 10:03:09 +0000 (12:03 +0200)
Package-Manager: portage-2.3.0

dev-lang/qu-prolog/files/qu-prolog-10.0-gcc6.patch [new file with mode: 0644]
dev-lang/qu-prolog/qu-prolog-10.0.ebuild

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 (file)
index 0000000..626a15b
--- /dev/null
@@ -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);
index 4914f078c8c5029ac5d073d05582df5927ad46e0..bb4fb1f309dfbfcafc1ccbf473c53f67affb8185 100644 (file)
@@ -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() {