summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2017-06-06 14:59:07 +0200
committerPacho Ramos <pacho@gentoo.org>2017-06-06 15:02:12 +0200
commit6b74b9f2bc3164443919f5893909191531cc8f6c (patch)
tree21a5f95d0ace892897af2d20c11b4f3ae044a451 /app-text/apvlv
parentnet-im/telegram-desktop-bin: clean up old. (diff)
downloadgentoo-6b74b9f2bc3164443919f5893909191531cc8f6c.tar.gz
gentoo-6b74b9f2bc3164443919f5893909191531cc8f6c.tar.bz2
gentoo-6b74b9f2bc3164443919f5893909191531cc8f6c.zip
app-text/apvlv: Fix gcc6 compilation (#597670)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'app-text/apvlv')
-rw-r--r--app-text/apvlv/apvlv-0.1.5-r1.ebuild3
-rw-r--r--app-text/apvlv/files/apvlv-0.1.5-gcc6.patch12
2 files changed, 14 insertions, 1 deletions
diff --git a/app-text/apvlv/apvlv-0.1.5-r1.ebuild b/app-text/apvlv/apvlv-0.1.5-r1.ebuild
index dc6b7a188bc1..94e7aec16202 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 000000000000..0ffe3659d6d7
--- /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);