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

Bug 360815

Summary: net-im/skype: /usr/bin/skype script could have LD_PRELOAD support for $libdir/libv4l/v4l2convert.so (media-libs/libv4l)
Product: Gentoo Linux Reporter: Enrico 'nekrad' Weigelt <weigelt>
Component: Current packagesAssignee: Gentoo Net-im project <net-im>
Status: RESOLVED FIXED    
Severity: enhancement CC: martin.kolleck, redneb, spideybr
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild that patches the skype wrapper script for LD_PRELOAD.
Actual patch file used by the ebuild.

Description Enrico 'nekrad' Weigelt 2011-03-27 18:07:59 UTC
Additional line required in /usr/bin/skype, to get v4l2 webcams running.

export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so



Reproducible: Always
Comment 1 Rafał Mużyło 2011-03-27 19:01:18 UTC
How does that work with v4l1 removal in 2.6.38 ?
Comment 2 Enrico 'nekrad' Weigelt 2011-03-27 22:19:39 UTC
(In reply to comment #1)
> How does that work with v4l1 removal in 2.6.38 ?

hmm, IMHO this library maps the v1 (userland) API to the v2 one.
but if it makes trouble, the script could check before setting that variable.
Comment 3 Tupone Alfredo gentoo-dev 2011-07-29 17:37:31 UTC
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype works too.

From http://en.gentoo-wiki.com/wiki/Webcam
Comment 4 Martin Kolleck 2011-08-24 21:23:59 UTC
Created attachment 284537 [details]
Ebuild that patches the skype wrapper script for LD_PRELOAD.

Updated ebuild that will patch the skype wrapper. The method is probably considered ugly, but it works for me on x86 with kernel 2.6.29-gentoo-r3.
Comment 5 Martin Kolleck 2011-08-24 21:24:52 UTC
Created attachment 284539 [details, diff]
Actual patch file used by the ebuild.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-05-21 12:10:14 UTC
*** Bug 396023 has been marked as a duplicate of this bug. ***
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-06-14 17:25:31 UTC
All the necessary information is in the README.lib file provided by libv4l so I'm not going to duplicate the same information here.

However, I've added a postinst message *pointing to the documentation file*
Comment 8 redneb 2012-06-15 03:22:59 UTC
Is there any reason why the same workaround isn't applied in the new ebuild for 4.0? It works nicely with 2.2, the camara works right out of the box.