Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164715 - media-libs/libgphoto2-2.3.1-r1 - missing script /lib/udev/check-ptp-camera
Summary: media-libs/libgphoto2-2.3.1-r1 - missing script /lib/udev/check-ptp-camera
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthias Schwarzott
URL:
Whiteboard:
Keywords:
: 164723 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-31 16:50 UTC by Chris Smith
Modified: 2007-01-31 20:55 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2007-01-31 16:50:36 UTC
udevd-event errors during boot:
exec of program '/lib/udev/check-ptp-camera' failed

the above script is missing

it is referenced by /etc/udev/rules.d/99-libgphoto2.rules

media-libs/libgphoto2-2.3.1-r1
sys-fs/udev-104-r7

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-31 17:59:19 UTC
*** Bug 164723 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Arens 2007-01-31 18:05:11 UTC
The missing script once again installs to /usr/lib/udev erroneously.
This was supposed to be fixed according to Changelog, but apparently
is not.

Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-01-31 18:42:43 UTC
I cannot understand how it can be...
This should not fail...
    # fixup udevscriptdir is not working TODO
    dodir /lib
    mv "${D}/usr/lib/udev" "${D}/lib"
    # end fixup


Do you see any errors during install stage?
Comment 4 Chris Smith 2007-01-31 19:19:39 UTC
> Do you see any errors during install stage?

Odd...after you posted this I installed "by hand" - "ebuild libgphoto2 compile" than "ebuild libgphoto2 install" and "...image/lib/udev/check-ptp-camera" was there. Doing an emerge it was missing, then another install by hand and it was also missing. However it shows up here: "...image/usr/lib64/udev/check-ptp-camera".

A bit confused that it showed up in the image doing the first manual install. Maybe some timing issue.

Chris

Comment 5 Chris Smith 2007-01-31 20:23:10 UTC
(In reply to comment #3)
> This should not fail...
>     # fixup udevscriptdir is not working TODO
>     dodir /lib
>     mv "${D}/usr/lib/udev" "${D}/lib"
>     # end fixup

It doesn't really fail, it just fails to do what's needed. The problem is that at that point in time the script you're trying to relocate doesn't exist.

If you change this line:

-       mv "${D}/usr/lib/udev" "${D}/lib"
+       mv "${D}/usr/lib/udev/check-ptp-camera" "${D}/lib/udev/." | die

It will die everytime.

Chris
Comment 6 Matthias Schwarzott gentoo-dev 2007-01-31 20:27:34 UTC
libgphoto2-2.3.1-r3 now does this to also work on amd64/multilib:

mv "${D}/usr/$(get_libdir)/udev" "${D}/lib"
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-01-31 20:46:52 UTC
You need to inherit multilib for get_libdir to work properly:

equery f libgphoto2 | grep check-ptp-camera
/lib/udev/check-ptp-camera

Other than that, it works fine.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-01-31 20:50:39 UTC
(In reply to comment #7)
> You need to inherit multilib for get_libdir to work properly:

It already inherits eutils which inherits multilib.
Comment 9 Matthias Schwarzott gentoo-dev 2007-01-31 20:55:55 UTC
Now inherits multilib to make everyone happy.