After updating ncurses and portage trying to rebuild (@preserved-rebuild), it fails with newsbeuter not finding ncurses-5. --snip-- >>> Emerging (1 of 1) net-news/newsbeuter-2.9::gentoo * newsbeuter-2.9.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking newsbeuter-2.9.tar.gz to /var/tmp/portage/net-news/newsbeuter-2.9/work >>> Source unpacked in /var/tmp/portage/net-news/newsbeuter-2.9/work >>> Preparing source in /var/tmp/portage/net-news/newsbeuter-2.9/work/newsbeuter-2.9 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-news/newsbeuter-2.9/work/newsbeuter-2.9 ... Checking for package sqlite3... found Checking for package libcurl... found Checking for package libxml-2.0... found Checking for package stfl... found Checking for package json... not found Checking for package json-c... found Checking for package ncursesw5 using ncursesw5-config... not found You need package ncursesw in order to compile this program. Please make sure it is installed. You can download ncursesw from here: curl was built with static libraries disabled curl was built with static libraries disabled One or more dependencies couldn't be found. Please install these packages and retry compilation. * ERROR: net-news/newsbeuter-2.9::gentoo failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 752: Called die * The specific snippet of code: * ./config.sh || die * * If you need support, post the output of `emerge --info '=net-news/newsbeuter-2.9::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-news/newsbeuter-2.9::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-news/newsbeuter-2.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-news/newsbeuter-2.9/temp/environment'. * Working directory: '/var/tmp/portage/net-news/newsbeuter-2.9/work/newsbeuter-2.9' * S: '/var/tmp/portage/net-news/newsbeuter-2.9/work/newsbeuter-2.9' >>> Failed to emerge net-news/newsbeuter-2.9 --snap-- Reproducible: Always
I already reported this to upstream: https://code.google.com/p/newsbeuter/issues/detail?id=365 Should be relatively easy to fix by making newsbeuter's ncurses detection deal with ncurses-6 in addition to -5. The program will build and run just fine with such a change, as described in my report to upstream. Since I don't know how / when they will fix this, a little Gentoo-specific patch might be the way to go in the meantime.
Created attachment 409082 [details, diff] Patch to allow newsbeuter to build with ncurses-6
newbeuter moved to github: https://github.com/akrennmair/newsbeuter
(In reply to Franz Fellner from comment #3) > newbeuter moved to github: > https://github.com/akrennmair/newsbeuter Thanks - I went ahead and reported the issue and proposed fix there!
Comment on attachment 409082 [details, diff] Patch to allow newsbeuter to build with ncurses-6 Why not check for both? If ncursesw5-config isn't found, then check for ncursesw6-config and if that isn't found, then fail.
(In reply to Jeroen Roovers from comment #5) > Comment on attachment 409082 [details, diff] [details, diff] > Patch to allow newsbeuter to build with ncurses-6 > > Why not check for both? If ncursesw5-config isn't found, then check for > ncursesw6-config and if that isn't found, then fail. Isn't that exactly what the patch did? Execpt that it first tries ncursesw6-config, then ncursesw5-config, and if that isn't available either, it would fail. I've been told that the more proper route to go would probably be to use pkg-config to check for ncurses, but this might be a change that should be done upstream while I guess that a patch like the one I attached should at least quickly make newsbeuter build on Gentoo again, no matter if ncurses5 or -6 is in use.
(In reply to Nils Holland from comment #6) > (In reply to Jeroen Roovers from comment #5) > > Comment on attachment 409082 [details, diff] [details, diff] [details, diff] > > Patch to allow newsbeuter to build with ncurses-6 > > > > Why not check for both? If ncursesw5-config isn't found, then check for > > ncursesw6-config and if that isn't found, then fail. > > Isn't that exactly what the patch did? Execpt that it first tries > ncursesw6-config, then ncursesw5-config, and if that isn't available either, > it would fail. > > I've been told that the more proper route to go would probably be to use > pkg-config to check for ncurses, but this might be a change that should be > done upstream while I guess that a patch like the one I attached should at > least quickly make newsbeuter build on Gentoo again, no matter if ncurses5 > or -6 is in use. I think, you're right. --- config.sh.orig 2015-09-01 17:35:16.784624009 +0300 +++ config.sh 2015-09-01 17:35:47.469624738 +0300 @@ -110,7 +110,7 @@ if [ `uname -s` = "Darwin" ]; then check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4" elif [ `uname -s` != "OpenBSD" ]; then - check_custom "ncursesw5" "ncursesw5-config" || fail "ncursesw" + check_pkg "ncursesw" || fail "ncursesw" fi check_ssl_implementation all_aboard_the_fail_boat this let me succsessfuly rebuild newsbeuter. Please check this way is correct
Fixed without revision bump. Thanks for the report and the patch.