Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360815 - net-im/skype: /usr/bin/skype script could have LD_PRELOAD support for $libdir/libv4l/v4l2convert.so (media-libs/libv4l)
Summary: net-im/skype: /usr/bin/skype script could have LD_PRELOAD support for $libdir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
: 396023 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-27 18:07 UTC by Enrico 'nekrad' Weigelt
Modified: 2012-06-15 03:23 UTC (History)
3 users (show)

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


Attachments
Ebuild that patches the skype wrapper script for LD_PRELOAD. (skype-2.2.0.35-r2.ebuild,2.77 KB, text/plain)
2011-08-24 21:23 UTC, Martin Kolleck
Details
Actual patch file used by the ebuild. (v4l1_ld_preload.patch,351 bytes, patch)
2011-08-24 21:24 UTC, Martin Kolleck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.