Hello community,

here is the log from the commit of package babl for openSUSE:Factory checked in 
at 2020-02-14 16:25:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/babl (Old)
 and      /work/SRC/openSUSE:Factory/.babl.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "babl"

Fri Feb 14 16:25:56 2020 rev:50 rq:770194 version:0.1.74

Changes:
--------
--- /work/SRC/openSUSE:Factory/babl/babl.changes        2019-08-28 
16:02:39.066789957 +0200
+++ /work/SRC/openSUSE:Factory/.babl.new.26092/babl.changes     2020-02-14 
16:26:05.483213997 +0100
@@ -1,0 +2,7 @@
+Tue Feb  4 21:09:20 UTC 2020 - Bjørn Lie <[email protected]>
+
+- Update to version 0.1.74:
+  + Build fixes, improved host cpu detection, OSX fixes, clang
+    warning squelches.
+
+-------------------------------------------------------------------

Old:
----
  babl-0.1.72.tar.xz

New:
----
  babl-0.1.74.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ babl.spec ++++++
--- /var/tmp/diff_new_pack.XmlZhi/_old  2020-02-14 16:26:06.975214807 +0100
+++ /var/tmp/diff_new_pack.XmlZhi/_new  2020-02-14 16:26:06.999214820 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package babl
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define debug_package_requires libbabl-0_1-0 = %{version}-%{release}
 
 Name:           babl
-Version:        0.1.72
+Version:        0.1.74
 Release:        0
 Summary:        Dynamic Pixel Format Translation Library
 License:        LGPL-3.0-or-later AND GPL-3.0-or-later

++++++ babl-0.1.72.tar.xz -> babl-0.1.74.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/NEWS new/babl-0.1.74/NEWS
--- old/babl-0.1.72/NEWS        2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/NEWS        2020-01-13 00:26:51.000000000 +0100
@@ -3,7 +3,10 @@
 the news section both in the README and the webpage.
                                                                           -->
 
+2019-08-22 babl-0.1.74                                              </dt><dd>
+Build fixes, improved host cpu detection, OSX fixes, clang warning squelches.
 2019-08-22 babl-0.1.72                                              </dt><dd>
+                                                                    </dd><dt>
 Added handling for grayscale ICC profiles and gobject introspection support.
 Optimizations for many format conversions for u8, u16 and half formats. And
 fixed a crash for NANs in float to u8 conversions.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/babl/git-version.h 
new/babl-0.1.74/babl/git-version.h
--- old/babl-0.1.72/babl/git-version.h  2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/babl/git-version.h  2020-01-13 00:26:51.000000000 +0100
@@ -1,6 +1,6 @@
 #ifndef __GIT_VERSION_H__
 #define __GIT_VERSION_H__
 
-#define BABL_GIT_VERSION "BABL_0_1_70-32-ga03dd58"
+#define BABL_GIT_VERSION "BABL_0_1_74"
 
 #endif /* __GIT_VERSION_H__ */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/babl/meson.build 
new/babl-0.1.74/babl/meson.build
--- old/babl-0.1.72/babl/meson.build    2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/babl/meson.build    2020-01-13 00:26:51.000000000 +0100
@@ -4,6 +4,12 @@
 python = import('python').find_installation()
 
 version_script = 'babl.map'
+version_script_clang = 'babl.map.clang'
+
+babl_gnu_sym_path = join_paths(meson.current_source_dir(), 'test-gnu.map')
+babl_clang_sym_path = join_paths(meson.current_source_dir(), 'test-clang.map')
+
+
 export_symbols = join_paths(meson.source_root(), 'export-symbols')
 version_script_target = custom_target(version_script,
   input : [ export_symbols, ] ,
@@ -24,9 +30,14 @@
 ]
 
 # Linker arguments
-babl_link_args = [
-  '-Wl,--version-script,' + version_script,
-]
+if cc.links('', name: '-Wl,--version-script', args: ['-shared', 
'-Wl,--version-script=' + babl_gnu_sym_path])
+  babl_link_args = ['-Wl,--version-script,' + version_script]
+elif host_machine.system() == 'darwin' and 
cc.has_multi_link_arguments('-Wl,-exported_symbols_list', babl_clang_sym_path)
+  # Clang on Darwin
+  babl_link_args = ['-Wl,-exported_symbols_list',version_script_clang]
+else
+  error('Linker doesn\'t support --version-script or -exported_symbols_list')
+endif
 if platform_win32
   babl_link_args += '-Wl,--no-undefined'
 endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/babl/test-clang.map 
new/babl-0.1.74/babl/test-clang.map
--- old/babl-0.1.72/babl/test-clang.map 1970-01-01 01:00:00.000000000 +0100
+++ new/babl-0.1.74/babl/test-clang.map 2020-01-13 00:26:51.000000000 +0100
@@ -0,0 +1 @@
+babl_*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/babl/test-gnu.map 
new/babl-0.1.74/babl/test-gnu.map
--- old/babl-0.1.72/babl/test-gnu.map   1970-01-01 01:00:00.000000000 +0100
+++ new/babl-0.1.74/babl/test-gnu.map   2020-01-13 00:26:51.000000000 +0100
@@ -0,0 +1,6 @@
+{
+       global:
+               babl_*;
+       local:
+               *;
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/docs/tools/xml_insert.sh 
new/babl-0.1.74/docs/tools/xml_insert.sh
--- old/babl-0.1.72/docs/tools/xml_insert.sh    2019-08-22 22:12:08.000000000 
+0200
+++ new/babl-0.1.74/docs/tools/xml_insert.sh    2020-01-13 00:26:51.000000000 
+0100
@@ -91,7 +91,7 @@
 cp $1 $tmp_file
 
 numlines=`wc -l $tmp_file | $AWK '{print $1;}'`
-splitno=`$AWK "/<\!--$2-->/ { print NR; exit 0; }" $tmp_file`
+splitno=`$AWK "/<!--$2-->/ { print NR; exit 0; }" $tmp_file`
 tailno=`expr $numlines - $splitno`
 
 head -$splitno $tmp_file > $1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/extensions/CIE.c 
new/babl-0.1.74/extensions/CIE.c
--- old/babl-0.1.72/extensions/CIE.c    2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/extensions/CIE.c    2020-01-13 00:26:51.000000000 +0100
@@ -1076,7 +1076,7 @@
       else
         {
           X = (x * Y) / y;
-          Y = Y;
+          //Y = Y;
           Z = ((1 - x - y) * Y) / y;
         }
 
@@ -1130,7 +1130,7 @@
       else
         {
           X = (x * Y) / y;
-          Y = Y;
+          //Y = Y;
           Z = ((1 - x - y) * Y) / y;
         }
 
@@ -1183,7 +1183,7 @@
       else
         {
           X = (x * Y) / y;
-          Y = Y;
+          //Y = Y;
           Z = ((1 - x - y) * Y) / y;
         }
 
@@ -1238,7 +1238,7 @@
       else
         {
           X = ((9.0 * u * Y)/(4.0 * v));
-          Y = Y;
+          //Y = Y;
           Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v));
         }
 
@@ -1291,7 +1291,7 @@
       else
         {
           X = ((9.0 * u * Y)/(4.0 * v));
-          Y = Y;
+          //Y = Y;
           Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v));
         }
 
@@ -1344,7 +1344,7 @@
       else
         {
           X = ((9.0 * u * Y)/(4.0 * v));
-          Y = Y;
+          //Y = Y;
           Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v));
         }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/gen_babl_map.py 
new/babl-0.1.74/gen_babl_map.py
--- old/babl-0.1.72/gen_babl_map.py     2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/gen_babl_map.py     2020-01-13 00:26:51.000000000 +0100
@@ -2,6 +2,7 @@
 
 export_symbols=sys.argv[1]
 version_file=sys.argv[2]
+version_file_clang=sys.argv[2] + ".clang"
 
 with open(export_symbols, 'r') as syms, \
      open(version_file, 'w') as version:
@@ -9,3 +10,8 @@
      for sym in syms:
         version.write("        {};\n".format(sym.strip()))
      version.write("    local:\n        *;\n};\n")
+
+with open(export_symbols, 'r') as syms, \
+     open(version_file_clang, 'w') as version:
+     for sym in syms:
+        version.write("_{}\n".format(sym.strip()))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/meson.build new/babl-0.1.74/meson.build
--- old/babl-0.1.72/meson.build 2019-08-22 22:12:08.000000000 +0200
+++ new/babl-0.1.74/meson.build 2020-01-13 00:26:51.000000000 +0100
@@ -1,11 +1,12 @@
 project('babl', 'c',
   license: 'LGPL3+',
-  version: '0.1.72',
+  version: '0.1.74',
   meson_version: '>=0.50.0',
   default_options: [
     'sysconfdir=/etc',
     'localstatedir=/var',
-    'sharedstatedir=/var/lib'
+    'sharedstatedir=/var/lib',
+    'buildtype=debugoptimized'
   ],
   # https://gitlab.gnome.org/GNOME/babl/issues/
 )
@@ -79,31 +80,24 @@
 platform_osx = false
 platform_win32 = false
 
-host_cpu = host_machine.cpu()
-message('Architecture: ' + host_cpu)
+host_cpu_family = host_machine.cpu_family()
+message('Host machine cpu family: ' + host_cpu_family)
 
-if   host_cpu.startswith('i') and host_cpu.endswith('86')
+host_cpu_family = host_machine.cpu_family()
+if   host_cpu_family == 'x86'
   have_x86 = true
-  conf.set10('ARCH_X86', true, description:
-    'Define to 1 if you are compiling for ix86.')
-elif host_cpu == 'x86_64'
+  conf.set10('ARCH_X86',    true)
+elif host_cpu_family == 'x86_64'
   have_x86 = true
-  conf.set10('ARCH_X86', true, description:
-    'Define to 1 if you are compiling for ix86.')
-  conf.set10('ARCH_X86_64', true, description:
-    'Define to 1 if you are compiling for amd64.')
-elif host_cpu == 'ppc' or host_cpu == 'powerpc'
+  conf.set10('ARCH_X86',    true)
+  conf.set10('ARCH_X86_64', true)
+elif host_cpu_family == 'ppc'
   have_ppc = true
-  conf.set10('ARCH_PPC', true, description:
-    'Define to 1 if you are compiling for PowerPC.')
-elif host_cpu == 'ppc64' or host_cpu == 'powerpc64'
+  conf.set10('ARCH_PPC',    true)
+elif host_cpu_family == 'ppc64'
   have_ppc = true
-  conf.set10('ARCH_PPC', true, description:
-    'Define to 1 if you are compiling for PowerPC.')
-  conf.set10('ARCH_PPC64', true, description:
-    'Define to 1 if you are compiling for PowerPC64.')
-else
-  warning('Unknown host architecture')
+  conf.set10('ARCH_PPC',    true)
+  conf.set10('ARCH_PPC64',  true)
 endif
 
 host_os = host_machine.system()
@@ -124,7 +118,13 @@
 
 path_sep = ( platform_win32 ? ';'     : ':' )
 dirs_sep = ( platform_win32 ? '\\\\'  : '/' )
-lib_ext  = ( platform_win32 ? '.dll'  : '.so' )
+if platform_win32
+  lib_ext = '.dll'
+elif platform_osx
+  lib_ext = '.dylib'
+else
+  lib_ext = '.so'
+endif
 
 conf.set('BABL_PATH_SEPARATOR', '\'' + path_sep + '\'', description:
   'separator between paths in BABL_PATH')
@@ -155,9 +155,11 @@
 # Compiler arguments
 
 common_c_flags = []
-if cc.get_id().startswith('clang') or cc.get_id().startswith('gcc')
+
+if buildtype == 'debugoptimized' or buildtype == 'release'
   common_c_flags += cc.get_supported_arguments(['-Ofast'])
 endif
+common_c_flags += 
cc.get_supported_arguments(['-fno-unsafe-math-optimizations'])
 
 extra_warnings_list = [
   '-Wdeclaration-after-statement',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/tests/cairo_cmyk_hack.c 
new/babl-0.1.74/tests/cairo_cmyk_hack.c
--- old/babl-0.1.72/tests/cairo_cmyk_hack.c     2019-08-22 22:12:08.000000000 
+0200
+++ new/babl-0.1.74/tests/cairo_cmyk_hack.c     2020-01-13 00:26:51.000000000 
+0100
@@ -57,7 +57,7 @@
 
   for (i = 0; i < PIXELS * 5; i++)
     {
-      if (fabs (dest_buf[i] - source_buf[i]) > TOLERANCE)
+      if (fabs (dest_buf[i] - source_buf[i] * 1.0) > TOLERANCE)
         {
           fprintf (stderr, "%i is wrong\n", i);
           OK = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/babl-0.1.72/tests/srgb_to_lab_u8.c 
new/babl-0.1.74/tests/srgb_to_lab_u8.c
--- old/babl-0.1.72/tests/srgb_to_lab_u8.c      2019-08-22 22:12:08.000000000 
+0200
+++ new/babl-0.1.74/tests/srgb_to_lab_u8.c      2020-01-13 00:26:51.000000000 
+0100
@@ -53,7 +53,7 @@
 
   for (i = 0; i < PIXELS * 3; i++)
     {
-      if (fabs (destination_buf[i] - reference_buf[i]) > TOLERANCE)
+      if (fabs (1.0 * destination_buf[i] - reference_buf[i]) > TOLERANCE)
         {
           fprintf (stderr, "%2i (%2i%%3=%i, %2i/3=%i) is %i should be %i",
                     i, i, i % 3, i, i / 3, destination_buf[i], 
reference_buf[i]);


Reply via email to