Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557608 - net-news/newsbeuter-2.9 with sys-libs/ncurses-6.0 - Checking for package ncursesw5 using ncursesw5-config... not found
Summary: net-news/newsbeuter-2.9 with sys-libs/ncurses-6.0 - Checking for package ncur...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: ncurses-6
  Show dependency tree
 
Reported: 2015-08-14 19:30 UTC by avx
Modified: 2015-09-18 04:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to allow newsbeuter to build with ncurses-6 (newsbeuter-ncurses6.patch,536 bytes, patch)
2015-08-15 15:25 UTC, Nils Holland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description avx 2015-08-14 19:30:45 UTC
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
Comment 1 Nils Holland 2015-08-15 08:21:21 UTC
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.
Comment 2 Nils Holland 2015-08-15 15:25:43 UTC
Created attachment 409082 [details, diff]
Patch to allow newsbeuter to build with ncurses-6
Comment 3 Franz Trischberger 2015-08-16 06:32:26 UTC
newbeuter moved to github:
https://github.com/akrennmair/newsbeuter
Comment 4 Nils Holland 2015-08-16 16:21:43 UTC
(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 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-21 04:09:09 UTC
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.
Comment 6 Nils Holland 2015-08-21 07:28:21 UTC
(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.
Comment 7 Alex D-Bug 2015-09-01 14:39:36 UTC
(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
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-18 04:31:20 UTC
Fixed without revision bump. Thanks for the report and the patch.