Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 248547

Summary: x11-misc/alock fails to disable imlib _and_ requires a USE-dep over imlib[X]
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal CC: xarthisius
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
Fixing typo

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-24 09:10:26 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-24 09:10:39 UTC
Created attachment 173138 [details]
Build log
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2009-10-20 19:41:13 UTC
I've failed to reproduce that. Those missing symbols belong to imlib2 and there is -lImlib2 in the right place, even in the attached log...

gcc -o alock alock.o alock_utils.o auth_md5.o auth_none.o auth_pam.o auth_passwd.o auth_sha1.o auth_sha2.o auth_wpool.o bg_blank.o bg_image.o bg_none.o bg_shade.o cursor_glyph.o cursor_image.o cursor_none.o cursor_theme.o cursor_xcursor.o -Wl,--as-needed    -lXrender     -lX11 -lpam -lpam_misc -lcrypt -lcrypt   -lXcursor -L/usr/lib64 -lImlib2 -lfreetype -lz -L/usr/lib64 -lX11 -lXext -ldl -lm -lXpm
make[1]: Opuszczenie katalogu `/var/tmp/portage/x11-misc/alock-60-r3/work/alock-svn-60/src'
>>> Source compiled.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-20 19:46:44 UTC
Hmm, I usually file these bugs without reading too much into the log (my bad, I know); it might actually be a missing dependency over Imlib[X] given that it uses libXpm and similar, and this usually show that it tries to use the X11-powered Imlib.
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2009-10-20 19:54:44 UTC
(In reply to comment #3)
> Hmm, I usually file these bugs without reading too much into the log (my bad, I
> know); it might actually be a missing dependency over Imlib[X] given that it
> uses libXpm and similar, and this usually show that it tries to use the
> X11-powered Imlib.
> 
Yup, that's it. It also seems that alock doesn't care about USE flags.
Step to reproduce:
1. USE="-X" emerge -1 imlib2
2. USE="-imlib" emerge -1 alock
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2009-10-20 20:02:08 UTC
Created attachment 207729 [details, diff]
Fixing typo

It's --with(out)-imlib2 not --with(out)-imlib
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-20 20:05:43 UTC
Updating bug then. One less for --as-needed :D
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-06-05 10:22:42 UTC
Done

I didn't see this bug and I had fixed this bug anyway during a version bump