rpms/cups/F-11 cups-uri-compat.patch, NONE, 1.1 cups.spec, 1.485, 1.486
Tim Waugh
twaugh at fedoraproject.org
Wed Jul 15 10:10:58 UTC 2009
- Previous message (by thread): rpms/python-kaa-display/devel import.log, NONE, 1.1 kaa-display-0.1.0-backport.patch, NONE, 1.1 kaa-display-0.1.0-hack_imlib2_x11_support.patch, NONE, 1.1 python-kaa-display.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/dansguardian/devel dansguardian-clamav095.patch, NONE, 1.1 dansguardian-copyright-notice.patch, NONE, 1.1 dansguardian-gcc44.patch, NONE, 1.1 dansguardian.httpd, NONE, 1.1 dansguardian.init, NONE, 1.1 dansguardian.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/pkgs/rpms/cups/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18545
Modified Files:
cups.spec
Added Files:
cups-uri-compat.patch
Log Message:
* Wed Jul 15 2009 Tim Waugh <twaugh at redhat.com> 1:1.4-0.rc1.10
- Accept incorrect device URIs in the (non-libusb) usb backend for
compatibility with Fedora 11 before bug #507244 was fixed.
cups-uri-compat.patch:
--- NEW FILE cups-uri-compat.patch ---
diff -up cups-1.4rc1/backend/usb-unix.c.uri-compat cups-1.4rc1/backend/usb-unix.c
--- cups-1.4rc1/backend/usb-unix.c.uri-compat 2009-07-15 10:48:46.992133677 +0100
+++ cups-1.4rc1/backend/usb-unix.c 2009-07-15 10:49:05.305008114 +0100
@@ -63,11 +63,34 @@ print_device(const char *uri, /* I - De
int device_fd; /* USB device */
size_t tbytes; /* Total number of bytes written */
struct termios opts; /* Parallel port options */
+ char *fixed_uri = strdup (uri);
+ char *p;
(void)argc;
(void)argv;
+ p = strchr (fixed_uri, ':');
+ if (p++ != NULL)
+ {
+ char *e;
+ p += strspn (p, "/");
+ e = strchr (p, '/');
+ if (e > p)
+ {
+ size_t mfrlen = e - p;
+ e++;
+ if (!strncasecmp (e, p, mfrlen))
+ {
+ char *x = e + mfrlen;
+ if (!strncmp (x, "%20", 3))
+ /* Take mfr name out of mdl name for compatibility with
+ * Fedora 11 before bug #507244 was fixed. */
+ strcpy (e, x + 3); puts(fixed_uri);
+ }
+ }
+ }
+
/*
* Open the USB port device...
*/
@@ -107,10 +130,10 @@ print_device(const char *uri, /* I - De
strncasecmp(hostname, "Minolta", 7);
#endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */
- if (use_bc && !strncmp(uri, "usb:/dev/", 9))
+ if (use_bc && !strncmp(fixed_uri, "usb:/dev/", 9))
use_bc = 0;
- if ((device_fd = open_device(uri, &use_bc)) == -1)
+ if ((device_fd = open_device(fixed_uri, &use_bc)) == -1)
{
if (getenv("CLASS") != NULL)
{
Index: cups.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cups/F-11/cups.spec,v
retrieving revision 1.485
retrieving revision 1.486
diff -u -p -r1.485 -r1.486
--- cups.spec 15 Jul 2009 09:12:13 -0000 1.485
+++ cups.spec 15 Jul 2009 10:10:57 -0000 1.486
@@ -53,7 +53,8 @@ Patch26: cups-str3231.patch
Patch27: cups-str3244.patch
Patch28: cups-str3258.patch
Patch29: cups-str3259.patch
-Patch30: cups-avahi.patch
+Patch30: cups-uri-compat.patch
+Patch31: cups-avahi.patch
Patch100: cups-lspp.patch
Epoch: 1
Url: http://www.cups.org/
@@ -204,7 +205,8 @@ module.
%patch27 -p1 -b .str3244
%patch28 -p1 -b .str3258
%patch29 -p1 -b .str3259
-#%patch30 -p1 -b .avahi
+%patch30 -p1 -b .uri-compat
+#%patch31 -p1 -b .avahi
%if %lspp
%patch100 -p1 -b .lspp
@@ -498,6 +500,8 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jul 15 2009 Tim Waugh <twaugh at redhat.com> 1:1.4-0.rc1.10
+- Accept incorrect device URIs in the (non-libusb) usb backend for
+ compatibility with Fedora 11 before bug #507244 was fixed.
- Applied patch to fix incorrect device URIs (STR #3259, bug #507244).
- Applied patch to fix job-hold-until for remote queues (STR #3258,
bug #497376).
- Previous message (by thread): rpms/python-kaa-display/devel import.log, NONE, 1.1 kaa-display-0.1.0-backport.patch, NONE, 1.1 kaa-display-0.1.0-hack_imlib2_x11_support.patch, NONE, 1.1 python-kaa-display.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/dansguardian/devel dansguardian-clamav095.patch, NONE, 1.1 dansguardian-copyright-notice.patch, NONE, 1.1 dansguardian-gcc44.patch, NONE, 1.1 dansguardian.httpd, NONE, 1.1 dansguardian.init, NONE, 1.1 dansguardian.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list