Bug 8969

Summary: skype video fails out of the box - bad LD_PRELOAD in script
Product: Mageia Reporter: Frank Griffin <ftg>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: skype CVE:
Status comment:

Description Frank Griffin 2013-02-05 16:52:19 CET
skype, as installed by the rpm, will not recognize webcams that require libv4l.

The reason is that the /usr/bin/skype script has an LD_PRELOAD for /usr/lib/libv4l/v4l2compat.so, but the actual file installed by the cauldron libv4l package is /usr/lib/libv4lcompat.so.0.

If you try to run skype from the command line, you get a stderr message saying that the LD_PRELOAD can't be performed.
Comment 1 Sander Lepik 2013-02-05 20:12:24 CET
If you can see "/usr/lib/libv4l/v4l2compat.so" in that file then i think you did edit it yourself. Or maybe you have some external repo enabled that provides skype?

The spec adds it like this:

113 	echo "#!/bin/bash
114 	LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so %{instdir}/skype"\
115 	> %buildroot%{_bindir}/skype && chmod +x %buildroot%{_bindir}/skype

And that file exists in cauldron.

Keywords: (none) => NEEDINFO
CC: (none) => sander.lepik

Comment 2 Frank Griffin 2013-02-05 21:28:24 CET
Sorry, I had typed that from memory.  The name was as you pasted it.  And you're right, the file exists.

I went back over my notes, and here's what happened:

1) Tried the skype test call, couldn't turn video on
2) Didn't realize that the skype test call doesn't accept video
3) Googled a bit, and found posts saying that libv4l was needed for some webcams
4) Looked at rpmdrake for the libv4l package, found no /usr/lib/libv4l/v4l2convert.so in the file list
5) Edited /usr/bin/skype to point to the /usr/lib/libv4lconvert.so.0
6) Tried the skype test call again, same result
7) Opened skype Options -> Video and noticed that the preview had a working webcam feed
8) Tried a real call and saw the webcam worked.
9) Erroneously concluded that the change I made fixed things

Sorry for the noise.

Is there some reason that the libv4l stuff skype uses isn't provided by a libv4l package ?

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 3 Sander Lepik 2013-02-05 22:37:38 CET
(In reply to comment #2)
> Is there some reason that the libv4l stuff skype uses isn't provided by a
> libv4l package ?

Sorry, i don't understand this question.

Our get-skype package requires libv4l-wrappers that provides the mentioned file.
Comment 4 Frank Griffin 2013-02-06 00:56:47 CET
Yes, I never thought that a wrappers package would have libraries or library    references in it.  My mistake.