Blame SOURCES/gegl-0.2.0-libopenraw.patch

0b49ef
diff -up gegl-0.2.0/configure.ac.libopenraw gegl-0.2.0/configure.ac
0b49ef
--- gegl-0.2.0/configure.ac.libopenraw	2016-12-03 08:11:31.968387802 +0100
0b49ef
+++ gegl-0.2.0/configure.ac	2016-12-03 08:12:19.398987931 +0100
0b49ef
@@ -790,7 +790,7 @@ AC_ARG_WITH(libopenraw, [  --without-lib
0b49ef
 
0b49ef
 have_libopenraw="no"
0b49ef
 if test "x$with_libopenraw" != "xno"; then
0b49ef
-  PKG_CHECK_MODULES(OPENRAW, libopenraw-1.0 >= openraw_required_version,
0b49ef
+  PKG_CHECK_MODULES(OPENRAW, libopenraw-0.1 >= openraw_required_version,
0b49ef
     have_libopenraw="yes",
0b49ef
     have_libopenraw="no  (openraw library not found)")
0b49ef
 fi
0b49ef
diff -up gegl-0.2.0/configure.libopenraw gegl-0.2.0/configure
0b49ef
--- gegl-0.2.0/configure.libopenraw	2016-12-03 08:11:33.954412931 +0100
0b49ef
+++ gegl-0.2.0/configure	2016-12-03 08:12:15.506938686 +0100
0b49ef
@@ -20760,12 +20760,12 @@ if test -n "$OPENRAW_CFLAGS"; then
0b49ef
     pkg_cv_OPENRAW_CFLAGS="$OPENRAW_CFLAGS"
0b49ef
  elif test -n "$PKG_CONFIG"; then
0b49ef
     if test -n "$PKG_CONFIG" && \
0b49ef
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-1.0 >= 0.0.5\""; } >&5
0b49ef
-  ($PKG_CONFIG --exists --print-errors "libopenraw-1.0 >= 0.0.5") 2>&5
0b49ef
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-0.1 >= 0.0.5\""; } >&5
0b49ef
+  ($PKG_CONFIG --exists --print-errors "libopenraw-0.1 >= 0.0.5") 2>&5
0b49ef
   ac_status=$?
0b49ef
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0b49ef
   test $ac_status = 0; }; then
0b49ef
-  pkg_cv_OPENRAW_CFLAGS=`$PKG_CONFIG --cflags "libopenraw-1.0 >= 0.0.5" 2>/dev/null`
0b49ef
+  pkg_cv_OPENRAW_CFLAGS=`$PKG_CONFIG --cflags "libopenraw-0.1 >= 0.0.5" 2>/dev/null`
0b49ef
 		      test "x$?" != "x0" && pkg_failed=yes
0b49ef
 else
0b49ef
   pkg_failed=yes
0b49ef
@@ -20777,12 +20777,12 @@ if test -n "$OPENRAW_LIBS"; then
0b49ef
     pkg_cv_OPENRAW_LIBS="$OPENRAW_LIBS"
0b49ef
  elif test -n "$PKG_CONFIG"; then
0b49ef
     if test -n "$PKG_CONFIG" && \
0b49ef
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-1.0 >= 0.0.5\""; } >&5
0b49ef
-  ($PKG_CONFIG --exists --print-errors "libopenraw-1.0 >= 0.0.5") 2>&5
0b49ef
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-0.1 >= 0.0.5\""; } >&5
0b49ef
+  ($PKG_CONFIG --exists --print-errors "libopenraw-0.1 >= 0.0.5") 2>&5
0b49ef
   ac_status=$?
0b49ef
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0b49ef
   test $ac_status = 0; }; then
0b49ef
-  pkg_cv_OPENRAW_LIBS=`$PKG_CONFIG --libs "libopenraw-1.0 >= 0.0.5" 2>/dev/null`
0b49ef
+  pkg_cv_OPENRAW_LIBS=`$PKG_CONFIG --libs "libopenraw-0.1 >= 0.0.5" 2>/dev/null`
0b49ef
 		      test "x$?" != "x0" && pkg_failed=yes
0b49ef
 else
0b49ef
   pkg_failed=yes
0b49ef
@@ -20803,9 +20803,9 @@ else
0b49ef
         _pkg_short_errors_supported=no
0b49ef
 fi
0b49ef
         if test $_pkg_short_errors_supported = yes; then
0b49ef
-	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenraw-1.0 >= 0.0.5" 2>&1`
0b49ef
+	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenraw-0.1 >= 0.0.5" 2>&1`
0b49ef
         else
0b49ef
-	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenraw-1.0 >= 0.0.5" 2>&1`
0b49ef
+	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenraw-0.1 >= 0.0.5" 2>&1`
0b49ef
         fi
0b49ef
 	# Put the nasty error message in config.log where it belongs
0b49ef
 	echo "$OPENRAW_PKG_ERRORS" >&5
0b49ef
diff -up gegl-0.2.0/operations/external/openraw.c.libopenraw gegl-0.2.0/operations/external/openraw.c
0b49ef
--- gegl-0.2.0/operations/external/openraw.c.libopenraw	2016-12-03 08:28:14.284333843 +0100
0b49ef
+++ gegl-0.2.0/operations/external/openraw.c	2016-12-03 08:29:01.495751180 +0100
0b49ef
@@ -116,7 +116,7 @@ load_buffer (GeglOperation *operation)
0b49ef
       goto clean_file;
0b49ef
     }
0b49ef
 
0b49ef
-  if(or_rawdata_format (rawdata) != OR_DATA_TYPE_CFA)
0b49ef
+  if(or_rawdata_format (rawdata) != OR_DATA_TYPE_RAW)
0b49ef
     {
0b49ef
       goto clean_file;
0b49ef
     }