Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libxcb for openSUSE:Factory checked 
in at 2024-04-18 22:07:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libxcb (Old)
 and      /work/SRC/openSUSE:Factory/.libxcb.new.26366 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libxcb"

Thu Apr 18 22:07:56 2024 rev:36 rq:1168557 version:1.17.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libxcb/libxcb.changes    2024-03-20 
21:10:15.724947050 +0100
+++ /work/SRC/openSUSE:Factory/.libxcb.new.26366/libxcb.changes 2024-04-18 
22:07:56.615200571 +0200
@@ -1,0 +2,10 @@
+Wed Apr 17 12:49:57 UTC 2024 - Stefan Dirsch <sndir...@suse.com>
+
+- Update to 1.17.0
+  * tests: fix -Werror=discarded-qualifiers errors in check_public.c
+  * xcb_popcount: Use __builtin_popcount if compiler supports it
+  * Add xcb-dri3 dependency to xcb-present.pc.in
+  * configure.ac: Require xcb-proto >= 1.17.0
+  * Always write C code in UTF-8
+
+-------------------------------------------------------------------

Old:
----
  libxcb-1.16.1.tar.xz
  libxcb-1.16.1.tar.xz.sig

New:
----
  libxcb-1.17.0.tar.xz
  libxcb-1.17.0.tar.xz.sig

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

Other differences:
------------------
++++++ libxcb.spec ++++++
--- /var/tmp/diff_new_pack.02iXSw/_old  2024-04-18 22:07:57.675239528 +0200
+++ /var/tmp/diff_new_pack.02iXSw/_new  2024-04-18 22:07:57.679239675 +0200
@@ -23,7 +23,7 @@
 %bcond_without python2
 %endif
 Name:           libxcb
-Version:        1.16.1
+Version:        1.17.0
 Release:        0
 Summary:        X11 core protocol C library
 License:        MIT

++++++ libxcb-1.16.1.tar.xz -> libxcb-1.17.0.tar.xz ++++++
++++ 13302 lines of diff (skipped)
++++    retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/ChangeLog new/libxcb-1.17.0/ChangeLog
--- old/libxcb-1.16.1/ChangeLog 2024-03-02 20:38:37.000000000 +0100
+++ new/libxcb-1.17.0/ChangeLog 2024-04-15 17:09:40.000000000 +0200
@@ -1,3 +1,97 @@
+commit 622152ee42a310876f10602601206954b8d0613e
+Author: Matt Turner <matts...@gmail.com>
+Date:   Fri Apr 12 12:35:55 2024 -0400
+
+    libxcb 1.17.0
+
+commit 4574ab269b082bf412e1b6fb5f09daf8134acd0b
+Author: Matt Turner <matts...@gmail.com>
+Date:   Fri Apr 12 12:35:32 2024 -0400
+
+    configure.ac: Require xcb-proto >= 1.17.0
+    
+    Signed-off-by: Matt Turner <matts...@gmail.com>
+
+commit b78d304531bfe2359baf40db06099d9158d398d4
+Author: Uli Schlachter <psyc...@znc.in>
+Date:   Sun Sep 17 12:43:43 2023 +0200
+
+    Always write C code in UTF-8
+    
+    Some people apparently use non-utf8 locales and this caused errors when
+    xcb-proto started using some "fancy" quote marks. Fix this by always
+    using utf8 encoding.
+    
+    Fixes: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/72
+    Signed-off-by: Uli Schlachter <psyc...@znc.in>
+
+commit 389f22d1cb53e47337e96d9f78a3ef0001e8e588
+Author: Erik Kurzinger <ekurzin...@nvidia.com>
+Date:   Wed Mar 20 07:06:01 2024 -0700
+
+    Add xcb-dri3 dependency to xcb-present.pc.in
+    
+    Present version 1.4 introduces a dependency on DRI3 for the DRI3Syncobj
+    protocol type.
+    
+    Signed-off-by: Erik Kurzinger <ekurzin...@nvidia.com>
+
+commit 86a478032ba93f30adbc0ce96eecd3420fdf7ed1
+Author: Alan Coopersmith <alan.coopersm...@oracle.com>
+Date:   Sat Mar 2 12:01:54 2024 -0800
+
+    xcb_popcount: Use __builtin_popcount if compiler supports it
+    
+    If the compiler knows of a better implementation for counting the number
+    of bits set in a word for the target CPU, let it use that, instead of the
+    classic algorithm optimized for PDP-6.
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com>
+
+commit c268499c305317d2e9a67cc590c9147e11438fc7
+Author: Alan Coopersmith <alan.coopersm...@oracle.com>
+Date:   Sat Mar 2 11:47:47 2024 -0800
+
+    tests: fix -Werror=discarded-qualifiers errors in check_public.c
+    
+    check_public.c: In function ‘parse_display_pass’:
+    check_public.c:32:32: error: passing argument 1 of ‘putenv’ discards 
‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
+       32 |                         putenv("DISPLAY=");
+          |                                ^~~~~~~~~~
+    In file included from check_public.c:4:
+    /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is 
of type ‘const char *’
+      148 | extern int putenv(char *);
+          |                   ^~~~~~
+    check_public.c:57:16: error: passing argument 1 of ‘putenv’ discards 
‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
+       57 |         putenv("DISPLAY=");
+          |                ^~~~~~~~~~
+    /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is 
of type ‘const char *’
+      148 | extern int putenv(char *);
+          |                   ^~~~~~
+    check_public.c: In function ‘parse_display_fail’:
+    check_public.c:73:32: error: passing argument 1 of ‘putenv’ discards 
‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
+       73 |                         putenv("DISPLAY=");
+          |                                ^~~~~~~~~~
+    /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is 
of type ‘const char *’
+      148 | extern int putenv(char *);
+          |                   ^~~~~~
+    check_public.c:99:16: error: passing argument 1 of ‘putenv’ discards 
‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
+       99 |         putenv("DISPLAY=");
+          |                ^~~~~~~~~~
+    /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is 
of type ‘const char *’
+      148 | extern int putenv(char *);
+          |                   ^~~~~~
+    check_public.c: In function ‘public_suite’:
+    check_public.c:244:16: error: passing argument 1 of ‘putenv’ discards 
‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
+      244 |         putenv("DISPLAY=");
+          |                ^~~~~~~~~~
+    /usr/include/stdlib.h:148:19: note: expected ‘char *’ but argument is 
of type ‘const char *’
+      148 | extern int putenv(char *);
+          |                   ^~~~~~
+    cc1: all warnings being treated as errors
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com>
+
 commit c671b9b30aecada4e43cb48e0dee46d19fb5cb9c
 Author: Alan Coopersmith <alan.coopersm...@oracle.com>
 Date:   Sat Mar 2 11:13:37 2024 -0800
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/configure.ac new/libxcb-1.17.0/configure.ac
--- old/libxcb-1.16.1/configure.ac      2024-03-02 20:38:12.000000000 +0100
+++ new/libxcb-1.17.0/configure.ac      2024-04-15 17:09:27.000000000 +0200
@@ -2,7 +2,7 @@
 
 # Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT([libxcb],[1.16.1],
+AC_INIT([libxcb],[1.17.0],
         [https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues],
         [libxcb])
 AC_CONFIG_AUX_DIR([build-aux])
@@ -51,7 +51,7 @@
 AC_SUBST(HTML_CHECK_RESULT)
 
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.16.0)
+PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.17.0)
 NEEDED="xau >= 0.99.2"
 case $host_os in
 linux*|darwin*|solaris*|dragonfly*|freebsd*|netbsd*) ;;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/m4/libtool.m4 new/libxcb-1.17.0/m4/libtool.m4
--- old/libxcb-1.16.1/m4/libtool.m4     2024-03-02 20:38:20.000000000 +0100
+++ new/libxcb-1.17.0/m4/libtool.m4     2024-04-15 17:09:31.000000000 +0200
@@ -1415,10 +1415,10 @@
          x86_64-*linux*)
            LD="${LD-ld} -m elf_x86_64"
            ;;
-         powerpcle-*linux*)
+         powerpcle-*linux*|powerpc64le-*linux*)
            LD="${LD-ld} -m elf64lppc"
            ;;
-         powerpc-*linux*)
+         powerpc-*linux*|powerpc64-*linux*)
            LD="${LD-ld} -m elf64ppc"
            ;;
          s390*-*linux*|s390*-*tpf*)
@@ -2656,11 +2656,11 @@
   version_type=darwin
   need_lib_prefix=no
   need_version=no
-  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
+  library_names_spec='$libname$release$versuffix$shared_ext 
$libname$release$major$shared_ext $libname$shared_ext'
   soname_spec='$libname$release$major$shared_ext'
   shlibpath_overrides_runpath=yes
   shlibpath_var=DYLD_LIBRARY_PATH
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
 m4_if([$1], [],[
   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
@@ -2686,7 +2686,14 @@
     *) objformat=elf ;;
     esac
   fi
-  version_type=freebsd-$objformat
+  # Handle Gentoo/FreeBSD as it was Linux
+  case $host_vendor in
+    gentoo)
+      version_type=linux ;;
+    *)
+      version_type=freebsd-$objformat ;;
+  esac
+
   case $version_type in
     freebsd-elf*)
       library_names_spec='$libname$release$shared_ext$versuffix 
$libname$release$shared_ext$major $libname$shared_ext'
@@ -2698,6 +2705,12 @@
       library_names_spec='$libname$release$shared_ext$versuffix 
$libname$shared_ext$versuffix'
       need_version=yes
       ;;
+    linux)
+      library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+      soname_spec='${libname}${release}${shared_ext}$major'
+      need_lib_prefix=no
+      need_version=no
+      ;;
   esac
   shlibpath_var=LD_LIBRARY_PATH
   case $host_os in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/src/c_client.py new/libxcb-1.17.0/src/c_client.py
--- old/libxcb-1.16.1/src/c_client.py   2024-03-02 20:38:12.000000000 +0100
+++ new/libxcb-1.17.0/src/c_client.py   2024-04-15 17:09:27.000000000 +0200
@@ -331,7 +331,7 @@
     _h(' */')
 
     # Write header file
-    hfile = open('%s.h' % _ns.header, 'w')
+    hfile = open('%s.h' % _ns.header, 'w', encoding='UTF-8')
     for list in _hlines:
         for line in list:
             hfile.write(line)
@@ -339,7 +339,7 @@
     hfile.close()
 
     # Write source file
-    cfile = open('%s.c' % _ns.header, 'w')
+    cfile = open('%s.c' % _ns.header, 'w', encoding='UTF-8')
     for list in _clines:
         for line in list:
             cfile.write(line)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/src/config.h.in new/libxcb-1.17.0/src/config.h.in
--- old/libxcb-1.16.1/src/config.h.in   2024-03-02 20:38:28.000000000 +0100
+++ new/libxcb-1.17.0/src/config.h.in   2024-04-15 17:09:34.000000000 +0200
@@ -18,10 +18,10 @@
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
-/* Define to 1 if you have the 'is_system_labeled' function. */
+/* Define to 1 if you have the `is_system_labeled' function. */
 #undef HAVE_IS_SYSTEM_LABELED
 
-/* Define to 1 if you have the 'ws2_32' library (-lws2_32). */
+/* Define to 1 if you have the `ws2_32' library (-lws2_32). */
 #undef HAVE_LIBWS2_32
 
 /* Define to 1 if you have the <minix/config.h> header file. */
@@ -99,7 +99,7 @@
 /* Patch version of this package */
 #undef PACKAGE_VERSION_PATCHLEVEL
 
-/* Define to 1 if all of the C89 standard headers exist (not just the ones
+/* Define to 1 if all of the C90 standard headers exist (not just the ones
    required in a freestanding environment). This macro is provided for
    backward compatibility; new code need not use it. */
 #undef STDC_HEADERS
@@ -107,7 +107,7 @@
 /* poll() function is available */
 #undef USE_POLL
 
-/* Enable extensions on AIX, Interix, z/OS.  */
+/* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
@@ -168,15 +168,11 @@
 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
 # undef __STDC_WANT_IEC_60559_DFP_EXT__
 #endif
-/* Enable extensions specified by C23 Annex F.  */
-#ifndef __STDC_WANT_IEC_60559_EXT__
-# undef __STDC_WANT_IEC_60559_EXT__
-#endif
 /* Enable extensions specified by ISO/IEC TS 18661-4:2015.  */
 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
 #endif
-/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015.  */
+/* Enable extensions specified by ISO/IEC TS 18661-3:2015.  */
 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
 #endif
@@ -208,14 +204,8 @@
 /* Number of bits in a file offset, on hosts where this is settable. */
 #undef _FILE_OFFSET_BITS
 
-/* Define to 1 on platforms where this makes off_t a 64-bit type. */
+/* Define for large files, on AIX-style hosts. */
 #undef _LARGE_FILES
 
-/* Number of bits in time_t, on hosts where this is settable. */
-#undef _TIME_BITS
-
 /* Defined if needed to expose struct msghdr.msg_control */
 #undef _XOPEN_SOURCE
-
-/* Define to 1 on platforms where this makes time_t a 64-bit type. */
-#undef __MINGW_USE_VC2005_COMPAT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/src/xcb_util.c new/libxcb-1.17.0/src/xcb_util.c
--- old/libxcb-1.16.1/src/xcb_util.c    2024-03-02 20:38:12.000000000 +0100
+++ new/libxcb-1.17.0/src/xcb_util.c    2024-04-15 17:09:27.000000000 +0200
@@ -62,12 +62,25 @@
 
 #include <sys/stat.h>
 
+#ifndef __has_builtin
+# define  __has_builtin(x) 0
+#endif
+
 int xcb_popcount(uint32_t mask)
 {
+#if __has_builtin(__builtin_popcount)
+    return __builtin_popcount(mask);
+#else
+    /*
+     * Count the number of bits set to 1 in a 32-bit word.
+     * Algorithm from MIT AI Lab Memo 239: "HAKMEM", ITEM 169.
+     * https://dspace.mit.edu/handle/1721.1/6086
+     */
     uint32_t y;
     y = (mask >> 1) & 033333333333;
     y = mask - y - ((y >> 1) & 033333333333);
     return ((y + (y >> 3)) & 030707070707) % 077;
+#endif
 }
 
 int xcb_sumof(uint8_t *list, int len)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/tests/check_public.c new/libxcb-1.17.0/tests/check_public.c
--- old/libxcb-1.16.1/tests/check_public.c      2024-03-02 20:38:12.000000000 
+0100
+++ new/libxcb-1.17.0/tests/check_public.c      2024-04-15 17:09:27.000000000 
+0200
@@ -16,6 +16,10 @@
 } test_type_t;
 static const char *const test_string[] = { "", "via $DISPLAY " };
 
+/* putenv(3) takes a pointer to a writable string that it adds directly
+   to the environment, so it must be in persistent memory, not on the stack */
+static char display_env[] = "DISPLAY=";
+
 static void parse_display_pass(const char *name, const char *host, const int 
display, const int screen)
 {
        int success;
@@ -29,7 +33,7 @@
                if(test_type == TEST_ARGUMENT)
                {
                        argument = name;
-                       putenv("DISPLAY=");
+                       putenv(display_env);
                }
                else if(test_type == TEST_ENVIRONMENT)
                {
@@ -54,7 +58,7 @@
                ck_assert_msg(strcmp(host, got_host) == 0, "screenless parse 
%sproduced unexpected hostname '%s' for '%s': expected '%s'", 
test_string[test_type], got_host, name, host);
                ck_assert_msg(display == got_display, "screenless parse 
%sproduced unexpected display '%d' for '%s': expected '%d'", 
test_string[test_type], got_display, name, display);
        }
-       putenv("DISPLAY=");
+       putenv(display_env);
 }
 
 static void parse_display_fail(const char *name)
@@ -70,7 +74,7 @@
                if(test_type == TEST_ARGUMENT)
                {
                        argument = name;
-                       putenv("DISPLAY=");
+                       putenv(display_env);
                }
                else if(test_type == TEST_ENVIRONMENT)
                {
@@ -96,7 +100,7 @@
                ck_assert_msg(got_host == (char *) -1, "host changed on parse 
failure %sfor '%s': got %p", test_string[test_type], name, got_host);
                ck_assert_msg(got_display == -42, "display changed on parse 
failure %sfor '%s': got %d", test_string[test_type], name, got_display);
        }
-       putenv("DISPLAY=");
+       putenv(display_env);
 }
 
 START_TEST(parse_display_unix)
@@ -241,7 +245,7 @@
 Suite *public_suite(void)
 {
        Suite *s = suite_create("Public API");
-       putenv("DISPLAY=");
+       putenv(display_env);
        suite_add_test(s, parse_display_unix, "xcb_parse_display unix");
        suite_add_test(s, parse_display_ip, "xcb_parse_display ip");
        suite_add_test(s, parse_display_ipv4, "xcb_parse_display ipv4");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/libxcb-1.16.1/xcb-present.pc.in new/libxcb-1.17.0/xcb-present.pc.in
--- old/libxcb-1.16.1/xcb-present.pc.in 2024-03-02 20:38:12.000000000 +0100
+++ new/libxcb-1.17.0/xcb-present.pc.in 2024-04-15 17:09:27.000000000 +0200
@@ -6,6 +6,6 @@
 Name: XCB Present
 Description: XCB Present Extension
 Version: @PACKAGE_VERSION@
-Requires.private: xcb xcb-randr xcb-xfixes xcb-sync
+Requires.private: xcb xcb-randr xcb-xfixes xcb-sync xcb-dri3
 Libs: -L${libdir} -lxcb-present
 Cflags: -I${includedir}

++++++ libxcb.keyring ++++++
++++ 645 lines (skipped)
++++ between libxcb.keyring
++++ and /work/SRC/openSUSE:Factory/.libxcb.new.26366/libxcb.keyring

Reply via email to