Created attachment 506820 [details, diff]
I have come across two problems when compiling centerim-4.22.10.
When compiling with gcc-6.4 which has been stabilized recently I get compilation errors in the src and /src/hooks subdirectories. The error occurs because c++11 is now default in gcc-6 and files in these directories makes use of variables called "auto".
The patch centerim-4.22.10-ansi-c.patch adds -ansi to CXXFLAGS in these two directories.
If ncurses has been compiled with the tinfo useflag and the terminfo library is separated out in libtinfo.so centerim fails to link because -ltinfo is missing from the link command. This is caused by the outdated macros in m4/ax_with_curses.m4 which don't make use of pkg-config. Removing that file and reconfiguring pulls in more recent macros which use pkg-config to find the correct link flags. The new macro sets CURSES_LIBS instead of CURSES_LIB.
See the attached patches and modified ebuild.
Created attachment 506822 [details, diff]
Created attachment 506824 [details]
Why not use 5.0.1 version?
I would opt for stabilizing 5.0.1 then :/
Moving on to 5.0.1 also solves the problems ofcourse.
Personally I'm not too fond of the dependency on purple but I can get used to that I guess.
We need to stabilize the fixed version as current one doesn't compile with stable gcc6
Stable on amd64.
x86 stable, closing