Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467280 - media-sound/pulseaudio with dev-libs/json-c-0.11 - configure: error: Package requirements ( json >= 0.9 ) were not met: No package 'json' found
Summary: media-sound/pulseaudio with dev-libs/json-c-0.11 - configure: error: Package ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Arun Raghavan (RETIRED)
URL:
Whiteboard:
Keywords:
: 467294 467304 467336 467340 468928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-25 21:47 UTC by Fred Krogh
Modified: 2013-05-08 13:42 UTC (History)
32 users (show)

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


Attachments
Current emerge --info (emerge-info,5.40 KB, text/plain)
2013-04-25 21:47 UTC, Fred Krogh
Details
pulseaudio-3.0-json-c.patch (pulseaudio-3.0-json-c.patch,399 bytes, patch)
2013-04-26 17:47 UTC, eroen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Krogh 2013-04-25 21:47:21 UTC
Created attachment 346608 [details]
Current emerge --info

A world update today brought in: json-glib-0.16.0 and json-c-0.11.
revdep-rebuild wanted to re-emerge pulseaudio-3.0.  Emerge fails with this message

checking for LIBCHECK... no
checking for LIBJSON... no
configure: error: Package requirements ( json >= 0.9 ) were not met:

No package 'json' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBJSON_CFLAGS
and LIBJSON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Comment 1 Chris Smith 2013-04-25 22:30:37 UTC
confirmed here
Comment 2 Chris Smith 2013-04-25 22:38:23 UTC
adding that for some reason trying to downgrade to dev-libs/json-c-0.10-r1 no longer works
Comment 3 Alexandre 2013-04-25 22:42:11 UTC
@ Chris Smith (In reply to comment #2)
> adding that for some reason trying to downgrade to dev-libs/json-c-0.10-r1
> no longer works

Thats may be because automake 1.13.6. Try WANT_AUTOMAKE=1.12 as workaround to downgrade to dev-libs/json-c-0.10-r1.
Comment 4 Geoff Leach 2013-04-26 01:14:47 UTC
Workaround in comment 3 worked for me.
Comment 5 Nick Novikov 2013-04-26 02:29:37 UTC
Quick and dirty workaround without downgrading dev-libs/json-c:

add autotools to inherit list and add src_prepare section:

src_prepare() {
	sed -e "s/json/json-c/g" -i configure.ac
	eautoreconf
}
Comment 6 Denis M. (Phr33d0m) 2013-04-26 03:56:51 UTC
Confirmed here as well.


Portage 2.2.0_alpha173 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 6.6.6 x86_64)
=================================================================
System uname: Linux-6.6.6-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-Gentoo-Powered
KiB Mem:    24660796 total,  17223832 free
KiB Swap:    2000088 total,   2000088 free
Timestamp of tree: Fri, 26 Apr 2013 03:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
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.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 x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
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 -O2 -pipe"
DISTDIR="/media/STORAGE/Software/---OS---/gentoo/distfiles"
EMERGE_DEFAULT_OPTS=""
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks fail-clean fixlafiles merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.telepoint.bg/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/media/STORAGE/Software/---OS---/gentoo/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-4"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://81.91.242.10/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apng ares avx bash-completion berkdb bluetooth bluray branding bzip2 c++0x cairo cli consolekit cracklib cxx dbus declarative dri dts dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gstreamer gtk iconv icu jpeg kde kdm kipi lcms ldap libnotify lm_sensors lzma mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opencl opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline sdl session spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US es es_ES bg" NETBEANS_MODULES="apisupport cnd java javafx php profiler websvccommon mobility webcommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON
Comment 7 tman 2013-04-26 05:59:08 UTC
i can also confirm about this problem:

Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.8.8-gentoo x86_64)
=================================================================
System uname: Linux-3.8.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24627932 total,  18973952 free
KiB Swap:   25081852 total,  25081852 free
Timestamp of tree: Fri, 26 Apr 2013 04:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
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.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3_pre::poly-c
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r5::gnome
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo nikai ruby mgorny poly-c luman qt alice Techwolf gamerlay scarabeus science mva emacs flameeyes-overlay mpd wirelay steam-overlay gnome lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
Comment 8 Helmut Jarausch 2013-04-26 08:32:54 UTC
(In reply to comment #5)
> Quick and dirty workaround without downgrading dev-libs/json-c:
> 
> add autotools to inherit list and add src_prepare section:
> 
> src_prepare() {
> 	sed -e "s/json/json-c/g" -i configure.ac
> 	eautoreconf
> }

Could you please elaborate a bit.
Here, json-c-0.11.ebuild has an  src_prepare section already :
src_prepare() {
	sed -i -e "s:-Werror::" Makefile.am.inc || die
	autotools-utils_src_prepare
}

I tried to update this to
src_prepare() {
	sed -i -e "s:-Werror::" Makefile.am.inc || die
	autotools-utils_src_prepare
        sed -e "s/json/json-c/g" -i configure.ac
        eautoreconf
}

Now, it installs /usr/lib64/pkgconfig/json-c.pc and
pkg-config --cflags --libs json
still fails. Therefore media-gfx/mypaint-1.1.0 and
media-sound/pulseaudio-3.0 fail to build.

Many thanks for a hint,
Helmut.
Comment 9 Nick Novikov 2013-04-26 08:46:12 UTC
(In reply to comment #8)

Helmut, fix is for pulseaudio ebuild, not json-c.

json-c changed name pf .pc file.
Fix updates pulseaudion's configure.ac to new one.
Comment 10 Helmut Jarausch 2013-04-26 08:49:14 UTC
(In reply to comment #9)
> (In reply to comment #8)
> 
> Helmut, fix is for pulseaudio ebuild, not json-c.
> 
> json-c changed name pf .pc file.
> Fix updates pulseaudion's configure.ac to new one.

Thanks!
But then media-gfx/mypaint needs a similar patch, right?
Comment 11 Ionuț Leonte 2013-04-26 11:26:05 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > 
> > Helmut, fix is for pulseaudio ebuild, not json-c.
> > 
> > json-c changed name pf .pc file.
> > Fix updates pulseaudion's configure.ac to new one.
> 
> Thanks!
> But then media-gfx/mypaint needs a similar patch, right?

I just linked json-c.pc to json.pc and pulseaudio built successfully after that. Just a superdirtyhack until all affected ebuilds are updated.
Comment 12 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-04-26 13:11:06 UTC
*** Bug 467336 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-26 16:05:53 UTC
*** Bug 467294 has been marked as a duplicate of this bug. ***
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-26 16:07:06 UTC
*** Bug 467340 has been marked as a duplicate of this bug. ***
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-26 16:15:58 UTC
*** Bug 467304 has been marked as a duplicate of this bug. ***
Comment 16 Mark Nowiasz 2013-04-26 16:46:28 UTC
(In reply to comment #11)

> I just linked json-c.pc to json.pc and pulseaudio built successfully after
> that. Just a superdirtyhack until all affected ebuilds are updated.

Dirty it might be, but it was quick - and did work for me :-)
Comment 17 Ulenrich 2013-04-26 16:53:22 UTC
Could someone look into this
if this bug is to be listed as an issue of
automake-1.13 
https://bugs.gentoo.org/show_bug.cgi?id=451744
?
Comment 18 Nick Novikov 2013-04-26 17:03:24 UTC
(In reply to comment #17)
> if this bug is to be listed as an issue of automake-1.13 

No, although somehow similar.
Comment 19 Ulenrich 2013-04-26 17:17:07 UTC
Correction, it is not related to auomake-1.13
A good explanation from yesterday can be found here:

https://bugs.gentoo.org/show_bug.cgi?id=467294#c2

json-c was renamed :(
Comment 20 eroen 2013-04-26 17:47:27 UTC
Created attachment 346658 [details, diff]
pulseaudio-3.0-json-c.patch

Here's the suggestion from comment 5 in patch form. It works for me(tm).

Suggested ebuild patch:
--- a/media-sound/pulseaudio/pulseaudio-3.0.ebuild
+++ b/media-sound/pulseaudio/pulseaudio-3.0.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit eutils flag-o-matic user versionator toolchain-funcs udev
+inherit eutils autotools flag-o-matic user versionator toolchain-funcs udev
 
 DESCRIPTION="A networked sound server with an advanced plugin system"
 HOMEPAGE="http://www.pulseaudio.org/"
@@ -101,6 +101,12 @@
 	fi
 }
 
+src_prepare() {
+	epatch "${FILESDIR}"/pulseaudio-3.0-json-c.patch
+	epatch_user
+	eautoreconf
+}
+
 src_configure() {
 	if use gdbm; then
 		myconf+=" --with-database=gdbm"
Comment 21 Ulenrich 2013-04-26 17:56:43 UTC
@eroen, if you patch the pulseaudio-3.0.ebuild 
you should also change the dependency to
>=dev-libs/json-c-0.11
Comment 22 Arun Raghavan (RETIRED) gentoo-dev 2013-04-27 03:18:50 UTC
(In reply to comment #20)
> Created attachment 346658 [details, diff] [details, diff]
> pulseaudio-3.0-json-c.patch

Thank you for the patch. It's insufficient because it breaks pulseaudio with json-c < 0.11. I'll fix this shortly.
Comment 23 Arun Raghavan (RETIRED) gentoo-dev 2013-04-27 03:56:58 UTC
Fixed with 3.0-r1. Thanks for the patience, everybody.
Comment 24 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-30 10:46:51 UTC
*** Bug 467794 has been marked as a duplicate of this bug. ***
Comment 25 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-08 13:42:53 UTC
*** Bug 468928 has been marked as a duplicate of this bug. ***