devel/shapelib shapelib-1.2.10-gcc4.patch, NONE, 1.1 shapelib.spec, 1.5, 1.6

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Mon Apr 11 18:47:09 UTC 2005


Author: mschwendt

Update of /cvs/extras/devel/shapelib
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19655

Modified Files:
	shapelib.spec 
Added Files:
	shapelib-1.2.10-gcc4.patch 
Log Message:
* Mon Apr 11 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.10-8
- Fix "invalid lvalue in assignment" for GCC4.



shapelib-1.2.10-gcc4.patch:

--- NEW FILE shapelib-1.2.10-gcc4.patch ---
diff -Nur shapelib-1.2.10-orig/contrib/shpgeo.c shapelib-1.2.10/contrib/shpgeo.c
--- shapelib-1.2.10-orig/contrib/shpgeo.c	2003-04-07 15:03:22.000000000 +0200
+++ shapelib-1.2.10/contrib/shpgeo.c	2005-04-11 20:41:37.000000000 +0200
@@ -543,7 +543,7 @@
    nextring = 0;
    cParts=0;
    while ( nextring >= 0 ) {
-     (SHPObject*) ppsC[cParts] = SHPUnCompound ( psCShape, &nextring ); 
+     ppsC[cParts] = SHPUnCompound ( psCShape, &nextring ); 
      cParts++;
     }
    


Index: shapelib.spec
===================================================================
RCS file: /cvs/extras/devel/shapelib/shapelib.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- shapelib.spec	6 Apr 2005 22:13:31 -0000	1.5
+++ shapelib.spec	11 Apr 2005 18:47:07 -0000	1.6
@@ -2,12 +2,12 @@
 Summary: API in "C" for Shapefile handling
 Name: shapelib
 Version: 1.2.10
-Release: 7
-
+Release: 8
 URL: http://shapelib.maptools.org/
 Source: http://shapelib.maptools.org/dl/shapelib-%{version}.tar.gz
 Patch0: shapelib-%{version}.patch
 Patch1: shapelib-1.2.10-endian.patch
+Patch2: shapelib-1.2.10-gcc4.patch
 License: LGPL/MIT
 Group: Development/Libraries
 Buildrequires: libtool
@@ -32,6 +32,7 @@
 %setup -q -T -b 0
 %patch -p1 -b .buildroot
 %patch1 -p1 -b .endian
+%patch2 -p1 -b .gcc4
 
 %build
 make %{?_smp_mflags} libdir=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" lib
@@ -72,6 +73,9 @@
 %exclude %{_libdir}/libshp.la
 
 %changelog
+* Mon Apr 11 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.10-8
+- Fix "invalid lvalue in assignment" for GCC4.
+
 * Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
 - rebuilt
 




More information about the fedora-extras-commits mailing list