Fix for canon scanners
This commit is contained in:
parent
9148505c3a
commit
491c40ea8e
42
0001-Skip-probe-on-Canon-0x22-products.patch
Normal file
42
0001-Skip-probe-on-Canon-0x22-products.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
From 1ff1a64acc1f789e85029d41c71903d119b5c8bb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Linus Walleij <triad@df.lth.se>
|
||||||
|
Date: Sat, 28 Jan 2012 10:54:37 +0100
|
||||||
|
Subject: [PATCH] Skip probe on Canon 0x22* products
|
||||||
|
|
||||||
|
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
||||||
|
---
|
||||||
|
util/mtp-hotplug.c | 7 +++++--
|
||||||
|
1 files changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c
|
||||||
|
index 3709385..959b034 100644
|
||||||
|
--- a/util/mtp-hotplug.c
|
||||||
|
+++ b/util/mtp-hotplug.c
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
* \file mtp-hotplug.c
|
||||||
|
* Program to create hotplug scripts.
|
||||||
|
*
|
||||||
|
- * Copyright (C) 2005-2011 Linus Walleij <triad@df.lth.se>
|
||||||
|
+ * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se>
|
||||||
|
* Copyright (C) 2006-2008 Marcus Meissner <marcus@jet.franken.de>
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@@ -140,11 +140,14 @@ int main (int argc, char **argv)
|
||||||
|
printf("SUBSYSTEM==\"usb\", GOTO=\"libmtp_usb_rules\"\n"
|
||||||
|
"GOTO=\"libmtp_rules_end\"\n\n"
|
||||||
|
"LABEL=\"libmtp_usb_rules\"\n\n");
|
||||||
|
- printf("# Some sensitive devices we surely don\'t wanna probe, color instruments\n");
|
||||||
|
+ printf("# Some sensitive devices we surely don\'t wanna probe\n");
|
||||||
|
+ printf("# Color instruments\n");
|
||||||
|
printf("ATTR{idVendor}==\"0670\", GOTO=\"libmtp_rules_end\"\n");
|
||||||
|
printf("ATTR{idVendor}==\"0765\", GOTO=\"libmtp_rules_end\"\n");
|
||||||
|
printf("ATTR{idVendor}==\"085c\", GOTO=\"libmtp_rules_end\"\n");
|
||||||
|
printf("ATTR{idVendor}==\"0971\", GOTO=\"libmtp_rules_end\"\n");
|
||||||
|
+ printf("# Canon scanners that look like MTP devices (PID 0x22nn)\n");
|
||||||
|
+ printf("ATTR{idVendor}==\"04a9\", ATTR{idProduct}==\"22*\", GOTO=\"libmtp_rules_end\"\n");
|
||||||
|
printf("\n");
|
||||||
|
break;
|
||||||
|
case style_udev_old:
|
||||||
|
--
|
||||||
|
1.7.7.6
|
||||||
|
|
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Name: libmtp
|
Name: libmtp
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A software library for MTP media players
|
Summary: A software library for MTP media players
|
||||||
URL: http://libmtp.sourceforge.net/
|
URL: http://libmtp.sourceforge.net/
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: 0001-Skip-probe-on-Canon-0x22-products.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Requires: udev
|
Requires: udev
|
||||||
@ -43,6 +44,7 @@ library for MTP media players.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .canonscanner
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
@ -102,6 +104,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 28 2012 Linus Walleij <triad@df.lth.se> 1.1.2-2
|
||||||
|
- Bugfix to avoid probing Canon scanners
|
||||||
|
|
||||||
* Thu Jan 12 2012 Linus Walleij <triad@df.lth.se> 1.1.2-1
|
* Thu Jan 12 2012 Linus Walleij <triad@df.lth.se> 1.1.2-1
|
||||||
- Upstream update to use libusb-1.0 and other fixes.
|
- Upstream update to use libusb-1.0 and other fixes.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user