Bug 912040

Summary: libgphoto2 2.5.0-7 breaks camera detection on 64bit systems
Product: [Fedora] Fedora Reporter: Panu Matilainen <pmatilai>
Component: libgphoto2Assignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: bahamut00, berrange, jnovy, pknirsch, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 02:42:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Put udev rules where udev finds them none

Description Panu Matilainen 2013-02-17 11:23:10 UTC
Created attachment 698512 [details]
Put udev rules where udev finds them

Description of problem:

With libgphoto 2.5.0-7, cameras are no longer detected on x86_64 due to incorrect /lib -> %{_libdir} change for the udev rules. There's even a comment about it in the spec:

    # Btw, since it's /lib/udev, never e.g. /lib64/udev, we hardcode the path

On 32bit systems %{_libdir} happens to be /usr/lib but on x86_64 the udev rules now end up in /usr/lib64/udev which is not a path udev looks into and no cameras are found. Makes wife unhappy...

Attached patch puts the udev files where udev expects them, fixing the regression.
Obviously needed for rawhide as well.

Comment 1 Panu Matilainen 2013-02-17 11:52:12 UTC
Hmm, actually the more correct fix would be asking udev where it wants its files:

[pmatilai@turre ~]$ pkg-config --variable=udevdir udev
/usr/lib/udev

Comment 2 Fedora Update System 2013-02-19 07:58:49 UTC
libgphoto2-2.5.1.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/libgphoto2-2.5.1.1-1.fc18

Comment 3 Fedora Update System 2013-02-20 04:04:02 UTC
Package libgphoto2-2.5.1.1-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libgphoto2-2.5.1.1-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2740/libgphoto2-2.5.1.1-1.fc18
then log in and leave karma (feedback).

Comment 4 Daniel Berrangé 2013-02-22 17:45:07 UTC
*** Bug 913717 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2013-02-26 02:42:09 UTC
libgphoto2-2.5.1.1-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.