rpms/hercules/devel hercules-3.05-open.patch, NONE, 1.1 hercules.spec, 1.16, 1.17

Matthias Saou (thias) fedora-extras-commits at redhat.com
Sun Aug 12 13:31:40 UTC 2007


Author: thias

Update of /cvs/extras/rpms/hercules/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7239

Modified Files:
	hercules.spec 
Added Files:
	hercules-3.05-open.patch 
Log Message:
Include open patch.


hercules-3.05-open.patch:

--- NEW FILE hercules-3.05-open.patch ---
diff -Naupr hercules-3.05.orig/tapedev.c hercules-3.05/tapedev.c
--- hercules-3.05.orig/tapedev.c	2007-06-23 14:58:07.000000000 +0200
+++ hercules-3.05/tapedev.c	2007-08-12 15:21:04.000000000 +0200
@@ -2997,7 +2997,7 @@ static void ReqAutoMount( DEVBLK *dev )
     if (dev->fd < 0)
     {
         BYTE unitstat = 0, code = 0;
-        dev->tmh->open( dev, &unitstat, code );
+        (dev->tmh->open)( dev, &unitstat, code );
         // PROGRAMMING NOTE: it's important to do TWO refreshes here
         // to cause the auto-mount thread to get created. Doing only
         // one doesn't work and doing two shouldn't cause any harm.
@@ -5282,7 +5282,7 @@ BYTE            rustat;                 
         }
         if (dev->fd < 0)
         {
-            rc=dev->tmh->open(dev,unitstat,code);
+            rc=(dev->tmh->open)(dev,unitstat,code);
             /* Exit with unit status if open was unsuccessful */
             if (rc < 0) {
                 return;


Index: hercules.spec
===================================================================
RCS file: /cvs/extras/rpms/hercules/devel/hercules.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- hercules.spec	5 Aug 2007 11:24:01 -0000	1.16
+++ hercules.spec	12 Aug 2007 13:31:07 -0000	1.17
@@ -1,7 +1,7 @@
 Summary: Hercules S/370, ESA/390, and z/Architecture emulator
 Name: hercules
 Version: 3.05
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: QPL
 Group: Applications/Emulators
 URL: http://www.conmicro.cx/hercules/
@@ -9,6 +9,7 @@
 Source1: hercules.cnf
 Source2: hercules-run
 Source3: README-rpm
+Patch0: hercules-3.05-open.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: bison, zlib-devel, bzip2-devel
 Obsoletes: hercules-docs <= 3.01
@@ -24,6 +25,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .open
 # Get the modules in the right place (lib64 on 64bit archs)
 %{__perl} -pi -e 's|\${DESTPREFIX}/lib/|${libdir}/|g' configure*
 # Scripts to be looked at, not executed from the docs
@@ -78,6 +80,9 @@
 
 
 %changelog
+* Sun Aug 12 2007 Matthias Saou <http://freshrpms.net/> 3.05-2
+- Include open patch.
+
 * Sun Aug  5 2007 Matthias Saou <http://freshrpms.net/> 3.05-1
 - Update to 3.05.
 




More information about the fedora-extras-commits mailing list