Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libHX for openSUSE:Factory checked in at 2026-03-26 21:07:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libHX (Old) and /work/SRC/openSUSE:Factory/.libHX.new.8177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libHX" Thu Mar 26 21:07:37 2026 rev:87 rq:1342423 version:5.4 Changes: -------- --- /work/SRC/openSUSE:Factory/libHX/libHX.changes 2026-02-01 22:01:50.435532812 +0100 +++ /work/SRC/openSUSE:Factory/.libHX.new.8177/libHX.changes 2026-03-27 06:43:10.002274127 +0100 @@ -1,0 +2,7 @@ +Wed Mar 25 09:51:18 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 5.4 + * Resolved some compile warnings/errors with newer + compilers, libcs, and -std modes. + +------------------------------------------------------------------- Old: ---- libHX-5.3.tar.asc libHX-5.3.tar.zst New: ---- libHX-5.4.tar.asc libHX-5.4.tar.zst ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libHX.spec ++++++ --- /var/tmp/diff_new_pack.XuP5Qq/_old 2026-03-27 06:43:10.550296769 +0100 +++ /var/tmp/diff_new_pack.XuP5Qq/_new 2026-03-27 06:43:10.554296934 +0100 @@ -18,7 +18,7 @@ Name: libHX %define lname libHX43 -Version: 5.3 +Version: 5.4 Release: 0 Summary: Collection of routines for C and C++ programming License: LGPL-2.1-or-later ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.XuP5Qq/_old 2026-03-27 06:43:10.586298257 +0100 +++ /var/tmp/diff_new_pack.XuP5Qq/_new 2026-03-27 06:43:10.590298421 +0100 @@ -1,4 +1,4 @@ -mtime: 1769712899 -commit: badff71bc18875f34d89596e1f4acf1900a02bb0cda72412d462310be2ec8e99 +mtime: 1774432284 +commit: 49089ab82f34a7968dc026517c60f8d5cc71cb31ed4ef5e5bc5e85077776379b url: https://src.opensuse.org/jengelh/libHX ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-03-25 10:51:38.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ libHX-5.3.tar.zst -> libHX-5.4.tar.zst ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/Makefile.in new/libHX-5.4/Makefile.in --- old/libHX-5.3/Makefile.in 2026-01-29 13:15:38.383793451 +0100 +++ new/libHX-5.4/Makefile.in 2026-03-25 10:46:04.537456935 +0100 @@ -199,7 +199,8 @@ $(top_srcdir)/build-aux/ltmain.sh \ $(top_srcdir)/build-aux/missing COPYING build-aux/ar-lib \ build-aux/compile build-aux/config.guess build-aux/config.sub \ - build-aux/install-sh build-aux/ltmain.sh build-aux/missing + build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \ + build-aux/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/configure new/libHX-5.4/configure --- old/libHX-5.3/configure 2026-01-29 13:15:37.990053066 +0100 +++ new/libHX-5.4/configure 2026-03-25 10:46:04.354184297 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libHX 5.3. +# Generated by GNU Autoconf 2.72 for libHX 5.4. # # # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, @@ -611,8 +611,8 @@ # Identity of this package. PACKAGE_NAME='libHX' PACKAGE_TARNAME='libhx' -PACKAGE_VERSION='5.3' -PACKAGE_STRING='libHX 5.3' +PACKAGE_VERSION='5.4' +PACKAGE_STRING='libHX 5.4' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1374,7 +1374,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -'configure' configures libHX 5.3 to adapt to many kinds of systems. +'configure' configures libHX 5.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1445,7 +1445,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libHX 5.3:";; + short | recursive ) echo "Configuration of libHX 5.4:";; esac cat <<\_ACEOF @@ -1560,7 +1560,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libHX configure 5.3 +libHX configure 5.4 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -2213,7 +2213,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libHX $as_me 5.3, which was +It was created by libHX $as_me 5.4, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -3910,7 +3910,7 @@ # Define the identity of the package. PACKAGE='libhx' - VERSION='5.3' + VERSION='5.4' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -19145,6 +19145,12 @@ printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" +if test "x$ac_cv_header_strings_h" = xyes +then : + printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h + +fi ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" if test "x$ac_cv_header_sys_resource_h" = xyes then : @@ -20393,7 +20399,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libHX $as_me 5.3, which was +This file was extended by libHX $as_me 5.4, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -20461,7 +20467,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libHX config.status 5.3 +libHX config.status 5.4 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/configure.ac new/libHX-5.4/configure.ac --- old/libHX-5.3/configure.ac 2026-01-26 20:33:28.886918202 +0100 +++ new/libHX-5.4/configure.ac 2026-03-25 10:45:22.032287251 +0100 @@ -1,4 +1,4 @@ -AC_INIT([libHX], [5.3]) +AC_INIT([libHX], [5.4]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -62,7 +62,7 @@ CHECK_GCC_FVISIBILITY CHECK_LD_SYMVERS LIBS_system="$LIBS" -AC_CHECK_HEADERS([dlfcn.h sys/resource.h sys/un.h]) +AC_CHECK_HEADERS([dlfcn.h strings.h sys/resource.h sys/un.h]) AM_CONDITIONAL([HAVE_DLFCN_H], [test "$ac_cv_header_dlfcn_h" = "yes"]) AC_SEARCH_LIBS([dlopen], [dl], [libdl_LIBS="$LIBS"; LIBS="$LIBS_system"]) AC_SUBST([libdl_LIBS]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/doc/changelog.rst new/libHX-5.4/doc/changelog.rst --- old/libHX-5.3/doc/changelog.rst 2026-01-29 13:15:17.812153285 +0100 +++ new/libHX-5.4/doc/changelog.rst 2026-03-25 10:45:54.623208201 +0100 @@ -1,3 +1,10 @@ +v5.4 (2026-03-25) +================= + +* Resolved some compile warnings/errors with newer + compilers, libcs, and -std modes. + + v5.3 (2026-01-29) ================= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/include/libHX/option.h new/libHX-5.4/include/libHX/option.h --- old/libHX-5.3/include/libHX/option.h 2025-10-19 15:06:56.147293516 +0200 +++ new/libHX-5.4/include/libHX/option.h 2026-03-24 22:41:06.947498536 +0100 @@ -8,6 +8,7 @@ # include <stddef.h> # include <stdio.h> #endif +#include <sys/types.h> #include <libHX/cast.h> #ifdef __cplusplus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/format.c new/libHX-5.4/src/format.c --- old/libHX-5.3/src/format.c 2026-01-05 14:50:29.082100368 +0100 +++ new/libHX-5.4/src/format.c 2026-03-25 09:39:24.046691426 +0100 @@ -153,9 +153,9 @@ static __inline__ char *HX_strchr0(const char *s, char c) { - char *ret = strchr(s, c); + const char *ret = strchr(s, c); if (ret != NULL) - return ret; + return const_cast1(char *, ret); return const_cast1(char *, s) + strlen(s); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/opt.c new/libHX-5.4/src/opt.c --- old/libHX-5.3/src/opt.c 2025-10-19 15:14:37.346683105 +0200 +++ new/libHX-5.4/src/opt.c 2026-03-25 09:39:24.047691420 +0100 @@ -7,6 +7,9 @@ * General Public License as published by the Free Software Foundation; * either version 2.1 or (at your option) any later version. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include <errno.h> #include <limits.h> #include <stdbool.h> @@ -15,6 +18,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif #include <libHX/ctype_helper.h> #include <libHX/deque.h> #include <libHX/map.h> @@ -561,13 +567,13 @@ return -EINVAL; } *value = '\0'; - value = strchr(cur, '='); - if (value == nullptr) { + const char *cvalue = strchr(cur, '='); + if (cvalue == nullptr) { /* Cannot happen either */ free(key); return -EINVAL; } - ++value; + ++cvalue; par->cbi.current = lookup_long_pfx(par->cbi.table, key + 2); if (par->cbi.current == &HXopt_ambig_prefix) { ret = HX_getopt_error(HXOPT_E_AMBIG_PREFIX, key, par->flags); @@ -591,7 +597,7 @@ free(key); par->cbi.flags = HXOPTCB_BY_LONG; - par->cbi.data = value; + par->cbi.data = const_cast(char *, cvalue); /* * Not possible to use %HXOPT_I_ASSIGN due to transience of @key. Thus * manually call do_assign now rather than in the superordinate diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/proc.c new/libHX-5.4/src/proc.c --- old/libHX-5.3/src/proc.c 2023-11-27 12:25:03.780584316 +0100 +++ new/libHX-5.4/src/proc.c 2026-03-24 22:41:06.947498536 +0100 @@ -1,6 +1,6 @@ /* * Process management - * Copyright Jan Engelhardt, 2008-2009 + * Copyright Jan Engelhardt, 2026 * * This file is part of libHX. libHX is free software; you can * redistribute it and/or modify it under the terms of the GNU Lesser @@ -10,6 +10,10 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#define _DEFAULT_SOURCE +#ifdef __CYGWIN__ +# define _BSD_SOURCE /* initgroups */ +#endif #include "internal.h" #include <errno.h> #include <limits.h> @@ -21,7 +25,6 @@ #ifdef _WIN32 # include <winsock2.h> #endif - #if defined(HAVE_INITGROUPS) && defined(HAVE_SETGID) #include <grp.h> #include <pwd.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/socket.c new/libHX-5.4/src/socket.c --- old/libHX-5.3/src/socket.c 2023-12-04 14:52:39.503031083 +0100 +++ new/libHX-5.4/src/socket.c 2026-03-25 09:45:04.097652498 +0100 @@ -1,6 +1,6 @@ /* * Socket-related functions - * Copyright Jan Engelhardt, 2021 + * Copyright Jan Engelhardt, 2026 * * This file is part of libHX. libHX is free software; you can * redistribute it and/or modify it under the terms of the GNU Lesser @@ -10,6 +10,10 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#define _POSIX_C_SOURCE 999900L /* cygwin-need:freeaddrinfo */ +#ifdef __OpenBSD__ +# define _BSD_SOURCE +#endif #include <errno.h> #include <limits.h> #include <stdlib.h> @@ -262,11 +266,11 @@ struct sockaddr_un u; if (strlen(path) >= sizeof(u.sun_path)) return -EINVAL; - u.sun_family = AF_LOCAL; + u.sun_family = AF_UNIX; strcpy(u.sun_path, path); struct addrinfo r = {}; r.ai_flags = AI_PASSIVE; - r.ai_family = AF_LOCAL; + r.ai_family = AF_UNIX; r.ai_socktype = SOCK_STREAM; r.ai_addrlen = sizeof(u) - sizeof(u.sun_path) + strlen(u.sun_path) + 1; r.ai_addr = reinterpret_cast(struct sockaddr *, &u); @@ -289,7 +293,7 @@ if (!S_ISSOCK(sb.st_mode)) return -ENOTSOCK; - int testfd = socket(AF_LOCAL, SOCK_STREAM | PLATFORM_SKFLAGS, 0); + int testfd = socket(AF_UNIX, SOCK_STREAM | PLATFORM_SKFLAGS, 0); if (testfd < 0) return -errno; ret = connect(testfd, r.ai_addr, r.ai_addrlen); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/string.c new/libHX-5.4/src/string.c --- old/libHX-5.3/src/string.c 2025-10-19 15:06:56.148293512 +0200 +++ new/libHX-5.4/src/string.c 2026-03-25 09:39:24.047691420 +0100 @@ -7,6 +7,9 @@ * General Public License as published by the Free Software Foundation; * either version 2.1 or (at your option) any later version. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include <errno.h> #include <limits.h> #include <math.h> /* nextafter */ @@ -16,6 +19,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif #include <libHX/ctype_helper.h> #include <libHX/string.h> #include "internal.h" @@ -176,7 +182,6 @@ const char *space = vspace, *point = vpoint; const char *head, *end; size_t tailsize; - char *tail; if (pointsize == 0) return const_cast1(void *, vspace); @@ -185,9 +190,9 @@ /* Do a BM-style trailer search and reduce calls to memcmp */ head = space + (pointsize - 1); - tail = memchr(head, point[pointsize-1], spacesize - (pointsize - 1)); + const char *tail = memchr(head, point[pointsize-1], spacesize - (pointsize - 1)); if (tail == NULL || pointsize == 1) - return tail; + return const_cast1(char *, tail); end = space + spacesize; do { head = tail - pointsize + 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/tc-netio.c new/libHX-5.4/src/tc-netio.c --- old/libHX-5.3/src/tc-netio.c 2023-11-02 09:24:57.710147559 +0100 +++ new/libHX-5.4/src/tc-netio.c 2026-03-24 22:41:13.773456268 +0100 @@ -1,5 +1,6 @@ // SPDX-License-Identifier: MIT #define WIN32_LEAN_AND_MEAN 1 +#define _POSIX_C_SOURCE 999900L /* cygwin-need:freeaddrinfo */ #ifdef __cplusplus # include <cstdlib> # include <cstdio> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/tc-proc.c new/libHX-5.4/src/tc-proc.c --- old/libHX-5.3/src/tc-proc.c 2023-11-01 13:22:04.468034927 +0100 +++ new/libHX-5.4/src/tc-proc.c 2026-03-24 22:41:06.948498530 +0100 @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +#define _POSIX_C_SOURCE 999900L /* cygwin:fdopen */ #ifdef __cplusplus # include <cerrno> # include <cstdio> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/tc-socket.c new/libHX-5.4/src/tc-socket.c --- old/libHX-5.3/src/tc-socket.c 2024-01-16 19:13:21.757257796 +0100 +++ new/libHX-5.4/src/tc-socket.c 2026-03-24 22:41:06.948498530 +0100 @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT +#define _POSIX_C_SOURCE 999900L #include <errno.h> #include <stdio.h> #include <stdlib.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-5.3/src/tc-string.c new/libHX-5.4/src/tc-string.c --- old/libHX-5.3/src/tc-string.c 2025-10-19 15:06:56.148293512 +0200 +++ new/libHX-5.4/src/tc-string.c 2026-03-24 22:41:06.948498530 +0100 @@ -1,5 +1,6 @@ /* long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line f or testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing */ // SPDX-License-Identifier: MIT +#define _POSIX_C_SOURCE 909900L #ifndef __cplusplus # include <assert.h> # include <errno.h>
