Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467354 - net-news/newsbeuter-2.6 with dev-libs/json-c-0.11 - Checking for package json... not found
Summary: net-news/newsbeuter-2.6 with dev-libs/json-c-0.11 - Checking for package json...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 467644
  Show dependency tree
 
Reported: 2013-04-26 15:38 UTC by avx
Modified: 2013-04-30 19:24 UTC (History)
1 user (show)

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


Attachments
newsbeuter-2.6-json-c.patch (newsbeuter-2.6-json-c.patch,449 bytes, patch)
2013-04-26 17:20 UTC, eroen
Details | Diff
newsbeuter-2.6-json-c.patch -r1 (newsbeuter-2.6-json-c.patch,484 bytes, patch)
2013-04-28 02:25 UTC, eroen
Details | Diff
newsbeuter-2.6-json-c.patch -r2 (newsbeuter-2.6-json-c.patch,476 bytes, patch)
2013-04-28 02:30 UTC, eroen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description avx 2013-04-26 15:38:22 UTC
After updating the system, revdep-rebuild wants to re-emerge newsbeuter, but it fails with this:
--snip--
>>> Emerging (1 of 1) net-news/newsbeuter-2.6
 * newsbeuter-2.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking newsbeuter-2.6.tar.gz to /var/tmp/portage/net-news/newsbeuter-2.6/work
>>> Source unpacked in /var/tmp/portage/net-news/newsbeuter-2.6/work
>>> Preparing source in /var/tmp/portage/net-news/newsbeuter-2.6/work/newsbeuter-2.6 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-news/newsbeuter-2.6/work/newsbeuter-2.6 ...
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

You need package json in order to compile this program.
Please make sure it is installed.

You can download json from here: http://oss.metaparadigm.com/json-c/
Checking for package ncursesw5 using ncursesw5-config... found
Checking for package libcrypto... found

One or more dependencies couldn't be found. Please install
these packages and retry compilation.
 * ERROR: net-news/newsbeuter-2.6 failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 678:  Called die
 * The specific snippet of code:
 *       ./config.sh || die
 * 
 * If you need support, post the output of `emerge --info '=net-news/newsbeuter-2.6'`,
 * the complete build log and the output of `emerge -pqv '=net-news/newsbeuter-2.6'`.
 * The complete build log is located at '/var/tmp/portage/net-news/newsbeuter-2.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-news/newsbeuter-2.6/temp/environment'.
 * Working directory: '/var/tmp/portage/net-news/newsbeuter-2.6/work/newsbeuter-2.6'
 * S: '/var/tmp/portage/net-news/newsbeuter-2.6/work/newsbeuter-2.6'
--snap--

I already re-emerge everything JSON on my system, to no avail. Also, the URL listed in the output is not the github adress for json-c which is in newsbeuter's ebuild.

Reproducible: Always




emerge --info net-news/newsbeuter
Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.7.2, glibc-2.17, 3.8.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.7-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12296412 total,    388236 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 26 Apr 2013 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo phorcix
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -msse4 -mcx16 -msahf -mpopcnt -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
MAKEOPTS="-j8 --quiet"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/gentoo"
PORTDIR_OVERLAY="/usr/portage/phorcix"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-news/newsbeuter-2.6 was built with the following:
USE="-test"
Comment 1 eroen 2013-04-26 16:55:49 UTC
I'm seeing the same failure.
Comment 2 eroen 2013-04-26 17:20:29 UTC
Created attachment 346654 [details, diff]
newsbeuter-2.6-json-c.patch

Here's a patch to let net-news/newsbeuter-2.6 build with dev-libs/json-c-0.11 . I did not test any other combination of versions.

Alternatively, it would be simple to sed the change, as the string "json" is unique to this line in config.sh .
Comment 3 eroen 2013-04-26 17:29:20 UTC
Ebuild patch, assuming the attached patch (attachment 346654 [details, diff]) is placed in files/ :

--- a/net-news/newsbeuter/newsbeuter-2.6.ebuild
+++ b/net-news/newsbeuter/newsbeuter-2.6.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
 
 DESCRIPTION="A RSS/Atom feed reader for the text console"
 HOMEPAGE="http://www.newsbeuter.org/index.html"
@@ -38,6 +38,8 @@
 		-e "s:-ggdb:${CXXFLAGS}:" \
 		-e "s:^CXX=.*:CXX=$(tc-getCXX):" \
 		Makefile
+	epatch ${FILESDIR}/newsbeuter-2.6-json-c.patch
+	epatch_user
 }
 
 src_configure() {
Comment 4 eroen 2013-04-28 02:25:34 UTC
Created attachment 346750 [details, diff]
newsbeuter-2.6-json-c.patch -r1

Better version, which:
a) is a valid patch
b) finds either json or json-c

Output when neither is found is:

    You need package json or json-c in order to compile this program.
    Please make sure it is installed.
    
    You can download json or json-c from here:
Comment 5 eroen 2013-04-28 02:30:08 UTC
Created attachment 346752 [details, diff]
newsbeuter-2.6-json-c.patch -r2

Once again I make a mess. Output when neither json or json-c is found is:

    You need package json-c in order to compile this program.
    Please make sure it is installed.
    
    You can download json-c from here: http://oss.metaparadigm.com/json-c/
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2013-04-28 10:24:26 UTC
The patch looks good. It would be nice if you could fork and provide a pull request here https://github.com/akrennmair/newsbeuter so the upstream people can fix this properly

Would you be able to do that?
Comment 7 eroen 2013-04-28 16:26:19 UTC
(In reply to comment #6)
> The patch looks good. It would be nice if you could fork and provide a pull
> request here https://github.com/akrennmair/newsbeuter so the upstream people
> can fix this properly

Done. https://github.com/akrennmair/newsbeuter/pull/77 for reference.
Comment 9 Tim Harder gentoo-dev 2013-04-30 19:24:57 UTC
Thanks, fixed in CVS.