Summary: | media-libs/libgphoto2-2.4.11 - automagic dependency on virtual/jpeg for some "modules" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sławomir Nizio <slawomir.nizio> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | graphics+disabled |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker/?func=detail&aid=3367928&group_id=8874&atid=108874 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch on ibgphoto2-2.4.11.ebuild
libgphoto2-2.4.11-jpeg-automagic.patch ebuild (patch) I have used with your patch |
Description
Sławomir Nizio
2011-07-07 17:24:52 UTC
Created attachment 279347 [details, diff]
patch on ibgphoto2-2.4.11.ebuild
(PS similar issue exist for media-libs/libgphoto2-2.4.10, too.)
Do that libs really need jpeg if you remove their buggy .la files? Those .la files aren't buggy, IMO, they reflect the dependency on libjpeg correctly: :)
> Do that libs really need jpeg if you remove their buggy .la files?
yes, they do.
The needed library, according to readelf and similar tools is "libjpeg.so.8".
I've scanned the directory /usr/lib/libgphoto2/2.4.11 and only those three .so files (and the 3 .la files) want libjpeg (I think I've checked with all possible cameras_* USE flags).
Created attachment 279993 [details, diff]
libgphoto2-2.4.11-jpeg-automagic.patch
I tried to solve the automagic problem with this but it fails :S, need to think on this in the future then
Created attachment 280007 [details]
ebuild (patch) I have used with your patch
I hope it helps: I've tested your patch (ebuild diff attached, x.patch is your patch) and there was no failure, and the jpeg support is correctly enabled (USE="jpeg") and disabled (USE="-jpeg").
One remark: if jpeg is in USE but no libjpeg available on system (installation forced with --nodeps), there is no error and compilation without jpeg support goes on - maybe not a issue though.
Was jpeg support disabled when building with USE="-jpeg" but jpeg was still present on your system? When I tried it, it was still linking to jpeg :-S Sorry for the delay.
I can see upstream bug report but let me reply.
> Was jpeg support disabled when building with USE="-jpeg" but jpeg was still
> present on your system?
Yes, I used USE="-jpeg …" and I have media-libs/libjpeg-turbo installed.
Those three libs (ax203.so, sipix_blink2.so, jl2005c.so) don't link to libjpeg and the .la files don't contain -ljpeg anymore.
Only ax203.so link to libjpeg, but indirectly (as seen using lddtree), via libgd.so.2. I think it's fine. Also, if I compile media-libs/gd with USE="-jpeg", there is no such (indirect) dependency.
+*libgphoto2-2.4.11-r1 (18 Jul 2011) + + 18 Jul 2011; Pacho Ramos <pacho@gentoo.org> +libgphoto2-2.4.11-r1.ebuild, + +files/libgphoto2-2.4.11-fix-automagic.patch: + Fix automagic dependencies on jpeg and gd, bug #374371 by Enlik. Thanks also + to marcusmeissner. + |