Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 526452

Summary: media-sound/mpd-0.19.1 USE=-glib - src/sticker/SongSticker.cxx:27:18: fatal error: glib.h: No such file or directory
Product: Gentoo Linux Reporter: Franz Trischberger <franz.trischberger>
Component: [OLD] ServerAssignee: Christoph Mende (RETIRED) <angelos>
Status: RESOLVED FIXED    
Severity: normal CC: hwoarang, jer, sound
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Franz Trischberger 2014-10-22 09:12:55 UTC
Created attachment 387192 [details]
build.log

dev-libs/glib-2.40.2(2)(07:49:22 07.10.2014)(mime -debug -fam -selinux -static-libs -systemtap -test -utils -xattr ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" KERNEL="linux" PYTHON_TARGETS="python2_7")
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-22 10:05:10 UTC
That's odd:

RDEPEND="
    dev-libs/glib:2
    ...
    glib? ( dev-libs/glib:2 )

If it isn't optional, then 

    $(use_enable glib)

should be removed.
Comment 2 Christoph Mende (RETIRED) gentoo-dev 2014-10-22 16:31:56 UTC
(In reply to Jeroen Roovers from comment #1)
> That's odd:
> 
> RDEPEND="
>     dev-libs/glib:2
>     ...
>     glib? ( dev-libs/glib:2 )
> 
> If it isn't optional, then 
> 
>     $(use_enable glib)
> 
> should be removed.

Thanks for catching that. It is indeed optional, the unconditional dependency was a leftover from previous mpd versions which I've removed now.

As for the original bug: there are several USE flags that depend on glib (sqlite which the reporter enabled among those). I've added those to REQUIRED_USE now.