Package: ufraw Version: 0.5+cvs20051021-1 Severity: normal Tags: patch
When building 'ufraw' on ppc64/unstable, I get the following error: make[2]: Entering directory `/ufraw-0.5+cvs20051021' if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/include -I/usr/include/libexif -DXTHREADS -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/X11R6/include -Wall -g -O2 -W -Wall -O3 -ffast-math -fomit-frame-pointer -mcpu=powerpc -fno-loop-optimize -MT ufraw.o -MD -MP -MF ".deps/ufraw.Tpo" -c -o ufraw.o ufraw.c; \ then mv -f ".deps/ufraw.Tpo" ".deps/ufraw.Po"; else rm -f ".deps/ufraw.Tpo"; exit 1; fi ufraw.c:1: error: -m64 requires a PowerPC64 cpu make[2]: *** [ufraw.o] Error 1 make[2]: Leaving directory `/ufraw-0.5+cvs20051021' With the attached patch 'ufraw' can be compiled on ppc64. The patch makes sure that '-mcpu=powerpc' will _not_ be added to CFLAGS on powerpc64 systems. Probably the special CFLAGS could also be removed for the powerpc case because the gcc bug which made them necessary has long been fixed. Regards Andreas Jochens diff -urN ../tmp-orig/ufraw-0.5+cvs20051021/configure ./configure --- ../tmp-orig/ufraw-0.5+cvs20051021/configure 2006-04-06 08:58:35.000000000 +0000 +++ ./configure 2006-04-06 08:58:36.000000000 +0000 @@ -6508,7 +6508,7 @@ 686) CFLAGS="$CFLAGS -march=i686" ;; - powerpc* | ppc*) + powerpc | ppc*) # there is a -floop-optimize bug in gcc 3.3.2 on powerpc (resolved in gcc 3.4) CFLAGS="$CFLAGS -mcpu=powerpc -fno-loop-optimize" ;; diff -urN ../tmp-orig/ufraw-0.5+cvs20051021/configure.ac ./configure.ac --- ../tmp-orig/ufraw-0.5+cvs20051021/configure.ac 2006-04-06 08:58:35.000000000 +0000 +++ ./configure.ac 2006-04-06 08:54:03.000000000 +0000 @@ -223,7 +223,7 @@ 686) CFLAGS="$CFLAGS -march=i686" ;; - powerpc* | ppc*) + powerpc | ppc*) # there is a -floop-optimize bug in gcc 3.3.2 on powerpc (resolved in gcc 3.4) CFLAGS="$CFLAGS -mcpu=powerpc -fno-loop-optimize" ;; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]