rpms/swig/devel swig-1.3.38-rh485540.patch, NONE, 1.1 swig.spec, 1.42, 1.43

Adam Tkac atkac at fedoraproject.org
Mon Feb 16 15:39:16 UTC 2009


Author: atkac

Update of /cvs/pkgs/rpms/swig/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13505

Modified Files:
	swig.spec 
Added Files:
	swig-1.3.38-rh485540.patch 
Log Message:
- handle -co option gracefully (#485540)


swig-1.3.38-rh485540.patch:

--- NEW FILE swig-1.3.38-rh485540.patch ---
diff -up swig-1.3.38/Source/Modules/main.cxx.rh485540 swig-1.3.38/Source/Modules/main.cxx
--- swig-1.3.38/Source/Modules/main.cxx.rh485540	2009-02-16 16:27:07.000000000 +0100
+++ swig-1.3.38/Source/Modules/main.cxx	2009-02-16 16:29:05.000000000 +0100
@@ -954,7 +954,7 @@ int SWIG_main(int argc, char *argv[], La
     if (!s) {
       Printf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file);
     } else {
-      FILE *f = Swig_include_open(outfile);
+      FILE *f = Swig_open(outfile);
       if (f) {
 	fclose(f);
 	Printf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile);


Index: swig.spec
===================================================================
RCS file: /cvs/pkgs/rpms/swig/devel/swig.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- swig.spec	12 Feb 2009 10:50:32 -0000	1.42
+++ swig.spec	16 Feb 2009 15:38:46 -0000	1.43
@@ -4,12 +4,13 @@
 Summary: Connects C/C++/Objective C to some high-level programming languages.
 Name: swig
 Version: 1.3.38
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: BSD
 Group: Development/Tools
 URL: http://swig.sourceforge.net/
 Source: http://download.sourceforge.net/swig/swig-%{version}.tar.gz
 Patch1: swig-1.3.23-pylib.patch
+Patch2: swig-1.3.38-rh485540.patch
 
 BuildRoot: %{_tmppath}/swig-root
 BuildRequires: perl, python-devel
@@ -33,6 +34,7 @@
 %prep
 %setup -q -n swig-%{version}
 %patch1 -p1 -b .pylib
+%patch2 -p1 -b .rh485540
 
 %build
 ./autogen.sh
@@ -61,6 +63,9 @@
 %{_mandir}/man1/ccache-swig.1*
 
 %changelog
+* Mon Feb 16 2009 Adam Tkac <atkac redhat com> 1.3.38-2
+- handle -co option gracefully (#485540)
+
 * Thu Feb 12 2009 Adam Tkac <atkac redhat com> 1.3.38-1
 - updated to 1.3.38
 




More information about the scm-commits mailing list