Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189967 - control-center-2.19.90 does not compile with -esd
Summary: control-center-2.19.90 does not compile with -esd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 20:52 UTC by Cyril Jaquier
Modified: 2007-08-28 21:26 UTC (History)
0 users

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


Attachments
Patch against configure (dirty test) (control-center-configure-diry-test.patch,4.06 KB, patch)
2007-08-27 20:48 UTC, Cyril Jaquier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril Jaquier 2007-08-23 20:52:14 UTC
I removed esound from my system. I recompiled control-center-2.19.90 from gnome-experimental without the esd flag. However, configure script fails.

checking for X11/extensions/XKB.h... yes
checking for LIBSLAB... yes
checking for CAPPLET... yes
checking for GNOMECC... yes
checking for GNOME_SETTINGS_DAEMON... configure: error: Package requirements (gtk+-2.0 gconf-2.0 libgnomeui-2.0 esound gnome-desktop-2.0 libglade-2.0) were not met:

No package 'esound' 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 GNOME_SETTINGS_DAEMON_CFLAGS
and GNOME_SETTINGS_DAEMON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


!!! ERROR in gnome-base/control-center-2.19.90:
!!! In econf at line 1619
!!! econf failed

The script is called with:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-schemas-install --disable-update-mimedb --disable-scrollkeeper --enable-vfs-methods --enable-gstreamer=0.10 --disable-esd --enable-alsa --enable-hal --disable-aboutme --build=i686-pc-linux-gnu

Reproducible: Always

Steps to Reproduce:
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-08-27 15:23:15 UTC
Yes.  Libgnome has esound in it's .pc file.  You also need to re-emerge libgnome from the overlay.
Comment 2 Cyril Jaquier 2007-08-27 20:47:24 UTC
(In reply to comment #1)
> Yes.  Libgnome has esound in it's .pc file.  You also need to re-emerge
> libgnome from the overlay.
> 

Why are you talking about libgnome?

$ paludis --query libgnome
* gnome-base/libgnome
    gentoo:            2.14.1 2.16.0 2.18.0 {:0} 
    installed:         2.19.1* {:0} 
    gnome:             2.19.1 {:0} 
    Homepage:          http://www.gnome.org/
    Description:       Essential Gnome Libraries
    License:           ( LGPL-2 ) 
    Source origin:     gnome-base/libgnome-2.19.1::gnome
    Installed time:    Thu Aug 23 20:32:20 2007
    Use flags:         (-debug) (-doc) (-esd)

$ pkg-config --libs libgnome-2.0
-pthread -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0

No deps on esound here. It seems that control-center requires esound in order to build correctly.

I have modified the configure script a bit in order to make it pass the tests. However, control-center still fails with this error:

sound-properties-capplet.c:46:21: error: gst/gst.h: No such file or directory
In file included from sound-properties-capplet.c:56:
mixer-support.h:26:34: error: gst/interfaces/mixer.h: No such file or directory
In file included from sound-properties-capplet.c:56:
mixer-support.h:43: error: expected ')' before '*' token
Comment 3 Cyril Jaquier 2007-08-27 20:48:59 UTC
Created attachment 129367 [details, diff]
Patch against configure (dirty test)

This is the patch of the dirty test I made (remove esound lib)
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-08-27 21:48:42 UTC
Because libgnome installs a .pc file, and pkg-config --lib libgnome will result in -lesound being added to linker lines, causing failure.  libgnome in the overlay was broken.  I fixed it, and now it has an esd use flag.  Re-emerge libgnome without esd.

Also, update your control-center in the overlay.  It's fixed for -esd too.  I did lots of overlay fixes without bumps.
Comment 5 Cyril Jaquier 2007-08-27 22:22:41 UTC
(In reply to comment #4)
> Because libgnome installs a .pc file, and pkg-config --lib libgnome will result
> in -lesound being added to linker lines, causing failure.  libgnome in the
> overlay was broken.  I fixed it, and now it has an esd use flag.  Re-emerge
> libgnome without esd.
> 
> Also, update your control-center in the overlay.  It's fixed for -esd too.  I
> did lots of overlay fixes without bumps.
> 

Sorry but I write this again:

$ pkg-config --libs libgnome-2.0
-pthread -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0

Here is a kind of console logs showing what I do:

# paludis --sync gnome
Sync gnome
Checked out revision 1598.
Sync gnome completed

# paludis --uninstall esound

# paludis --install --preserve-world libgnome control-center
Building target list... 
Building dependency list...

These packages will be installed:

* gnome-base/libgnome-2.19.1::gnome {:0} [R] -debug -doc -esd
* gnome-base/control-center-2.19.90::gnome {:2} [R] alsa -debug -eds -esd hal

Total: 2 packages (2 rebuilds)

[Everything is fine until this error happens]
...
checking for LIBSLAB... yes
checking for CAPPLET... yes
checking for GNOMECC... yes
checking for GNOME_SETTINGS_DAEMON... configure: error: Package requirements (gtk+-2.0 gconf-2.0 libgnomeui-2.0 esound gnome-desktop-2.0 libglade-2.0) were not met:

No package 'esound' 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 GNOME_SETTINGS_DAEMON_CFLAGS
and GNOME_SETTINGS_DAEMON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


!!! ERROR in gnome-base/control-center-2.19.90:
!!! In econf at line 1619
!!! econf failed


I'm sorry, I never used GNU tools myself but could you explain me how the above line can't fail when esound is not installed? This is from the configure script of control-center.

($PKG_CONFIG --exists --print-errors "gtk+-2.0 gconf-2.0 libgnomeui-2.0 esound gnome-desktop-2.0 libglade-2.0") 2>&5

It is referring to esound which is NOT installed.

Thank you.
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-08-28 00:57:29 UTC
Hmm... I could swear I had re-installed control-center since I removed esd, but apparently I was mistaken.  Fixed.  Sync and try again.
Comment 7 Cyril Jaquier 2007-08-28 21:26:23 UTC
Hi Daniel,

I can confirm that this bug is fixed :)

Thank you