diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-02-26 10:15:08 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-02-26 10:15:08 +0000 |
commit | 5e1237c68748b3e791bde97c2d83116d6528711c (patch) | |
tree | 324c649bcc6b37b0c822ddf7454d257bf848270e /media-libs/libgphoto2/files | |
parent | improve coding style; bug 168386 (diff) | |
download | gentoo-2-5e1237c68748b3e791bde97c2d83116d6528711c.tar.gz gentoo-2-5e1237c68748b3e791bde97c2d83116d6528711c.tar.bz2 gentoo-2-5e1237c68748b3e791bde97c2d83116d6528711c.zip |
Revert udev-rules to match also parent-devices (using ATTRS), Bug #166492.
(Portage version: 2.1.2-r11)
Diffstat (limited to 'media-libs/libgphoto2/files')
-rw-r--r-- | media-libs/libgphoto2/files/digest-libgphoto2-2.3.1-r4 | 3 | ||||
-rw-r--r-- | media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/libgphoto2/files/digest-libgphoto2-2.3.1-r4 b/media-libs/libgphoto2/files/digest-libgphoto2-2.3.1-r4 new file mode 100644 index 000000000000..770cf01bd000 --- /dev/null +++ b/media-libs/libgphoto2/files/digest-libgphoto2-2.3.1-r4 @@ -0,0 +1,3 @@ +MD5 37f85e34e5b6031ddf6cac8b8782ac4f libgphoto2-2.3.1.tar.bz2 3230934 +RMD160 ab678a5006a89ef1fe9f052dac1f9738961cc3a8 libgphoto2-2.3.1.tar.bz2 3230934 +SHA256 b56433ae44e593ea0c55dd4ad69074e59151920f266dc646c1dc7e80ebe3b727 libgphoto2-2.3.1.tar.bz2 3230934 diff --git a/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff b/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff new file mode 100644 index 000000000000..2e939b491b9a --- /dev/null +++ b/media-libs/libgphoto2/files/libgphoto2-2.3.1-udev-rules-fix2.diff @@ -0,0 +1,28 @@ +diff -Nur libgphoto2-2.3.1/packaging/generic/print-camera-list.c libgphoto2-2.3.1-udev-fix/packaging/generic/print-camera-list.c +--- libgphoto2-2.3.1/packaging/generic/print-camera-list.c 2006-12-24 10:16:19.000000000 -0500 ++++ libgphoto2-2.3.1-udev-fix/packaging/generic/print-camera-list.c 2007-01-31 10:39:12.000000000 -0500 +@@ -299,7 +299,7 @@ + /* Note: 2 lines because we need to use || ... having them on the same + * line would mean &&. + */ +- printf ("SUBSYSTEM!=\"usb*\", GOTO=\"libgphoto2_rules_end\"\n"); ++ printf ("SUBSYSTEM!=\"usb_device\", GOTO=\"libgphoto2_rules_end\"\n"); + printf ("ACTION!=\"add\", GOTO=\"libgphoto2_rules_end\"\n\n"); + return 0; + } +@@ -479,9 +479,14 @@ + else + fprintf(stderr,"unhandled interface match flags %x\n", flags); + } +- } else { ++ } else if (flags & GP_USB_HOTPLUG_MATCH_VENDOR_ID) { ++ + printf ("ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ", + a->usb_vendor, a->usb_product); ++ } else { ++ fprintf(stderr, "Attempted to output rule for Camera: \"%s\" , Vendor: \"%04x\" , Product: \"%04x\"", ++ a->model, a->usb_vendor, a->usb_product); ++ return 0; + } + if ((*params->argv)[1] == NULL) { + const char *hotplug_script = ((*params->argv)[0] != NULL) |