Hi,

thanks for the note regarding patch handling after icedove update.

Autobuild of icedove 24.2.0-1 on powerpcspe didn't work directly, as you
can see in the buildd logs:

...
/«PKGBUILDDIR»/mozilla/gfx/qcms/transform-altivec.c:1:0: error: AltiVec
and E500 instructions cannot coexist
make[6]: *** [transform-altivec.o] Error 1
...

Altivec is not available on powerpcspe. Attached patch fixes this by
preventing the respective options in case of powerpcspe.

Thanks in advance,

Roland
--- icedove-24.2.0.orig/mozilla/gfx/qcms/Makefile.in
+++ icedove-24.2.0/mozilla/gfx/qcms/Makefile.in
@@ -51,11 +51,13 @@ endif
 else
 ifeq (ppc,$(findstring ppc,$(CPU_ARCH)))
 ifdef GNU_CC
+ifeq ($(shell echo | gcc -x c -c -maltivec - 2>&1),)
 	CSRCS += transform-altivec.c
 	ALTIVEC_FLAGS=-maltivec
 endif
 endif
 endif
+endif
 
 FORCE_STATIC_LIB = 1
 
--- icedove-24.2.0.orig/mozilla/gfx/qcms/transform.c
+++ icedove-24.2.0/mozilla/gfx/qcms/transform.c
@@ -1283,7 +1283,7 @@ qcms_transform* qcms_transform_create(
 #endif
 		    } else
 #endif
-#if (defined(__POWERPC__) || defined(__powerpc__))
+#if ((defined(__POWERPC__) || defined(__powerpc__)) && !defined(__NO_FPRS__))
 		    if (have_altivec()) {
 			    if (in_type == QCMS_DATA_RGB_8)
 				    transform->transform_fn = qcms_transform_data_rgb_out_lut_altivec;

Reply via email to