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.
does emerge jpeg solve the problem?
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?
*** Bug 80064 has been marked as a duplicate of this bug. ***
For the bug related to koffice the method suggested in comment #2 worked while it didn't work for kdegraphics (see bug 80064)
>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?
Created attachment 49976 [details] Output of emerge -b koffice and kdegraphics
Attach /usr/lib/libjpeg.la, please.
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
Created attachment 49994 [details] My /usr/lib/libjpeg.la As requested I'm attaching the /usr/lib/libjpeg.la file
Hm, libjpeg.la is correct. Same problem after re-emerging libtool? Please provide `emerge --info`.
Created attachment 50029 [details] Output of 'emerge --info' emerge --info was issued AFTER recompiling libtool with emerge -b libtool
Created attachment 50030 [details] Extract from the output of emerge -b kdegraphics emerge -b kdegraphics was issued AFTER recompilation of libtool
../../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" '{}' ';' ?
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#
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" '{}' \;`
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.
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.
>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.
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" '{}' \;`
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.
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
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
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.
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.
IMHO the bug is fixed