rpms/netpbm/devel netpbm-10.35-gcc43.patch, NONE, 1.1 netpbm.spec, 1.103, 1.104

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Fri Feb 15 11:01:23 UTC 2008


Author: jnovy

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

Modified Files:
	netpbm.spec 
Added Files:
	netpbm-10.35-gcc43.patch 
Log Message:
build with gcc 4.3


netpbm-10.35-gcc43.patch:

--- NEW FILE netpbm-10.35-gcc43.patch ---
diff -up netpbm-10.35.36/lib/libpbm3.c.gcc43 netpbm-10.35.36/lib/libpbm3.c
--- netpbm-10.35.36/lib/libpbm3.c.gcc43	2007-12-31 07:02:07.000000000 +0100
+++ netpbm-10.35.36/lib/libpbm3.c	2008-01-08 13:08:52.000000000 +0100
@@ -105,7 +105,7 @@ packBitsWithMmxSse(FILE *          const
             ) ];
     */
 
-    typedef int v8qi __attribute__ ((mode(V8QI)));
+    typedef int v8qi __attribute__ ((vector_size(8)));
     typedef int di __attribute__ ((mode(DI)));
 
     di const zero64 = 0;        /* to clear with PXOR */


Index: netpbm.spec
===================================================================
RCS file: /cvs/extras/rpms/netpbm/devel/netpbm.spec,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- netpbm.spec	14 Feb 2008 14:17:40 -0000	1.103
+++ netpbm.spec	15 Feb 2008 11:00:35 -0000	1.104
@@ -27,6 +27,7 @@
 Patch16: netpbm-10.35-pbmtog3segfault.patch
 Patch17: netpbm-10.35-pbmtomacp.patch
 Patch18: netpbm-10.35-glibc.patch
+Patch19: netpbm-10.35-gcc43.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
 BuildRequires: libX11-devel xorg-x11-server-utils python
@@ -85,6 +86,7 @@
 %patch16 -p1 -b .pbmtog3segfault
 %patch17 -p1 -b .pbmtomacp
 %patch18 -p1 -b .glibc
+%patch19 -p1 -b .gcc43
 
 ##mv shhopt/shhopt.h shhopt/pbmshhopt.h
 ##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile
@@ -115,7 +117,7 @@
 TOP=`pwd`
 make \
 	CC=%{__cc} \
-	CFLAGS="$RPM_OPT_FLAGS -fPIC" \
+	CFLAGS="$RPM_OPT_FLAGS -fPIC -flax-vector-conversions" \
 	LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
 	LADD="-lm" \
 	JPEGINC_DIR=%{_includedir} \
@@ -211,6 +213,7 @@
 %changelog
 * Thu Feb 14 2008 Jindrich Novy <jnovy at redhat.com> 10.35.38-1
 - update to 10.35.38 (fixes to pbmtext and ppmtoarbtxt)
+- fix to let it built with gcc 4.3
 
 * Thu Jan 17 2008 Jindrich Novy <jnovy at redhat.com> 10.35.37-1
 - update to 10.35.37




More information about the fedora-extras-commits mailing list