Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79975 - emerge fails to compile koffice for a missing /usr/lib/libjpeg.la
Summary: emerge fails to compile koffice for a missing /usr/lib/libjpeg.la
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 80064 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-29 10:59 UTC by Vittorio
Modified: 2005-02-02 09:44 UTC (History)
1 user (show)

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


Attachments
Output of emerge -b koffice and kdegraphics (bug.txt,3.21 KB, text/plain)
2005-01-30 12:28 UTC, Vittorio
Details
Output of emerge -b koffice and kdegraphics (bug.txt,3.21 KB, text/plain)
2005-01-30 12:35 UTC, Vittorio
Details
My /usr/lib/libjpeg.la (libjpeg.la,790 bytes, text/plain)
2005-01-30 14:03 UTC, Vittorio
Details
Output of 'emerge --info' (bug.txt,1.95 KB, text/plain)
2005-01-30 23:28 UTC, Vittorio
Details
Extract from the output of emerge -b kdegraphics (bug2.txt,1.89 KB, text/plain)
2005-01-30 23:30 UTC, Vittorio
Details
Output of 'emerge -b kdegraphics' (bug.txt,1.91 KB, text/plain)
2005-01-31 09:46 UTC, Vittorio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vittorio 2005-01-29 10:59:28 UTC
emerging and compiling the latest koffice-1.3.5 compilation fails for a missing /usr/lib/libjpeg.la which instead is exactly there from media-libs/jpeg 6b-r4. 

Reproducible: Always
Steps to Reproduce:
1.USE="jpg" emerge -b koffice
2.
3.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-29 11:06:30 UTC
does emerge jpeg solve the problem?
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-29 14:06:39 UTC
Vittorio: Please use this bug to answer/comment.

Does `find /usr/lib -iname "*\.la" -exec sed -i -r -e "s:/var/tmp/portage/.*/image/::g" '{}' \;` help?
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-30 06:18:34 UTC
*** Bug 80064 has been marked as a duplicate of this bug. ***
Comment 4 Vittorio 2005-01-30 07:11:42 UTC
For the bug related to koffice the method suggested in comment #2 worked while it didn't work for kdegraphics (see bug 80064)
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-30 07:51:59 UTC
>the method suggested in comment #2 worked

Then confirm this, please! What do think how we should deal with bug reports, when we do not get any response!?

It will still be the same or a related problem. What happens, if you do `cd /var/tmp/portage ; rm -rf *` and try it again?
Comment 6 Vittorio 2005-01-30 12:28:49 UTC
Created attachment 49976 [details]
Output of emerge -b koffice and  kdegraphics
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-30 12:34:58 UTC
Attach /usr/lib/libjpeg.la, please.
Comment 8 Vittorio 2005-01-30 12:35:23 UTC
Created attachment 49978 [details]
Output of emerge -b koffice and  kdegraphics

Perhaps there was a mistaken message of mine before.....Aniway

As requested I issued
1) cd /var/tmp/portage ; rm -rf * 
2) emerge -b koffice
3) emerge -b kdegraphics  (same problem of koffice)
Both failed with a similar diagnostic
Comment 9 Vittorio 2005-01-30 14:03:30 UTC
Created attachment 49994 [details]
My /usr/lib/libjpeg.la

As requested I'm attaching the /usr/lib/libjpeg.la file
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-30 14:47:11 UTC
Hm, libjpeg.la is correct. Same problem after re-emerging libtool? Please provide `emerge --info`.
Comment 11 Vittorio 2005-01-30 23:28:23 UTC
Created attachment 50029 [details]
Output of 'emerge --info'

emerge --info was issued AFTER recompiling libtool with emerge -b libtool
Comment 12 Vittorio 2005-01-30 23:30:28 UTC
Created attachment 50030 [details]
Extract from the output of emerge -b kdegraphics

emerge -b kdegraphics was issued AFTER recompilation of libtool
Comment 13 Simone Gotti (RETIRED) gentoo-dev 2005-01-31 03:01:57 UTC
../../libtool: line 1: cd: usr/lib: No such file or directory
libtool: link: warning: cannot determine absolute directory name of `usr/lib'

For a strange reason it wants to cd to usr/lib and not /usr/lib. Probably there's a .la file with this wrong path.

can you run and post the output of:

find /usr . -name "*\.la" -exec grep -l -e " usr/lib" '{}' ';'

?
Comment 14 Vittorio 2005-01-31 04:10:37 UTC
bash-2.05b# find /usr . -name "*\.la" -exec grep -l -e " usr/lib" '{}' ';'
/usr/lib/libImlib.la
/usr/lib/libimlib-tiff.la
/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.la
/usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-tiff.la
/usr/lib/gtk-2.0/2.4.0/filesystems/libgnome-vfs.la
/usr/lib/AbiWord-2.2/plugins/libAbiJPEG.la
/usr/lib/libglade/2.0/libgnome.la
/usr/lib/libgnomeui-2.la
/usr/lib/libimlib-jpeg.la
bash-2.05b#
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-31 06:30:03 UTC
O.k., so either my usual cure showed side-effects in this case or there are additional ways to to break .la files... 

Vittorio: Please do `find /usr/lib -iname "*\.la" -exec sed -i -r -e "s: usr/lib:/usr/lib:g" '{}' \;`
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-31 06:36:48 UTC
Simone: Any idea what the status of Bug 71265 is? We'll see additional bug reports because of the implicated mtime changes, when advising to fix .la files this way, before long.
Comment 17 Simone Gotti (RETIRED) gentoo-dev 2005-01-31 07:19:48 UTC
I don't think that the presence of /var/tmp/portage in .la files is related to that bug.

On that bug I can only say that when I made that patch it was revised by ferringb, so I made some adjustment. It worked for me but I don't think that it will be added to portage. Also because in the next version the CONTENTS will be bases on a ref counting and not on md5/mtime anymore. But until now we'll probably continue to have that kind of problems.
Comment 18 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-31 07:48:13 UTC
>I don't think that the presence of /var/tmp/portage in .la files is related to that bug.

Not the presence, but the fix. Running sed on these files, changes their mtime.
Comment 19 Vittorio 2005-01-31 09:46:07 UTC
Created attachment 50053 [details]
Output of 'emerge -b kdegraphics'

Carsten: The emerge command was issued after having executed the command:
'find /usr/lib -iname "*\.la" -exec sed -i -r -e "s: usr/lib:/usr/lib:g" '{}'
\;`
Comment 20 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-31 10:36:57 UTC
Um, sorry. This

`find /usr/lib -iname "*\.la" -exec sed -i -r -e "s:\.la/usr/lib:\.la /usr/lib:g" '{}' \;`

should let the missing space reappear.
Comment 21 Vittorio 2005-01-31 14:36:32 UTC
Carsten: command line
find /usr/lib -iname "*\.la" -exec sed -i -r -e "s:\.la/usr/lib:\.la /usr/lib:g" '{}' \;
doesn't work complaining about a missing argument (I'm translating from Italian into English).

Please correct your suggestion
Comment 22 Vittorio 2005-02-01 04:58:41 UTC
Carsten: Very sory - I did something wrong (I don't know what) and the command didn't worked. Now I typed the command *** by hand ***  and it has worked. Later I'll let you know the reasult of the re-compilation of emerge -b kdegraphics
Comment 23 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-01 05:52:34 UTC
Be careful, Vittorio. You may end with a lot more broken .la files. Regarding error messages: Put LC_MESSAGES="C" in /etc/env.d/02locale and you'll get them in english. That's better for bug reports and will give you more results, when you search the net for a particular problem.
Comment 24 Vittorio 2005-02-01 10:24:00 UTC
Carsten: At last the procedure you suggested did the trick. Just to summarize as root I issued
1) find /usr/lib -iname "*\.la" -exec sed -i -r -e "s:\.la/usr/lib:\.la /usr/lib:g" '{}' \;
2) emerge -b kdegraphics 
The compilation went smooth to the end.
Comment 25 Vittorio 2005-02-02 09:44:43 UTC
IMHO the bug is fixed