> http://build-failures.rhaalovely.net/aarch64/2019-04-12/graphics/freeimage.log

It's broken as well with ports-gcc-8 on macppc.

Again it's a narrowing issue on unsigned-char-by-default archs.

Once fixed, it builds fine on macppc, and is still good on amd64. 

Any comments? 


Charlène.


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/freeimage/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile    19 Nov 2018 18:46:16 -0000      1.13
+++ Makefile    16 Apr 2019 15:23:20 -0000
@@ -4,7 +4,7 @@ COMMENT=                c++ library for common image f
 
 DISTNAME=              FreeImage3152
 PKGNAME=               freeimage-3.15.2
-REVISION =             6
+REVISION=              7
 CATEGORIES=            graphics
 
 SHARED_LIBS+=          freeimage       2.0
Index: patches/patch-Source_LibRawLite_internal_dcraw_common_cpp
===================================================================
RCS file: 
/cvs/ports/graphics/freeimage/patches/patch-Source_LibRawLite_internal_dcraw_common_cpp,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Source_LibRawLite_internal_dcraw_common_cpp
--- patches/patch-Source_LibRawLite_internal_dcraw_common_cpp   7 Apr 2018 
09:07:59 -0000       1.1
+++ patches/patch-Source_LibRawLite_internal_dcraw_common_cpp   16 Apr 2019 
15:23:20 -0000
@@ -1,10 +1,21 @@
 $OpenBSD: patch-Source_LibRawLite_internal_dcraw_common_cpp,v 1.1 2018/04/07 
09:07:59 rsadowski Exp $
 
-fix clang 6.0 build
+Hunk #1: fix the build when char is unsigned by default (ppc, arm)
+
+fix clang>=6 build
 
 Index: Source/LibRawLite/internal/dcraw_common.cpp
 --- Source/LibRawLite/internal/dcraw_common.cpp.orig
 +++ Source/LibRawLite/internal/dcraw_common.cpp
+@@ -2368,7 +2368,7 @@ void CLASS quicktake_100_load_raw()
+ 
+ void CLASS kodak_radc_load_raw()
+ {
+-  static const char src[] = {
++  static const signed char src[] = {
+     1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8,
+     1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8,
+     2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8,
 @@ -3917,7 +3917,7 @@ void CLASS lin_interpolate()
   */
  void CLASS vng_interpolate()

Reply via email to