FS#54223 - [conky] Will not compile with gcc7

Attached to Project: Arch Linux
Opened by Bernhard Landauer (oberon) - Monday, 29 May 2017, 14:47 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 01 June 2017, 20:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I would just like to make you aware that current conky code fails to compile with gcc7 due to deprecated syntax. The error messages all concern file luamm.hh with bad usage of <code/>cpp_function</code>:
<code>/src/luamm.hh:39:15: error: ‘function’ in namespace ‘std’ does not name a template type
typedef std::function<int(state *)> cpp_function;</code>

I've already reported the issue upstream:
https://github.com/brndnmtthws/conky/issues/396
This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 01 June 2017, 20:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  in SVN
Comment by Gaetan Bisson (vesath) - Tuesday, 30 May 2017, 19:02 GMT
Awesome! Let's hope upstream finds a fix before we need to rebuild conky. :)
Comment by Bernhard Landauer (oberon) - Thursday, 01 June 2017, 07:42 GMT
The fix is easy ;) :D

diff -bur conky-1.10.6-orig/src/luamm.hh conky-1.10.6/src/luamm.hh
--- conky-1.10.6-orig/src/luamm.hh 2016-12-04 17:13:57.000000000 +0200
+++ conky-1.10.6/src/luamm.hh 2017-05-31 20:05:59.000000000 +0300
@@ -28,6 +28,7 @@
#include <exception>
#include <stdexcept>
#include <string>
+#include <functional>

#include <lua.hpp>

---------------------------

EDIT: Can I use any kind of code formatting here?

Loading...