commit: 6b74b9f2bc3164443919f5893909191531cc8f6c
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 6 12:59:07 2017 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Jun 6 13:02:12 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b74b9f2
app-text/apvlv: Fix gcc6 compilation (#597670)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
app-text/apvlv/apvlv-0.1.5-r1.ebuild | 3 ++-
app-text/apvlv/files/apvlv-0.1.5-gcc6.patch | 12 ++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/app-text/apvlv/apvlv-0.1.5-r1.ebuild
b/app-text/apvlv/apvlv-0.1.5-r1.ebuild
index dc6b7a188bc..94e7aec1620 100644
--- a/app-text/apvlv/apvlv-0.1.5-r1.ebuild
+++ b/app-text/apvlv/apvlv-0.1.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -26,6 +26,7 @@ DEPEND="${RDEPEND}
src_prepare() {
# preserve cflags
epatch "${FILESDIR}/${PN}-0.1.5-cflags.patch"
+ epatch "${FILESDIR}/${PN}-0.1.5-gcc6.patch"
}
src_configure() {
diff --git a/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch
b/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch
new file mode 100644
index 00000000000..0ffe3659d6d
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch
@@ -0,0 +1,12 @@
+diff -Naur apvlv-0.1.5.orig/src/ApvlvParams.cc apvlv-0.1.5/src/ApvlvParams.cc
+--- apvlv-0.1.5.orig/src/ApvlvParams.cc 2015-01-10 15:04:24.000000000
+0100
++++ apvlv-0.1.5/src/ApvlvParams.cc 2017-02-09 20:03:08.655402750 +0100
+@@ -90,7 +90,7 @@
+ return false;
+ }
+
+- while ((getline (os, str)) != NULL)
++ while (getline (os, str))
+ {
+ string argu, data, crap;
+ stringstream is (str);