1 |
On Sun, 25 Jan 2015 00:18:32 -0500 Philip Webb wrote: |
2 |
> After exactly 2 years , I'm trying to update my Asus EEE netbook. |
3 |
> I've emerged gcc-4.8.3 ( 3 h 31 m ), portage-2.2.14 & udev-216 . |
4 |
> However, I've lost X : trying to update gtk+ , I've run into a problem : |
5 |
> it requires Mesa & Cairo & both require libdrm-2.4.58 , |
6 |
> which refuses to compile, failing with lines reporting |
7 |
> that "libpng15.so.15 & libudev.so.0 not found", |
8 |
> which seem to be needed by Cairo & Mesa, which depend on Libdrm ; |
9 |
> I've already updated to libpng-1.6.16 , so libpng16.so.16 is installed. |
10 |
> I've tried 'emerge --nodeps' with Cairo & Mesa, but both fail. |
11 |
> |
12 |
> libdrm-2.4.58 was emerged on this desktop machine without any difficulty |
13 |
> with libpng-1.6.16 emerged a bit later & everything working properly. |
14 |
> |
15 |
> I've done searches of Bugs, Forum & asked Google without much help. |
16 |
> |
17 |
> Can anyone suggest what might be causing this problem ? |
18 |
|
19 |
As for libpng: the problem is that after libpng update many |
20 |
pkg-config files still contain references to old libpng15.so. |
21 |
Usual way to fix this is to rebuild all libpng dependencies (emerge |
22 |
@revdep-rebuild or revdep-rebuild tool may be used for that). |
23 |
But this doesn't work on too old setups, where during such updates |
24 |
packages will require some newer stuff like libdrm to be updated |
25 |
itself. |
26 |
|
27 |
In order to broke this look you can manually edit all files |
28 |
in /usr/lib/pkgconfig in order to point them to proper libpng |
29 |
version, e.g.: |
30 |
|
31 |
$ cd /usr/lib/pkgconfig |
32 |
$ sed -i 's/libpng15/libpng16/ *.pc |
33 |
|
34 |
As for libudev, probably problem and solution is the same. |
35 |
|
36 |
Not all packages use pkg-config, some have $packagename-config |
37 |
scripts (like fltk-config). Some of these scripts hardcode library |
38 |
names in a similar way to pkg-config, so you have to fix |
39 |
this /usr/bin-*config scripts too if you have any problems with |
40 |
related applications. |
41 |
|
42 |
Best regards, |
43 |
Andrew Savchenko |