Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ell for openSUSE:Factory checked in at 2023-06-20 16:40:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ell (Old) and /work/SRC/openSUSE:Factory/.ell.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ell" Tue Jun 20 16:40:08 2023 rev:35 rq:1093755 version:0.57 Changes: -------- --- /work/SRC/openSUSE:Factory/ell/ell.changes 2023-01-26 13:59:15.544412181 +0100 +++ /work/SRC/openSUSE:Factory/.ell.new.15902/ell.changes 2023-06-20 16:40:17.380451968 +0200 @@ -1,0 +2,6 @@ +Mon Jun 19 08:15:13 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.57: + * Fix issue with handling Generic Netlink cancel requests. + +------------------------------------------------------------------- Old: ---- ell-0.56.tar.sign ell-0.56.tar.xz New: ---- ell-0.57.tar.sign ell-0.57.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ell.spec ++++++ --- /var/tmp/diff_new_pack.eX9wkW/_old 2023-06-20 16:40:19.000461704 +0200 +++ /var/tmp/diff_new_pack.eX9wkW/_new 2023-06-20 16:40:19.064462089 +0200 @@ -18,7 +18,7 @@ %define lname libell0 Name: ell -Version: 0.56 +Version: 0.57 Release: 0 Summary: Wireless setup and cryptography library License: LGPL-2.1-or-later ++++++ ell-0.56.tar.xz -> ell-0.57.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ChangeLog new/ell-0.57/ChangeLog --- old/ell-0.56/ChangeLog 2023-01-23 19:26:15.000000000 +0100 +++ new/ell-0.57/ChangeLog 2023-05-24 16:13:48.000000000 +0200 @@ -1,3 +1,6 @@ +ver 0.57: + Fix issue with handling Generic Netlink cancel requests. + ver 0.56: Add support for TLS session resume interfaces. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/Makefile.am new/ell-0.57/Makefile.am --- old/ell-0.56/Makefile.am 2022-11-18 10:08:38.000000000 +0100 +++ new/ell-0.57/Makefile.am 2023-05-24 16:13:48.000000000 +0200 @@ -252,9 +252,11 @@ unit/cert-client \ unit/cert-no-keyid +if TESTS if MAINTAINER_MODE noinst_PROGRAMS += $(unit_tests) $(dbus_tests) $(cert_tests) endif +endif unit_test_unit_LDADD = ell/libell-private.la @@ -348,18 +350,18 @@ unit_test_data_files = unit/settings.test unit/dbus.conf -examples = examples/dbus-service examples/https-client-test \ - examples/https-server-test examples/dbus-client \ - examples/dhcp-client examples/dhcp6-client \ - examples/dhcp-server examples/acd-client \ - examples/netconfig-test +if EXAMPLES +if MAINTAINER_MODE +noinst_PROGRAMS += examples/dbus-service examples/https-client-test \ + examples/https-server-test examples/dbus-client \ + examples/dhcp-client examples/dhcp6-client \ + examples/dhcp-server examples/acd-client \ + examples/netconfig-test if GLIB -examples += examples/glib-eventloop +noinst_PROGRAMS += examples/glib-eventloop +endif endif - -if MAINTAINER_MODE -noinst_PROGRAMS += $(examples) endif examples_dbus_service_LDADD = ell/libell-private.la @@ -374,8 +376,11 @@ examples_acd_client_LDADD = ell/libell-private.la examples_netconfig_test_LDADD = ell/libell-private.la +if TOOLS noinst_PROGRAMS += tools/certchain-verify tools/genl-discover \ tools/genl-watch tools/genl-request tools/gpio +endif + tools_certchain_verify_SOURCES = tools/certchain-verify.c tools_certchain_verify_LDADD = ell/libell-private.la @@ -676,11 +681,13 @@ unit/key-signature.h: unit/key-signature.dat $(AM_V_GEN)xxd -i < $< > $@ +if TESTS if MAINTAINER_MODE BUILT_SOURCES = unit/key-plaintext.h unit/key-ciphertext.h unit/key-signature.h check-local: $(cert_checks) endif +endif clean-local: -rm -f unit/ec-cert*.pem unit/ec-cert-*.csr unit/cert-*.crt \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/Makefile.in new/ell-0.57/Makefile.in --- old/ell-0.56/Makefile.in 2023-01-23 19:27:56.000000000 +0100 +++ new/ell-0.57/Makefile.in 2023-05-24 16:15:32.000000000 +0200 @@ -91,15 +91,22 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -noinst_PROGRAMS = $(am__EXEEXT_6) tools/certchain-verify$(EXEEXT) \ - tools/genl-discover$(EXEEXT) tools/genl-watch$(EXEEXT) \ - tools/genl-request$(EXEEXT) tools/gpio$(EXEEXT) -@MAINTAINER_MODE_TRUE@am__append_1 = $(unit_tests) $(dbus_tests) \ -@MAINTAINER_MODE_TRUE@ $(cert_tests) $(examples) -@GLIB_TRUE@am__append_2 = examples/glib-eventloop -TESTS = $(am__EXEEXT_1) $(am__EXEEXT_7) $(am__EXEEXT_8) -@DBUS_TESTS_TRUE@am__append_3 = $(dbus_tests) -@CERT_TESTS_TRUE@am__append_4 = $(cert_tests) +noinst_PROGRAMS = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \ + $(am__EXEEXT_7) +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@am__append_1 = $(unit_tests) $(dbus_tests) $(cert_tests) +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@am__append_2 = examples/dbus-service examples/https-client-test \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/https-server-test examples/dbus-client \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dhcp-client examples/dhcp6-client \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dhcp-server examples/acd-client \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/netconfig-test + +@EXAMPLES_TRUE@@GLIB_TRUE@@MAINTAINER_MODE_TRUE@am__append_3 = examples/glib-eventloop +@TOOLS_TRUE@am__append_4 = tools/certchain-verify tools/genl-discover \ +@TOOLS_TRUE@ tools/genl-watch tools/genl-request tools/gpio + +TESTS = $(am__EXEEXT_1) $(am__EXEEXT_8) $(am__EXEEXT_9) +@DBUS_TESTS_TRUE@am__append_5 = $(dbus_tests) +@CERT_TESTS_TRUE@am__append_6 = $(cert_tests) subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build-aux/libtool.m4 \ @@ -142,16 +149,23 @@ unit/test-gvariant-message$(EXEEXT) am__EXEEXT_3 = unit/test-pem$(EXEEXT) unit/test-tls$(EXEEXT) \ unit/test-key$(EXEEXT) -@GLIB_TRUE@am__EXEEXT_4 = examples/glib-eventloop$(EXEEXT) -am__EXEEXT_5 = examples/dbus-service$(EXEEXT) \ - examples/https-client-test$(EXEEXT) \ - examples/https-server-test$(EXEEXT) \ - examples/dbus-client$(EXEEXT) examples/dhcp-client$(EXEEXT) \ - examples/dhcp6-client$(EXEEXT) examples/dhcp-server$(EXEEXT) \ - examples/acd-client$(EXEEXT) examples/netconfig-test$(EXEEXT) \ - $(am__EXEEXT_4) -@MAINTAINER_MODE_TRUE@am__EXEEXT_6 = $(am__EXEEXT_1) $(am__EXEEXT_2) \ -@MAINTAINER_MODE_TRUE@ $(am__EXEEXT_3) $(am__EXEEXT_5) +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@am__EXEEXT_4 = $(am__EXEEXT_1) \ +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@ $(am__EXEEXT_2) \ +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@ $(am__EXEEXT_3) +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@am__EXEEXT_5 = examples/dbus-service$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/https-client-test$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/https-server-test$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dbus-client$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dhcp-client$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dhcp6-client$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/dhcp-server$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/acd-client$(EXEEXT) \ +@EXAMPLES_TRUE@@MAINTAINER_MODE_TRUE@ examples/netconfig-test$(EXEEXT) +@EXAMPLES_TRUE@@GLIB_TRUE@@MAINTAINER_MODE_TRUE@am__EXEEXT_6 = examples/glib-eventloop$(EXEEXT) +@TOOLS_TRUE@am__EXEEXT_7 = tools/certchain-verify$(EXEEXT) \ +@TOOLS_TRUE@ tools/genl-discover$(EXEEXT) \ +@TOOLS_TRUE@ tools/genl-watch$(EXEEXT) \ +@TOOLS_TRUE@ tools/genl-request$(EXEEXT) tools/gpio$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ @@ -757,8 +771,8 @@ bases=`echo $$bases` AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' RECHECK_LOGS = $(TEST_LOGS) -@DBUS_TESTS_TRUE@am__EXEEXT_7 = $(am__EXEEXT_2) -@CERT_TESTS_TRUE@am__EXEEXT_8 = $(am__EXEEXT_3) +@DBUS_TESTS_TRUE@am__EXEEXT_8 = $(am__EXEEXT_2) +@CERT_TESTS_TRUE@am__EXEEXT_9 = $(am__EXEEXT_3) TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver @@ -1228,11 +1242,6 @@ unit_test_path_LDADD = ell/libell-private.la unit_test_net_LDADD = ell/libell-private.la unit_test_data_files = unit/settings.test unit/dbus.conf -examples = examples/dbus-service examples/https-client-test \ - examples/https-server-test examples/dbus-client \ - examples/dhcp-client examples/dhcp6-client \ - examples/dhcp-server examples/acd-client \ - examples/netconfig-test $(am__append_2) examples_dbus_service_LDADD = ell/libell-private.la examples_https_client_test_LDADD = ell/libell-private.la examples_https_server_test_LDADD = ell/libell-private.la @@ -1263,7 +1272,7 @@ @OPENSSL_PROVIDER_TRUE@openssl_legacy = -provider legacy -provider default true_redirect_openssl = 2>&1 false_redirect_openssl = 2>/dev/null -@MAINTAINER_MODE_TRUE@BUILT_SOURCES = unit/key-plaintext.h unit/key-ciphertext.h unit/key-signature.h +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@BUILT_SOURCES = unit/key-plaintext.h unit/key-ciphertext.h unit/key-signature.h all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-am @@ -2740,6 +2749,7 @@ $(distcleancheck_listfiles) ; \ exit 1; } >&2 @MAINTAINER_MODE_FALSE@check-local: +@TESTS_FALSE@check-local: check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local check: $(BUILT_SOURCES) @@ -3399,7 +3409,7 @@ unit/key-signature.h: unit/key-signature.dat $(AM_V_GEN)xxd -i < $< > $@ -@MAINTAINER_MODE_TRUE@check-local: $(cert_checks) +@MAINTAINER_MODE_TRUE@@TESTS_TRUE@check-local: $(cert_checks) clean-local: -rm -f unit/ec-cert*.pem unit/ec-cert-*.csr unit/cert-*.crt \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/acinclude.m4 new/ell-0.57/acinclude.m4 --- old/ell-0.56/acinclude.m4 2019-08-04 20:51:36.000000000 +0200 +++ new/ell-0.57/acinclude.m4 2023-05-24 16:13:48.000000000 +0200 @@ -60,10 +60,18 @@ CFLAGS+=" -Wredundant-decls" CFLAGS+=" -Wswitch-enum" CFLAGS+=" -Wtype-limits" - CFLAGS+=" -Wvariadic-macros" CFLAGS+=" -Wformat -Wformat-security" if ( $CC -v 2>/dev/null | grep "gcc version" ); then CFLAGS+=" -Wcast-align" fi + + if (test "$CC" = "clang"); then + CFLAGS+=" -Werror=zero-length-array" + fi + fi + + if (test "$CC" = "clang"); then + CFLAGS+=" -Wno-unknown-warning-option" + CFLAGS+=" -Wno-unknown-pragmas" fi ]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/aclocal.m4 new/ell-0.57/aclocal.m4 --- old/ell-0.56/aclocal.m4 2023-01-23 19:27:49.000000000 +0100 +++ new/ell-0.57/aclocal.m4 2023-05-24 16:15:24.000000000 +0200 @@ -20,7 +20,7 @@ If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant <sc...@netsplit.com>. @@ -108,7 +108,7 @@ dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -dnl only at the first occurence in configure.ac, so if the first place +dnl only at the first occurrence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], @@ -177,14 +177,14 @@ AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - m4_default([$4], [AC_MSG_ERROR( + m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS @@ -196,7 +196,7 @@ ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( + m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -206,10 +206,10 @@ To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl ]) else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) - $3 + $3 fi[]dnl ])dnl PKG_CHECK_MODULES @@ -296,6 +296,74 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR +dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], +dnl [DESCRIPTION], [DEFAULT]) +dnl ------------------------------------------ +dnl +dnl Prepare a "--with-" configure option using the lowercase +dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and +dnl PKG_CHECK_MODULES in a single macro. +AC_DEFUN([PKG_WITH_MODULES], +[ +m4_pushdef([with_arg], m4_tolower([$1])) + +m4_pushdef([description], + [m4_default([$5], [build with ]with_arg[ support])]) + +m4_pushdef([def_arg], [m4_default([$6], [auto])]) +m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) +m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) + +m4_case(def_arg, + [yes],[m4_pushdef([with_without], [--without-]with_arg)], + [m4_pushdef([with_without],[--with-]with_arg)]) + +AC_ARG_WITH(with_arg, + AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, + [AS_TR_SH([with_]with_arg)=def_arg]) + +AS_CASE([$AS_TR_SH([with_]with_arg)], + [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], + [auto],[PKG_CHECK_MODULES([$1],[$2], + [m4_n([def_action_if_found]) $3], + [m4_n([def_action_if_not_found]) $4])]) + +m4_popdef([with_arg]) +m4_popdef([description]) +m4_popdef([def_arg]) + +])dnl PKG_WITH_MODULES + +dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [DESCRIPTION], [DEFAULT]) +dnl ----------------------------------------------- +dnl +dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES +dnl check._[VARIABLE-PREFIX] is exported as make variable. +AC_DEFUN([PKG_HAVE_WITH_MODULES], +[ +PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) + +AM_CONDITIONAL([HAVE_][$1], + [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) +])dnl PKG_HAVE_WITH_MODULES + +dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, +dnl [DESCRIPTION], [DEFAULT]) +dnl ------------------------------------------------------ +dnl +dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after +dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make +dnl and preprocessor variable. +AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], +[ +PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) + +AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], + [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) +])dnl PKG_HAVE_DEFINE_WITH_MODULES + # Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/build-aux/ltmain.sh new/ell-0.57/build-aux/ltmain.sh --- old/ell-0.56/build-aux/ltmain.sh 2022-05-04 10:09:59.000000000 +0200 +++ new/ell-0.57/build-aux/ltmain.sh 2022-11-23 12:34:12.000000000 +0100 @@ -31,7 +31,7 @@ PROGRAM=libtool PACKAGE=libtool -VERSION="2.4.7 Debian-2.4.7-4" +VERSION="2.4.7 Debian-2.4.7-5" package_revision=2.4.7 @@ -2308,7 +2308,7 @@ compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) - version: $progname $scriptversion Debian-2.4.7-4 + version: $progname $scriptversion Debian-2.4.7-5 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/configure new/ell-0.57/configure --- old/ell-0.56/configure 2023-01-23 19:27:51.000000000 +0100 +++ new/ell-0.57/configure 2023-05-24 16:15:26.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for ell 0.56. +# Generated by GNU Autoconf 2.71 for ell 0.57. # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, @@ -618,8 +618,8 @@ # Identity of this package. PACKAGE_NAME='ell' PACKAGE_TARNAME='ell' -PACKAGE_VERSION='0.56' -PACKAGE_STRING='ell 0.56' +PACKAGE_VERSION='0.57' +PACKAGE_STRING='ell 0.57' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -667,6 +667,12 @@ CERT_TESTS_TRUE DBUS_TESTS_FALSE DBUS_TESTS_TRUE +EXAMPLES_FALSE +EXAMPLES_TRUE +TOOLS_FALSE +TOOLS_TRUE +TESTS_FALSE +TESTS_TRUE have_xxd have_openssl GLIB_FALSE @@ -817,6 +823,9 @@ enable_lsan enable_ubsan enable_glib +enable_tests +enable_tools +enable_examples ' ac_precious_vars='build_alias host_alias @@ -1380,7 +1389,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 ell 0.56 to adapt to many kinds of systems. +\`configure' configures ell 0.57 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1451,7 +1460,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of ell 0.56:";; + short | recursive ) echo "Configuration of ell 0.57:";; esac cat <<\_ACEOF @@ -1480,6 +1489,9 @@ --enable-lsan enable linking with leak sanitizer --enable-ubsan enable linking with undefined behavior sanitizer --enable-glib enable ell/glib main loop example + --disable-tests disable unit tests compilation + --disable-tools disable extra tools compilation + --disable-examples disable code examples compilation Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1578,7 +1590,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -ell configure 0.56 +ell configure 0.57 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1839,7 +1851,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by ell $as_me 0.56, which was +It was created by ell $as_me 0.57, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3114,7 +3126,7 @@ # Define the identity of the package. PACKAGE='ell' - VERSION='0.56' + VERSION='0.57' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3387,11 +3399,19 @@ CFLAGS+=" -Wredundant-decls" CFLAGS+=" -Wswitch-enum" CFLAGS+=" -Wtype-limits" - CFLAGS+=" -Wvariadic-macros" CFLAGS+=" -Wformat -Wformat-security" if ( $CC -v 2>/dev/null | grep "gcc version" ); then CFLAGS+=" -Wcast-align" fi + + if (test "$CC" = "clang"); then + CFLAGS+=" -Werror=zero-length-array" + fi + fi + + if (test "$CC" = "clang"); then + CFLAGS+=" -Wno-unknown-warning-option" + CFLAGS+=" -Wno-unknown-pragmas" fi @@ -13465,7 +13485,6 @@ enableval=$enable_glib; enable_glib=${enableval} fi - if (test "${enable_glib}" = "yes"); then @@ -13649,29 +13668,28 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` + GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` else - GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` + GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$GLIB_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$GLIB_PKG_ERRORS" >&5 - as_fn_error $? "GLib >= 2.32 is required" "$LINENO" 5 + as_fn_error $? "GLib >= 2.32 is required" "$LINENO" 5 elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } - as_fn_error $? "GLib >= 2.32 is required" "$LINENO" 5 + as_fn_error $? "GLib >= 2.32 is required" "$LINENO" 5 else - GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS - GLIB_LIBS=$pkg_cv_GLIB_LIBS + GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS + GLIB_LIBS=$pkg_cv_GLIB_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } - dummy=yes + dummy=yes fi fi - if test "${enable_glib}" = "yes"; then GLIB_TRUE= GLIB_FALSE='#' @@ -13770,6 +13788,51 @@ fi +# Check whether --enable-tests was given. +if test ${enable_tests+y} +then : + enableval=$enable_tests; enable_tests=${enableval} +fi + + if test "${enable_tests}" != "no"; then + TESTS_TRUE= + TESTS_FALSE='#' +else + TESTS_TRUE='#' + TESTS_FALSE= +fi + + +# Check whether --enable-tools was given. +if test ${enable_tools+y} +then : + enableval=$enable_tools; enable_tools=${enableval} +fi + + if test "${enable_tools}" != "no"; then + TOOLS_TRUE= + TOOLS_FALSE='#' +else + TOOLS_TRUE='#' + TOOLS_FALSE= +fi + + +# Check whether --enable-examples was given. +if test ${enable_examples+y} +then : + enableval=$enable_examples; enable_examples=${enableval} +fi + + if test "${enable_examples}" != "no"; then + EXAMPLES_TRUE= + EXAMPLES_FALSE='#' +else + EXAMPLES_TRUE='#' + EXAMPLES_FALSE= +fi + + if test "${little_endian}" = "yes"; then DBUS_TESTS_TRUE= DBUS_TESTS_FALSE='#' @@ -13942,6 +14005,18 @@ as_fn_error $? "conditional \"GLIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${TESTS_TRUE}" && test -z "${TESTS_FALSE}"; then + as_fn_error $? "conditional \"TESTS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then + as_fn_error $? "conditional \"TOOLS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then + as_fn_error $? "conditional \"EXAMPLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${DBUS_TESTS_TRUE}" && test -z "${DBUS_TESTS_FALSE}"; then as_fn_error $? "conditional \"DBUS_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -14344,7 +14419,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ell $as_me 0.56, which was +This file was extended by ell $as_me 0.57, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14412,7 +14487,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -ell config.status 0.56 +ell config.status 0.57 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/configure.ac new/ell-0.57/configure.ac --- old/ell-0.56/configure.ac 2023-01-23 19:26:15.000000000 +0100 +++ new/ell-0.57/configure.ac 2023-05-24 16:13:48.000000000 +0200 @@ -1,5 +1,5 @@ AC_PREREQ([2.69]) -AC_INIT([ell],[0.56]) +AC_INIT([ell],[0.57]) AC_CONFIG_HEADERS(config.h) AC_CONFIG_AUX_DIR(build-aux) @@ -114,14 +114,12 @@ AC_ARG_ENABLE(glib, AS_HELP_STRING([--enable-glib], [enable ell/glib main loop example]), [enable_glib=${enableval}]) - if (test "${enable_glib}" = "yes"); then PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32, dummy=yes, AC_MSG_ERROR(GLib >= 2.32 is required)) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) fi - AM_CONDITIONAL(GLIB, test "${enable_glib}" = "yes") if (test "$USE_MAINTAINER_MODE" = "yes"); then @@ -129,6 +127,21 @@ AC_CHECK_PROG(have_xxd, [xxd], [yes], [no]) fi +AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests], + [disable unit tests compilation]), + [enable_tests=${enableval}]) +AM_CONDITIONAL(TESTS, test "${enable_tests}" != "no") + +AC_ARG_ENABLE(tools, AS_HELP_STRING([--disable-tools], + [disable extra tools compilation]), + [enable_tools=${enableval}]) +AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no") + +AC_ARG_ENABLE(examples, AS_HELP_STRING([--disable-examples], + [disable code examples compilation]), + [enable_examples=${enableval}]) +AM_CONDITIONAL(EXAMPLES, test "${enable_examples}" != "no") + AM_CONDITIONAL(DBUS_TESTS, test "${little_endian}" = "yes") AM_CONDITIONAL(CERT_TESTS, test "${have_openssl}" = "yes") AM_CONDITIONAL(OPENSSL_PROVIDER, test "${have_openssl}" = "yes" && diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ell/cert.c new/ell-0.57/ell/cert.c --- old/ell-0.56/ell/cert.c 2022-11-18 10:08:38.000000000 +0100 +++ new/ell-0.57/ell/cert.c 2023-05-24 16:13:48.000000000 +0200 @@ -67,7 +67,7 @@ struct l_cert *issuer; struct l_cert *issued; size_t asn1_len; - uint8_t asn1[0]; + uint8_t asn1[]; }; struct l_certchain { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ell/cipher.c new/ell-0.57/ell/cipher.c --- old/ell-0.56/ell/cipher.c 2021-09-14 21:48:51.000000000 +0200 +++ new/ell-0.57/ell/cipher.c 2023-05-24 16:13:48.000000000 +0200 @@ -338,9 +338,14 @@ iov[0].iov_base = (void *) ad; iov[0].iov_len = ad_len; - iov[1].iov_base = (void *) in; - iov[1].iov_len = in_len; - msg.msg_iovlen = 2; + + msg.msg_iovlen = 1; + + if (in) { + iov[1].iov_base = (void *) in; + iov[1].iov_len = in_len; + msg.msg_iovlen = 2; + } } else { iov[0].iov_base = (void *) in; iov[0].iov_len = in_len; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ell/dhcp-private.h new/ell-0.57/ell/dhcp-private.h --- old/ell-0.56/ell/dhcp-private.h 2022-04-21 16:47:16.000000000 +0200 +++ new/ell-0.57/ell/dhcp-private.h 2023-05-24 16:13:48.000000000 +0200 @@ -87,7 +87,7 @@ uint8_t sname[64]; uint8_t file[128]; __be32 magic; - uint8_t options[0]; + uint8_t options[]; } __attribute__ ((packed)); struct dhcp_message_iter { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ell/genl.c new/ell-0.57/ell/genl.c --- old/ell-0.56/ell/genl.c 2022-09-07 20:21:45.000000000 +0200 +++ new/ell-0.57/ell/genl.c 2023-05-24 16:13:48.000000000 +0200 @@ -1910,11 +1910,23 @@ if (request) goto done; - request = l_queue_remove_if(genl->pending_list, match_request_id, + request = l_queue_find(genl->pending_list, match_request_id, L_UINT_TO_PTR(id)); if (!request) return false; + /* + * A message in-flight still needs to wait for NLMSG_DONE so clean up + * for the caller but keep the request queued until its done. + */ + if (request->destroy) + request->destroy(request->user_data); + + request->callback = NULL; + request->destroy = NULL; + + return true; + done: destroy_request(request); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/ell/settings.c new/ell-0.57/ell/settings.c --- old/ell-0.56/ell/settings.c 2022-02-24 21:20:21.000000000 +0100 +++ new/ell-0.57/ell/settings.c 2023-05-24 16:13:48.000000000 +0200 @@ -61,7 +61,7 @@ char *name; char type[32]; size_t len; - char data[0]; + char data[]; }; struct group_data { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ell-0.56/unit/test-cipher.c new/ell-0.57/unit/test-cipher.c --- old/ell-0.56/unit/test-cipher.c 2021-03-29 14:19:13.000000000 +0200 +++ new/ell-0.57/unit/test-cipher.c 2023-05-24 16:13:48.000000000 +0200 @@ -292,7 +292,6 @@ static void test_aead(const void *data) { - static uint8_t empty[] = { }; struct l_aead_cipher *cipher; char *encbuf; size_t encbuflen; @@ -303,7 +302,7 @@ const struct aead_test_vector *tv = data; size_t ptlen = 0; - uint8_t *pt = empty; + uint8_t *pt = NULL; size_t aadlen = 0; uint8_t *aad = NULL; size_t keylen; @@ -311,7 +310,7 @@ size_t noncelen; uint8_t *nonce = l_util_from_hexstring(tv->nonce, &noncelen); size_t ctlen = 0; - uint8_t *ct = empty; + uint8_t *ct = NULL; size_t taglen; uint8_t *tag = l_util_from_hexstring(tv->tag, &taglen);