update glibc-2.7 patch to apply without fuzz
This commit is contained in:
parent
d88330a4cf
commit
fcdea635c8
@ -1,44 +0,0 @@
|
||||
--- sane-backends-1.0.18/sanei/sanei_scsi.c.glibc-2.7 2005-11-24 23:08:49.000000000 +0100
|
||||
+++ sane-backends-1.0.18/sanei/sanei_scsi.c 2007-08-08 15:01:07.000000000 +0200
|
||||
@@ -5028,7 +5028,7 @@ sanei_scsi_find_devices (const char *fin
|
||||
(*plugInInterface)->Release (plugInInterface);
|
||||
IOObjectRelease (scsiDevice);
|
||||
|
||||
- ioReturnValue = (*scsiDeviceInterface)->open (scsiDeviceInterface);
|
||||
+ ioReturnValue = ((*scsiDeviceInterface)->open) (scsiDeviceInterface);
|
||||
if (ioReturnValue != kIOReturnSuccess)
|
||||
{
|
||||
DBG (5, "Error opening SCSI interface (0x%08x)\n", ioReturnValue);
|
||||
--- sane-backends-1.0.18/backend/pixma_common.c.glibc-2.7 2006-06-11 22:53:05.000000000 +0200
|
||||
+++ sane-backends-1.0.18/backend/pixma_common.c 2007-08-08 15:01:18.000000000 +0200
|
||||
@@ -449,7 +449,7 @@ pixma_open (unsigned devnr, pixma_t ** h
|
||||
strncpy (s->id, pixma_get_device_id (devnr), sizeof (s->id));
|
||||
s->ops = s->cfg->ops;
|
||||
s->scanning = 0;
|
||||
- error = s->ops->open (s);
|
||||
+ error = (s->ops->open) (s);
|
||||
if (error < 0)
|
||||
goto rollback;
|
||||
*handle = s;
|
||||
--- sane-backends-1.0.18/backend/plustek_pp.c.glibc-2.7 2006-02-19 12:32:24.000000000 +0100
|
||||
+++ sane-backends-1.0.18/backend/plustek_pp.c 2007-08-08 14:56:45.000000000 +0200
|
||||
@@ -258,7 +258,7 @@ static int drvopen( Plustek_Device *dev
|
||||
|
||||
DBG( _DBG_INFO, "drvopen()\n" );
|
||||
|
||||
- handle = dev->open((const char*)dev->name, (void *)dev );
|
||||
+ handle = (dev->open)((const char*)dev->name, (void *)dev );
|
||||
|
||||
tsecs = 0;
|
||||
|
||||
--- sane-backends-1.0.18/backend/mustek_pp.c.glibc-2.7 2005-04-16 15:06:37.000000000 +0200
|
||||
+++ sane-backends-1.0.18/backend/mustek_pp.c 2007-08-08 15:01:30.000000000 +0200
|
||||
@@ -1152,7 +1152,7 @@ sane_open (SANE_String_Const devicename,
|
||||
|
||||
}
|
||||
|
||||
- if ((status = dev->func->open (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
+ if ((status = (dev->func->open) (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
|
||||
DBG (1, "sane_open: could not open device (%s)\n",
|
||||
sane_strstatus (status));
|
48
sane-backends-1.0.19-glibc-2.7.patch
Normal file
48
sane-backends-1.0.19-glibc-2.7.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff -up sane-backends-1.0.19/backend/mustek_pp.c.glibc-2.7 sane-backends-1.0.19/backend/mustek_pp.c
|
||||
--- sane-backends-1.0.19/backend/mustek_pp.c.glibc-2.7 2005-04-10 13:53:16.000000000 +0200
|
||||
+++ sane-backends-1.0.19/backend/mustek_pp.c 2008-09-03 17:15:12.000000000 +0200
|
||||
@@ -1152,7 +1152,7 @@ sane_open (SANE_String_Const devicename,
|
||||
|
||||
}
|
||||
|
||||
- if ((status = dev->func->open (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
+ if ((status = (dev->func->open) (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
|
||||
DBG (1, "sane_open: could not open device (%s)\n",
|
||||
sane_strstatus (status));
|
||||
diff -up sane-backends-1.0.19/backend/pixma_common.c.glibc-2.7 sane-backends-1.0.19/backend/pixma_common.c
|
||||
--- sane-backends-1.0.19/backend/pixma_common.c.glibc-2.7 2007-04-09 22:41:25.000000000 +0200
|
||||
+++ sane-backends-1.0.19/backend/pixma_common.c 2008-09-03 17:20:36.000000000 +0200
|
||||
@@ -500,7 +500,7 @@ pixma_open (unsigned devnr, pixma_t ** h
|
||||
strncpy (s->id, pixma_get_device_id (devnr), sizeof (s->id) - 1);
|
||||
s->ops = s->cfg->ops;
|
||||
s->scanning = 0;
|
||||
- error = s->ops->open (s);
|
||||
+ error = (s->ops->open) (s);
|
||||
if (error < 0)
|
||||
goto rollback;
|
||||
*handle = s;
|
||||
diff -up sane-backends-1.0.19/backend/plustek_pp.c.glibc-2.7 sane-backends-1.0.19/backend/plustek_pp.c
|
||||
--- sane-backends-1.0.19/backend/plustek_pp.c.glibc-2.7 2007-11-18 11:59:18.000000000 +0100
|
||||
+++ sane-backends-1.0.19/backend/plustek_pp.c 2008-09-03 17:15:12.000000000 +0200
|
||||
@@ -258,7 +258,7 @@ static int drvopen( Plustek_Device *dev
|
||||
|
||||
DBG( _DBG_INFO, "drvopen()\n" );
|
||||
|
||||
- handle = dev->open((const char*)dev->name, (void *)dev );
|
||||
+ handle = (dev->open)((const char*)dev->name, (void *)dev );
|
||||
|
||||
tsecs = 0;
|
||||
|
||||
diff -up sane-backends-1.0.19/sanei/sanei_scsi.c.glibc-2.7 sane-backends-1.0.19/sanei/sanei_scsi.c
|
||||
--- sane-backends-1.0.19/sanei/sanei_scsi.c.glibc-2.7 2007-11-16 19:37:07.000000000 +0100
|
||||
+++ sane-backends-1.0.19/sanei/sanei_scsi.c 2008-09-03 17:15:12.000000000 +0200
|
||||
@@ -5072,7 +5072,7 @@ sanei_scsi_find_devices (const char *fin
|
||||
(*plugInInterface)->Release (plugInInterface);
|
||||
IOObjectRelease (scsiDevice);
|
||||
|
||||
- ioReturnValue = (*scsiDeviceInterface)->open (scsiDeviceInterface);
|
||||
+ ioReturnValue = ((*scsiDeviceInterface)->open) (scsiDeviceInterface);
|
||||
if (ioReturnValue != kIOReturnSuccess)
|
||||
{
|
||||
DBG (5, "Error opening SCSI interface (0x%08x)\n", ioReturnValue);
|
@ -1,7 +1,7 @@
|
||||
Summary: Scanner access software
|
||||
Name: sane-backends
|
||||
Version: 1.0.19
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
||||
Group: System Environment/Libraries
|
||||
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||
@ -10,7 +10,7 @@ Source2: hal-usb-scanner-add
|
||||
Patch0: sane-backends-1.0.19-acinclude.patch.bz2
|
||||
Patch1: sane-backends-1.0.18-rpath.patch
|
||||
Patch2: sane-backends-1.0.19-pkgconfig.patch
|
||||
Patch3: sane-backends-1.0.18-glibc-2.7.patch
|
||||
Patch3: sane-backends-1.0.19-glibc-2.7.patch
|
||||
Patch4: sane-backends-1.0.19-policykit.patch
|
||||
Patch5: sane-backends-1.0.19-uninitialized.patch
|
||||
URL: http://www.sane-project.org
|
||||
@ -159,6 +159,9 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/pkgconfig/sane-backends.pc
|
||||
|
||||
%changelog
|
||||
* Wed Sep 03 2008 Nils Philippsen <nphilipp@redhat.com> - 1.0.19-11
|
||||
- update glibc-2.7 patch to apply without fuzz
|
||||
|
||||
* Thu Mar 27 2008 Nils Philippsen <nphilipp@redhat.com> - 1.0.19-10
|
||||
- rename 60-libsane.fdi to 19-libsane.fdi so that hal-acl-tool callouts get
|
||||
added (#438827)
|
||||
|
Loading…
Reference in New Issue
Block a user