Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326847 - x11-libs/gtk+-2.18.9: pkg-config ceases to work
Summary: x11-libs/gtk+-2.18.9: pkg-config ceases to work
Status: RESOLVED DUPLICATE of bug 326483
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 10:12 UTC by Thomas
Modified: 2010-07-06 09:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2010-07-04 10:12:00 UTC
After installing gtk+-2.18.9, when calling pkg-config --modversion gtk+ (or any other pkg-config operation), an error message is displayed: sh: gtk-config: command not found

This makes it impossible to build any package depending on gtk+ (or at least libxfce4menu).


Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/gtk+-2.18.9 (just in case you have another version
2. emerge =xfce-base/libxfce4menu-4.6.2:

Actual Results:  
End of build.log:

checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking GLIB_LIBS... -lglib-2.0  
checking for gtk+-2.0 >= 2.6.0... not found
*** The required package gtk+-2.0 was not found on your system.
*** Please install gtk+-2.0 (atleast version 2.6.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.


Expected Results:  
The configure script properly detects gtk+.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-07-04 10:21:34 UTC
same problem as in bug 326483, follow the advises there

*** This bug has been marked as a duplicate of bug 326483 ***
Comment 2 Thomas 2010-07-04 15:25:43 UTC
I am not sure, which of the advises i should follow, this is what i did:

- libpng-1.4.x-update.sh (before i filed this bug)
- revdep-rebuild -i (everything consistent)
- emerge --resume (from -puDN world) -> the error abv.
- emerge -1 cairo pango gtk+ libglade
- emerge --resume

The latter now succeeds.  Maybe, a hint (after updating libpng?) would reduce the number of duplicate error reports.

pkg-config gtk+ still does not work, although gtk+ has some .pc files installed:
# pkg-config --list-all | fgrep gtk+
gtk+-2.0                      GTK+ - GTK+ Graphical UI Library (x11 target)
gtk+-unix-print-2.0           GTK+ - GTK+ Unix print support
gtk+-x11-2.0                  GTK+ - GTK+ Graphical UI Library (x11 target)
Comment 3 Andrew Brouwers 2010-07-04 21:20:08 UTC
(In reply to comment #2)
> I am not sure, which of the advises i should follow, this is what i did:
> 
> - libpng-1.4.x-update.sh (before i filed this bug)
> - revdep-rebuild -i (everything consistent)
> - emerge --resume (from -puDN world) -> the error abv.
> - emerge -1 cairo pango gtk+ libglade
> - emerge --resume
> 
> The latter now succeeds.  Maybe, a hint (after updating libpng?) would reduce
> the number of duplicate error reports.
> 
> pkg-config gtk+ still does not work, although gtk+ has some .pc files
> installed:
> # pkg-config --list-all | fgrep gtk+
> gtk+-2.0                      GTK+ - GTK+ Graphical UI Library (x11 target)
> gtk+-unix-print-2.0           GTK+ - GTK+ Unix print support
> gtk+-x11-2.0                  GTK+ - GTK+ Graphical UI Library (x11 target)
> 

There *is* a hint after the libpng update, and users should generally search for existing reports before opening a new one :)
Comment 4 Thomas 2010-07-06 09:17:46 UTC
(In reply to comment #3)
> 
> There *is* a hint after the libpng update, and users should generally search
> for existing reports before opening a new one :)
> 

1. Yes, the hint recommends to run libpng-1.4.x-update.sh, which doesn't help (cf. above).
2. I searched for reports regarding libxfce4menu and gtk+, as these were the packages i had problems with, without result.  (pkg-config not working with gtk+ sent me to the wrong direction)

As duplicate reports still seem to be created, i would suggest to add the hint from bug 326483 to the elog message of libpng 1.4.3: run libpng-1.4.x-update.sh and consider re-emerging cairo / pango / gtk+ / libglade.