Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 103621 Details for
Bug 153471
libgphoto2-2.2.1-r1's usbcam sets permissions on the wrong file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild changes to apply above patch and create udev-rules
libgphoto-2.2.1-udev-ebuild-changes.diff (text/plain), 2.64 KB, created by
Matthias Schwarzott
on 2006-12-08 05:01:30 UTC
(
hide
)
Description:
ebuild changes to apply above patch and create udev-rules
Filename:
MIME Type:
Creator:
Matthias Schwarzott
Created:
2006-12-08 05:01:30 UTC
Size:
2.64 KB
patch
obsolete
>Index: libgphoto2-2.2.1-r1.ebuild >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/media-libs/libgphoto2/libgphoto2-2.2.1-r1.ebuild,v >retrieving revision 1.6 >diff -u -B -r1.6 libgphoto2-2.2.1-r1.ebuild >--- libgphoto2-2.2.1-r1.ebuild 7 Nov 2006 12:03:11 -0000 1.6 >+++ libgphoto2-2.2.1-r1.ebuild 8 Dec 2006 12:45:33 -0000 >@@ -11,7 +11,7 @@ > LICENSE="GPL-2" > SLOT="0" > KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" >-IUSE="nls doc exif usb hal" >+IUSE="nls doc exif usb hal udev" > RESTRICT="test confcache" > > # needs >usbutils-0.11-r2 to avoid /usr/lib/libusb* >@@ -61,6 +61,9 @@ > # bug #139534: already merged into upstream SVN > epatch ${FILESDIR}/${P}-ngettext.patch > >+ # bug #153471: create udev-rules for udev >= 0.98 >+ epatch ${FILESDIR}/${P}-backported-udev-fixes.diff >+ > # make default group 'plugdev', not camera > sed -e 's:=camera:=plugdev:' -i packaging/linux-hotplug/usbcam.group > >@@ -118,20 +121,37 @@ > fi > > if [[ -x ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list ]]; then >+ # Let print-camera-list find libgphoto2.so >+ export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" >+ # Let libgphoto2 find its camera-modules >+ export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" >+ > HOTPLUG_USERMAP="/etc/hotplug/usb/usbcam-gphoto2.usermap" > HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" >+ UDEV_RULES="/etc/udev/rules.d/99-libgphoto2.rules" > > if use usb && use kernel_linux; then > einfo "Generating usbcam-gphoto2.usermap ..." > echo "# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated." > ${D}/${HOTPLUG_USERMAP} > echo "# Put your custom entries in /etc/hotplug/usb/usbcam.usermap" >> ${D}/${HOTPLUG_USERMAP} >- ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap >> ${D}/${HOTPLUG_USERMAP} >- >+ ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap >> ${D}/${HOTPLUG_USERMAP} \ >+ || die "failed to create usb-usermap" > fi > > if use hal; then > einfo "Generating HAL FDI files ..." >- ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} >+ mkdir -p ${D}/${HAL_FDI%/*} >+ ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} \ >+ || die "failed to create hal-fdi" >+ fi >+ >+ if use udev; then >+ einfo "Generating UDEV-rules ..." >+ mkdir -p ${D}/${UDEV_RULES%/*} >+ ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list udev-rules-0.98 >> ${D}/${UDEV_RULES} \ >+ || die "failed to create udev-rules" >+ exeinto /lib/udev >+ doexe ${S}/packaging/generic/check_ptp_camera > fi > else > eerror "Unable to find ${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 153471
:
103620
| 103621