app-admin/conky: Fix buid with gcc 7 (bug 624104).
authorDaniel Pielmeier <billie@gentoo.org>
Sat, 18 Nov 2017 11:19:52 +0000 (12:19 +0100)
committerDaniel Pielmeier <billie@gentoo.org>
Sat, 18 Nov 2017 11:20:53 +0000 (12:20 +0100)
Tanks to Piotr Stachura for the report and patch.

Package-Manager: Portage-2.3.13, Repoman-2.3.3

app-admin/conky/conky-1.10.6-r2.ebuild
app-admin/conky/files/conky-1.10.6-gcc-7.patch [new file with mode: 0644]

index 12ba1da0f256b2bcfe4ec35f53ec649bf0fd7628..39079b09ae68eeb6c38fbad7f104eec64c9d29cb 100644 (file)
@@ -73,7 +73,10 @@ CONFIG_CHECK=~IPV6
 
 DOCS=( README.md TODO ChangeLog NEWS AUTHORS )
 
-PATCHES=( "${FILESDIR}"/${P}-new_graph-oor.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-new_graph-oor.patch
+       "${FILESDIR}"/${P}-gcc-7.patch
+ )
 
 DISABLE_AUTOFORMATTING="yes"
 DOC_CONTENTS="You can find sample configurations at ${ROOT%/}/usr/share/doc/${PF}.
diff --git a/app-admin/conky/files/conky-1.10.6-gcc-7.patch b/app-admin/conky/files/conky-1.10.6-gcc-7.patch
new file mode 100644 (file)
index 0000000..6784129
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Naur a/src/luamm.hh b/src/luamm.hh
+--- a/src/luamm.hh     2017-07-07 15:05:28.250032963 +0200
++++ b/src/luamm.hh     2017-07-07 15:05:43.230033134 +0200
+@@ -28,6 +28,7 @@
+ #include <exception>
+ #include <stdexcept>
+ #include <string>
++#include <functional>
+ #include <lua.hpp>