summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/SECURITY.md20
-rw-r--r--meta-networking/classes/waf-samba.bbclass2
-rwxr-xr-xmeta-networking/conf/include/non-repro-meta-networking.inc57
-rw-r--r--meta-networking/conf/include/ptest-packagelists-meta-networking.inc22
-rw-r--r--meta-networking/conf/layer.conf43
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_2.2.1.bb (renamed from meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_1.3.2.bb)7
-rw-r--r--meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb10
-rw-r--r--meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb1
-rw-r--r--meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb16
-rw-r--r--meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb1
-rw-r--r--meta-networking/recipes-connectivity/blueman/blueman/0001-Search-for-cython3.patch24
-rw-r--r--meta-networking/recipes-connectivity/blueman/blueman/0001-meson-add-pythoninstalldir-option.patch50
-rw-r--r--meta-networking/recipes-connectivity/blueman/blueman/0002-fix-fail-to-enable-bluetooth.patch72
-rw-r--r--meta-networking/recipes-connectivity/blueman/blueman_2.4.4.bb (renamed from meta-networking/recipes-connectivity/blueman/blueman_2.3.5.bb)46
-rw-r--r--meta-networking/recipes-connectivity/bluepy/bluepy_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/bluez-tools/bluez-tools_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb1
-rw-r--r--meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb15
-rw-r--r--meta-networking/recipes-connectivity/daq/daq_2.0.7.bb4
-rw-r--r--meta-networking/recipes-connectivity/daq/libdaq_3.0.19.bb (renamed from meta-networking/recipes-connectivity/daq/libdaq_3.0.14.bb)4
-rw-r--r--meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb2
-rw-r--r--meta-networking/recipes-connectivity/dibbler/dibbler_git.bb5
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch2
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch6
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch6
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch6
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch8
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch93
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch5
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch48
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch2
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch8
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch5
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch4
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch4
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch8
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch2
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch6
-rw-r--r--meta-networking/recipes-connectivity/freeradius/files/0017-Add-acinclude.m4-to-include-required-macros.patch4
-rw-r--r--meta-networking/recipes-connectivity/freeradius/freeradius_3.2.7.bb (renamed from meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb)3
-rw-r--r--meta-networking/recipes-connectivity/lftp/lftp_4.9.2.bb3
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet_1.18.0.bb1
-rw-r--r--meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb1
-rw-r--r--meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb (renamed from meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.8.bb)3
-rw-r--r--meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.3.1.bb (renamed from meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.0.bb)14
-rw-r--r--meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb22
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/1571.patch22
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2894.patch25
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb (renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb)4
-rw-r--r--meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb1
-rw-r--r--meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb3
-rw-r--r--meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb2
-rw-r--r--meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb2
-rw-r--r--meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.12.0.bb (renamed from meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.11.0.bb)4
-rw-r--r--meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-libnm-systemd-core-Disable-sd_dhcp6_client_set_duid_.patch65
-rw-r--r--meta-networking/recipes-connectivity/networkmanager/networkmanager_1.52.0.bb (renamed from meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb)25
-rw-r--r--meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb1
-rw-r--r--meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.23.1.bb (renamed from meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.22.1.bb)3
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch27
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch26
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb17
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/openthread/wpantund_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/rdate/rdate_1.5.bb2
-rw-r--r--meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb8
-rw-r--r--meta-networking/recipes-connectivity/relayd/relayd_git.bb1
-rw-r--r--meta-networking/recipes-connectivity/restinio/restinio_0.6.13.bb2
-rw-r--r--meta-networking/recipes-connectivity/samba/samba/9aa5c43315d83c19514251a11c4fba5a137f2821.patch70
-rw-r--r--meta-networking/recipes-connectivity/samba/samba_4.19.8.bb (renamed from meta-networking/recipes-connectivity/samba/samba_4.19.7.bb)25
-rw-r--r--meta-networking/recipes-connectivity/sethdlc/sethdlc_1.18.bb4
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/0001-Fix-build-with-gcc-15.patch110
-rw-r--r--meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch79
-rw-r--r--meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch1
-rw-r--r--meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb (renamed from meta-networking/recipes-connectivity/snort/snort3_3.1.84.0.bb)7
-rw-r--r--meta-networking/recipes-connectivity/snort/snort_2.9.20.bb1
-rw-r--r--meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb3
-rw-r--r--meta-networking/recipes-connectivity/vlan/vlan_1.9.bb2
-rw-r--r--meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb1
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/files/0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch791
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/files/run-ptest26
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.0.bb22
-rw-r--r--meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb49
-rw-r--r--meta-networking/recipes-core/images/meta-networking-image-ptest-all.bb2
-rw-r--r--meta-networking/recipes-core/images/meta-networking-image-ptest.bb1
-rw-r--r--meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb1
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-Bug-fix-for-pid_t-not-found-on-musl.patch30
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch50
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-if-undefined.patch115
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch31
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch56
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch29
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0001-no-bash.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/no-bash.patch)13
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch60
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch106
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0002-using-pkg-config-to-detect-krb5.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch)30
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0003-force-STRIP-to-emtpy.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch)16
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0004-autofs.init.in-remove-bashism.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch)6
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0005-fix-the-YACC-rule-to-fix-a-building-failure.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch)67
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0006-Do-not-hardcode-path-for-pkg.m4.patch31
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0007-Avoid-conflicts-between-sys-mount.h-and-linux-mount..patch (renamed from meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch)17
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0008-include-libgen.h-for-basename.patch (renamed from meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch)11
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch35
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch64
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch25
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch26
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/cross.patch55
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch47
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch37
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb (renamed from meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb)43
-rw-r--r--meta-networking/recipes-daemons/ippool/ippool_1.3.bb9
-rw-r--r--meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.11.bb (renamed from meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.10.bb)3
-rw-r--r--meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch27
-rw-r--r--meta-networking/recipes-daemons/keepalived/keepalived/0001-vrrp-Don-t-include-linux-if_ether.h-if-not-needed.patch34
-rw-r--r--meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb (renamed from meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb)14
-rw-r--r--meta-networking/recipes-daemons/lldpd/lldpd_1.0.19.bb (renamed from meta-networking/recipes-daemons/lldpd/lldpd_1.0.18.bb)2
-rw-r--r--meta-networking/recipes-daemons/ncftp/ncftp/0001-ncftp-3.2.7-fix-gcc14.patch20
-rw-r--r--meta-networking/recipes-daemons/ncftp/ncftp/0002-ncftp-3.2.7-fix-clang.patch73
-rw-r--r--meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb9
-rw-r--r--meta-networking/recipes-daemons/networkd-dispatcher/networkd-dispatcher_2.2.4.bb1
-rw-r--r--meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb1
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch20
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch32
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch20
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch12
-rw-r--r--meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch10
-rw-r--r--meta-networking/recipes-daemons/postfix/files/main.cf2
-rw-r--r--meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb (renamed from meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb)31
-rw-r--r--meta-networking/recipes-daemons/proftpd/files/build_fixup.patch20
-rw-r--r--meta-networking/recipes-daemons/proftpd/files/contrib.patch8
-rw-r--r--meta-networking/recipes-daemons/proftpd/proftpd_1.3.9.bb (renamed from meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb)23
-rw-r--r--meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb2
-rw-r--r--meta-networking/recipes-daemons/pure-ftpd/pure-ftpd/nostrip.patch7
-rw-r--r--meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.52.bb (renamed from meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.51.bb)10
-rw-r--r--meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch32
-rw-r--r--[-rwxr-xr-x]meta-networking/recipes-daemons/radvd/files/radvd.init0
-rw-r--r--meta-networking/recipes-daemons/radvd/files/radvd.service7
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd_2.20.bb (renamed from meta-networking/recipes-daemons/radvd/radvd_2.19.bb)48
-rw-r--r--meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch55
-rw-r--r--meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch2
-rw-r--r--meta-networking/recipes-daemons/squid/squid_6.12.bb (renamed from meta-networking/recipes-daemons/squid/squid_6.9.bb)12
-rw-r--r--meta-networking/recipes-daemons/vblade/vblade_25.bb3
-rw-r--r--meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb4
-rw-r--r--meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch45
-rw-r--r--meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb (renamed from meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb)17
-rw-r--r--meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb (renamed from meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb)5
-rw-r--r--meta-networking/recipes-extended/corosync/corosync/CVE-2025-30472.patch69
-rw-r--r--meta-networking/recipes-extended/corosync/corosync_3.1.9.bb (renamed from meta-networking/recipes-extended/corosync/corosync_3.1.6.bb)17
-rw-r--r--meta-networking/recipes-extended/dlm/dlm_4.2.0.bb3
-rw-r--r--meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb1
-rw-r--r--meta-networking/recipes-extended/tgt/tgt_1.0.90.bb1
-rw-r--r--meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.2.bb1
-rw-r--r--meta-networking/recipes-filter/ebtables/ebtables-2.0.11/ebtables-legacy-save19
-rw-r--r--meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb2
-rw-r--r--meta-networking/recipes-filter/ipset/ipset_7.22.bb (renamed from meta-networking/recipes-filter/ipset/ipset_7.21.bb)2
-rw-r--r--meta-networking/recipes-filter/libnetfilter/files/0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch61
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-acct_1.0.3.bb2
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.1.0.bb (renamed from meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.0.9.bb)8
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-cthelper_1.0.1.bb2
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-cttimeout_1.0.1.bb2
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-log_1.0.2.bb1
-rw-r--r--meta-networking/recipes-filter/libnetfilter/libnetfilter-queue_1.0.5.bb1
-rw-r--r--meta-networking/recipes-filter/libnftnl/libnftnl_1.2.9.bb (renamed from meta-networking/recipes-filter/libnftnl/libnftnl_1.2.6.bb)5
-rw-r--r--meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch53
-rw-r--r--meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch46
-rw-r--r--meta-networking/recipes-filter/nftables/nftables/run-ptest8
-rw-r--r--meta-networking/recipes-filter/nftables/nftables_1.1.3.bb (renamed from meta-networking/recipes-filter/nftables/nftables_1.0.9.bb)19
-rw-r--r--meta-networking/recipes-filter/ulogd2/ulogd2_2.0.8.bb1
-rw-r--r--meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch37
-rw-r--r--meta-networking/recipes-irc/weechat/weechat_4.6.0.bb (renamed from meta-networking/recipes-irc/weechat/weechat_4.0.4.bb)8
-rw-r--r--meta-networking/recipes-irc/znc/znc_1.8.2.bb14
-rw-r--r--meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20250521.bb (renamed from meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb)4
-rw-r--r--meta-networking/recipes-kernel/wireguard/wireguard.inc4
-rw-r--r--meta-networking/recipes-protocols/babeld/babeld_1.13.1.bb1
-rw-r--r--meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch39
-rw-r--r--meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch69
-rw-r--r--meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb13
-rw-r--r--meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch34
-rw-r--r--meta-networking/recipes-protocols/frr/frr_10.3.bb (renamed from meta-networking/recipes-protocols/frr/frr_10.0.bb)6
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch58
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch27
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch34
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch38
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch30
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch2
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch56
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch6
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch48
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch55
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch4
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch166
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch6
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch249
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch2
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch37
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch60
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch5
-rw-r--r--meta-networking/recipes-protocols/mdns/mdns_2600.120.12.bb (renamed from meta-networking/recipes-protocols/mdns/mdns_2200.120.24.bb)31
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.9.4-kernel-6.7.patch123
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp/netsnmp-swinst-crash.patch17
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb12
-rw-r--r--meta-networking/recipes-protocols/opcua/open62541_1.3.15.bb (renamed from meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb)26
-rw-r--r--meta-networking/recipes-protocols/openflow/openflow_git.bb6
-rw-r--r--meta-networking/recipes-protocols/openl2tp/openl2tp/run-ptest12
-rw-r--r--meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb9
-rw-r--r--meta-networking/recipes-protocols/openlldp/openlldp_1.1.1.bb1
-rw-r--r--meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.10.0.bb2
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb2
-rw-r--r--meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb2
-rw-r--r--meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb2
-rw-r--r--meta-networking/recipes-protocols/vsomeip/vsomeip/0003-Do-not-build-external-gtest.patch187
-rw-r--r--meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch16
-rw-r--r--meta-networking/recipes-protocols/vsomeip/vsomeip_3.5.3.bb (renamed from meta-networking/recipes-protocols/vsomeip/vsomeip_3.4.10.bb)11
-rw-r--r--meta-networking/recipes-protocols/xl2tpd/xl2tpd/0001-Fix-build-with-GCC-15.patch39
-rw-r--r--meta-networking/recipes-protocols/xl2tpd/xl2tpd_1.3.16.bb5
-rw-r--r--meta-networking/recipes-support/arptables/arptables_git.bb1
-rw-r--r--meta-networking/recipes-support/bmon/bmon_4.0.bb1
-rw-r--r--meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb3
-rw-r--r--meta-networking/recipes-support/celt051/celt051_git.bb1
-rw-r--r--meta-networking/recipes-support/chrony/chrony_4.6.1.bb (renamed from meta-networking/recipes-support/chrony/chrony_4.5.bb)9
-rw-r--r--meta-networking/recipes-support/cifs/cifs-utils_7.0.bb1
-rw-r--r--meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch36
-rw-r--r--meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb4
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq_2.91.bb (renamed from meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb)12
-rwxr-xr-xmeta-networking/recipes-support/dnsmasq/files/dnsmasq.conf298
-rw-r--r--meta-networking/recipes-support/dovecot/dovecot/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830.patch24
-rw-r--r--meta-networking/recipes-support/dovecot/dovecot_2.3.21.1.bb (renamed from meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb)6
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch34
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch55
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch190
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch17
-rw-r--r--meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb (renamed from meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb)9
-rw-r--r--meta-networking/recipes-support/dropwatch/dropwatch_1.5.4.bb1
-rw-r--r--meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb1
-rw-r--r--meta-networking/recipes-support/fetchmail/fetchmail_6.5.2.bb (renamed from meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb)9
-rw-r--r--meta-networking/recipes-support/fping/fping_5.3.bb (renamed from meta-networking/recipes-support/fping/fping_5.2.bb)4
-rw-r--r--meta-networking/recipes-support/fwknop/fwknop/0001-Fix-compilation-with-GCC-s-fno-common-flag-fixes-305.patch27
-rw-r--r--meta-networking/recipes-support/fwknop/fwknop/0001-configure.ac-Fix-missing-comma-in-AS_IF.patch29
-rw-r--r--meta-networking/recipes-support/fwknop/fwknop_2.6.11.bb (renamed from meta-networking/recipes-support/fwknop/fwknop_2.6.10.bb)12
-rw-r--r--meta-networking/recipes-support/geoip/geoip-perl_1.51.bb1
-rw-r--r--meta-networking/recipes-support/geoip/geoip_1.6.12.bb9
-rw-r--r--meta-networking/recipes-support/http-parser/http-parser_2.9.4.bb1
-rw-r--r--meta-networking/recipes-support/ifenslave/ifenslave_2.14.bb6
-rw-r--r--meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch46
-rw-r--r--meta-networking/recipes-support/iftop/iftop_1.0pre4.bb1
-rw-r--r--meta-networking/recipes-support/ipcalc/ipcalc_1.0.3.bb1
-rw-r--r--meta-networking/recipes-support/libconfuse/libconfuse_3.3.bb14
-rw-r--r--meta-networking/recipes-support/libcpr/libcpr_1.12.0.bb (renamed from meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb)5
-rw-r--r--meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb1
-rw-r--r--meta-networking/recipes-support/libldb/libldb_2.8.1.bb6
-rw-r--r--meta-networking/recipes-support/libmemcached/libmemcached.inc17
-rw-r--r--meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb21
-rw-r--r--meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb4
-rw-r--r--meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb (renamed from meta-networking/recipes-support/libtalloc/libtalloc_2.4.2.bb)8
-rw-r--r--meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb (renamed from meta-networking/recipes-support/libtdb/libtdb_1.4.10.bb)8
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch9
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb (renamed from meta-networking/recipes-support/libtevent/libtevent_0.16.1.bb)8
-rw-r--r--meta-networking/recipes-support/linux-atm/linux-atm/0001-Fix-implicit-declaration-error.patch44
-rw-r--r--meta-networking/recipes-support/linux-atm/linux-atm/0002-Fix-build-with-gcc-15.patch91
-rw-r--r--meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb2
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.21.bb (renamed from meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.19.bb)15
-rw-r--r--meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb1
-rw-r--r--meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch38
-rw-r--r--meta-networking/recipes-support/mctp/mctp_2.1.bb (renamed from meta-networking/recipes-support/mctp/mctp_1.1.bb)10
-rw-r--r--meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb3
-rw-r--r--meta-networking/recipes-support/mdio-tools/mdio-tools.inc2
-rw-r--r--meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb3
-rw-r--r--meta-networking/recipes-support/memcached/memcached/0001-Fix-function-protypes.patch110
-rw-r--r--meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch13
-rw-r--r--meta-networking/recipes-support/memcached/memcached_1.6.38.bb (renamed from meta-networking/recipes-support/memcached/memcached_1.6.17.bb)7
-rw-r--r--meta-networking/recipes-support/mtr/mtr_0.95.bb1
-rw-r--r--meta-networking/recipes-support/nbdkit/nbdkit/0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch38
-rw-r--r--meta-networking/recipes-support/nbdkit/nbdkit_1.33.11.bb1
-rw-r--r--meta-networking/recipes-support/nbdkit/nbdkit_1.43.11.bb33
-rw-r--r--meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch100
-rw-r--r--meta-networking/recipes-support/ncp/libowfat_0.32.bb1
-rw-r--r--meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch85
-rw-r--r--meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb6
-rw-r--r--meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch51
-rw-r--r--meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb1
-rw-r--r--meta-networking/recipes-support/netcf/netcf_0.2.8.bb3
-rw-r--r--meta-networking/recipes-support/netperf/files/0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch168
-rw-r--r--meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch41
-rw-r--r--meta-networking/recipes-support/netperf/netperf_git.bb13
-rw-r--r--meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb1
-rw-r--r--meta-networking/recipes-support/nis/yp-tools_4.2.3.bb1
-rw-r--r--meta-networking/recipes-support/ntimed/ntimed_git.bb1
-rw-r--r--meta-networking/recipes-support/ntopng/ndpi_4.2.bb3
-rw-r--r--meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb1
-rwxr-xr-xmeta-networking/recipes-support/ntp/ntp/ntpd2
-rw-r--r--meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb7
-rw-r--r--meta-networking/recipes-support/nuttcp/nuttcp_8.2.2.bb3
-rw-r--r--meta-networking/recipes-support/open-isns/open-isns_0.102.bb1
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch26
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.5.0.bb (renamed from meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb)9
-rw-r--r--meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb (renamed from meta-networking/recipes-support/openipmi/openipmi_2.0.35.bb)4
-rw-r--r--meta-networking/recipes-support/openvpn/openvpn/0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch9
-rw-r--r--meta-networking/recipes-support/openvpn/openvpn/run-ptest5
-rw-r--r--meta-networking/recipes-support/openvpn/openvpn_2.6.14.bb (renamed from meta-networking/recipes-support/openvpn/openvpn_2.6.10.bb)50
-rw-r--r--meta-networking/recipes-support/pgpool2/pgpool2_4.5.3.bb (renamed from meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb)10
-rw-r--r--meta-networking/recipes-support/phytool/phytool.bb1
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch6
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core_51.0.bb1
-rw-r--r--meta-networking/recipes-support/smcroute/smcroute_2.5.7.bb1
-rw-r--r--meta-networking/recipes-support/sngrep/sngrep_1.8.2.bb (renamed from meta-networking/recipes-support/sngrep/sngrep_1.8.1.bb)3
-rw-r--r--meta-networking/recipes-support/spice/libcacard_2.8.1.bb1
-rw-r--r--meta-networking/recipes-support/spice/spice-gtk_0.42.bb3
-rw-r--r--meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb1
-rw-r--r--meta-networking/recipes-support/spice/spice-protocol_0.14.4.bb1
-rw-r--r--meta-networking/recipes-support/spice/spice_git.bb5
-rw-r--r--meta-networking/recipes-support/spice/usbredir_0.14.0.bb1
-rw-r--r--meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb7
-rw-r--r--meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch47
-rw-r--r--meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb1
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan/0001-pki-Fix-signature-of-help-to-match-that-of-a-callbac.patch25
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan/0002-callback-job-Replace-return_false-in-constructors-wi.patch90
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan/0003-Cast-uses-of-return_-nop-and-enumerator_create_empty.patch118
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan_6.0.1.bb (renamed from meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb)32
-rw-r--r--meta-networking/recipes-support/stunnel/stunnel/fix-openssl-no-des.patch19
-rw-r--r--meta-networking/recipes-support/stunnel/stunnel_5.75.bb (renamed from meta-networking/recipes-support/stunnel/stunnel_5.72.bb)4
-rw-r--r--[-rwxr-xr-x]meta-networking/recipes-support/tcpdump/tcpdump/run-ptest0
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb (renamed from meta-networking/recipes-support/tcpdump/tcpdump_4.99.4.bb)6
-rw-r--r--meta-networking/recipes-support/tcpdump/tcpslice_1.8.bb (renamed from meta-networking/recipes-support/tcpdump/tcpslice_1.7.bb)2
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay/0001-Fix-linker-error-for-TX_RING.patch71
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch51
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch82
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay/0002-fix-incompatible-type-assignment-in-txring.c.patch31
-rw-r--r--meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.1.bb (renamed from meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb)6
-rw-r--r--meta-networking/recipes-support/traceroute/traceroute_2.1.6.bb (renamed from meta-networking/recipes-support/traceroute/traceroute_2.1.5.bb)2
-rw-r--r--meta-networking/recipes-support/udpcast/udpcast/0001-include-stddef.h-for-ptrdiff_t.patch8
-rw-r--r--meta-networking/recipes-support/udpcast/udpcast_20250223.bb (renamed from meta-networking/recipes-support/udpcast/udpcast_20230924.bb)4
-rw-r--r--meta-networking/recipes-support/unbound/unbound/0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch44
-rw-r--r--meta-networking/recipes-support/unbound/unbound/run-ptest17
-rw-r--r--meta-networking/recipes-support/unbound/unbound_1.22.0.bb (renamed from meta-networking/recipes-support/unbound/unbound_1.20.0.bb)35
-rw-r--r--meta-networking/recipes-support/wavemon/wavemon_0.9.6.bb (renamed from meta-networking/recipes-support/wavemon/wavemon_0.9.5.bb)3
-rw-r--r--meta-networking/recipes-support/wireshark/wireshark_4.2.12.bb (renamed from meta-networking/recipes-support/wireshark/wireshark_4.2.5.bb)14
-rw-r--r--meta-networking/recipes-support/wpan-tools/wpan-tools_0.10.bb (renamed from meta-networking/recipes-support/wpan-tools/wpan-tools_0.9.bb)5
337 files changed, 4294 insertions, 4083 deletions
diff --git a/meta-networking/SECURITY.md b/meta-networking/SECURITY.md
new file mode 100644
index 0000000000..1530103230
--- /dev/null
+++ b/meta-networking/SECURITY.md
@@ -0,0 +1,20 @@
1How to Report a Potential Vulnerability?
2========================================
3
4If you would like to report a public issue (for example, one with a released
5CVE number), please report it to the mailing list:
6
7 https://lists.openembedded.org/g/openembedded-devel
8
9If you are dealing with a not-yet released or urgent issue, please send a
10message to one of the maintainers listed in the README. Include as many
11details as possible:
12 - the layer or software module affected
13 - the recipe and its version
14 - any example code, if available
15
16Branches maintained with security fixes
17---------------------------------------
18
19See https://wiki.yoctoproject.org/wiki/Releases for the list of current
20releases. We only accept patches for the LTS releases and the master branch.
diff --git a/meta-networking/classes/waf-samba.bbclass b/meta-networking/classes/waf-samba.bbclass
index 79acacc989..cb78ce6b0d 100644
--- a/meta-networking/classes/waf-samba.bbclass
+++ b/meta-networking/classes/waf-samba.bbclass
@@ -113,7 +113,7 @@ do_configure() {
113 113
114do_compile[progress] = "outof:^\[\s*(\d+)/\s*(\d+)\]\s+" 114do_compile[progress] = "outof:^\[\s*(\d+)/\s*(\d+)\]\s+"
115do_compile () { 115do_compile () {
116 python3 ./buildtools/bin/waf ${@oe.utils.parallel_make_argument(d, '-j%d', limit=64)} 116 $PYTHON ./buildtools/bin/waf ${@oe.utils.parallel_make_argument(d, '-j%d', limit=64)}
117} 117}
118 118
119do_install() { 119do_install() {
diff --git a/meta-networking/conf/include/non-repro-meta-networking.inc b/meta-networking/conf/include/non-repro-meta-networking.inc
deleted file mode 100755
index 45eed5398e..0000000000
--- a/meta-networking/conf/include/non-repro-meta-networking.inc
+++ /dev/null
@@ -1,57 +0,0 @@
1# List of known non-reproducible package of the meta-networking layer
2# Please keep this list sorted
3KNOWN_NON_REPRO_META_NETWORKING = " \
4 blueman \
5 blueman-dbg \
6 blueman-src \
7 civetweb-dev \
8 dhcp-relay-staticdev \
9 ettercap-src \
10 fetchmail \
11 fetchmail-dbg \
12 freediameter \
13 freediameter-src \
14 freeradius \
15 htpdate-doc \
16 keepalived \
17 keepalived-dbg \
18 libbearssl-staticdev \
19 libfko3 \
20 libfko-client \
21 libfko-daemon \
22 libfko-dbg \
23 libmosquitto1 \
24 libowfat-staticdev \
25 libruli-staticdev \
26 libsamba-util0 \
27 mosquitto \
28 mosquitto-dbg \
29 ncftp \
30 ncftp-dbg \
31 ncftp-src \
32 ndisc6-dbg \
33 ndisc6-misc \
34 ndisc6-ndisc6 \
35 ndisc6-rdisc6 \
36 ndisc6-rdnssd \
37 ndisc6-rltraceroute6 \
38 netsniff-ng-doc \
39 ntpsec-src \
40 openl2tp \
41 openl2tp-dbg \
42 ot-br-posix \
43 ot-br-posix-dbg \
44 postfix-cfg \
45 proftpd \
46 proftpd-dbg \
47 proftpd-dev \
48 rdist \
49 rdist-dbg \
50 samba-dbg \
51 tayga \
52 tayga-dbg \
53 wolfssl \
54 wolfssl-dbg \
55 znc \
56 znc-doc \
57"
diff --git a/meta-networking/conf/include/ptest-packagelists-meta-networking.inc b/meta-networking/conf/include/ptest-packagelists-meta-networking.inc
index 7ec6f9063d..7f7519ff84 100644
--- a/meta-networking/conf/include/ptest-packagelists-meta-networking.inc
+++ b/meta-networking/conf/include/ptest-packagelists-meta-networking.inc
@@ -9,29 +9,43 @@
9PTESTS_FAST_META_NETWORKING = "\ 9PTESTS_FAST_META_NETWORKING = "\
10 freediameter \ 10 freediameter \
11 geoip \ 11 geoip \
12 geoip-perl \
12 libcoap \ 13 libcoap \
13 libldb \ 14 libldb \
14 libnftnl \ 15 libnftnl \
15 libtalloc \ 16 libtalloc \
16 libtdb \ 17 libtdb \
18 libtevent \
17 lldpd \ 19 lldpd \
18 mbedtls \ 20 mbedtls \
19 openhpi \ 21 openhpi \
22 openl2tp \
20 squid \ 23 squid \
21 tcpdump \ 24 tcpdump \
25 wolfssl \
22" 26"
27PTESTS_FAST_META_NETWORKING:remove:libc-musl = "\
28 libtalloc \
29 libtevent \
30 libtdb \
31 openhpi \
32 "
23 33
24# firewalld currently hangs forever so disable it for now 34# firewalld currently hangs forever so disable it for now
25# firewalld 35# firewalld
26PTESTS_SLOW_META_NETWORKING = "\ 36PTESTS_SLOW_META_NETWORKING = "\
27 net-snmp \ 37 openvpn \
28" 38"
29 39
30PTESTS_PROBLEMS_META_NETWORKING = "\ 40PTESTS_PROBLEMS_META_NETWORKING = "\
31 geoip-perl \
32 libtevent \
33 lksctp-tools \ 41 lksctp-tools \
42 net-snmp \
34 nftables \ 43 nftables \
35 openl2tp \
36 python3-scapy \ 44 python3-scapy \
37" 45"
46PTESTS_PROBLEMS_META_NETWORKING:append:libc-musl = "\
47 libtalloc \
48 libtevent \
49 libtdb \
50 openhpi \
51 "
diff --git a/meta-networking/conf/layer.conf b/meta-networking/conf/layer.conf
index a9ba4abade..58126a575f 100644
--- a/meta-networking/conf/layer.conf
+++ b/meta-networking/conf/layer.conf
@@ -15,7 +15,7 @@ LAYERVERSION_networking-layer = "1"
15 15
16LAYERDEPENDS_networking-layer = "core meta-python openembedded-layer" 16LAYERDEPENDS_networking-layer = "core meta-python openembedded-layer"
17 17
18LAYERSERIES_COMPAT_networking-layer = "styhead" 18LAYERSERIES_COMPAT_networking-layer = "walnascar whinlatter"
19 19
20LICENSE_PATH += "${LAYERDIR}/licenses" 20LICENSE_PATH += "${LAYERDIR}/licenses"
21 21
@@ -27,3 +27,44 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
27BBFILES_DYNAMIC += " \ 27BBFILES_DYNAMIC += " \
28 meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \ 28 meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \
29" 29"
30
31# List of known non-reproducible package of the meta-networking layer
32# Please keep this list sorted
33OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \
34 babeld \
35 babeld-dbg \
36 dhcp-relay-staticdev \
37 ettercap-src \
38 freediameter \
39 freeradius \
40 htpdate-doc \
41 libbearssl-staticdev \
42 libmosquitto1 \
43 libowfat-staticdev \
44 libruli-staticdev \
45 mosquitto \
46 ncftp \
47 ncp \
48 ncp-dbg \
49 ndisc6-dbg \
50 ndisc6-misc \
51 ndisc6-ndisc6 \
52 ndisc6-rdisc6 \
53 ndisc6-rdnssd \
54 ndisc6-rltraceroute6 \
55 netsniff-ng-doc \
56 ntopng \
57 ntopng-dbg \
58 ntpsec-src \
59 openl2tp \
60 opensaf \
61 phytool \
62 phytool-dbg \
63 postfix-cfg \
64 rp-pppoe \
65 traceroute \
66 traceroute-dbg \
67 udpcast-doc \
68 unbound-doc \
69 znc \
70"
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_1.3.2.bb b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_2.2.1.bb
index 12cc6645b5..0c670a2caa 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_1.3.2.bb
+++ b/meta-networking/dynamic-layers/meta-python/recipes-connectivity/firewalld/firewalld_2.2.1.bb
@@ -10,7 +10,7 @@ SRC_URI = "\
10 file://firewalld.init \ 10 file://firewalld.init \
11 file://run-ptest \ 11 file://run-ptest \
12" 12"
13SRC_URI[sha256sum] = "aba0d8ce9617b906ea4866bf0bdfb2c2d5312f53b8e9e8e9e4d49bf330da5b5e" 13SRC_URI[sha256sum] = "5215ba30236ee1e3df2c2292465a9ff605b9c445dcab2e37da4961cb27c7f36e"
14 14
15# glib-2.0-native is needed for GSETTINGS_RULES autoconf macro from gsettings.m4 15# glib-2.0-native is needed for GSETTINGS_RULES autoconf macro from gsettings.m4
16DEPENDS = "intltool-native glib-2.0-native nftables" 16DEPENDS = "intltool-native glib-2.0-native nftables"
@@ -159,10 +159,10 @@ do_install:append() {
159 # This hack is also in distutils.bbclass, but firewalld doesn't use distutils/setuptools. 159 # This hack is also in distutils.bbclass, but firewalld doesn't use distutils/setuptools.
160 if [ ${PN} != "${BPN}-native" ]; then 160 if [ ${PN} != "${BPN}-native" ]; then
161 sed -i -e s:${STAGING_BINDIR_NATIVE}/python3-native/python3:${bindir}/python3:g \ 161 sed -i -e s:${STAGING_BINDIR_NATIVE}/python3-native/python3:${bindir}/python3:g \
162 ${D}${bindir}/* ${D}${sbindir}/* ${D}${sysconfdir}/firewalld/*.xml 162 ${D}${bindir}/* ${D}${sbindir}/*
163 fi 163 fi
164 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g \ 164 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g \
165 ${D}${bindir}/* ${D}${sbindir}/* ${D}${sysconfdir}/firewalld/*.xml 165 ${D}${bindir}/* ${D}${sbindir}/*
166 166
167 # This file contains Red Hat-isms. Modules get loaded without it. 167 # This file contains Red Hat-isms. Modules get loaded without it.
168 rm -f ${D}${sysconfdir}/modprobe.d/firewalld-sysctls.conf 168 rm -f ${D}${sysconfdir}/modprobe.d/firewalld-sysctls.conf
@@ -274,6 +274,7 @@ FILES:${PN} += "\
274 ${datadir}/glib-2.0/schemas/org.fedoraproject.FirewallConfig.gschema.xml \ 274 ${datadir}/glib-2.0/schemas/org.fedoraproject.FirewallConfig.gschema.xml \
275" 275"
276RDEPENDS:${PN} += "\ 276RDEPENDS:${PN} += "\
277 bash \
277 python3-firewall \ 278 python3-firewall \
278 iptables \ 279 iptables \
279 python3-core \ 280 python3-core \
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb b/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
index bff16b4412..ac23182009 100644
--- a/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
+++ b/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5SRC_URI = "git://github.com/OpenPrinting/system-config-printer.git;protocol=https;branch=master" 5SRC_URI = "git://github.com/OpenPrinting/system-config-printer.git;protocol=https;branch=master"
6 6
7SRCREV = "895d3dec50c93bfd4f142bac9bfcc13051bf84cb" 7SRCREV = "895d3dec50c93bfd4f142bac9bfcc13051bf84cb"
8S = "${WORKDIR}/git"
9 8
10inherit autotools gettext pkgconfig python3native features_check 9inherit autotools gettext pkgconfig python3native features_check
11 10
@@ -26,19 +25,14 @@ do_install:append() {
26 cp -rf ${B}/cupshelpers.egg-info ${D}${PYTHON_SITEPACKAGES_DIR} 25 cp -rf ${B}/cupshelpers.egg-info ${D}${PYTHON_SITEPACKAGES_DIR}
27 cp -rf ${B}/cupshelpers ${D}${PYTHON_SITEPACKAGES_DIR} 26 cp -rf ${B}/cupshelpers ${D}${PYTHON_SITEPACKAGES_DIR}
28 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/*.egg 27 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/*.egg
29 for f in __init__.cpython-311.pyc cupshelpers.cpython-311.pyc \ 28 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__
30 config.cpython-311.pyc ppds.cpython-311.pyc \
31 installdriver.cpython-311.pyc openprinting.cpython-311.pyc \
32 xmldriverprefs.cpython-311.pyc; do
33 rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__/$f
34 done
35} 29}
36 30
37FILES:${PN} += "${libdir} ${datadir}" 31FILES:${PN} += "${libdir} ${datadir}"
38 32
39RDEPENDS:${PN} = " \ 33RDEPENDS:${PN} = " \
40 cups \ 34 cups \
41 dbus-x11 \ 35 ${VIRTUAL-RUNTIME_dbus} \
42 gtk+3 \ 36 gtk+3 \
43 libnotify \ 37 libnotify \
44 python3-core \ 38 python3-core \
diff --git a/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb b/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb
index c5dcccbac5..2f15abbcfd 100644
--- a/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb
+++ b/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb
@@ -8,7 +8,6 @@ SRCREV = "8e88e3590a19006362ea8b8dfdc18bb88b3cb3b5"
8 8
9SRC_URI = "git://gitlab.freedesktop.org/realmd/adcli;protocol=https;branch=master" 9SRC_URI = "git://gitlab.freedesktop.org/realmd/adcli;protocol=https;branch=master"
10 10
11S = "${WORKDIR}/git"
12 11
13LICENSE = "LGPL-2.0-or-later" 12LICENSE = "LGPL-2.0-or-later"
14LIC_FILES_CHKSUM = "file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6" 13LIC_FILES_CHKSUM = "file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6"
diff --git a/meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb b/meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb
index de7e2d3e01..cddb5e89bd 100644
--- a/meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb
+++ b/meta-networking/recipes-connectivity/autossh/autossh_1.4g.bb
@@ -11,19 +11,19 @@ SRC_URI[sha256sum] = "5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31a
11 11
12RDEPENDS:${PN} = "ssh" 12RDEPENDS:${PN} = "ssh"
13 13
14CFLAGS:prepend = "-I${WORKDIR}/build " 14CFLAGS:prepend = "-I${B} "
15 15
16inherit autotools 16inherit autotools
17 17
18EXTRA_OECONF="--with-ssh=/usr/bin/ssh" 18EXTRA_OECONF = "--with-ssh=/usr/bin/ssh"
19 19
20do_compile:append() { 20do_compile:append() {
21 cp ${WORKDIR}/autossh-${PV}/CHANGES ${WORKDIR}/build 21 cp ${S}/CHANGES ${B}/
22 cp ${WORKDIR}/autossh-${PV}/README ${WORKDIR}/build 22 cp ${S}/README ${B}/
23 cp ${WORKDIR}/autossh-${PV}/autossh.host ${WORKDIR}/build 23 cp ${S}/autossh.host ${B}/
24 cp ${WORKDIR}/autossh-${PV}/rscreen ${WORKDIR}/build 24 cp ${S}/rscreen ${B}/
25 cp ${WORKDIR}/autossh-${PV}/autossh.1 ${WORKDIR}/build 25 cp ${S}/autossh.1 ${B}/
26 cp ${WORKDIR}/autossh-${PV}/autossh.spec ${WORKDIR}/build 26 cp ${S}/autossh.spec ${B}/
27} 27}
28 28
29do_install:append() { 29do_install:append() {
diff --git a/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb b/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
index 39569e9d06..17ef3c99cb 100644
--- a/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
+++ b/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
@@ -40,7 +40,6 @@ EXTRA_OEMAKE += 'CC="${CC}" CFLAGS="${CFLAGS}" LDDLL="${CCLD} ${LDFLAGS}" LD="${
40 ${@ "STATICLIB=no" if d.getVar('DISABLE_STATIC') != "" else "" } \ 40 ${@ "STATICLIB=no" if d.getVar('DISABLE_STATIC') != "" else "" } \
41' 41'
42 42
43S = "${WORKDIR}/git"
44 43
45do_install() { 44do_install() {
46 install -d ${D}/${bindir} ${D}/${libdir} ${D}/${includedir} 45 install -d ${D}/${bindir} ${D}/${libdir} ${D}/${includedir}
diff --git a/meta-networking/recipes-connectivity/blueman/blueman/0001-Search-for-cython3.patch b/meta-networking/recipes-connectivity/blueman/blueman/0001-Search-for-cython3.patch
deleted file mode 100644
index 913566dce9..0000000000
--- a/meta-networking/recipes-connectivity/blueman/blueman/0001-Search-for-cython3.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1Subject: [PATCH] Search for cython3
2MIME-Version: 1.0
3Content-Type: text/plain; charset=UTF-8
4Content-Transfer-Encoding: 8bit
5
6Upstream-Status: Inappropriate
7
8Signed-off-by: Markus Volk <f_l_k@gmx.net>
9---
10 meson.build | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13--- a/module/meson.build 2022-02-10 08:49:35.000000000 +0100
14+++ b/module/meson.build 2022-03-29 12:58:03.456193737 +0200
15@@ -1,4 +1,4 @@
16-cython = find_program('cython', required: true)
17+cython = find_program('cython3', required: true)
18
19 blueman_c = custom_target(
20 'blueman_c',
21
22--
232.14.3
24
diff --git a/meta-networking/recipes-connectivity/blueman/blueman/0001-meson-add-pythoninstalldir-option.patch b/meta-networking/recipes-connectivity/blueman/blueman/0001-meson-add-pythoninstalldir-option.patch
deleted file mode 100644
index cc448b4ffd..0000000000
--- a/meta-networking/recipes-connectivity/blueman/blueman/0001-meson-add-pythoninstalldir-option.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From 37f24a9bd62f0a8f3e37eaddd33f2f0c9d3aaa0a Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Fri, 1 Apr 2022 23:12:17 -0700
4Subject: [PATCH] meson: add pythoninstalldir option
5
6In case of cross build, using host python to determine the python
7site-packages directory for target is not feasible, add a new option
8pythoninstalldir to fix the issue.
9
10Upstream-Status: Submitted [https://github.com/blueman-project/blueman/pull/1699]
11
12Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
13---
14 meson.build | 7 ++++++-
15 meson_options.txt | 1 +
16 2 files changed, 7 insertions(+), 1 deletion(-)
17
18diff --git a/meson.build b/meson.build
19index e12d0ce6..e84457a5 100644
20--- a/meson.build
21+++ b/meson.build
22@@ -26,7 +26,12 @@ pkgdatadir = join_paths([prefix, get_option('datadir'), package_name])
23 bindir = join_paths([prefix, get_option('bindir')])
24 libexecdir = join_paths([prefix, get_option('libexecdir')])
25 schemadir = join_paths(['share', 'glib-2.0', 'schemas'])
26-pythondir = pyinstall.get_install_dir()
27+pythoninstalldir = get_option('pythoninstalldir')
28+if pythoninstalldir != ''
29+ pythondir = join_paths([prefix, pythoninstalldir])
30+else
31+ pythondir = join_paths([prefix, python.sysconfig_path('purelib')])
32+endif
33
34 if get_option('policykit')
35 have_polkit = 'True'
36diff --git a/meson_options.txt b/meson_options.txt
37index 177d9ab8..3e397d8e 100644
38--- a/meson_options.txt
39+++ b/meson_options.txt
40@@ -2,6 +2,7 @@ option('runtime_deps_check', type: 'boolean', value: true, description: 'Disable
41 option('dhcp-config-path', type: 'string', value: '/etc/dhcp3/dhcpd.conf', description: 'Set dhcp3 server configuration path')
42 option('policykit', type: 'boolean', value: true, description: 'Enable policykit support')
43 option('pulseaudio', type: 'boolean', value: true, description: 'Enable PulseAudio support')
44+option('pythoninstalldir', type: 'string', description: 'Path to python site-packages dir relative to ${prefix}')
45 option('systemdsystemunitdir', type: 'string', description: 'Path to systemd system unit dir relative to ${prefix}')
46 option('systemduserunitdir', type: 'string', description: 'Path to systemd user unit dir relative to ${prefix}')
47 option('sendto-plugins', type: 'array', choices: ['Caja', 'Nemo', 'Nautilus'], value: ['Caja', 'Nemo', 'Nautilus'], description: 'Install sendto plugins for various filemanagers')
48--
492.34.1
50
diff --git a/meta-networking/recipes-connectivity/blueman/blueman/0002-fix-fail-to-enable-bluetooth.patch b/meta-networking/recipes-connectivity/blueman/blueman/0002-fix-fail-to-enable-bluetooth.patch
deleted file mode 100644
index 282d821374..0000000000
--- a/meta-networking/recipes-connectivity/blueman/blueman/0002-fix-fail-to-enable-bluetooth.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1Fix fail to enable bluetooth issue
2
3When launch blueman-manager while bluetooth is disable, it may fails
4with error:
5
6 Failed to enable bluetooth
7
8Because when get bluetooth status right after change its status, the
9status may not be updated that plugin applet/KillSwitch.py sets the
10bluetooth status via method of another dbus service which doesn't return
11immediately.
12
13Provides a new dbus method for PowerManager which checks whether dbus
14method SetBluetoothStatus() has finished. Then it makes sure to get
15right bluetooth status.
16
17Upstream-Status: Inappropriate
18Send to upstream but not accepted:
19https://github.com/blueman-project/blueman/pull/1121
20
21Signed-off-by: Kai Kang <kai.kang@windriver.com>
22---
23 blueman/Functions.py | 10 ++++++++++
24 blueman/plugins/applet/PowerManager.py | 4 ++++
25 2 files changed, 14 insertions(+)
26
27diff --git a/blueman/Functions.py b/blueman/Functions.py
28index 3917f42..b4d5eae 100644
29--- a/blueman/Functions.py
30+++ b/blueman/Functions.py
31@@ -80,6 +80,16 @@ def check_bluetooth_status(message: str, exitfunc: Callable[[], Any]) -> None:
32 return
33
34 applet.SetBluetoothStatus('(b)', True)
35+
36+ timeout = time.time() + 10
37+ while applet.GetRequestStatus():
38+ time.sleep(0.1)
39+ if time.time() > timeout:
40+ # timeout 5s has been set in applet/PowerManager.py
41+ # so it should NOT reach timeout here
42+ logging.warning('Should NOT reach timeout.')
43+ break
44+
45 if not applet.GetBluetoothStatus():
46 print('Failed to enable bluetooth')
47 exitfunc()
48diff --git a/blueman/plugins/applet/PowerManager.py b/blueman/plugins/applet/PowerManager.py
49index c2f7bc3..bf6c99f 100644
50--- a/blueman/plugins/applet/PowerManager.py
51+++ b/blueman/plugins/applet/PowerManager.py
52@@ -63,6 +63,7 @@ class PowerManager(AppletPlugin, StatusIconProvider):
53 self._add_dbus_signal("BluetoothStatusChanged", "b")
54 self._add_dbus_method("SetBluetoothStatus", ("b",), "", self.request_power_state)
55 self._add_dbus_method("GetBluetoothStatus", (), "b", self.get_bluetooth_status)
56+ self._add_dbus_method("GetRequestStatus", (), "b", self.get_request_status)
57
58 def on_unload(self) -> None:
59 self.parent.Plugins.Menu.unregister(self)
60@@ -196,6 +197,9 @@ class PowerManager(AppletPlugin, StatusIconProvider):
61 def get_bluetooth_status(self) -> bool:
62 return self.current_state
63
64+ def get_request_status(self):
65+ return self.request_in_progress
66+
67 def on_adapter_property_changed(self, _path: str, key: str, value: Any) -> None:
68 if key == "Powered":
69 if value and not self.current_state:
70--
712.31.1
72
diff --git a/meta-networking/recipes-connectivity/blueman/blueman_2.3.5.bb b/meta-networking/recipes-connectivity/blueman/blueman_2.4.4.bb
index 0374d23f0c..4a2e3a3ba0 100644
--- a/meta-networking/recipes-connectivity/blueman/blueman_2.3.5.bb
+++ b/meta-networking/recipes-connectivity/blueman/blueman_2.4.4.bb
@@ -2,22 +2,19 @@ DESCRIPTION = "Blueman is a GTK+ Bluetooth Manager"
2LICENSE = "GPL-3.0-only" 2LICENSE = "GPL-3.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 3LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
4 4
5DEPENDS = "gtk+3 glib-2.0 bluez5 python3-pygobject python3-cython-native" 5DEPENDS = "gtk+3 glib-2.0 bluez5 python3-pygobject"
6 6
7inherit meson gettext systemd gsettings pkgconfig python3native gtk-icon-cache useradd features_check 7inherit meson gettext systemd gsettings pkgconfig python3native gtk-icon-cache features_check python3targetconfig cython
8 8
9REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" 9REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
10 10
11SRC_URI = " \ 11SRC_URI = "git://github.com/blueman-project/blueman.git;protocol=https;branch=2-4-stable"
12 git://github.com/blueman-project/blueman.git;protocol=https;branch=2-3-stable \ 12SRCREV = "bdacba8afe53066bc3a338997e26fee416af2261"
13 file://0001-Search-for-cython3.patch \
14 file://0002-fix-fail-to-enable-bluetooth.patch \
15 file://0001-meson-add-pythoninstalldir-option.patch \
16"
17S = "${WORKDIR}/git"
18SRCREV = "c85e7afb8d6547d4c35b7b639124de8e999c3650"
19 13
20EXTRA_OEMESON = "-Druntime_deps_check=false -Dpythoninstalldir=${@noprefix('PYTHON_SITEPACKAGES_DIR', d)}" 14EXTRA_OEMESON = "-Druntime_deps_check=false \
15 -Dsystemdsystemunitdir=${systemd_system_unitdir} \
16 -Dsystemduserunitdir=${systemd_user_unitdir} \
17"
21 18
22SYSTEMD_SERVICE:${PN} = "${BPN}-mechanism.service" 19SYSTEMD_SERVICE:${PN} = "${BPN}-mechanism.service"
23SYSTEMD_AUTO_ENABLE:${PN} = "disable" 20SYSTEMD_AUTO_ENABLE:${PN} = "disable"
@@ -44,6 +41,7 @@ PACKAGECONFIG[polkit] = "-Dpolicykit=true,-Dpolicykit=false"
44FILES:${PN} += " \ 41FILES:${PN} += " \
45 ${datadir} \ 42 ${datadir} \
46 ${systemd_user_unitdir} \ 43 ${systemd_user_unitdir} \
44 ${systemd_system_unitdir} \
47 ${PYTHON_SITEPACKAGES_DIR} \ 45 ${PYTHON_SITEPACKAGES_DIR} \
48" 46"
49 47
@@ -60,29 +58,3 @@ do_install:append() {
60 ${D}${bindir}/blueman-services \ 58 ${D}${bindir}/blueman-services \
61 ${D}${bindir}/blueman-tray 59 ${D}${bindir}/blueman-tray
62} 60}
63
64do_install:append() {
65 install -d ${D}${datadir}/polkit-1/rules.d
66 cat >${D}${datadir}/polkit-1/rules.d/51-blueman.rules <<EOF
67/* Allow users in wheel group to use blueman feature requiring root without authentication */
68polkit.addRule(function(action, subject) {
69 if ((action.id == "org.blueman.network.setup" ||
70 action.id == "org.blueman.dhcp.client" ||
71 action.id == "org.blueman.rfkill.setstate" ||
72 action.id == "org.blueman.pppd.pppconnect") &&
73 subject.isInGroup("wheel")) {
74
75 return polkit.Result.YES;
76 }
77});
78EOF
79}
80
81USERADD_PACKAGES = "${PN}"
82USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
83
84do_install:append() {
85 # Fix up permissions on polkit rules.d to work with rpm4 constraints
86 chmod 700 ${D}/${datadir}/polkit-1/rules.d
87 chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
88}
diff --git a/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb b/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb
index 5b784d9a04..e1f01de8a0 100644
--- a/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb
+++ b/meta-networking/recipes-connectivity/bluepy/bluepy_git.bb
@@ -11,7 +11,6 @@ SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;branch=master \
11 file://0001-bluepy-Fix-username-issue-with-tarballs.patch \ 11 file://0001-bluepy-Fix-username-issue-with-tarballs.patch \
12 " 12 "
13 13
14S = "${WORKDIR}/git"
15 14
16inherit setuptools3 pkgconfig 15inherit setuptools3 pkgconfig
17 16
diff --git a/meta-networking/recipes-connectivity/bluez-tools/bluez-tools_git.bb b/meta-networking/recipes-connectivity/bluez-tools/bluez-tools_git.bb
index 22005632c2..ab9cebaf38 100644
--- a/meta-networking/recipes-connectivity/bluez-tools/bluez-tools_git.bb
+++ b/meta-networking/recipes-connectivity/bluez-tools/bluez-tools_git.bb
@@ -17,7 +17,6 @@ SRC_URI = "\
17" 17"
18SRCREV = "f65321736475429316f07ee94ec0deac8e46ec4a" 18SRCREV = "f65321736475429316f07ee94ec0deac8e46ec4a"
19 19
20S = "${WORKDIR}/git"
21 20
22inherit autotools pkgconfig 21inherit autotools pkgconfig
23 22
diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb b/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
index dfa7437ba8..835f33055a 100644
--- a/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
+++ b/meta-networking/recipes-connectivity/cannelloni/cannelloni_1.1.0.bb
@@ -11,7 +11,6 @@ LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
11 11
12inherit cmake 12inherit cmake
13 13
14S = "${WORKDIR}/git"
15 14
16PACKAGECONFIG ??= "lksctp-tools" 15PACKAGECONFIG ??= "lksctp-tools"
17PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools" 16PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools"
diff --git a/meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb b/meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb
index f5a699d5be..06d78b9328 100644
--- a/meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb
+++ b/meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb
@@ -10,7 +10,6 @@ SRC_URI = "git://github.com/civetweb/civetweb.git;branch=master;protocol=https \
10 file://0001-Unittest-Link-librt-and-libm-using-l-option.patch \ 10 file://0001-Unittest-Link-librt-and-libm-using-l-option.patch \
11 " 11 "
12 12
13S = "${WORKDIR}/git"
14 13
15# civetweb supports building with make or cmake (although cmake lacks few features) 14# civetweb supports building with make or cmake (although cmake lacks few features)
16inherit cmake 15inherit cmake
@@ -23,26 +22,30 @@ EXTRA_OECMAKE = " \
23 -DCIVETWEB_ENABLE_LUA=OFF \ 22 -DCIVETWEB_ENABLE_LUA=OFF \
24 -DCIVETWEB_ENABLE_ASAN=OFF \ 23 -DCIVETWEB_ENABLE_ASAN=OFF \
25 -DCIVETWEB_BUILD_TESTING=OFF \ 24 -DCIVETWEB_BUILD_TESTING=OFF \
26 -DCIVETWEB_SSL_OPENSSL_API_3_0=ON \
27" 25"
28 26
29# Building with ninja fails on missing third_party/lib/libcheck.a (which 27# Building with ninja fails on missing third_party/lib/libcheck.a (which
30# should come from external CMake project) 28# should come from external CMake project)
31OECMAKE_GENERATOR = "Unix Makefiles" 29OECMAKE_GENERATOR = "Unix Makefiles"
32 30
33PACKAGECONFIG ??= "caching ipv6 server ssl websockets" 31PACKAGECONFIG ??= "caching ipv6 server ssl websockets cpp"
34PACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON," 32PACKAGECONFIG[caching] = "-DCIVETWEB_DISABLE_CACHING=OFF,-DCIVETWEB_DISABLE_CACHING=ON,"
35PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON," 33PACKAGECONFIG[cgi] = "-DCIVETWEB_DISABLE_CGI=OFF,-DCIVETWEB_DISABLE_CGI=ON,"
36PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF," 34PACKAGECONFIG[cpp] = "-DCIVETWEB_ENABLE_CXX=ON,-DCIVETWEB_ENABLE_CXX=OFF,"
37PACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF," 35PACKAGECONFIG[debug] = "-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=ON,-DCIVETWEB_ENABLE_MEMORY_DEBUGGING=OFF,"
38PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF," 36PACKAGECONFIG[ipv6] = "-DCIVETWEB_ENABLE_IPV6=ON,-DCIVETWEB_ENABLE_IPV6=OFF,"
39PACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON -DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF -DCIVETWEB_INSTALL_EXECUTABLE=OFF," 37PACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON -DCIVETWEB_INSTALL_EXECUTABLE=ON,-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF -DCIVETWEB_INSTALL_EXECUTABLE=OFF,"
40PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=OFF -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl (=1.0.2%)," 38PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=OFF -DCIVETWEB_SSL_OPENSSL_API_3_0=ON -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl (=1.0.2%),"
41PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF," 39PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
42 40
43do_install:append() { 41do_install:append() {
44 sed -i -e 's|${RECIPE_SYSROOT_NATIVE}||g' \ 42 sed -i -e 's|${RECIPE_SYSROOT_NATIVE}|\$\{CMAKE_SYSROOT\}|g' \
45 -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/civetweb/civetweb-targets.cmake 43 -e 's|${RECIPE_SYSROOT}|\$\{CMAKE_SYSROOT\}|g' ${D}${libdir}/cmake/civetweb/civetweb-targets.cmake
44}
45
46do_install:append:class-target() {
47 sed -i '/list(APPEND _cmake_import_check_files_for_civetweb::server "\${_IMPORT_PREFIX}\/bin\/civetweb" )/d' \
48 ${D}${libdir}/cmake/civetweb/civetweb-targets-noconfig.cmake
46} 49}
47 50
48BBCLASSEXTEND = "native" 51BBCLASSEXTEND = "native"
diff --git a/meta-networking/recipes-connectivity/daq/daq_2.0.7.bb b/meta-networking/recipes-connectivity/daq/daq_2.0.7.bb
index 8cb4c04fa3..a686ef5840 100644
--- a/meta-networking/recipes-connectivity/daq/daq_2.0.7.bb
+++ b/meta-networking/recipes-connectivity/daq/daq_2.0.7.bb
@@ -8,12 +8,12 @@ PARALLEL_MAKE = ""
8 8
9DEPENDS = "libpcap libpcre libdnet bison-native libnetfilter-queue" 9DEPENDS = "libpcap libpcre libdnet bison-native libnetfilter-queue"
10 10
11SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ 11SRC_URI = "https://www.snort.org/downloads/snort/${BPN}-${PV}.tar.gz;downloadfilename=${BPN}-${PV}_snort_org.tar.gz \
12 file://disable-run-test-program-while-cross-compiling.patch \ 12 file://disable-run-test-program-while-cross-compiling.patch \
13 file://0001-correct-the-location-of-unistd.h.patch \ 13 file://0001-correct-the-location-of-unistd.h.patch \
14 file://daq-fix-incompatible-pointer-type-error.patch \ 14 file://daq-fix-incompatible-pointer-type-error.patch \
15 " 15 "
16SRC_URI[sha256sum] = "bdc4e5a24d1ea492c39ee213a63c55466a2e8114b6a9abed609927ae13a7705e" 16SRC_URI[sha256sum] = "d1f6709bc5dbddee3fdf170cdc1e49fb926e2031d4869ecf367a8c47efc87279"
17# these 2 create undeclared dependency on libdnet and libnetfilter-queue from meta-networking 17# these 2 create undeclared dependency on libdnet and libnetfilter-queue from meta-networking
18# this error from test-dependencies script: 18# this error from test-dependencies script:
19# daq/daq/latest lost dependency on libdnet libmnl libnetfilter-queue libnfnetlink 19# daq/daq/latest lost dependency on libdnet libmnl libnetfilter-queue libnfnetlink
diff --git a/meta-networking/recipes-connectivity/daq/libdaq_3.0.14.bb b/meta-networking/recipes-connectivity/daq/libdaq_3.0.19.bb
index 74964e0741..23a439a989 100644
--- a/meta-networking/recipes-connectivity/daq/libdaq_3.0.14.bb
+++ b/meta-networking/recipes-connectivity/daq/libdaq_3.0.19.bb
@@ -11,8 +11,8 @@ inherit autotools pkgconfig
11 11
12SRC_URI = "git://github.com/snort3/libdaq.git;protocol=https;branch=master \ 12SRC_URI = "git://github.com/snort3/libdaq.git;protocol=https;branch=master \
13 file://0001-example-Use-lm-for-the-fst-module.patch" 13 file://0001-example-Use-lm-for-the-fst-module.patch"
14SRCREV = "4e68d7ba6940df9a1503599d7b177029112d6b6a"
15 14
16S = "${WORKDIR}/git" 15SRCREV = "434f205cbd45de0961cc42e541b5bf54569e912a"
16
17 17
18FILES:${PN} += "${libdir}/daq/*.so" 18FILES:${PN} += "${libdir}/daq/*.so"
diff --git a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb
index e458321e6e..8a33feec21 100644
--- a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb
+++ b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb
@@ -24,7 +24,7 @@ SRC_URI[sha256sum] = "0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21
24UPSTREAM_CHECK_URI = "http://ftp.isc.org/isc/dhcp/" 24UPSTREAM_CHECK_URI = "http://ftp.isc.org/isc/dhcp/"
25UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/" 25UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/"
26 26
27S = "${WORKDIR}/dhcp-4.4.3-P1" 27S = "${UNPACKDIR}/dhcp-4.4.3-P1"
28 28
29inherit autotools-brokensep systemd pkgconfig 29inherit autotools-brokensep systemd pkgconfig
30 30
diff --git a/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb b/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb
index 34f8a7e3e5..1dff38f0d5 100644
--- a/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb
+++ b/meta-networking/recipes-connectivity/dibbler/dibbler_git.bb
@@ -15,7 +15,6 @@ SRC_URI = "git://github.com/tomaszmrugalski/dibbler;branch=master;protocol=https
15 " 15 "
16PV = "1.0.1+1.0.2RC1+git${SRCREV}" 16PV = "1.0.1+1.0.2RC1+git${SRCREV}"
17 17
18S = "${WORKDIR}/git"
19 18
20PACKAGECONFIG ??= "debug bind-reuse resolvconf dns-update" 19PACKAGECONFIG ??= "debug bind-reuse resolvconf dns-update"
21 20
@@ -41,3 +40,7 @@ FILES:${PN}-client = "${sbindir}/${PN}-client"
41FILES:${PN}-relay = "${sbindir}/${PN}-relay" 40FILES:${PN}-relay = "${sbindir}/${PN}-relay"
42FILES:${PN}-requestor = "${sbindir}/${PN}-requestor" 41FILES:${PN}-requestor = "${sbindir}/${PN}-requestor"
43FILES:${PN}-server = "${sbindir}/${PN}-server" 42FILES:${PN}-server = "${sbindir}/${PN}-server"
43
44# http://errors.yoctoproject.org/Errors/Details/766880/
45# git/Port-linux/interface.c:118:18: error: assignment to '__caddr_t' {aka 'char *'} from incompatible pointer type 'struct ethtool_value *' [-Wincompatible-pointer-types]
46CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch b/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch
index e1228c2ebe..3e83b4d04c 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0001-Add-autogen.sh.patch
@@ -1,4 +1,4 @@
1From 3be3b9a1345942d1578ec73efa9b2e3c41bd67c5 Mon Sep 17 00:00:00 2001 1From 1e43b309183f2cca627d1995908aeb9bb0b5bf97 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Fri, 21 Jan 2022 13:22:24 +0800 3Date: Fri, 21 Jan 2022 13:22:24 +0800
4Subject: [PATCH] Add autogen.sh 4Subject: [PATCH] Add autogen.sh
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch b/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch
index c57ee93c33..801ff90ac9 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0002-Enable-and-change-user-and-group-of-freeradius-serve.patch
@@ -1,4 +1,4 @@
1From 2a74c10836c0d2d19248ca40d113936f4a56b039 Mon Sep 17 00:00:00 2001 1From 77e9dbe0d0d175deead427793192ffb4ffad2825 Mon Sep 17 00:00:00 2001
2From: "Roy.Li" <rongqing.li@windriver.com> 2From: "Roy.Li" <rongqing.li@windriver.com>
3Date: Sun, 8 Jan 2023 22:47:11 +0800 3Date: Sun, 8 Jan 2023 22:47:11 +0800
4Subject: [PATCH] Enable and change user and group of freeradius server to 4Subject: [PATCH] Enable and change user and group of freeradius server to
@@ -13,10 +13,10 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13 1 file changed, 2 insertions(+), 2 deletions(-) 13 1 file changed, 2 insertions(+), 2 deletions(-)
14 14
15diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in 15diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in
16index 154b50d610..4594d6d2d2 100644 16index 376892e151..63c49a224c 100644
17--- a/raddb/radiusd.conf.in 17--- a/raddb/radiusd.conf.in
18+++ b/raddb/radiusd.conf.in 18+++ b/raddb/radiusd.conf.in
19@@ -557,8 +557,8 @@ security { 19@@ -562,8 +562,8 @@ security {
20 # member. This can allow for some finer-grained access 20 # member. This can allow for some finer-grained access
21 # controls. 21 # controls.
22 # 22 #
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch b/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch
index 3635412d3b..33a77233d1 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0003-configure.ac-allow-cross-compilation.patch
@@ -1,4 +1,4 @@
1From ba1390a80662ff2ab7bfda978cde7df9a871f6ae Mon Sep 17 00:00:00 2001 1From 0a9e26096b1e93f9202f83ecf7302cfcf138b7cf Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 15:03:39 +0800 3Date: Tue, 24 Jul 2018 15:03:39 +0800
4Subject: [PATCH] configure.ac: allow cross-compilation 4Subject: [PATCH] configure.ac: allow cross-compilation
@@ -18,7 +18,6 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
18Rebased for 3.2.3 18Rebased for 3.2.3
19Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> 19Signed-off-by: Randy MacLeod <randy.macleod@windriver.com>
20Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 20Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
21
22--- 21---
23 src/modules/rlm_krb5/configure.ac | 3 ++- 22 src/modules/rlm_krb5/configure.ac | 3 ++-
24 1 file changed, 2 insertions(+), 1 deletion(-) 23 1 file changed, 2 insertions(+), 1 deletion(-)
@@ -37,3 +36,6 @@ index 9ee6379ea4..1dad481da8 100644
37 fi 36 fi
38 else 37 else
39 krb5threadsafe="" 38 krb5threadsafe=""
39--
402.25.1
41
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch b/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch
index 479e1ba76f..41d8ff3ce8 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0004-Fix-libtool-detection.patch
@@ -1,4 +1,4 @@
1From 5ba3d140842268cbbdd983266efecb1fba5bdd59 Mon Sep 17 00:00:00 2001 1From 864316403192a3e93a2b1f37de479437964eb7f3 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 22 Aug 2019 10:45:46 +0800 3Date: Thu, 22 Aug 2019 10:45:46 +0800
4Subject: [PATCH] Fix libtool detection 4Subject: [PATCH] Fix libtool detection
@@ -20,10 +20,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
20 1 file changed, 36 insertions(+) 20 1 file changed, 36 insertions(+)
21 21
22diff --git a/configure.ac b/configure.ac 22diff --git a/configure.ac b/configure.ac
23index ad8bc8cdda..ef8fced680 100644 23index 6f29206646..c0d6ea99ca 100644
24--- a/configure.ac 24--- a/configure.ac
25+++ b/configure.ac 25+++ b/configure.ac
26@@ -321,6 +321,42 @@ dnl # See if we have Git. 26@@ -319,6 +319,42 @@ dnl # See if we have Git.
27 dnl # 27 dnl #
28 AC_CHECK_PROG(GIT, git, yes, no) 28 AC_CHECK_PROG(GIT, git, yes, no)
29 29
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch b/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch
index 8ef3c4bdf9..168fc78162 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0005-configure.ac-add-option-for-libcap.patch
@@ -1,4 +1,4 @@
1From 9548dc5e1a6c835cd4f387ba384d8f3f14c3fc8b Mon Sep 17 00:00:00 2001 1From f655b4b6a89ae3bb183c659e61cc78539c2c4e81 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 22 Aug 2019 10:50:21 +0800 3Date: Thu, 22 Aug 2019 10:50:21 +0800
4Subject: [PATCH] configure.ac: add option for libcap 4Subject: [PATCH] configure.ac: add option for libcap
@@ -12,10 +12,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
12 1 file changed, 27 insertions(+), 9 deletions(-) 12 1 file changed, 27 insertions(+), 9 deletions(-)
13 13
14diff --git a/configure.ac b/configure.ac 14diff --git a/configure.ac b/configure.ac
15index ef8fced680..263098f7fd 100644 15index c0d6ea99ca..64aa9e4293 100644
16--- a/configure.ac 16--- a/configure.ac
17+++ b/configure.ac 17+++ b/configure.ac
18@@ -1161,6 +1161,22 @@ fi 18@@ -1209,6 +1209,22 @@ fi
19 dnl Set by FR_SMART_CHECKLIB 19 dnl Set by FR_SMART_CHECKLIB
20 LIBS="${old_LIBS}" 20 LIBS="${old_LIBS}"
21 21
@@ -38,7 +38,7 @@ index ef8fced680..263098f7fd 100644
38 dnl Check for cap 38 dnl Check for cap
39 dnl extra argument: --with-cap-lib-dir=DIR 39 dnl extra argument: --with-cap-lib-dir=DIR
40 cap_lib_dir= 40 cap_lib_dir=
41@@ -1194,15 +1210,17 @@ AC_ARG_WITH(cap-include-dir, 41@@ -1242,15 +1258,17 @@ AC_ARG_WITH(cap-include-dir,
42 ;; 42 ;;
43 esac]) 43 esac])
44 44
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch b/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch
index 510136da1f..e036549827 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0006-Avoid-searching-host-dirs.patch
@@ -1,4 +1,4 @@
1From 8fe25b30b6fbb3170705f4468eb4c92eef3a968f Mon Sep 17 00:00:00 2001 1From d8631a433abf7336b065ecfaa5161e408ea47255 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Mon, 4 Jan 2016 01:44:04 -0500 3Date: Mon, 4 Jan 2016 01:44:04 -0500
4Subject: [PATCH] Avoid searching host dirs 4Subject: [PATCH] Avoid searching host dirs
@@ -14,15 +14,15 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14Rebased for 3.2.3 14Rebased for 3.2.3
15Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 15Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
16--- 16---
17 m4/fr_smart_check_include.m4 | 2 +- 17 m4/fr_smart_check_include.m4 | 2 +-
18 m4/fr_smart_check_lib.m4 | 22 ---------------------- 18 m4/fr_smart_check_lib.m4 | 22 -------------------
19 src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac | 4 ++-- 19 .../rlm_sql/drivers/rlm_sql_db2/configure.ac | 4 ++--
20 src/modules/rlm_sql/drivers/rlm_sql_firebird/configure.ac | 4 ++-- 20 .../drivers/rlm_sql_firebird/configure.ac | 4 ++--
21 src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.ac | 4 ++-- 21 .../drivers/rlm_sql_iodbc/configure.ac | 4 ++--
22 src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.ac | 6 +++--- 22 .../drivers/rlm_sql_mysql/configure.ac | 6 ++---
23 src/modules/rlm_sql/drivers/rlm_sql_oracle/configure.ac | 2 +- 23 .../drivers/rlm_sql_oracle/configure.ac | 2 +-
24 src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac | 4 ++-- 24 .../drivers/rlm_sql_postgresql/configure.ac | 4 ++--
25 src/modules/rlm_sql/drivers/rlm_sql_unixodbc/configure.ac | 4 ++-- 25 .../drivers/rlm_sql_unixodbc/configure.ac | 4 ++--
26 9 files changed, 15 insertions(+), 37 deletions(-) 26 9 files changed, 15 insertions(+), 37 deletions(-)
27 27
28diff --git a/m4/fr_smart_check_include.m4 b/m4/fr_smart_check_include.m4 28diff --git a/m4/fr_smart_check_include.m4 b/m4/fr_smart_check_include.m4
@@ -38,6 +38,39 @@ index e7d4443f9c..2b69704f98 100644
38 38
39 dnl # Our local versions 39 dnl # Our local versions
40 _smart_try_dir= 40 _smart_try_dir=
41diff --git a/m4/fr_smart_check_lib.m4 b/m4/fr_smart_check_lib.m4
42index 16ac5b3c5e..0f5e9fc6d6 100644
43--- a/m4/fr_smart_check_lib.m4
44+++ b/m4/fr_smart_check_lib.m4
45@@ -64,28 +64,6 @@ if test "x$smart_lib" = "x"; then
46 LIBS="$old_LIBS"
47 fi
48
49-dnl #
50-dnl # Try to guess possible locations.
51-dnl #
52-if test "x$smart_lib" = "x"; then
53- for try in /usr/local/lib /opt/lib; do
54- AC_MSG_CHECKING([for $2 in -l$1 in $try])
55- LIBS="-l$1 $old_LIBS"
56- CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
57- AC_TRY_LINK([extern char $2();],
58- [$2()],
59- [
60- smart_lib="-l$1"
61- smart_ldflags="-L$try -Wl,-rpath,$try"
62- AC_MSG_RESULT(yes)
63- break
64- ],
65- [AC_MSG_RESULT(no)])
66- done
67- LIBS="$old_LIBS"
68- CPPFLAGS="$old_CPPFLAGS"
69-fi
70-
71 dnl #
72 dnl # Found it, set the appropriate variable.
73 dnl #
41diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac 74diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac
42index 0d94ee9bf6..6108e62054 100644 75index 0d94ee9bf6..6108e62054 100644
43--- a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac 76--- a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure.ac
@@ -146,7 +179,7 @@ index f31b7d2c5a..67bbf66df5 100644
146 if test "x$ORACLE_HOME" != "x"; then 179 if test "x$ORACLE_HOME" != "x"; then
147 smart_try_dir="${smart_try_dir} ${ORACLE_HOME}/include" 180 smart_try_dir="${smart_try_dir} ${ORACLE_HOME}/include"
148diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac 181diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac
149index 46587e4099..b41c51bda7 100644 182index 6b1c9e964e..1937d81134 100644
150--- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac 183--- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac
151+++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac 184+++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac
152@@ -43,7 +43,7 @@ AC_ARG_WITH(rlm-sql-postgresql-include-dir, 185@@ -43,7 +43,7 @@ AC_ARG_WITH(rlm-sql-postgresql-include-dir,
@@ -158,7 +191,7 @@ index 46587e4099..b41c51bda7 100644
158 FR_SMART_CHECK_INCLUDE(libpq-fe.h) 191 FR_SMART_CHECK_INCLUDE(libpq-fe.h)
159 if test "x$ac_cv_header_libpqmfe_h" != "xyes"; then 192 if test "x$ac_cv_header_libpqmfe_h" != "xyes"; then
160 FR_MODULE_FAIL([libpq-fe.h]) 193 FR_MODULE_FAIL([libpq-fe.h])
161@@ -95,7 +95,7 @@ else 194@@ -110,7 +110,7 @@ else
162 ]) 195 ])
163 fi 196 fi
164 197
@@ -188,36 +221,6 @@ index 3bdfae6032..ce68c312c6 100644
188 FR_SMART_CHECK_INCLUDE(sql.h) 221 FR_SMART_CHECK_INCLUDE(sql.h)
189 if test "x$ac_cv_header_sql_h" != xyes; then 222 if test "x$ac_cv_header_sql_h" != xyes; then
190 FR_MODULE_FAIL([sql.h]) 223 FR_MODULE_FAIL([sql.h])
191diff --git a/m4/fr_smart_check_lib.m4 b/m4/fr_smart_check_lib.m4 224--
192index 16ac5b3c5e..0f5e9fc6d6 100644 2252.25.1
193--- a/m4/fr_smart_check_lib.m4 226
194+++ b/m4/fr_smart_check_lib.m4
195@@ -64,28 +64,6 @@ if test "x$smart_lib" = "x"; then
196 LIBS="$old_LIBS"
197 fi
198
199-dnl #
200-dnl # Try to guess possible locations.
201-dnl #
202-if test "x$smart_lib" = "x"; then
203- for try in /usr/local/lib /opt/lib; do
204- AC_MSG_CHECKING([for $2 in -l$1 in $try])
205- LIBS="-l$1 $old_LIBS"
206- CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
207- AC_TRY_LINK([extern char $2();],
208- [$2()],
209- [
210- smart_lib="-l$1"
211- smart_ldflags="-L$try -Wl,-rpath,$try"
212- AC_MSG_RESULT(yes)
213- break
214- ],
215- [AC_MSG_RESULT(no)])
216- done
217- LIBS="$old_LIBS"
218- CPPFLAGS="$old_CPPFLAGS"
219-fi
220-
221 dnl #
222 dnl # Found it, set the appropriate variable.
223 dnl #
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch b/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch
index 78259d7d74..4d8400c87f 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0007-rlm_python-add-PY_INC_DIR-in-search-dir.patch
@@ -1,4 +1,4 @@
1From e4ff7a2a9834e2589bc7bdda4b74f5bc962b15e6 Mon Sep 17 00:00:00 2001 1From 0aab0817acf2179d99c516d7933c80c411855eb7 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 27 Jan 2016 05:07:19 -0500 3Date: Wed, 27 Jan 2016 05:07:19 -0500
4Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir 4Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir
@@ -28,3 +28,6 @@ index c79c327064..5f4d274990 100644
28 FR_SMART_CHECK_INCLUDE(Python.h) 28 FR_SMART_CHECK_INCLUDE(Python.h)
29 CFLAGS=$old_CFLAGS 29 CFLAGS=$old_CFLAGS
30 30
31--
322.25.1
33
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch b/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch
index 559b857b63..f469e85b91 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0008-libtool-do-not-use-jlibtool.patch
@@ -1,4 +1,4 @@
1From d0fa5b259c2dc942d0a43a9cf1bfc32f40c184f9 Mon Sep 17 00:00:00 2001 1From c47048a68eec6838c87e5cde5fddc7e7500b7742 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Thu, 7 Jan 2016 22:37:30 -0800 3Date: Thu, 7 Jan 2016 22:37:30 -0800
4Subject: [PATCH] libtool: do not use jlibtool 4Subject: [PATCH] libtool: do not use jlibtool
@@ -12,26 +12,25 @@ Upstream-Status: Inappropriate [embedded specific]
12Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 12Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 13Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14--- 14---
15 Make.inc.in | 4 ++-- 15 Make.inc.in | 3 ++-
16 scripts/boiler.mk | 2 ++ 16 scripts/boiler.mk | 2 ++
17 scripts/install.mk | 14 +++++++------- 17 scripts/install.mk | 14 +++++++-------
18 scripts/libtool.mk | 22 ++++++++++++++++------ 18 scripts/libtool.mk | 22 +++++++++++++++-------
19 4 files changed, 27 insertions(+), 15 deletions(-) 19 4 files changed, 26 insertions(+), 15 deletions(-)
20 20
21diff --git a/Make.inc.in b/Make.inc.in 21diff --git a/Make.inc.in b/Make.inc.in
22index 05f82776ff..e78f3fe9dc 100644 22index 6d5cc1c343..7944aa7143 100644
23--- a/Make.inc.in 23--- a/Make.inc.in
24+++ b/Make.inc.in 24+++ b/Make.inc.in
25@@ -57,7 +57,7 @@ CPPFLAGS = @CPPFLAGS@ 25@@ -57,6 +57,7 @@ CPPFLAGS = @CPPFLAGS@
26 LIBPREFIX = @LIBPREFIX@ 26 LIBPREFIX = @LIBPREFIX@
27 EXEEXT = @EXEEXT@ 27 EXEEXT = @EXEEXT@
28 28
29-LIBTOOL = JLIBTOOL
30+LIBTOOL = @LIBTOOL@ 29+LIBTOOL = @LIBTOOL@
31 ACLOCAL = @ACLOCAL@ 30 ACLOCAL = @ACLOCAL@
32 AUTOCONF = @AUTOCONF@ 31 AUTOCONF = @AUTOCONF@
33 AUTOHEADER = @AUTOHEADER@ 32 AUTOHEADER = @AUTOHEADER@
34@@ -168,7 +168,7 @@ ANALYZE.c := @clang_path@ 33@@ -168,7 +169,7 @@ ANALYZE.c := @clang_path@
35 # 34 #
36 ifeq "$(USE_SHARED_LIBS)" "yes" 35 ifeq "$(USE_SHARED_LIBS)" "yes"
37 TESTBINDIR = ./$(BUILD_DIR)/bin/local 36 TESTBINDIR = ./$(BUILD_DIR)/bin/local
@@ -41,10 +40,10 @@ index 05f82776ff..e78f3fe9dc 100644
41 TESTBINDIR = ./$(BUILD_DIR)/bin 40 TESTBINDIR = ./$(BUILD_DIR)/bin
42 TESTBIN = ./$(BUILD_DIR)/bin 41 TESTBIN = ./$(BUILD_DIR)/bin
43diff --git a/scripts/boiler.mk b/scripts/boiler.mk 42diff --git a/scripts/boiler.mk b/scripts/boiler.mk
44index 2ce0c18f34..567cc0f22f 100644 43index 9d70104747..a882e5ce2b 100644
45--- a/scripts/boiler.mk 44--- a/scripts/boiler.mk
46+++ b/scripts/boiler.mk 45+++ b/scripts/boiler.mk
47@@ -272,6 +272,7 @@ define COMPILE_C_CMDS 46@@ -271,6 +271,7 @@ define COMPILE_C_CMDS
48 $(Q)$(ECHO) CC $< 47 $(Q)$(ECHO) CC $<
49 $(Q)$(strip ${COMPILE.c} -o $@ -c -MD ${CPPFLAGS} ${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} \ 48 $(Q)$(strip ${COMPILE.c} -o $@ -c -MD ${CPPFLAGS} ${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} \
50 $(addprefix -I, ${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} $<) 49 $(addprefix -I, ${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} $<)
@@ -52,7 +51,7 @@ index 2ce0c18f34..567cc0f22f 100644
52 endef 51 endef
53 else 52 else
54 # 53 #
55@@ -287,6 +288,7 @@ define COMPILE_C_CMDS 54@@ -286,6 +287,7 @@ define COMPILE_C_CMDS
56 $(Q)cppcheck --enable=style -q ${CHECKFLAGS} $(filter -isystem%,${SRC_CFLAGS}) \ 55 $(Q)cppcheck --enable=style -q ${CHECKFLAGS} $(filter -isystem%,${SRC_CFLAGS}) \
57 $(filter -I%,${SRC_CFLAGS}) $(filter -D%,${SRC_CFLAGS}) ${INCDIRS} \ 56 $(filter -I%,${SRC_CFLAGS}) $(filter -D%,${SRC_CFLAGS}) ${INCDIRS} \
58 $(addprefix -I,${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} --suppress=variableScope --suppress=invalidscanf $< 57 $(addprefix -I,${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS} --suppress=variableScope --suppress=invalidscanf $<
@@ -116,21 +115,28 @@ index 916411563b..e38c1ed697 100644
116 115
117 116
118diff --git a/scripts/libtool.mk b/scripts/libtool.mk 117diff --git a/scripts/libtool.mk b/scripts/libtool.mk
119index 381127ec2d..e83d7e6ad7 100644 118index 64c2fe0804..05ed2292f0 100644
120--- a/scripts/libtool.mk 119--- a/scripts/libtool.mk
121+++ b/scripts/libtool.mk 120+++ b/scripts/libtool.mk
122@@ -60,7 +60,9 @@ ifeq "${LIBTOOL}" "JLIBTOOL" 121@@ -33,7 +33,7 @@ JLIBTOOL := ${BUILD_DIR}/make/jlibtool
123 # Tell GNU Make to use this value, rather than anything specified 122
124 # on the command line. 123 # Add a rule to build jlibtool BEFORE any other targets. This
125 override LIBTOOL := ${JLIBTOOL} 124 # means that we can use it to build the later targets.
126-endif # else we're not using jlibtool 125-all install: ${JLIBTOOL}
127+else # else we're not using jlibtool 126+all install: ${LIBTOOL}
128+ all install: ${LIBTOOL} 127
129+endif 128 # Note that we need to use a compilation rule that does NOT
129 # include referencing ${LIBTOOL}, as we don't have a jlibtool
130@@ -51,7 +51,7 @@ jlibtool_clean:
131
132 # Tell GNU Make to use this value, rather than anything specified
133 # on the command line.
134-override LIBTOOL := ${JLIBTOOL}
135+#override LIBTOOL := ${JLIBTOOL}
130 136
131 # When using libtool, it produces a '.libs' directory. Ensure that it 137 # When using libtool, it produces a '.libs' directory. Ensure that it
132 # is removed on "make clean", too. 138 # is removed on "make clean", too.
133@@ -74,11 +76,19 @@ clean: .libs_clean 139@@ -65,11 +65,19 @@ clean: .libs_clean
134 # Re-define compilers and linkers 140 # Re-define compilers and linkers
135 # 141 #
136 OBJ_EXT = lo 142 OBJ_EXT = lo
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch b/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch
index 9386675e46..a28a1e84e9 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0009-Fix-quoting-for-BUILD_WITH.patch
@@ -1,4 +1,4 @@
1From 3e701d6274924adaed568e22af2362aa5af1f055 Mon Sep 17 00:00:00 2001 1From 33ef5c4e285796c5f208b2b091d4b75e0849f282 Mon Sep 17 00:00:00 2001
2From: Peter Seebach <peter.seebach@windriver.com> 2From: Peter Seebach <peter.seebach@windriver.com>
3Date: Sun, 8 Jan 2023 23:01:28 +0800 3Date: Sun, 8 Jan 2023 23:01:28 +0800
4Subject: [PATCH] Fix quoting for BUILD_WITH 4Subject: [PATCH] Fix quoting for BUILD_WITH
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch b/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch
index 051b66af8f..cae27ad3a4 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0010-fix-error-for-expansion-of-macro-in-thread.h.patch
@@ -1,4 +1,4 @@
1From 30ce5ccd62446349d432ff65d3fe8d46872423c8 Mon Sep 17 00:00:00 2001 1From 0475d948ceab91b22172f0fae3bc01e0a1502ae8 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 18 Jan 2017 14:59:39 +0800 3Date: Wed, 18 Jan 2017 14:59:39 +0800
4Subject: [PATCH] fix error for expansion of macro in thread.h 4Subject: [PATCH] fix error for expansion of macro in thread.h
@@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
22 1 file changed, 5 insertions(+), 5 deletions(-) 22 1 file changed, 5 insertions(+), 5 deletions(-)
23 23
24diff --git a/src/include/threads.h b/src/include/threads.h 24diff --git a/src/include/threads.h b/src/include/threads.h
25index e36d81dac0..2bcb6aadcb 100644 25index f2aea776d6..1c4e526797 100644
26--- a/src/include/threads.h 26--- a/src/include/threads.h
27+++ b/src/include/threads.h 27+++ b/src/include/threads.h
28@@ -89,7 +89,7 @@ static _t __fr_thread_local_init_##_n(pthread_destructor_t func)\ 28@@ -92,7 +92,7 @@ static _t __fr_thread_local_init_##_n(pthread_destructor_t func)\
29 # define fr_thread_local_get(_n) _n 29 # define fr_thread_local_get(_n) _n
30 #elif defined(HAVE_PTHREAD_H) 30 #elif defined(HAVE_PTHREAD_H)
31 # include <pthread.h> 31 # include <pthread.h>
@@ -34,7 +34,7 @@ index e36d81dac0..2bcb6aadcb 100644
34 static pthread_key_t __fr_thread_local_key_##_n;\ 34 static pthread_key_t __fr_thread_local_key_##_n;\
35 static pthread_once_t __fr_thread_local_once_##_n = PTHREAD_ONCE_INIT;\ 35 static pthread_once_t __fr_thread_local_once_##_n = PTHREAD_ONCE_INIT;\
36 static pthread_destructor_t __fr_thread_local_destructor_##_n = NULL;\ 36 static pthread_destructor_t __fr_thread_local_destructor_##_n = NULL;\
37@@ -100,17 +100,17 @@ static void __fr_thread_local_destroy_##_n(UNUSED void *unused)\ 37@@ -103,17 +103,17 @@ static void __fr_thread_local_destroy_##_n(UNUSED void *unused)\
38 static void __fr_thread_local_key_init_##_n(void)\ 38 static void __fr_thread_local_key_init_##_n(void)\
39 {\ 39 {\
40 (void) pthread_key_create(&__fr_thread_local_key_##_n, __fr_thread_local_destroy_##_n);\ 40 (void) pthread_key_create(&__fr_thread_local_key_##_n, __fr_thread_local_destroy_##_n);\
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch b/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch
index efa5c53c9f..d05ed00605 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0011-rlm_mschap-Use-includedir-instead-of-hardcoding-usr-.patch
@@ -1,4 +1,4 @@
1From f0e764826e3a85488047f7f4e94ebf91460d2c12 Mon Sep 17 00:00:00 2001 1From f742496305018629be88eaac14cc6e1fa80d7594 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Jun 2017 20:10:49 -0700 3Date: Fri, 16 Jun 2017 20:10:49 -0700
4Subject: [PATCH] rlm_mschap: Use includedir instead of hardcoding /usr/include 4Subject: [PATCH] rlm_mschap: Use includedir instead of hardcoding /usr/include
@@ -26,3 +26,6 @@ index 953336f475..77a18af55d 100644
26 FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h> 26 FR_SMART_CHECK_INCLUDE(wbclient.h, [#include <stdint.h>
27 #include <stdbool.h>]) 27 #include <stdbool.h>])
28 if test "x$ac_cv_header_wbclient_h" != "xyes"; then 28 if test "x$ac_cv_header_wbclient_h" != "xyes"; then
29--
302.25.1
31
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch b/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch
index cbac989284..8f7457fdbb 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch
@@ -1,4 +1,4 @@
1From 0f9f18fc330fe88080be13e43f300fbf7ba4a85a Mon Sep 17 00:00:00 2001 1From de2b9e3b8f9ad8b8ac3e7e820b8b831e91c2dd71 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Mon, 13 Jul 2020 07:01:45 +0000 3Date: Mon, 13 Jul 2020 07:01:45 +0000
4Subject: [PATCH] raddb/certs/Makefile: fix the existed certificate error 4Subject: [PATCH] raddb/certs/Makefile: fix the existed certificate error
@@ -29,7 +29,7 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
29 1 file changed, 2 insertions(+), 2 deletions(-) 29 1 file changed, 2 insertions(+), 2 deletions(-)
30 30
31diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile 31diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile
32index c9fbc9e864..d064fe252d 100644 32index 34948bd924..cae939668e 100644
33--- a/raddb/certs/Makefile 33--- a/raddb/certs/Makefile
34+++ b/raddb/certs/Makefile 34+++ b/raddb/certs/Makefile
35@@ -92,7 +92,7 @@ server.csr server.key: server.cnf 35@@ -92,7 +92,7 @@ server.csr server.key: server.cnf
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch b/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch
index 287e47adcc..cf05efef30 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0013-raddb-certs-Makefile-fix-the-occasional-verification.patch
@@ -1,4 +1,4 @@
1From bb1cb2ffc7a31c0a2bb2de51ef82d304b0a107c3 Mon Sep 17 00:00:00 2001 1From 38cbab566143b9e002ee24a1f08a52ec74186eca Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 5 Aug 2020 07:23:11 +0000 3Date: Wed, 5 Aug 2020 07:23:11 +0000
4Subject: [PATCH] raddb/certs/Makefile: fix the occasional verification failure 4Subject: [PATCH] raddb/certs/Makefile: fix the occasional verification failure
@@ -29,7 +29,7 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
29 1 file changed, 15 insertions(+), 15 deletions(-) 29 1 file changed, 15 insertions(+), 15 deletions(-)
30 30
31diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile 31diff --git a/raddb/certs/Makefile b/raddb/certs/Makefile
32index d064fe252d..86f4547804 100644 32index cae939668e..52ae65755f 100644
33--- a/raddb/certs/Makefile 33--- a/raddb/certs/Makefile
34+++ b/raddb/certs/Makefile 34+++ b/raddb/certs/Makefile
35@@ -59,7 +59,7 @@ passwords.mk: server.cnf ca.cnf client.cnf inner-server.cnf 35@@ -59,7 +59,7 @@ passwords.mk: server.cnf ca.cnf client.cnf inner-server.cnf
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch b/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch
index 17eadc7e59..86ca471536 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0014-Workaround-error-with-autoconf-2.7.patch
@@ -1,4 +1,4 @@
1From c591da4a361496eec93625cf8c4f89bddfedaca7 Mon Sep 17 00:00:00 2001 1From 9fed86858d8d2045f3de77405059d786bb2d50ac Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sun, 7 Feb 2021 16:02:36 +0800 3Date: Sun, 7 Feb 2021 16:02:36 +0800
4Subject: [PATCH] Workaround error with autoconf 2.7 4Subject: [PATCH] Workaround error with autoconf 2.7
@@ -19,12 +19,12 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
19 1 file changed, 8 deletions(-) 19 1 file changed, 8 deletions(-)
20 20
21diff --git a/configure.ac b/configure.ac 21diff --git a/configure.ac b/configure.ac
22index 263098f7fd..fc296832d8 100644 22index 64aa9e4293..0861514ef7 100644
23--- a/configure.ac 23--- a/configure.ac
24+++ b/configure.ac 24+++ b/configure.ac
25@@ -878,14 +878,6 @@ fi 25@@ -926,14 +926,6 @@ if test "x$WITH_RADLAST" != "xyes"; then
26 fi
26 27
27 AC_PATH_PROG(RUSERS, rusers, /usr/bin/rusers)
28 28
29-dnl # 29-dnl #
30-dnl # FIXME This is truly gross. 30-dnl # FIXME This is truly gross.
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch b/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch
index d1d0111607..b664a9e3f3 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0015-bootstrap-check-commands-of-openssl-exist.patch
@@ -1,4 +1,4 @@
1From 78494ea005bd38324953b05176d6eb2c3f55af2c Mon Sep 17 00:00:00 2001 1From e8802c019085c743dc691e9329f05f7e559d1fa5 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com> 2From: Kai Kang <kai.kang@windriver.com>
3Date: Sun, 8 Jan 2023 23:21:24 +0800 3Date: Sun, 8 Jan 2023 23:21:24 +0800
4Subject: [PATCH] bootstrap: check commands of openssl exist 4Subject: [PATCH] bootstrap: check commands of openssl exist
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch b/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch
index 2d67fdef05..8917457ec2 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0016-version.c-don-t-print-build-flags.patch
@@ -1,4 +1,4 @@
1From cbbb62ddda5c189c225f96bf6b599b3b3e8c8252 Mon Sep 17 00:00:00 2001 1From 99ea83d998d3b8957830afa15cec42ba265b67ca Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 3 Aug 2022 16:44:29 +0800 3Date: Wed, 3 Aug 2022 16:44:29 +0800
4Subject: [PATCH] version.c: don't print build flags 4Subject: [PATCH] version.c: don't print build flags
@@ -13,10 +13,10 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
13 1 file changed, 13 deletions(-) 13 1 file changed, 13 deletions(-)
14 14
15diff --git a/src/main/version.c b/src/main/version.c 15diff --git a/src/main/version.c b/src/main/version.c
16index f1f1e87810..3ffcbb25a0 100644 16index 44a6edc699..a0e6f26911 100644
17--- a/src/main/version.c 17--- a/src/main/version.c
18+++ b/src/main/version.c 18+++ b/src/main/version.c
19@@ -589,19 +589,6 @@ void version_print(void) 19@@ -614,19 +614,6 @@ void version_print(void)
20 DEBUG2(" unknown"); 20 DEBUG2(" unknown");
21 #endif 21 #endif
22 22
diff --git a/meta-networking/recipes-connectivity/freeradius/files/0017-Add-acinclude.m4-to-include-required-macros.patch b/meta-networking/recipes-connectivity/freeradius/files/0017-Add-acinclude.m4-to-include-required-macros.patch
index f5c399e584..e9511a6165 100644
--- a/meta-networking/recipes-connectivity/freeradius/files/0017-Add-acinclude.m4-to-include-required-macros.patch
+++ b/meta-networking/recipes-connectivity/freeradius/files/0017-Add-acinclude.m4-to-include-required-macros.patch
@@ -1,4 +1,4 @@
1From 40abff4062d0521cf2b2a8a4660a3d2933f86f9d Mon Sep 17 00:00:00 2001 1From f48b2887ef2ecff333a5d00551e108fc283c2ba5 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Mon, 1 Apr 2024 09:09:07 +0000 3Date: Mon, 1 Apr 2024 09:09:07 +0000
4Subject: [PATCH] Add acinclude.m4 to include required macros 4Subject: [PATCH] Add acinclude.m4 to include required macros
@@ -57,5 +57,5 @@ index 0000000000..690efc3258
57+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 57+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
58+ (exit $ac_status); }]) 58+ (exit $ac_status); }])
59-- 59--
602.35.5 602.25.1
61 61
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.7.bb
index 8397380c1d..fea4d858ed 100644
--- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb
+++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.7.bb
@@ -39,7 +39,7 @@ SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.2.x;lfs=0
39 39
40raddbdir = "${sysconfdir}/${MLPREFIX}raddb" 40raddbdir = "${sysconfdir}/${MLPREFIX}raddb"
41 41
42SRCREV = "db3d1924d9a2e8d37c43872932621f69cfdbb099" 42SRCREV = "694a97dddbdd26423504afe7c530e8e1502b7354"
43 43
44UPSTREAM_CHECK_GITTAGREGEX = "release_(?P<pver>\d+(\_\d+)+)" 44UPSTREAM_CHECK_GITTAGREGEX = "release_(?P<pver>\d+(\_\d+)+)"
45 45
@@ -48,7 +48,6 @@ CVE_STATUS[CVE-2011-4966] = "fixed-version: The CPE in the NVD database doesn't
48 48
49PARALLEL_MAKE = "" 49PARALLEL_MAKE = ""
50 50
51S = "${WORKDIR}/git"
52 51
53LDFLAGS:append:powerpc = " -latomic" 52LDFLAGS:append:powerpc = " -latomic"
54LDFLAGS:append:mipsarch = " -latomic" 53LDFLAGS:append:mipsarch = " -latomic"
diff --git a/meta-networking/recipes-connectivity/lftp/lftp_4.9.2.bb b/meta-networking/recipes-connectivity/lftp/lftp_4.9.2.bb
index bf3e18dce7..927916f985 100644
--- a/meta-networking/recipes-connectivity/lftp/lftp_4.9.2.bb
+++ b/meta-networking/recipes-connectivity/lftp/lftp_4.9.2.bb
@@ -12,8 +12,6 @@ SRC_URI[sha256sum] = "8a07cbf4df09b107fe3fc41d133ee2f6cea6ef4c33ccf06c8448ad058c
12 12
13inherit autotools gettext pkgconfig 13inherit autotools gettext pkgconfig
14 14
15acpaths = "-I ./m4"
16
17EXTRA_OECONF += "--with-modules --disable-rpath" 15EXTRA_OECONF += "--with-modules --disable-rpath"
18 16
19PACKAGECONFIG ??= "openssl zlib gnutls readline expat" 17PACKAGECONFIG ??= "openssl zlib gnutls readline expat"
@@ -27,5 +25,4 @@ do_install:append() {
27 rm -rf ${D}${libdir}/charset.alias 25 rm -rf ${D}${libdir}/charset.alias
28} 26}
29FILES:${PN} += "${datadir}/icons/hicolor" 27FILES:${PN} += "${datadir}/icons/hicolor"
30FILES:${PN}-dbg += "${libdir}/lftp/${PV}/.debug"
31RDEPENDS:${PN} = "perl bash readline" 28RDEPENDS:${PN} = "perl bash readline"
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet_1.18.0.bb b/meta-networking/recipes-connectivity/libdnet/libdnet_1.18.0.bb
index 75aaf521c4..f79121b142 100644
--- a/meta-networking/recipes-connectivity/libdnet/libdnet_1.18.0.bb
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet_1.18.0.bb
@@ -10,7 +10,6 @@ SRCREV = "3dfbe889b1f65077efe579da34fc1d6819fcb7f3"
10 10
11UPSTREAM_CHECK_GITTAGREGEX = "libdnet-(?P<pver>\d+(\.\d+)+)" 11UPSTREAM_CHECK_GITTAGREGEX = "libdnet-(?P<pver>\d+(\.\d+)+)"
12 12
13S = "${WORKDIR}/git"
14 13
15inherit autotools multilib_script pkgconfig 14inherit autotools multilib_script pkgconfig
16 15
diff --git a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb
index 0e1f50164a..cfded66e41 100644
--- a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb
+++ b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb
@@ -20,7 +20,6 @@ SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https
20 file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ 20 file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \
21" 21"
22 22
23S = "${WORKDIR}/git"
24 23
25inherit cmake pkgconfig python3-dir python3native siteinfo 24inherit cmake pkgconfig python3-dir python3native siteinfo
26 25
diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.8.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb
index db79241f2a..950c1ff52d 100644
--- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.8.bb
+++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb
@@ -22,8 +22,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
22 22
23SECTION = "libs" 23SECTION = "libs"
24 24
25S = "${WORKDIR}/git" 25SRCREV = "2fc8413bfcb51354c8e679141b17b3f1a5942561"
26SRCREV = "5a764e5555c64337ed17444410269ff21cb617b1"
27SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-2.28 \ 26SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-2.28 \
28 file://run-ptest \ 27 file://run-ptest \
29 " 28 "
diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.0.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.3.1.bb
index 7011d54f35..0b64d661c4 100644
--- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.0.bb
+++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.3.1.bb
@@ -22,14 +22,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
22 22
23SECTION = "libs" 23SECTION = "libs"
24 24
25S = "${WORKDIR}/git" 25SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=main;tag=v${PV} \
26SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=master \ 26 file://run-ptest \
27 git://github.com/Mbed-TLS/mbedtls-framework.git;protocol=https;branch=main;destsuffix=git/framework;name=framework \ 27 "
28 file://run-ptest"
29 28
30SRCREV = "2ca6c285a0dd3f33982dd57299012dacab1ff206" 29SRCREV = "6fb5120fde4ab889bea402f5ab230c720b0a3b9a"
31SRCREV_framework = "750634d3a51eb9d61b59fd5d801546927c946588"
32SRCREV_FORMAT .= "_framework"
33 30
34UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" 31UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
35 32
@@ -74,7 +71,8 @@ sysroot_stage_all:append() {
74 71
75do_install_ptest () { 72do_install_ptest () {
76 install -d ${D}${PTEST_PATH}/tests 73 install -d ${D}${PTEST_PATH}/tests
74 install -d ${D}${PTEST_PATH}/framework
77 cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/ 75 cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/
78 find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete 76 find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete
79 cp -fR ${S}/tests/data_files ${D}${PTEST_PATH}/tests/ 77 cp -fR ${S}/framework/data_files ${D}${PTEST_PATH}/framework/
80} 78}
diff --git a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb
index 1c2f030f83..b7ba37f290 100644
--- a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb
+++ b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb
@@ -7,27 +7,31 @@ SECTION = "networking"
7LICENSE = "BSD-3-Clause" 7LICENSE = "BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=a1ed15843ce66639bcf9f109cf247870" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=a1ed15843ce66639bcf9f109cf247870"
9 9
10inherit autotools gettext pkgconfig systemd 10inherit gettext pkgconfig systemd
11 11
12DEPENDS += "iptables net-tools util-linux libmnl libnetfilter-conntrack" 12DEPENDS += "iptables net-tools util-linux libmnl libnetfilter-conntrack openssl"
13 13
14SRC_URI = "http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz \ 14SRC_URI = "http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz \
15 file://miniupnpd.service \ 15 file://miniupnpd.service \
16 file://0001-Add-OpenEmbedded-cross-compile-case.patch \ 16 file://0001-Add-OpenEmbedded-cross-compile-case.patch \
17 " 17 "
18SRC_URI[md5sum] = "340789edd49c113afe37834cc901a1e8"
19SRC_URI[sha256sum] = "218fad7af31f3c22fb4c9db28a55a2a8b5067d41f5b38f52008a057a00d2206d" 18SRC_URI[sha256sum] = "218fad7af31f3c22fb4c9db28a55a2a8b5067d41f5b38f52008a057a00d2206d"
20 19
21IPV6 = "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '--ipv6', '', d)}" 20UPSTREAM_CHECK_URI = "https://miniupnp.tuxfamily.org/files/"
21UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\.tar"
22 22
23do_configure:prepend() { 23PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
24 echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded 24PACKAGECONFIG[ipv6] = "--ipv6"
25
26EXTRA_OEMAKE = "-f Makefile.linux"
27
28do_configure() {
29 echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded
30 CONFIG_OPTIONS="--leasefile --vendorcfg ${PACKAGECONFIG_CONFARGS}" oe_runmake --always-make config.h
25} 31}
26 32
27do_compile() { 33do_compile() {
28 cd ${S} 34 oe_runmake
29 CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux config.h
30 CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux
31} 35}
32 36
33do_install() { 37do_install() {
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/1571.patch b/meta-networking/recipes-connectivity/mosquitto/files/1571.patch
deleted file mode 100644
index 627638ec89..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/1571.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Upstream-Status: Submitted [https://github.com/eclipse/mosquitto/pull/1571]
2From 3fe5468f1bdca1bff1d18cf43c9e338f41aa9e32 Mon Sep 17 00:00:00 2001
3From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
4Date: Wed, 22 Jan 2020 12:39:49 +0100
5Subject: [PATCH] Add dynamic symbols linking with cmake too
6
7Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
8---
9 lib/CMakeLists.txt | 2 ++
10 1 file changed, 2 insertions(+)
11
12--- a/lib/CMakeLists.txt
13+++ b/lib/CMakeLists.txt
14@@ -94,6 +94,8 @@
15 OUTPUT_NAME mosquitto
16 VERSION ${VERSION}
17 SOVERSION 1
18+ LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version
19+ LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version"
20 )
21
22 install(TARGETS libmosquitto
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2894.patch b/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
deleted file mode 100644
index 7374cbd26f..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From: Joachim Zobel <jz-2017@heute-morgen.de>
2Date: Wed, 13 Sep 2023 09:55:34 +0200
3Subject: [PATCH] Link correctly with shared websockets library if needed see:
4 https://github.com/eclipse/mosquitto/pull/2751
5
6Patch contributed by Joachim Zobel <jz-2017@heute-morgen.de> and Daniel Engberg <daniel.engberg.lists@pyret.net>
7---
8Upstream-Status: Pending
9
10 src/CMakeLists.txt | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
14index 9380a04..dce8313 100644
15--- a/src/CMakeLists.txt
16+++ b/src/CMakeLists.txt
17@@ -200,7 +200,7 @@ if (WITH_WEBSOCKETS)
18 link_directories(${mosquitto_SOURCE_DIR})
19 endif (WIN32)
20 else (STATIC_WEBSOCKETS)
21- set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
22+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared)
23 endif (STATIC_WEBSOCKETS)
24 endif (WITH_WEBSOCKETS)
25
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb
index 4ef0654102..75aaf7cf38 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb
@@ -16,12 +16,10 @@ DEPENDS = "uthash cjson"
16 16
17SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \ 17SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \
18 file://mosquitto.init \ 18 file://mosquitto.init \
19 file://1571.patch \
20 file://2894.patch \
21 file://2895.patch \ 19 file://2895.patch \
22" 20"
23 21
24SRC_URI[sha256sum] = "d665fe7d0032881b1371a47f34169ee4edab67903b2cd2b4c083822823f4448a" 22SRC_URI[sha256sum] = "ebd07d89d2a446a7f74100ad51272e4a8bf300b61634a7812e19f068f2759de8"
25 23
26inherit systemd update-rc.d useradd cmake pkgconfig 24inherit systemd update-rc.d useradd cmake pkgconfig
27 25
diff --git a/meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb b/meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb
index c250ea8779..8dce6c5c4a 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb
+++ b/meta-networking/recipes-connectivity/nanomsg/nanomsg_1.2.1.bb
@@ -12,7 +12,6 @@ SECTION = "libs/networking"
12SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master" 12SRC_URI = "git://github.com/nanomsg/nanomsg.git;protocol=https;branch=master"
13SRCREV = "fc3f684a80151a3319446fc96083a9ff384ee4fe" 13SRCREV = "fc3f684a80151a3319446fc96083a9ff384ee4fe"
14 14
15S = "${WORKDIR}/git"
16 15
17inherit cmake pkgconfig 16inherit cmake pkgconfig
18 17
diff --git a/meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb b/meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb
index a6556249b7..8d681f495e 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb
+++ b/meta-networking/recipes-connectivity/nanomsg/nng_1.7.3.bb
@@ -5,10 +5,9 @@ SECTION = "libs/networking"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" 6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3"
7 7
8SRC_URI = "git://github.com/nanomsg/nng.git;branch=master;protocol=https" 8SRC_URI = "git://github.com/nanomsg/nng.git;branch=main;protocol=https"
9SRCREV = "85fbe7f9e4642b554d0d97f2e3ff2aa12978691a" 9SRCREV = "85fbe7f9e4642b554d0d97f2e3ff2aa12978691a"
10 10
11S = "${WORKDIR}/git"
12 11
13inherit cmake pkgconfig 12inherit cmake pkgconfig
14 13
diff --git a/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb b/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
index b52154025b..aac26966f1 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
+++ b/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
@@ -9,6 +9,5 @@ PV = "1.3.0"
9 9
10SRC_URI = "git://github.com/cwzx/nngpp;branch=master;protocol=https" 10SRC_URI = "git://github.com/cwzx/nngpp;branch=master;protocol=https"
11 11
12S = "${WORKDIR}/git"
13 12
14inherit cmake 13inherit cmake
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
index 48f50abaf1..026aea7777 100644
--- a/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
+++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb
@@ -16,7 +16,7 @@ SRC_URI = " \
16" 16"
17SRC_URI[sha256sum] = "b055e26349b516b23585798ab3ef57b436b014800e92a8ac732cfc8e76c5dafa" 17SRC_URI[sha256sum] = "b055e26349b516b23585798ab3ef57b436b014800e92a8ac732cfc8e76c5dafa"
18 18
19S = "${WORKDIR}/NetworkManager-fortisslvpn-${PV}" 19S = "${UNPACKDIR}/NetworkManager-fortisslvpn-${PV}"
20 20
21# meta-gnome in layers is required using gnome: 21# meta-gnome in layers is required using gnome:
22PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret," 22PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret,"
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb
index ee19afbd11..6369d8d0ef 100644
--- a/meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb
+++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb
@@ -13,7 +13,7 @@ SRC_URI = "${GNOME_MIRROR}/NetworkManager-openconnect/${@gnome_verdir("${PV}")}/
13 13
14SRC_URI[sha256sum] = "5dedaa785d82d8e239ddd082bfac5250c691e964464be1807b6827263633cdcc" 14SRC_URI[sha256sum] = "5dedaa785d82d8e239ddd082bfac5250c691e964464be1807b6827263633cdcc"
15 15
16S = "${WORKDIR}/NetworkManager-openconnect-${PV}" 16S = "${UNPACKDIR}/NetworkManager-openconnect-${PV}"
17 17
18# meta-gnome in layers is required using gnome: 18# meta-gnome in layers is required using gnome:
19PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 gcr3 libnma libsecret," 19PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 gcr3 libnma libsecret,"
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.11.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.12.0.bb
index f44526ff98..9859d01463 100644
--- a/meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.11.0.bb
+++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.12.0.bb
@@ -13,9 +13,9 @@ SRC_URI = "${GNOME_MIRROR}/NetworkManager-openvpn/${@gnome_verdir("${PV}")}/Netw
13 13
14SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}" 14SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}"
15 15
16SRC_URI[sha256sum] = "2128de06f91b33c13d63cdaa6e178bc1ca57fc770cde3bc7c24891f4d9824501" 16SRC_URI[sha256sum] = "903fd4c0aebd2aa7ac70c9d8c2bed8df922655d22d764514403566ae89b7e886"
17 17
18S = "${WORKDIR}/NetworkManager-openvpn-${PV}" 18S = "${UNPACKDIR}/NetworkManager-openvpn-${PV}"
19 19
20# meta-gnome in layers is required using gnome: 20# meta-gnome in layers is required using gnome:
21PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret" 21PACKAGECONFIG[gnome] = "--with-gnome,--without-gnome,gtk+3 libnma libsecret"
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-libnm-systemd-core-Disable-sd_dhcp6_client_set_duid_.patch b/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-libnm-systemd-core-Disable-sd_dhcp6_client_set_duid_.patch
deleted file mode 100644
index 8e246efe01..0000000000
--- a/meta-networking/recipes-connectivity/networkmanager/networkmanager/0001-libnm-systemd-core-Disable-sd_dhcp6_client_set_duid_.patch
+++ /dev/null
@@ -1,65 +0,0 @@
1From 34d7a6c9919a73c2e716835000944c17438b2ca1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jun 2024 14:03:15 -0700
4Subject: [PATCH] libnm-systemd-core: Disable sd_dhcp6_client_set_duid_uuid
5 function
6
7When building on musl systems ( with out systemd ), and using LLD linker
8from LLVM project we fail to link with undefined symbols.
9
10This symbol is in sd_id128.c but its disabled, so let disable the functions
11which need this function.
12
13| x86_64-yoe-linux-musl-ld.lld: error: undefined symbol: sd_id128_get_machine_app_specific
14| >>> referenced by sd-dhcp-duid.c:202 (/usr/src/debug/networkmanager/1.48.0/../NetworkManager-1.48.0/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c:202)
15| >>> libnm-systemd-core.a.p/src_libsystemd-network_sd-dhcp-duid.c.o:(sd_dhcp_duid_set_uuid) in archive src/libnm-systemd-core/libnm-systemd-core.a
16| x86_64-yoe-linux-musl-clang: error: linker command failed with exit code 1 (use -v to see invocation)
17
18Upstream-Status: Submitted [https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1966]
19Signed-off-by: Khem Raj <raj.khem@gmail.com>
20---
21 src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c | 2 ++
22 .../src/libsystemd-network/sd-dhcp6-client.c | 3 ++-
23 2 files changed, 4 insertions(+), 1 deletion(-)
24
25diff --git a/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c b/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c
26index e664a4a..7ba5020 100644
27--- a/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c
28+++ b/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp-duid.c
29@@ -193,6 +193,7 @@ int sd_dhcp_duid_set_en(sd_dhcp_duid *duid) {
30 return 0;
31 }
32
33+#if 0
34 int sd_dhcp_duid_set_uuid(sd_dhcp_duid *duid) {
35 sd_id128_t machine_id;
36 int r;
37@@ -209,6 +210,7 @@ int sd_dhcp_duid_set_uuid(sd_dhcp_duid *duid) {
38 duid->size = offsetof(struct duid, uuid.uuid) + sizeof(machine_id);
39 return 0;
40 }
41+#endif
42
43 int dhcp_duid_to_string_internal(uint16_t type, const void *data, size_t data_size, char **ret) {
44 _cleanup_free_ char *p = NULL, *x = NULL;
45diff --git a/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c b/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c
46index 7c20116..08c1e96 100644
47--- a/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c
48+++ b/src/libnm-systemd-core/src/libsystemd-network/sd-dhcp6-client.c
49@@ -244,6 +244,7 @@ int sd_dhcp6_client_set_duid_en(sd_dhcp6_client *client) {
50 return 0;
51 }
52
53+#if 0
54 int sd_dhcp6_client_set_duid_uuid(sd_dhcp6_client *client) {
55 int r;
56
57@@ -256,7 +257,7 @@ int sd_dhcp6_client_set_duid_uuid(sd_dhcp6_client *client) {
58
59 return 0;
60 }
61-
62+#endif
63 int sd_dhcp6_client_set_duid_raw(sd_dhcp6_client *client, uint16_t duid_type, const uint8_t *duid, size_t duid_len) {
64 int r;
65
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.52.0.bb
index 47287951f5..b8c6a936ad 100644
--- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb
+++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.52.0.bb
@@ -25,33 +25,33 @@ DEPENDS = " \
25 intltool-native \ 25 intltool-native \
26 libxslt-native \ 26 libxslt-native \
27 libnl \ 27 libnl \
28 libnvme \
28 udev \ 29 udev \
29 util-linux \ 30 util-linux \
31 util-linux-libuuid \
30 libndp \ 32 libndp \
31 curl \ 33 curl \
32 dbus \ 34 dbus \
33" 35"
34DEPENDS:append:class-target = " bash-completion" 36DEPENDS:append:class-target = " bash-completion"
35 37
36inherit gnomebase gettext update-rc.d systemd gobject-introspection gtk-doc update-alternatives upstream-version-is-even 38inherit meson gettext update-rc.d systemd gobject-introspection update-alternatives upstream-version-is-even pkgconfig
37 39
38SRC_URI = " \ 40SRC_URI = " \
39 ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ 41 git://github.com/NetworkManager/NetworkManager.git;protocol=https;branch=main;tag=${PV} \
40 file://${BPN}.initd \ 42 file://${BPN}.initd \
41 file://enable-dhcpcd.conf \ 43 file://enable-dhcpcd.conf \
42 file://enable-iwd.conf \ 44 file://enable-iwd.conf \
43 file://0001-libnm-systemd-core-Disable-sd_dhcp6_client_set_duid_.patch \
44" 45"
45SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}" 46SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}"
46 47
47SRC_URI[sha256sum] = "fc80b942de38e329468e6fc1dfb40aad6a78d02ddf6b8ec31f9acc6460b8723f" 48SRCREV = "995a28fa1ccc54ad22e794294c3c6783cc3f30ed"
48 49
49S = "${WORKDIR}/NetworkManager-${PV}"
50 50
51# ['auto', 'symlink', 'file', 'netconfig', 'resolvconf'] 51# ['auto', 'symlink', 'file', 'netconfig', 'resolvconf']
52NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT ??= "auto" 52NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT ??= "auto"
53 53
54# ['dhcpcanon', 'dhclient', 'dhcpcd', 'internal', 'nettools'] 54# ['dhclient', 'dhcpcd', 'internal', 'nettools']
55NETWORKMANAGER_DHCP_DEFAULT ??= "internal" 55NETWORKMANAGER_DHCP_DEFAULT ??= "internal"
56 56
57# The default gets detected based on whether /usr/sbin/nft or /usr/sbin/iptables is installed, with nftables preferred. 57# The default gets detected based on whether /usr/sbin/nft or /usr/sbin/iptables is installed, with nftables preferred.
@@ -61,13 +61,11 @@ NETWORKMANAGER_FIREWALL_DEFAULT ??= "nftables"
61EXTRA_OEMESON = "\ 61EXTRA_OEMESON = "\
62 -Difcfg_rh=false \ 62 -Difcfg_rh=false \
63 -Dtests=yes \ 63 -Dtests=yes \
64 -Dnmtui=true \
65 -Dudev_dir=${nonarch_base_libdir}/udev \ 64 -Dudev_dir=${nonarch_base_libdir}/udev \
66 -Dlibpsl=false \ 65 -Dlibpsl=false \
67 -Dqt=false \ 66 -Dqt=false \
68 -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ 67 -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \
69 -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ 68 -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \
70 -Ddhcpcanon=false \
71 -Diptables=${sbindir}/iptables \ 69 -Diptables=${sbindir}/iptables \
72 -Dnft=${sbindir}/nft \ 70 -Dnft=${sbindir}/nft \
73" 71"
@@ -78,18 +76,13 @@ EXTRA_OEMESON = "\
78CFLAGS:append:libc-musl = " \ 76CFLAGS:append:libc-musl = " \
79 -DRTLD_DEEPBIND=0 \ 77 -DRTLD_DEEPBIND=0 \
80" 78"
81do_configure:prepend() {
82 cp -f ${STAGING_LIBDIR}/girepository-1.0/GLib*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/
83 cp -f ${STAGING_LIBDIR}/girepository-1.0/GObject*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/
84 cp -f ${STAGING_LIBDIR}/girepository-1.0/Gio*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/
85 cp -f ${STAGING_LIBDIR}/girepository-1.0/GModule*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/
86}
87 79
88PACKAGECONFIG ??= "readline nss ifupdown dnsmasq nmcli vala \ 80PACKAGECONFIG ??= "readline nss ifupdown dnsmasq nmcli \
89 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \ 81 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
90 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \ 82 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
91 ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit ppp', d)} \ 83 ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit ppp', d)} \
92 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \ 84 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \
85 ${@bb.utils.contains('DISTRO_FEATURES_BACKFILL_CONSIDERED', 'gobject-introspection-data', '', 'vala', d)} \
93" 86"
94 87
95inherit ${@bb.utils.contains('PACKAGECONFIG', 'vala', 'vala', '', d)} 88inherit ${@bb.utils.contains('PACKAGECONFIG', 'vala', 'vala', '', d)}
@@ -102,7 +95,7 @@ PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit"
102PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" 95PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5"
103# consolekit is not picked by shlibs, so add it to RDEPENDS too 96# consolekit is not picked by shlibs, so add it to RDEPENDS too
104PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" 97PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit"
105PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info,modemmanager mobile-broadband-provider-info" 98PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info"
106PACKAGECONFIG[ppp] = "-Dppp=true -Dpppd=${sbindir}/pppd,-Dppp=false,ppp" 99PACKAGECONFIG[ppp] = "-Dppp=true -Dpppd=${sbindir}/pppd,-Dppp=false,ppp"
107PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" 100PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq"
108PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" 101PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss"
diff --git a/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb b/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb
index 7d0e5f2052..e1027747b6 100644
--- a/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb
+++ b/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb
@@ -21,7 +21,6 @@ PACKAGECONFIG[libproxy] = "--with-libproxy,--without-libproxy,libproxy,"
21# not config defaults 21# not config defaults
22PACKAGECONFIG[pcsc-lite] = "--with-libpcsclite,--without-libpcsclite,pcsc-lite," 22PACKAGECONFIG[pcsc-lite] = "--with-libpcsclite,--without-libpcsclite,pcsc-lite,"
23 23
24S = "${WORKDIR}/git"
25 24
26inherit autotools pkgconfig bash-completion 25inherit autotools pkgconfig bash-completion
27 26
diff --git a/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.22.1.bb b/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.23.1.bb
index b69a7e2355..9823d772a3 100644
--- a/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.22.1.bb
+++ b/meta-networking/recipes-connectivity/openfortivpn/openfortivpn_1.23.1.bb
@@ -3,7 +3,7 @@ LICENSE = "GPL-3.0-or-later"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=3d575262a651a6f1a17210ce41bf907d" 3LIC_FILES_CHKSUM = "file://LICENSE;md5=3d575262a651a6f1a17210ce41bf907d"
4 4
5SRC_URI = "git://github.com/adrienverge/openfortivpn.git;protocol=https;branch=master" 5SRC_URI = "git://github.com/adrienverge/openfortivpn.git;protocol=https;branch=master"
6SRCREV = "388fa98f639ef91733461de50b06dd57f1ffb099" 6SRCREV = "a011b5c916075bd240db6a03c02eac95baf09ad8"
7 7
8DEPENDS = "openssl" 8DEPENDS = "openssl"
9 9
@@ -12,7 +12,6 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
12PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf --enable-resolvconf,--with-resolvconf=DISABLED,," 12PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf --enable-resolvconf,--with-resolvconf=DISABLED,,"
13PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir,," 13PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir,,"
14 14
15S = "${WORKDIR}/git"
16 15
17inherit autotools pkgconfig systemd 16inherit autotools pkgconfig systemd
18 17
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch
new file mode 100644
index 0000000000..108ed76b30
--- /dev/null
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch
@@ -0,0 +1,27 @@
1From 502aa4ab4bbc790fb2999ff2b5f10dabd7085190 Mon Sep 17 00:00:00 2001
2From: "deepan.shivap" <deepan.shivap@lge.com>
3Date: Mon, 2 Dec 2024 23:12:17 +0900
4Subject: [PATCH] Musl build fix
5
6usage of getaddrinfo_a creates dependency on libanl, which is specific
7to glibc.
8
9Upstream-Status: Pending
10Signed-off-by: deepan.shivap <deepan.shivap@lge.com>
11---
12 src/posix/platform/CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/posix/platform/CMakeLists.txt b/src/posix/platform/CMakeLists.txt
16index b4ac241f5..7b2028e45 100644
17--- a/src/posix/platform/CMakeLists.txt
18+++ b/src/posix/platform/CMakeLists.txt
19@@ -175,7 +175,7 @@ target_link_libraries(openthread-posix
20 )
21
22 option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF)
23-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT)
24+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL)
25 target_compile_definitions(ot-posix-config
26 INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1"
27 )
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch
deleted file mode 100644
index 279a60741f..0000000000
--- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1Musl fixes, which should be applied upstream too
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5--- a/src/dbus/common/types.hpp
6+++ b/src/dbus/common/types.hpp
7@@ -715,7 +715,7 @@ struct TrelInfo
8 };
9
10 bool mEnabled; ///< Whether TREL is enabled.
11- u_int16_t mNumTrelPeers; ///< The number of TREL peers.
12+ uint16_t mNumTrelPeers; ///< The number of TREL peers.
13 TrelPacketCounters mTrelCounters; ///< The TREL counters.
14 };
15
16--- a/third_party/openthread/repo/src/posix/platform/CMakeLists.txt
17+++ b/third_party/openthread/repo/src/posix/platform/CMakeLists.txt
18@@ -172,7 +172,7 @@ target_link_libraries(openthread-posix
19 )
20
21 option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF)
22-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT)
23+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL)
24 target_compile_definitions(ot-posix-config
25 INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1"
26 )
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
index d7be1cd71d..576c316ec3 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
@@ -5,35 +5,38 @@ SUMMARY = "OpenThread Border Router"
5SECTION = "net" 5SECTION = "net"
6LICENSE = "BSD-3-Clause & MIT" 6LICENSE = "BSD-3-Clause & MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \ 7LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \
8 file://third_party/Simple-web-server/repo/LICENSE;md5=091ac9fd29d87ad1ae5bf765d95278b0 \
9 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \ 8 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
9 file://third_party/cpp-httplib/repo/LICENSE;md5=1321bdf796c67e3a8ab8e352dd81474b \
10 file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \ 10 file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \
11 file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \ 11 file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
12 " 12 "
13DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue protobuf protobuf-native" 13DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue protobuf protobuf-native"
14SRCREV = "a35cc682305bb2201c314472adf06a4960536750" 14SRCREV = "fe5855332e8f804944d737c65b75cf9a89c35e77"
15PV = "0.3.0+git" 15PV = "0.3.0+git"
16 16
17SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=main \ 17SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=main \
18 file://0001-otbr-agent.service.in-remove-pre-exec-hook-for-mdns-.patch \ 18 file://0001-otbr-agent.service.in-remove-pre-exec-hook-for-mdns-.patch \
19 file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \ 19 file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \
20 file://default-cxx-std.patch \ 20 file://default-cxx-std.patch \
21 file://musl-fixes.patch \ 21 file://0001-Musl-build-fix.patch;patchdir=third_party/openthread/repo \
22 " 22 "
23 23
24S = "${WORKDIR}/git"
25SYSTEMD_SERVICE:${PN} = "otbr-agent.service" 24SYSTEMD_SERVICE:${PN} = "otbr-agent.service"
26 25
27inherit pkgconfig cmake systemd 26inherit pkgconfig cmake systemd
28# openthread/repo/src/cli/cli.cpp:1786:18: fatal error: variable 'i' set but not used [-Wunused-but-set-variable] 27
29# for (uint8_t i = 0;; i++) 28# Use -std=c++20 for fixing
30CXXFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare -Wno-error=unused-but-set-variable" 29# recipe-sysroot/usr/include/c++/15.1.0/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
30CXXFLAGS += "-std=c++20 -Wno-error=attributes"
31LDFLAGS:append:riscv32 = " -latomic"
31 32
32EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \ 33EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
33 -DOTBR_DBUS=ON \ 34 -DOTBR_DBUS=ON \
34 -DOTBR_REST=ON \ 35 -DOTBR_REST=ON \
35 -DOTBR_WEB=OFF \ 36 -DOTBR_WEB=OFF \
36 -DCMAKE_LIBRARY_PATH=${libdir} \ 37 -DCMAKE_LIBRARY_PATH=${libdir} \
38 -DOT_POSIX_PRODUCT_CONFIG=${sysconfdir}/openthread.conf.example \
39 -DOT_POSIX_FACTORY_CONFIG=${sysconfdir}/openthread.conf.example \
37 -DOTBR_MDNS=avahi \ 40 -DOTBR_MDNS=avahi \
38 -DOTBR_BACKBONE_ROUTER=ON \ 41 -DOTBR_BACKBONE_ROUTER=ON \
39 -DOTBR_BORDER_ROUTING=ON \ 42 -DOTBR_BORDER_ROUTING=ON \
diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb b/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb
index 4456835410..009a6ef88c 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb
+++ b/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb
@@ -14,7 +14,6 @@ PV = "0.1+git"
14SRC_URI = "git://github.com/openthread/openthread.git;protocol=https;branch=main \ 14SRC_URI = "git://github.com/openthread/openthread.git;protocol=https;branch=main \
15 " 15 "
16 16
17S = "${WORKDIR}/git"
18 17
19inherit cmake 18inherit cmake
20 19
diff --git a/meta-networking/recipes-connectivity/openthread/wpantund_git.bb b/meta-networking/recipes-connectivity/openthread/wpantund_git.bb
index 6a84897426..9c64872917 100644
--- a/meta-networking/recipes-connectivity/openthread/wpantund_git.bb
+++ b/meta-networking/recipes-connectivity/openthread/wpantund_git.bb
@@ -19,7 +19,6 @@ SRC_URI = "gitsm://github.com/openthread/wpantund.git;protocol=https;branch=mast
19 file://basename.patch \ 19 file://basename.patch \
20 " 20 "
21 21
22S = "${WORKDIR}/git"
23 22
24inherit pkgconfig perlnative autotools 23inherit pkgconfig perlnative autotools
25 24
diff --git a/meta-networking/recipes-connectivity/rdate/rdate_1.5.bb b/meta-networking/recipes-connectivity/rdate/rdate_1.5.bb
index 67e7c1c615..5c9e0c8643 100644
--- a/meta-networking/recipes-connectivity/rdate/rdate_1.5.bb
+++ b/meta-networking/recipes-connectivity/rdate/rdate_1.5.bb
@@ -5,7 +5,7 @@ DESCRIPTION = "The rdate utility retrieves the date and time from \
5 time of the machine that you queried. \ 5 time of the machine that you queried. \
6" 6"
7 7
8HOMEPAGE= "https://www.aelius.com/njh/rdate/" 8HOMEPAGE = "https://www.aelius.com/njh/rdate/"
9SECTION = "Applications/System" 9SECTION = "Applications/System"
10 10
11LICENSE = "GPL-2.0-only" 11LICENSE = "GPL-2.0-only"
diff --git a/meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb b/meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb
index d81cc9a3d1..2fb5ced2bb 100644
--- a/meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb
+++ b/meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb
@@ -36,9 +36,13 @@ UPSTREAM_CHECK_REGEX = "/rdist/(?P<pver>\d+(\.\d+)+)"
36 36
37DEPENDS = "bison-native" 37DEPENDS = "bison-native"
38 38
39inherit autotools-brokensep 39CFLAGS += "-std=gnu17"
40 40
41EXTRA_OEMAKE = "BIN_GROUP=root MAN_GROUP=root RDIST_MODE=755 RDISTD_MODE=755 MAN_MODE=644" 41EXTRA_OEMAKE = "CPPFLAGS='${CFLAGS}' BIN_GROUP=root MAN_GROUP=root RDIST_MODE=755 RDISTD_MODE=755 MAN_MODE=644"
42
43do_install() {
44 oe_runmake 'DESTDIR=${D}' install
45}
42 46
43# http://errors.yoctoproject.org/Errors/Details/186972/ 47# http://errors.yoctoproject.org/Errors/Details/186972/
44COMPATIBLE_HOST:libc-musl = 'null' 48COMPATIBLE_HOST:libc-musl = 'null'
diff --git a/meta-networking/recipes-connectivity/relayd/relayd_git.bb b/meta-networking/recipes-connectivity/relayd/relayd_git.bb
index 871df69909..17745da806 100644
--- a/meta-networking/recipes-connectivity/relayd/relayd_git.bb
+++ b/meta-networking/recipes-connectivity/relayd/relayd_git.bb
@@ -12,7 +12,6 @@ PV = "0.0.1+git"
12 12
13UPSTREAM_CHECK_COMMITS = "1" 13UPSTREAM_CHECK_COMMITS = "1"
14 14
15S = "${WORKDIR}/git"
16 15
17inherit cmake 16inherit cmake
18 17
diff --git a/meta-networking/recipes-connectivity/restinio/restinio_0.6.13.bb b/meta-networking/recipes-connectivity/restinio/restinio_0.6.13.bb
index 9239bd81c2..841f7d5cf8 100644
--- a/meta-networking/recipes-connectivity/restinio/restinio_0.6.13.bb
+++ b/meta-networking/recipes-connectivity/restinio/restinio_0.6.13.bb
@@ -12,7 +12,7 @@ SRC_URI = "https://github.com/Stiffstream/restinio/releases/download/v.${PV}/${B
12SRC_URI[md5sum] = "37a4310e98912030a74bdd4ed789f33c" 12SRC_URI[md5sum] = "37a4310e98912030a74bdd4ed789f33c"
13SRC_URI[sha256sum] = "b35d696e6fafd4563ca708fcecf9d0cf6705c846d417b5000f5252e0188848e7" 13SRC_URI[sha256sum] = "b35d696e6fafd4563ca708fcecf9d0cf6705c846d417b5000f5252e0188848e7"
14 14
15S = "${WORKDIR}/${BP}/dev" 15S = "${UNPACKDIR}/${BP}/dev"
16 16
17inherit cmake 17inherit cmake
18 18
diff --git a/meta-networking/recipes-connectivity/samba/samba/9aa5c43315d83c19514251a11c4fba5a137f2821.patch b/meta-networking/recipes-connectivity/samba/samba/9aa5c43315d83c19514251a11c4fba5a137f2821.patch
new file mode 100644
index 0000000000..e07e86e887
--- /dev/null
+++ b/meta-networking/recipes-connectivity/samba/samba/9aa5c43315d83c19514251a11c4fba5a137f2821.patch
@@ -0,0 +1,70 @@
1From 9aa5c43315d83c19514251a11c4fba5a137f2821 Mon Sep 17 00:00:00 2001
2From: Andreas Schneider <asn@samba.org>
3Date: Tue, 21 Jan 2025 17:59:27 +0100
4Subject: [PATCH] lib:replace: Don't use deprecated readline CPPFunction cast
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9HAVE_RL_COMPLETION_FUNC_T was unused and not checking for the right
10function.
11
12libcli/smbreadline/smbreadline.c: In function ‘smb_readline’:
13libcli/smbreadline/smbreadline.c:139:17: warning: ‘CPPFunction’ is deprecated [-Wdeprecated-declarations]
14 139 | rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
15 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16libcli/smbreadline/smbreadline.c:139:50: error: assignment to ‘char ** (*)(const char *, int, int)’ from incompatible pointer type ‘char ** (*)(void)’ [-Wincompatible-pointer-types]
17 139 | rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn;
18 | ^
19
20BUG: https://bugzilla.samba.org/show_bug.cgi?id=15788
21
22Signed-off-by: Andreas Schneider <asn@samba.org>
23Reviewed-by: Alexander Bokovoy <ab@samba.org>
24
25Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
26Autobuild-Date(master): Tue Jan 21 19:38:37 UTC 2025 on atb-devel-224
27
28Upstream-Status: Backport [https://github.com/samba-team/samba/commit/9aa5c43315d83c19514251a11c4fba5a137f2821]
29
30Signed-off-by: Markus Volk <f_l_k@t-online.de>
31---
32 lib/replace/system/readline.h | 4 +++-
33 libcli/smbreadline/wscript_configure | 8 +++++---
34 2 files changed, 8 insertions(+), 4 deletions(-)
35
36diff --git a/lib/replace/system/readline.h b/lib/replace/system/readline.h
37index 9a9af266ca6d..ac3604fc12e0 100644
38--- a/lib/replace/system/readline.h
39+++ b/lib/replace/system/readline.h
40@@ -46,7 +46,9 @@
41 #endif
42
43 #ifdef HAVE_NEW_LIBREADLINE
44-#ifdef HAVE_CPPFUNCTION
45+#if defined(HAVE_RL_COMPLETION_FUNC_T)
46+# define RL_COMPLETION_CAST (rl_completion_func_t *)
47+#elif defined(HAVE_CPPFUNCTION)
48 # define RL_COMPLETION_CAST (CPPFunction *)
49 #elif defined(HAVE_RL_COMPLETION_T)
50 # define RL_COMPLETION_CAST (rl_completion_t *)
51diff --git a/libcli/smbreadline/wscript_configure b/libcli/smbreadline/wscript_configure
52index 912ff53a150d..f5a401ebae00 100644
53--- a/libcli/smbreadline/wscript_configure
54+++ b/libcli/smbreadline/wscript_configure
55@@ -51,10 +51,12 @@ conf.CHECK_CODE('''
56 # endif
57 # endif
58 #endif
59-int main(void) {rl_completion_t f; return 0;}
60+int main(void) {rl_completion_func_t f; return 0;}
61 ''',
62-'HAVE_RL_COMPLETION_FUNC_T', execute=False, addmain=False,
63-msg='Checking for rl_completion_t')
64+ 'HAVE_RL_COMPLETION_FUNC_T',
65+ execute=False,
66+ addmain=False,
67+ msg='Checking for rl_completion_func_t')
68
69 conf.CHECK_CODE('''
70 #ifdef HAVE_READLINE_READLINE_H
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.19.7.bb b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb
index 796f1697fc..0213d131e5 100644
--- a/meta-networking/recipes-connectivity/samba/samba_4.19.7.bb
+++ b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb
@@ -12,7 +12,7 @@ ${SAMBA_MIRROR} http://mirror.internode.on.net/pub/samba \n \
12${SAMBA_MIRROR} http://www.mirrorservice.org/sites/ftp.samba.org \n \ 12${SAMBA_MIRROR} http://www.mirrorservice.org/sites/ftp.samba.org \n \
13" 13"
14 14
15export PYTHONHASHSEED="1" 15export PYTHONHASHSEED = "1"
16 16
17SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ 17SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \
18 file://smb.conf \ 18 file://smb.conf \
@@ -24,6 +24,7 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \
24 file://0005-Fix-pyext_PATTERN-for-cross-compilation.patch \ 24 file://0005-Fix-pyext_PATTERN-for-cross-compilation.patch \
25 file://0006-smbtorture-skip-test-case-tfork_cmd_send.patch \ 25 file://0006-smbtorture-skip-test-case-tfork_cmd_send.patch \
26 file://0007-Deleted-settiong-of-python-to-fix-the-install-confli.patch \ 26 file://0007-Deleted-settiong-of-python-to-fix-the-install-confli.patch \
27 file://9aa5c43315d83c19514251a11c4fba5a137f2821.patch \
27 " 28 "
28 29
29SRC_URI:append:libc-musl = " \ 30SRC_URI:append:libc-musl = " \
@@ -31,7 +32,7 @@ SRC_URI:append:libc-musl = " \
31 file://samba-4.3.9-remove-getpwent_r.patch \ 32 file://samba-4.3.9-remove-getpwent_r.patch \
32 " 33 "
33 34
34SRC_URI[sha256sum] = "2bbb800af2d6bc7b9c23e708cd58d008da3bfa6ef7e621d9ec8b53387efee445" 35SRC_URI[sha256sum] = "1aeff76c207f383477ce4badebd154691c408d2e15b01b333c85eb775468ddf6"
35 36
36UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz" 37UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz"
37 38
@@ -69,7 +70,7 @@ SYSTEMD_AUTO_ENABLE:${PN}-ad-dc = "disable"
69 70
70#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 71#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
71#to cross Popen 72#to cross Popen
72export WAF_NO_PREFORK="yes" 73export WAF_NO_PREFORK = "yes"
73 74
74# Use krb5. Build active domain controller. 75# Use krb5. Build active domain controller.
75# 76#
@@ -95,16 +96,16 @@ PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
95PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython," 96PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython,"
96PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5," 97PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5,"
97 98
98SAMBA4_IDMAP_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2" 99SAMBA4_IDMAP_MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
99SAMBA4_PDB_MODULES="pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4" 100SAMBA4_PDB_MODULES = "pdb_tdbsam,${@bb.utils.contains('PACKAGECONFIG', 'ldap', 'pdb_ldap,', '', d)}pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
100SAMBA4_AUTH_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" 101SAMBA4_AUTH_MODULES = "auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"
101SAMBA4_MODULES="${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODULES}" 102SAMBA4_MODULES = "${SAMBA4_IDMAP_MODULES},${SAMBA4_PDB_MODULES},${SAMBA4_AUTH_MODULES}"
102 103
103# These libraries are supposed to replace others supplied by packages, but decorate the names of 104# These libraries are supposed to replace others supplied by packages, but decorate the names of
104# .so files so there will not be a conflict. This is not done consistantly, so be very careful 105# .so files so there will not be a conflict. This is not done consistantly, so be very careful
105# when adding to this list. 106# when adding to this list.
106# 107#
107SAMBA4_LIBS="heimdal,NONE" 108SAMBA4_LIBS = "heimdal,NONE"
108 109
109EXTRA_OECONF += "--enable-fhs \ 110EXTRA_OECONF += "--enable-fhs \
110 --with-piddir=/run \ 111 --with-piddir=/run \
@@ -125,7 +126,7 @@ EXTRA_OECONF += "--enable-fhs \
125 --pythondir=${PYTHON_SITEPACKAGES_DIR} \ 126 --pythondir=${PYTHON_SITEPACKAGES_DIR} \
126 " 127 "
127 128
128LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 129LDFLAGS += "-Wl,-z,relro,-z,now"
129 130
130do_configure:append() { 131do_configure:append() {
131 cd ${S}/pidl/ 132 cd ${S}/pidl/
@@ -353,4 +354,10 @@ RDEPENDS:${PN}-test = "\
353 ${PN}-testsuite \ 354 ${PN}-testsuite \
354 " 355 "
355 356
357pkg_postinst:${PN}-common() {
358 if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then
359 ${sysconfdir}/init.d/populate-volatile.sh update
360 fi
361}
362
356ALLOW_EMPTY:${PN}-test = "1" 363ALLOW_EMPTY:${PN}-test = "1"
diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc_1.18.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc_1.18.bb
index 4e3c157713..faaf393529 100644
--- a/meta-networking/recipes-connectivity/sethdlc/sethdlc_1.18.bb
+++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc_1.18.bb
@@ -15,8 +15,8 @@ SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6a
15PACKAGE_ARCH = "${MACHINE_ARCH}" 15PACKAGE_ARCH = "${MACHINE_ARCH}"
16DEPENDS = "virtual/kernel" 16DEPENDS = "virtual/kernel"
17 17
18EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \ 18EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
19 KERNEL_DIR=${STAGING_KERNEL_DIR} " 19 KERNEL_DIR=${STAGING_KERNEL_DIR} "
20 20
21do_compile:prepend () { 21do_compile:prepend () {
22 oe_runmake clean 22 oe_runmake clean
diff --git a/meta-networking/recipes-connectivity/snort/snort/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-connectivity/snort/snort/0001-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..c221172cc8
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/snort/0001-Fix-build-with-gcc-15.patch
@@ -0,0 +1,110 @@
1From cc3724348c8e6371351e4370f158d17f28838e3b Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Sat, 26 Apr 2025 11:40:45 +0200
4Subject: [PATCH] Fix build with gcc-15
5
6* fixes:
7 http://errors.yoctoproject.org/Errors/Details/852983/
8
9../../../../../snort-2.9.20/src/preprocessors/HttpInspect/files/file_decomp_PDF.c:1062:13: error: conflicting types for 'File_Decomp_PDF'; have 'fd_status_t(struct fd_session_s *)' {aka 'enum fd_status(struct fd_session_s *)'}
10 1062 | fd_status_t File_Decomp_PDF( fd_session_p_t SessionPtr )
11 | ^~~~~~~~~~~~~~~
12In file included from ../../../../../snort-2.9.20/src/preprocessors/HttpInspect/include/file_decomp.h:59,
13 from ../../../../../snort-2.9.20/src/preprocessors/HttpInspect/files/file_decomp_PDF.c:31:
14../../../../../snort-2.9.20/src/preprocessors/HttpInspect/include/file_decomp_PDF.h:83:13: note: previous declaration of 'File_Decomp_PDF' with type 'fd_status_t(void)' {aka 'enum fd_status(void)'}
15 83 | fd_status_t File_Decomp_PDF();
16 | ^~~~~~~~~~~~~~~
17make[5]: *** [Makefile:374: file_decomp_PDF.o] Error 1
18make[5]: *** Waiting for unfinished jobs....
19../../../../../snort-2.9.20/src/preprocessors/HttpInspect/files/file_decomp.c: In function 'Process_Decompression':
20../../../../../snort-2.9.20/src/preprocessors/HttpInspect/files/file_decomp.c:245:24: error: too many arguments to function 'File_Decomp_PDF'; expected 0, have 1
21 245 | Ret_Code = File_Decomp_PDF( SessionPtr );
22 | ^~~~~~~~~~~~~~~ ~~~~~~~~~~
23In file included from ../../../../../snort-2.9.20/src/preprocessors/HttpInspect/include/file_decomp.h:59,
24 from ../../../../../snort-2.9.20/src/preprocessors/HttpInspect/files/file_decomp.c:34:
25../../../../../snort-2.9.20/src/preprocessors/HttpInspect/include/file_decomp_PDF.h:83:13: note: declared here
26 83 | fd_status_t File_Decomp_PDF();
27 | ^~~~~~~~~~~~~~~
28
29 http://errors.yoctoproject.org/Errors/Details/852992/
30../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c: In function 'DCE2_InitGlobal':
31../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:348:25: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
32 348 | size_t memcap = DCE2_GetReloadSafeMemcap(dce2_config);
33 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
34../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
35 163 | static uint32_t DCE2_GetReloadSafeMemcap();
36 | ^~~~~~~~~~~~~~~~~~~~~~~~
37../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c: In function 'DCE2_ReloadGlobal':
38../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1291:25: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
39 1291 | size_t memcap = DCE2_GetReloadSafeMemcap(dce2_swap_config);
40 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
41../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
42 163 | static uint32_t DCE2_GetReloadSafeMemcap();
43 | ^~~~~~~~~~~~~~~~~~~~~~~~
44../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c: In function 'DCE2_ReloadVerify':
45../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1436:35: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
46 1436 | uint32_t current_memcap = DCE2_GetReloadSafeMemcap(dce2_config);
47 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
48../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
49 163 | static uint32_t DCE2_GetReloadSafeMemcap();
50 | ^~~~~~~~~~~~~~~~~~~~~~~~
51../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1437:35: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
52 1437 | uint32_t new_memcap = DCE2_GetReloadSafeMemcap(dce2_swap_config);
53 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
54../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
55 163 | static uint32_t DCE2_GetReloadSafeMemcap();
56 | ^~~~~~~~~~~~~~~~~~~~~~~~
57../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c: In function 'DCE2_ReloadSwap':
58../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1535:26: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
59 1535 | current_memcap = DCE2_GetReloadSafeMemcap(dce2_config);
60 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
61../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
62 163 | static uint32_t DCE2_GetReloadSafeMemcap();
63 | ^~~~~~~~~~~~~~~~~~~~~~~~
64../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1538:26: error: too many arguments to function 'DCE2_GetReloadSafeMemcap'; expected 0, have 1
65 1538 | swap_memcap = DCE2_GetReloadSafeMemcap(dce2_swap_config);
66 | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
67../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: declared here
68 163 | static uint32_t DCE2_GetReloadSafeMemcap();
69 | ^~~~~~~~~~~~~~~~~~~~~~~~
70../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c: At top level:
71../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:1673:17: error: conflicting types for 'DCE2_GetReloadSafeMemcap'; have 'uint32_t(tSfPolicyUserContext *)' {aka 'unsigned int(tSfPolicyUserContext *)'}
72 1673 | static uint32_t DCE2_GetReloadSafeMemcap(tSfPolicyUserContextId pConfig)
73 | ^~~~~~~~~~~~~~~~~~~~~~~~
74../../../../snort-2.9.20/src/dynamic-preprocessors/dcerpc2/spp_dce2.c:163:17: note: previous declaration of 'DCE2_GetReloadSafeMemcap' with type 'uint32_t(void)' {aka 'unsigned int(void)'}
75 163 | static uint32_t DCE2_GetReloadSafeMemcap();
76 | ^~~~~~~~~~~~~~~~~~~~~~~~
77
78Upstream-Status: Backport [resolved in snort3 https://github.com/snort3/snort3/commit/c3cc27355ac302bd24ee3e9d613166898ec2be64]
79
80Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
81---
82 src/dynamic-preprocessors/dcerpc2/spp_dce2.c | 2 +-
83 src/preprocessors/HttpInspect/include/file_decomp_PDF.h | 2 +-
84 2 files changed, 2 insertions(+), 2 deletions(-)
85
86diff --git a/src/dynamic-preprocessors/dcerpc2/spp_dce2.c b/src/dynamic-preprocessors/dcerpc2/spp_dce2.c
87index 7fd78ee..150645f 100644
88--- a/src/dynamic-preprocessors/dcerpc2/spp_dce2.c
89+++ b/src/dynamic-preprocessors/dcerpc2/spp_dce2.c
90@@ -160,7 +160,7 @@ static void DCE2_ReloadSwapFree(void *);
91 static void DCE2_AddPortsToPaf(struct _SnortConfig *, DCE2_Config *, tSfPolicyId);
92 static void DCE2_ScAddPortsToPaf(struct _SnortConfig *, void *);
93 static uint32_t max(uint32_t a, uint32_t b);
94-static uint32_t DCE2_GetReloadSafeMemcap();
95+static uint32_t DCE2_GetReloadSafeMemcap(tSfPolicyUserContextId pConfig);
96
97 static bool dce2_file_cache_is_enabled = false;
98 static bool dce2_file_cache_was_enabled = false;
99diff --git a/src/preprocessors/HttpInspect/include/file_decomp_PDF.h b/src/preprocessors/HttpInspect/include/file_decomp_PDF.h
100index 8d39185..0e624f7 100644
101--- a/src/preprocessors/HttpInspect/include/file_decomp_PDF.h
102+++ b/src/preprocessors/HttpInspect/include/file_decomp_PDF.h
103@@ -80,6 +80,6 @@ fd_status_t File_Decomp_Init_PDF( fd_session_p_t SessionPtr );
104
105 fd_status_t File_Decomp_End_PDF( fd_session_p_t SessionPtr );
106
107-fd_status_t File_Decomp_PDF();
108+fd_status_t File_Decomp_PDF( fd_session_p_t SessionPtr );
109
110 #endif /* FILE_DECOMP_PDF_H */
diff --git a/meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..f9cade5256
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/snort3/0001-Fix-build-with-gcc-15.patch
@@ -0,0 +1,79 @@
1From 2bfb46b11d35f2fc5f3926376651cc936c6eab13 Mon Sep 17 00:00:00 2001
2From: Nguyen Dat Tho <tho3.nguyen@lge.com>
3Date: Mon, 31 Mar 2025 15:59:51 +0900
4Subject: [PATCH] Fix build with gcc-15
5
6Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
7
8Upstream-Status: Submitted <https://github.com/snort3/snort3/pull/408>
9---
10 tools/snort2lua/config_states/config_ignore_ports.cc | 1 +
11 tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc | 1 +
12 tools/snort2lua/preprocessor_states/pps_frag3_engine.cc | 1 +
13 tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc | 1 +
14 tools/snort2lua/rule_states/rule_gid_sid.cc | 1 +
15 5 files changed, 5 insertions(+)
16
17diff --git a/tools/snort2lua/config_states/config_ignore_ports.cc b/tools/snort2lua/config_states/config_ignore_ports.cc
18index 4ddfebb5d..ec180a558 100644
19--- a/tools/snort2lua/config_states/config_ignore_ports.cc
20+++ b/tools/snort2lua/config_states/config_ignore_ports.cc
21@@ -21,6 +21,7 @@
22 #include <vector>
23 #include <string>
24 #include <stdexcept>
25+#include <cstdint>
26
27 #include "conversion_state.h"
28 #include "helpers/converter.h"
29diff --git a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
30index 2a41decb8..79e98dd2b 100644
31--- a/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
32+++ b/tools/snort2lua/preprocessor_states/pps_dcerpc_server.cc
33@@ -25,6 +25,7 @@
34
35 #include <algorithm>
36 #include <cstring>
37+#include <cstdint>
38
39 namespace preprocessors
40 {
41diff --git a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
42index d5c1fcf4d..c0309cc6f 100644
43--- a/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
44+++ b/tools/snort2lua/preprocessor_states/pps_frag3_engine.cc
45@@ -19,6 +19,7 @@
46
47 #include <sstream>
48 #include <vector>
49+#include <cstdint>
50
51 #include "conversion_state.h"
52 #include "helpers/converter.h"
53diff --git a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
54index 1e97a58ad..3df35340e 100644
55--- a/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
56+++ b/tools/snort2lua/preprocessor_states/pps_stream5_tcp.cc
57@@ -20,6 +20,7 @@
58 #include <sstream>
59 #include <vector>
60 #include <string>
61+#include <cstdint>
62
63 #include "conversion_state.h"
64 #include "helpers/s2l_util.h"
65diff --git a/tools/snort2lua/rule_states/rule_gid_sid.cc b/tools/snort2lua/rule_states/rule_gid_sid.cc
66index 7f2b84ae4..d3215b655 100644
67--- a/tools/snort2lua/rule_states/rule_gid_sid.cc
68+++ b/tools/snort2lua/rule_states/rule_gid_sid.cc
69@@ -27,6 +27,7 @@
70
71 #include <sstream>
72 #include <unordered_map>
73+#include <cstdint>
74
75 #include "conversion_state.h"
76 #include "helpers/converter.h"
77--
782.34.1
79
diff --git a/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch b/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch
index ec7b90cfb4..626f412731 100644
--- a/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch
+++ b/meta-networking/recipes-connectivity/snort/snort3/0001-cmake-Pass-noline-flag-to-flex.patch
@@ -8,6 +8,7 @@ could be absolute build paths, since these files end up in dbg packages
8this can be flagged as a build/packaging warning. 8this can be flagged as a build/packaging warning.
9 9
10Upstream-Status: Pending 10Upstream-Status: Pending
11
11Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
12--- 13---
13 cmake/configure_options.cmake | 2 +- 14 cmake/configure_options.cmake | 2 +-
diff --git a/meta-networking/recipes-connectivity/snort/snort3_3.1.84.0.bb b/meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb
index ee84aa17e7..e9169a050f 100644
--- a/meta-networking/recipes-connectivity/snort/snort3_3.1.84.0.bb
+++ b/meta-networking/recipes-connectivity/snort/snort3_3.7.1.0.bb
@@ -9,10 +9,11 @@ DEPENDS = "flex-native hwloc libdaq libdnet libpcap libpcre libtirpc libunwind l
9 9
10SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \ 10SRC_URI = "git://github.com/snort3/snort3.git;protocol=https;branch=master \
11 file://0001-cmake-Check-for-HP-libunwind.patch \ 11 file://0001-cmake-Check-for-HP-libunwind.patch \
12 file://0001-cmake-Pass-noline-flag-to-flex.patch" 12 file://0001-cmake-Pass-noline-flag-to-flex.patch \
13SRCREV = "e7312efd840d66a52a2019abe1db7cc89ca0f39a" 13 file://0001-Fix-build-with-gcc-15.patch"
14
15SRCREV = "6a11279883a8584e06ad9ab2df162c639961cd61"
14 16
15S = "${WORKDIR}/git"
16 17
17PACKAGES =+ "${PN}-scripts" 18PACKAGES =+ "${PN}-scripts"
18 19
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb
index 9bc14fc56f..7f1b779cc4 100644
--- a/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb
+++ b/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb
@@ -15,6 +15,7 @@ SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \
15 file://fix-host-contamination-when-enable-static-daq.patch \ 15 file://fix-host-contamination-when-enable-static-daq.patch \
16 file://disable-run-test-program-while-cross-compiling.patch \ 16 file://disable-run-test-program-while-cross-compiling.patch \
17 file://configure.in-disable-tirpc-checking-for-fedora.patch \ 17 file://configure.in-disable-tirpc-checking-for-fedora.patch \
18 file://0001-Fix-build-with-gcc-15.patch \
18" 19"
19SRC_URI[sha256sum] = "29400e13f53b1831e0b8b10ec1224a1cbaa6dc1533a5322a20dd80bb84b4981c" 20SRC_URI[sha256sum] = "29400e13f53b1831e0b8b10ec1224a1cbaa6dc1533a5322a20dd80bb84b4981c"
20 21
diff --git a/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb b/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb
index f6b58559d4..f36435c8ea 100644
--- a/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb
+++ b/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb
@@ -12,6 +12,8 @@ SRC_URI[sha256sum] = "2b1f7927a9d2dcff9095aff3c271924b052ccfd2faca9588b277431a44
12SYSTEMD_PACKAGES = "${PN}" 12SYSTEMD_PACKAGES = "${PN}"
13SYSTEMD_SERVICE:${PN} = "tayga.service" 13SYSTEMD_SERVICE:${PN} = "tayga.service"
14 14
15EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
16
15do_install:append() { 17do_install:append() {
16 install -m 0644 ${UNPACKDIR}/tayga.conf ${D}${sysconfdir}/tayga.conf 18 install -m 0644 ${UNPACKDIR}/tayga.conf ${D}${sysconfdir}/tayga.conf
17 install -d ${D}${systemd_unitdir}/system/ 19 install -d ${D}${systemd_unitdir}/system/
@@ -19,3 +21,4 @@ do_install:append() {
19} 21}
20 22
21inherit autotools systemd 23inherit autotools systemd
24
diff --git a/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
index b478692e39..845c3cf53c 100644
--- a/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
+++ b/meta-networking/recipes-connectivity/vlan/vlan_1.9.bb
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb486884
15UPSTREAM_CHECK_URI = "http://vlan.sourcearchive.com/" 15UPSTREAM_CHECK_URI = "http://vlan.sourcearchive.com/"
16UPSTREAM_CHECK_REGEX = "/(?P<pver>\d+(\.\d+)+)/" 16UPSTREAM_CHECK_REGEX = "/(?P<pver>\d+(\.\d+)+)/"
17 17
18S = "${WORKDIR}/${BPN}" 18S = "${UNPACKDIR}/${BPN}"
19 19
20inherit update-alternatives 20inherit update-alternatives
21 21
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
index 5876b58273..5d9d2634a0 100644
--- a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
@@ -29,7 +29,6 @@ PACKAGECONFIG[openssl] = ",,openssl"
29 29
30PACKAGES =+ "${PN}-script" 30PACKAGES =+ "${PN}-script"
31 31
32S = "${WORKDIR}/git"
33 32
34inherit perlnative pkgconfig 33inherit perlnative pkgconfig
35 34
diff --git a/meta-networking/recipes-connectivity/wolfssl/files/0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch b/meta-networking/recipes-connectivity/wolfssl/files/0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch
new file mode 100644
index 0000000000..f4f149c7e8
--- /dev/null
+++ b/meta-networking/recipes-connectivity/wolfssl/files/0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch
@@ -0,0 +1,791 @@
1From 04975ac158e6d33875c2855f74792efb2258bb93 Mon Sep 17 00:00:00 2001
2From: Daniel Pouzzner <douzzer@wolfssl.com>
3Date: Tue, 13 May 2025 20:30:48 -0500
4Subject: [PATCH] wolfssl/wolfcrypt/logging.h and wolfcrypt/src/logging.c: add
5 WOLFSSL_DEBUG_PRINTF() macro adapted from wolfssl_log(), refactor
6 wolfssl_log() to use it, and move printf setup includes/prototypes from
7 logging.c to logging.h;
8
9src/ssl_load.c: add source_name arg and WOLFSSL_DEBUG_CERTIFICATE_LOADS clauses
10 to ProcessBuffer() and ProcessChainBuffer(), and pass reasonable values from
11 callers;
12
13remove expired "Baltimore CyberTrust Root" from certs/external/ca_collection.pem
14 and certs/external/baltimore-cybertrust-root.pem.
15
16Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/55460a52619626f614e86d528b9a60445562eb34]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 certs/external/baltimore-cybertrust-root.pem | 21 ---
20 certs/external/ca_collection.pem | 77 ----------
21 src/ssl_load.c | 111 +++++++++++----
22 wolfcrypt/src/error.c | 4 +-
23 wolfcrypt/src/logging.c | 142 ++-----------------
24 wolfssl/internal.h | 3 +-
25 wolfssl/wolfcrypt/logging.h | 93 +++++++++++-
26 7 files changed, 190 insertions(+), 261 deletions(-)
27 delete mode 100644 certs/external/baltimore-cybertrust-root.pem
28
29diff --git a/certs/external/baltimore-cybertrust-root.pem b/certs/external/baltimore-cybertrust-root.pem
30deleted file mode 100644
31index 519028c63..000000000
32--- a/certs/external/baltimore-cybertrust-root.pem
33+++ /dev/null
34@@ -1,21 +0,0 @@
35------BEGIN CERTIFICATE-----
36-MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ
37-RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD
38-VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX
39-DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y
40-ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy
41-VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr
42-mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr
43-IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK
44-mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu
45-XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy
46-dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye
47-jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1
48-BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3
49-DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92
50-9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx
51-jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0
52-Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz
53-ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS
54-R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
55------END CERTIFICATE-----
56diff --git a/certs/external/ca_collection.pem b/certs/external/ca_collection.pem
57index ddfdf9cee..c76d6c605 100644
58--- a/certs/external/ca_collection.pem
59+++ b/certs/external/ca_collection.pem
60@@ -1,80 +1,3 @@
61-Certificate:
62- Data:
63- Version: 3 (0x2)
64- Serial Number: 33554617 (0x20000b9)
65- Signature Algorithm: sha1WithRSAEncryption
66- Issuer: C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore CyberTrust Root
67- Validity
68- Not Before: May 12 18:46:00 2000 GMT
69- Not After : May 12 23:59:00 2025 GMT
70- Subject: C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore CyberTrust Root
71- Subject Public Key Info:
72- Public Key Algorithm: rsaEncryption
73- RSA Public-Key: (2048 bit)
74- Modulus:
75- 00:a3:04:bb:22:ab:98:3d:57:e8:26:72:9a:b5:79:
76- d4:29:e2:e1:e8:95:80:b1:b0:e3:5b:8e:2b:29:9a:
77- 64:df:a1:5d:ed:b0:09:05:6d:db:28:2e:ce:62:a2:
78- 62:fe:b4:88:da:12:eb:38:eb:21:9d:c0:41:2b:01:
79- 52:7b:88:77:d3:1c:8f:c7:ba:b9:88:b5:6a:09:e7:
80- 73:e8:11:40:a7:d1:cc:ca:62:8d:2d:e5:8f:0b:a6:
81- 50:d2:a8:50:c3:28:ea:f5:ab:25:87:8a:9a:96:1c:
82- a9:67:b8:3f:0c:d5:f7:f9:52:13:2f:c2:1b:d5:70:
83- 70:f0:8f:c0:12:ca:06:cb:9a:e1:d9:ca:33:7a:77:
84- d6:f8:ec:b9:f1:68:44:42:48:13:d2:c0:c2:a4:ae:
85- 5e:60:fe:b6:a6:05:fc:b4:dd:07:59:02:d4:59:18:
86- 98:63:f5:a5:63:e0:90:0c:7d:5d:b2:06:7a:f3:85:
87- ea:eb:d4:03:ae:5e:84:3e:5f:ff:15:ed:69:bc:f9:
88- 39:36:72:75:cf:77:52:4d:f3:c9:90:2c:b9:3d:e5:
89- c9:23:53:3f:1f:24:98:21:5c:07:99:29:bd:c6:3a:
90- ec:e7:6e:86:3a:6b:97:74:63:33:bd:68:18:31:f0:
91- 78:8d:76:bf:fc:9e:8e:5d:2a:86:a7:4d:90:dc:27:
92- 1a:39
93- Exponent: 65537 (0x10001)
94- X509v3 extensions:
95- X509v3 Subject Key Identifier:
96- E5:9D:59:30:82:47:58:CC:AC:FA:08:54:36:86:7B:3A:B5:04:4D:F0
97- X509v3 Basic Constraints: critical
98- CA:TRUE, pathlen:3
99- X509v3 Key Usage: critical
100- Certificate Sign, CRL Sign
101- Signature Algorithm: sha1WithRSAEncryption
102- 85:0c:5d:8e:e4:6f:51:68:42:05:a0:dd:bb:4f:27:25:84:03:
103- bd:f7:64:fd:2d:d7:30:e3:a4:10:17:eb:da:29:29:b6:79:3f:
104- 76:f6:19:13:23:b8:10:0a:f9:58:a4:d4:61:70:bd:04:61:6a:
105- 12:8a:17:d5:0a:bd:c5:bc:30:7c:d6:e9:0c:25:8d:86:40:4f:
106- ec:cc:a3:7e:38:c6:37:11:4f:ed:dd:68:31:8e:4c:d2:b3:01:
107- 74:ee:be:75:5e:07:48:1a:7f:70:ff:16:5c:84:c0:79:85:b8:
108- 05:fd:7f:be:65:11:a3:0f:c0:02:b4:f8:52:37:39:04:d5:a9:
109- 31:7a:18:bf:a0:2a:f4:12:99:f7:a3:45:82:e3:3c:5e:f5:9d:
110- 9e:b5:c8:9e:7c:2e:c8:a4:9e:4e:08:14:4b:6d:fd:70:6d:6b:
111- 1a:63:bd:64:e6:1f:b7:ce:f0:f2:9f:2e:bb:1b:b7:f2:50:88:
112- 73:92:c2:e2:e3:16:8d:9a:32:02:ab:8e:18:dd:e9:10:11:ee:
113- 7e:35:ab:90:af:3e:30:94:7a:d0:33:3d:a7:65:0f:f5:fc:8e:
114- 9e:62:cf:47:44:2c:01:5d:bb:1d:b5:32:d2:47:d2:38:2e:d0:
115- fe:81:dc:32:6a:1e:b5:ee:3c:d5:fc:e7:81:1d:19:c3:24:42:
116- ea:63:39:a9
117------BEGIN CERTIFICATE-----
118-MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ
119-RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD
120-VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX
121-DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y
122-ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy
123-VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr
124-mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr
125-IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK
126-mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu
127-XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy
128-dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye
129-jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1
130-BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3
131-DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92
132-9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx
133-jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0
134-Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz
135-ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS
136-R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
137------END CERTIFICATE-----
138 Certificate:
139 Data:
140 Version: 3 (0x2)
141diff --git a/src/ssl_load.c b/src/ssl_load.c
142index 24c8af1be..d803b4093 100644
143--- a/src/ssl_load.c
144+++ b/src/ssl_load.c
145@@ -2352,11 +2352,13 @@ static int ProcessBufferResetSuites(WOLFSSL_CTX* ctx, WOLFSSL* ssl, int type)
146 * @param [out] used Number of bytes consumed.
147 * @param [in[ userChain Whether this certificate is for user's chain.
148 * @param [in] verify How to verify certificate.
149+ * @param [in] source_name Associated filename or other source ID.
150 * @return 1 on success.
151 * @return Less than 1 on failure.
152 */
153 int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
154- int format, int type, WOLFSSL* ssl, long* used, int userChain, int verify)
155+ int format, int type, WOLFSSL* ssl, long* used, int userChain, int verify,
156+ const char *source_name)
157 {
158 DerBuffer* der = NULL;
159 int ret = 0;
160@@ -2367,6 +2369,11 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
161 EncryptedInfo info[1];
162 #endif
163 int algId = 0;
164+#ifdef WOLFSSL_DEBUG_CERTIFICATE_LOADS
165+ long usedAtStart = used ? *used : 0L;
166+#else
167+ (void)source_name;
168+#endif
169
170 WOLFSSL_ENTER("ProcessBuffer");
171
172@@ -2444,6 +2451,22 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
173 CLEAR_ASN_NO_PEM_HEADER_ERROR(pemErr);
174 ret = 0;
175 }
176+#ifdef WOLFSSL_DEBUG_CERTIFICATE_LOADS
177+ if (ret < 0) {
178+#ifdef NO_ERROR_STRINGS
179+ WOLFSSL_DEBUG_PRINTF(
180+ "ERROR: ProcessUserChain: certificate from %s at offset %ld"
181+ " rejected with code %d\n",
182+ source_name, usedAtStart, ret);
183+#else
184+ WOLFSSL_DEBUG_PRINTF(
185+ "ERROR: ProcessUserChain: certificate from %s at offset %ld"
186+ " rejected with code %d: %s\n",
187+ source_name, usedAtStart, ret,
188+ wolfSSL_ERR_reason_error_string(ret));
189+#endif
190+ }
191+#endif /* WOLFSSL_DEBUG_CERTIFICATE_LOADS */
192 }
193
194 #ifdef WOLFSSL_SMALL_STACK
195@@ -2455,6 +2478,22 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
196 /* Process the different types of certificates. */
197 ret = ProcessBufferCertTypes(ctx, ssl, buff, sz, der, format, type,
198 verify);
199+#ifdef WOLFSSL_DEBUG_CERTIFICATE_LOADS
200+ if (ret < 0) {
201+#ifdef NO_ERROR_STRINGS
202+ WOLFSSL_DEBUG_PRINTF(
203+ "ERROR: ProcessBufferCertTypes: certificate from %s at"
204+ " offset %ld rejected with code %d\n",
205+ source_name, usedAtStart, ret);
206+#else
207+ WOLFSSL_DEBUG_PRINTF(
208+ "ERROR: ProcessBufferCertTypes: certificate from %s at"
209+ " offset %ld rejected with code %d: %s\n",
210+ source_name, usedAtStart, ret,
211+ wolfSSL_ERR_reason_error_string(ret));
212+#endif
213+ }
214+#endif /* WOLFSSL_DEBUG_CERTIFICATE_LOADS */
215 }
216 else {
217 FreeDer(&der);
218@@ -2515,12 +2554,14 @@ static int ProcessChainBufferCRL(WOLFSSL_CTX* ctx, const unsigned char* buff,
219 * @param [in] sz Size of data in buffer.
220 * @param [in] type Type of data.
221 * @param [in] verify How to verify certificate.
222+ * @param [in] source_name Associated filename or other source ID.
223 * @return 1 on success.
224 * @return 0 on failure.
225 * @return MEMORY_E when dynamic memory allocation fails.
226 */
227 static int ProcessChainBuffer(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
228- const unsigned char* buff, long sz, int type, int verify)
229+ const unsigned char* buff, long sz, int type, int verify,
230+ const char *source_name)
231 {
232 int ret = 0;
233 long used = 0;
234@@ -2529,11 +2570,11 @@ static int ProcessChainBuffer(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
235 WOLFSSL_MSG("Processing CA PEM file");
236 /* Keep processing file while no errors and data to parse. */
237 while ((ret >= 0) && (used < sz)) {
238- long consumed = 0;
239+ long consumed = used;
240
241 /* Process the buffer. */
242 ret = ProcessBuffer(ctx, buff + used, sz - used, WOLFSSL_FILETYPE_PEM,
243- type, ssl, &consumed, 0, verify);
244+ type, ssl, &consumed, 0, verify, source_name);
245 /* Memory allocation failure is fatal. */
246 if (ret == WC_NO_ERR_TRACE(MEMORY_E)) {
247 gotOne = 0;
248@@ -2665,6 +2706,12 @@ int ProcessFile(WOLFSSL_CTX* ctx, const char* fname, int format, int type,
249 {
250 /* Not a header that we support. */
251 WOLFSSL_MSG("Failed to detect certificate type");
252+#ifdef WOLFSSL_DEBUG_CERTIFICATE_LOADS
253+ WOLFSSL_DEBUG_PRINTF(
254+ "ERROR: ProcessFile: Failed to detect certificate type"
255+ " of \"%s\"\n",
256+ fname);
257+#endif
258 ret = WOLFSSL_BAD_CERTTYPE;
259 }
260 }
261@@ -2673,7 +2720,7 @@ int ProcessFile(WOLFSSL_CTX* ctx, const char* fname, int format, int type,
262 if (((type == CA_TYPE) || (type == TRUSTED_PEER_TYPE)) &&
263 (format == WOLFSSL_FILETYPE_PEM)) {
264 ret = ProcessChainBuffer(ctx, ssl, content.buffer, sz, type,
265- verify);
266+ verify, fname);
267 }
268 #ifdef HAVE_CRL
269 else if (type == CRL_TYPE) {
270@@ -2690,18 +2737,18 @@ int ProcessFile(WOLFSSL_CTX* ctx, const char* fname, int format, int type,
271 long consumed = 0;
272
273 ret = ProcessBuffer(ctx, content.buffer, sz, format, type, ssl,
274- &consumed, userChain, verify);
275+ &consumed, userChain, verify, fname);
276 if ((ret == 1) && (consumed < sz)) {
277 ret = ProcessBuffer(ctx, content.buffer + consumed,
278 sz - consumed, format, ALT_PRIVATEKEY_TYPE, ssl, NULL, 0,
279- verify);
280+ verify, fname);
281 }
282 }
283 #endif
284 else {
285 /* Load all other certificate types. */
286 ret = ProcessBuffer(ctx, content.buffer, sz, format, type, ssl,
287- NULL, userChain, verify);
288+ NULL, userChain, verify, fname);
289 }
290 }
291
292@@ -3030,7 +3077,8 @@ static int LoadSystemCaCertsWindows(WOLFSSL_CTX* ctx, byte* loaded)
293 if (ProcessBuffer(ctx, certCtx->pbCertEncoded,
294 certCtx->cbCertEncoded, WOLFSSL_FILETYPE_ASN1,
295 CA_TYPE, NULL, NULL, 0,
296- GET_VERIFY_SETTING_CTX(ctx)) == 1) {
297+ GET_VERIFY_SETTING_CTX(ctx),
298+ storeNames[i]) == 1) {
299 /*
300 * Set "loaded" as long as we've loaded one CA
301 * cert.
302@@ -3105,7 +3153,8 @@ static int LoadSystemCaCertsMac(WOLFSSL_CTX* ctx, byte* loaded)
303 if (ProcessBuffer(ctx, CFDataGetBytePtr(der),
304 CFDataGetLength(der), WOLFSSL_FILETYPE_ASN1,
305 CA_TYPE, NULL, NULL, 0,
306- GET_VERIFY_SETTING_CTX(ctx)) == 1) {
307+ GET_VERIFY_SETTING_CTX(ctx),
308+ "MacOSX trustDomains") == 1) {
309 /*
310 * Set "loaded" as long as we've loaded one CA
311 * cert.
312@@ -3644,7 +3693,8 @@ int wolfSSL_use_certificate(WOLFSSL* ssl, WOLFSSL_X509* x509)
313 /* Get DER encoded certificate data from X509 object. */
314 ret = ProcessBuffer(NULL, x509->derCert->buffer, x509->derCert->length,
315 WOLFSSL_FILETYPE_ASN1, CERT_TYPE, ssl, &idx, 0,
316- GET_VERIFY_SETTING_SSL(ssl));
317+ GET_VERIFY_SETTING_SSL(ssl),
318+ "x509 buffer");
319 }
320
321 /* Return 1 on success or 0 on failure. */
322@@ -3676,7 +3726,8 @@ int wolfSSL_use_certificate_ASN1(WOLFSSL* ssl, const unsigned char* der,
323 long idx = 0;
324
325 ret = ProcessBuffer(NULL, der, derSz, WOLFSSL_FILETYPE_ASN1, CERT_TYPE,
326- ssl, &idx, 0, GET_VERIFY_SETTING_SSL(ssl));
327+ ssl, &idx, 0, GET_VERIFY_SETTING_SSL(ssl),
328+ "asn1 buffer");
329 }
330
331 /* Return 1 on success or 0 on failure. */
332@@ -3884,12 +3935,13 @@ int wolfSSL_CTX_load_verify_buffer_ex(WOLFSSL_CTX* ctx, const unsigned char* in,
333
334 /* When PEM, treat as certificate chain of CA certificates. */
335 if (format == WOLFSSL_FILETYPE_PEM) {
336- ret = ProcessChainBuffer(ctx, NULL, in, sz, CA_TYPE, verify);
337+ ret = ProcessChainBuffer(ctx, NULL, in, sz, CA_TYPE, verify,
338+ "PEM buffer");
339 }
340 /* When DER, load the CA certificate. */
341 else {
342 ret = ProcessBuffer(ctx, in, sz, format, CA_TYPE, NULL, NULL,
343- userChain, verify);
344+ userChain, verify, "buffer");
345 }
346 #if defined(WOLFSSL_TRUST_PEER_CERT) && defined(OPENSSL_COMPATIBLE_DEFAULTS)
347 if (ret == 1) {
348@@ -3973,12 +4025,12 @@ int wolfSSL_CTX_trust_peer_buffer(WOLFSSL_CTX* ctx, const unsigned char* in,
349 /* When PEM, treat as certificate chain of trusted peer certificates. */
350 if (format == WOLFSSL_FILETYPE_PEM) {
351 ret = ProcessChainBuffer(ctx, NULL, in, sz, TRUSTED_PEER_TYPE,
352- verify);
353+ verify, "peer");
354 }
355 /* When DER, load the trusted peer certificate. */
356 else {
357 ret = ProcessBuffer(ctx, in, sz, format, TRUSTED_PEER_TYPE, NULL,
358- NULL, 0, verify);
359+ NULL, 0, verify, "peer");
360 }
361 }
362
363@@ -4004,7 +4056,7 @@ int wolfSSL_CTX_use_certificate_buffer(WOLFSSL_CTX* ctx,
364
365 WOLFSSL_ENTER("wolfSSL_CTX_use_certificate_buffer");
366 ret = ProcessBuffer(ctx, in, sz, format, CERT_TYPE, NULL, NULL, 0,
367- GET_VERIFY_SETTING_CTX(ctx));
368+ GET_VERIFY_SETTING_CTX(ctx), "buffer");
369 WOLFSSL_LEAVE("wolfSSL_CTX_use_certificate_buffer", ret);
370
371 return ret;
372@@ -4030,7 +4082,7 @@ int wolfSSL_CTX_use_PrivateKey_buffer(WOLFSSL_CTX* ctx, const unsigned char* in,
373 WOLFSSL_ENTER("wolfSSL_CTX_use_PrivateKey_buffer");
374
375 ret = ProcessBuffer(ctx, in, sz, format, PRIVATEKEY_TYPE, NULL, &consumed,
376- 0, GET_VERIFY_SETTING_CTX(ctx));
377+ 0, GET_VERIFY_SETTING_CTX(ctx), "key buffer");
378 #ifdef WOLFSSL_DUAL_ALG_CERTS
379 if ((ret == 1) && (consumed < sz)) {
380 /* When support for dual algorithm certificates is enabled, the
381@@ -4038,7 +4090,8 @@ int wolfSSL_CTX_use_PrivateKey_buffer(WOLFSSL_CTX* ctx, const unsigned char* in,
382 * private key. Hence, we have to parse both of them.
383 */
384 ret = ProcessBuffer(ctx, in + consumed, sz - consumed, format,
385- ALT_PRIVATEKEY_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx));
386+ ALT_PRIVATEKEY_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx),
387+ "key buffer");
388 }
389 #endif
390
391@@ -4056,7 +4109,7 @@ int wolfSSL_CTX_use_AltPrivateKey_buffer(WOLFSSL_CTX* ctx,
392
393 WOLFSSL_ENTER("wolfSSL_CTX_use_AltPrivateKey_buffer");
394 ret = ProcessBuffer(ctx, in, sz, format, ALT_PRIVATEKEY_TYPE, NULL,
395- NULL, 0, GET_VERIFY_SETTING_CTX(ctx));
396+ NULL, 0, GET_VERIFY_SETTING_CTX(ctx), "alt key buffer");
397 WOLFSSL_LEAVE("wolfSSL_CTX_use_AltPrivateKey_buffer", ret);
398
399 return ret;
400@@ -4271,7 +4324,8 @@ static int wolfSSL_CTX_use_certificate_ex(WOLFSSL_CTX* ctx,
401 }
402
403 ret = ProcessBuffer(ctx, certData, certDataLen, certFormat,
404- CERT_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx));
405+ CERT_TYPE, NULL, NULL, 0, GET_VERIFY_SETTING_CTX(ctx),
406+ label ? label : "cert buffer");
407
408 exit:
409 XFREE(certData, ctx->heap, DYNAMIC_TYPE_CERT);
410@@ -4333,7 +4387,7 @@ int wolfSSL_CTX_use_certificate_chain_buffer_format(WOLFSSL_CTX* ctx,
411 {
412 WOLFSSL_ENTER("wolfSSL_CTX_use_certificate_chain_buffer_format");
413 return ProcessBuffer(ctx, in, sz, format, CERT_TYPE, NULL, NULL, 1,
414- GET_VERIFY_SETTING_CTX(ctx));
415+ GET_VERIFY_SETTING_CTX(ctx), "cert chain buffer");
416 }
417
418 /* Load a PEM encoded certificate chain in a buffer into SSL context.
419@@ -4376,7 +4430,7 @@ int wolfSSL_use_certificate_buffer(WOLFSSL* ssl, const unsigned char* in,
420 }
421 else {
422 ret = ProcessBuffer(ssl->ctx, in, sz, format, CERT_TYPE, ssl, NULL, 0,
423- GET_VERIFY_SETTING_SSL(ssl));
424+ GET_VERIFY_SETTING_SSL(ssl), "cert buffer");
425 }
426
427 return ret;
428@@ -4407,7 +4461,7 @@ int wolfSSL_use_PrivateKey_buffer(WOLFSSL* ssl, const unsigned char* in,
429 }
430 else {
431 ret = ProcessBuffer(ssl->ctx, in, sz, format, PRIVATEKEY_TYPE, ssl,
432- &consumed, 0, GET_VERIFY_SETTING_SSL(ssl));
433+ &consumed, 0, GET_VERIFY_SETTING_SSL(ssl), "key buffer");
434 #ifdef WOLFSSL_DUAL_ALG_CERTS
435 if ((ret == 1) && (consumed < sz)) {
436 /* When support for dual algorithm certificates is enabled, the
437@@ -4415,7 +4469,8 @@ int wolfSSL_use_PrivateKey_buffer(WOLFSSL* ssl, const unsigned char* in,
438 * private key. Hence, we have to parse both of them.
439 */
440 ret = ProcessBuffer(ssl->ctx, in + consumed, sz - consumed, format,
441- ALT_PRIVATEKEY_TYPE, ssl, NULL, 0, GET_VERIFY_SETTING_SSL(ssl));
442+ ALT_PRIVATEKEY_TYPE, ssl, NULL, 0, GET_VERIFY_SETTING_SSL(ssl),
443+ "key buffer");
444 }
445 #endif
446 }
447@@ -4431,7 +4486,7 @@ int wolfSSL_use_AltPrivateKey_buffer(WOLFSSL* ssl, const unsigned char* in,
448
449 WOLFSSL_ENTER("wolfSSL_use_AltPrivateKey_buffer");
450 ret = ProcessBuffer(ssl->ctx, in, sz, format, ALT_PRIVATEKEY_TYPE, ssl,
451- NULL, 0, GET_VERIFY_SETTING_SSL(ssl));
452+ NULL, 0, GET_VERIFY_SETTING_SSL(ssl), "alt key buffer");
453 WOLFSSL_LEAVE("wolfSSL_use_AltPrivateKey_buffer", ret);
454
455 return ret;
456@@ -4669,7 +4724,7 @@ int wolfSSL_use_certificate_chain_buffer_format(WOLFSSL* ssl,
457 }
458 else {
459 ret = ProcessBuffer(ssl->ctx, in, sz, format, CERT_TYPE, ssl, NULL, 1,
460- GET_VERIFY_SETTING_SSL(ssl));
461+ GET_VERIFY_SETTING_SSL(ssl), "cert chain buffer");
462 }
463
464 return ret;
465@@ -4826,7 +4881,7 @@ long wolfSSL_CTX_add_extra_chain_cert(WOLFSSL_CTX* ctx, WOLFSSL_X509* x509)
466
467 /* Process buffer makes first certificate the leaf. */
468 ret = ProcessBuffer(ctx, der, derSz, WOLFSSL_FILETYPE_ASN1, CERT_TYPE,
469- NULL, NULL, 1, GET_VERIFY_SETTING_CTX(ctx));
470+ NULL, NULL, 1, GET_VERIFY_SETTING_CTX(ctx), "extra chain buffer");
471 if (ret != 1) {
472 ret = 0;
473 }
474diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c
475index af5ba36b4..9ec9484d4 100644
476--- a/wolfcrypt/src/error.c
477+++ b/wolfcrypt/src/error.c
478@@ -182,10 +182,10 @@ const char* wc_GetErrorString(int error)
479 return "ASN date error, bad size";
480
481 case ASN_BEFORE_DATE_E :
482- return "ASN date error, current date before";
483+ return "ASN date error, current date is before start of validity";
484
485 case ASN_AFTER_DATE_E :
486- return "ASN date error, current date after";
487+ return "ASN date error, current date is after expiration";
488
489 case ASN_SIG_OID_E :
490 return "ASN signature error, mismatched oid";
491diff --git a/wolfcrypt/src/logging.c b/wolfcrypt/src/logging.c
492index 29b9221df..b80fc3a56 100644
493--- a/wolfcrypt/src/logging.c
494+++ b/wolfcrypt/src/logging.c
495@@ -230,42 +230,6 @@ void WOLFSSL_TIME(int count)
496
497 #ifdef DEBUG_WOLFSSL
498
499-#if defined(ARDUINO)
500- /* see Arduino wolfssl.h for wolfSSL_Arduino_Serial_Print */
501-#elif defined(FREESCALE_MQX) || defined(FREESCALE_KSDK_MQX)
502- /* see wc_port.h for fio.h and nio.h includes */
503-#elif defined(WOLFSSL_SGX)
504- /* Declare sprintf for ocall */
505- int sprintf(char* buf, const char *fmt, ...);
506-#elif defined(WOLFSSL_DEOS)
507-#elif defined(MICRIUM)
508- #if (BSP_SER_COMM_EN == DEF_ENABLED)
509- #include <bsp_ser.h>
510- #endif
511-#elif defined(WOLFSSL_USER_LOG)
512- /* user includes their own headers */
513-#elif defined(WOLFSSL_ESPIDF)
514- #include "esp_types.h"
515- #include "esp_log.h"
516-#elif defined(WOLFSSL_TELIT_M2MB)
517- #include <stdio.h>
518- #include "m2m_log.h"
519-#elif defined(WOLFSSL_ANDROID_DEBUG)
520- #include <android/log.h>
521-#elif defined(WOLFSSL_XILINX)
522- #include "xil_printf.h"
523-#elif defined(WOLFSSL_LINUXKM)
524- /* the requisite linux/kernel.h is included in wc_port.h, with incompatible warnings masked out. */
525-#elif defined(FUSION_RTOS)
526- #include <fclstdio.h>
527- #define fprintf FCL_FPRINTF
528-#else
529- #include <stdio.h> /* for default printf stuff */
530-#endif
531-
532-#if defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
533- int dc_log_printf(char*, ...);
534-#endif
535
536 #ifdef HAVE_STACK_SIZE_VERBOSE
537 #include <wolfssl/wolfcrypt/mem_track.h>
538@@ -281,106 +245,30 @@ static void wolfssl_log(const int logLevel, const char* const file_name,
539 else {
540 #if defined(WOLFSSL_USER_LOG)
541 WOLFSSL_USER_LOG(logMessage);
542-#elif defined(ARDUINO)
543- wolfSSL_Arduino_Serial_Print(logMessage);
544-#elif defined(WOLFSSL_LOG_PRINTF)
545- if (file_name != NULL)
546- printf("[%s L %d] %s\n", file_name, line_number, logMessage);
547- else
548- printf("%s\n", logMessage);
549-#elif defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
550- if (file_name != NULL)
551- dc_log_printf("[%s L %d] %s\n", file_name, line_number, logMessage);
552- else
553- dc_log_printf("%s\n", logMessage);
554-#elif defined(WOLFSSL_DEOS)
555- if (file_name != NULL)
556- printf("[%s L %d] %s\r\n", file_name, line_number, logMessage);
557- else
558- printf("%s\r\n", logMessage);
559-#elif defined(MICRIUM)
560- if (file_name != NULL)
561- BSP_Ser_Printf("[%s L %d] %s\r\n",
562- file_name, line_number, logMessage);
563- else
564- BSP_Ser_Printf("%s\r\n", logMessage);
565-#elif defined(WOLFSSL_MDK_ARM)
566- fflush(stdout) ;
567- if (file_name != NULL)
568- printf("[%s L %d] %s\n", file_name, line_number, logMessage);
569- else
570- printf("%s\n", logMessage);
571- fflush(stdout) ;
572-#elif defined(WOLFSSL_UTASKER)
573- fnDebugMsg((char*)logMessage);
574- fnDebugMsg("\r\n");
575-#elif defined(MQX_USE_IO_OLD)
576- if (file_name != NULL)
577- fprintf(_mqxio_stderr, "[%s L %d] %s\n",
578- file_name, line_number, logMessage);
579- else
580- fprintf(_mqxio_stderr, "%s\n", logMessage);
581-#elif defined(WOLFSSL_APACHE_MYNEWT)
582- if (file_name != NULL)
583- LOG_DEBUG(&mynewt_log, LOG_MODULE_DEFAULT, "[%s L %d] %s\n",
584- file_name, line_number, logMessage);
585- else
586- LOG_DEBUG(&mynewt_log, LOG_MODULE_DEFAULT, "%s\n", logMessage);
587-#elif defined(WOLFSSL_ESPIDF)
588- if (file_name != NULL)
589- ESP_LOGI("wolfssl", "[%s L %d] %s",
590- file_name, line_number, logMessage);
591- else
592- ESP_LOGI("wolfssl", "%s", logMessage);
593-#elif defined(WOLFSSL_ZEPHYR)
594- if (file_name != NULL)
595- printk("[%s L %d] %s\n", file_name, line_number, logMessage);
596- else
597- printk("%s\n", logMessage);
598-#elif defined(WOLFSSL_TELIT_M2MB)
599- if (file_name != NULL)
600- M2M_LOG_INFO("[%s L %d] %s\n", file_name, line_number, logMessage);
601- else
602- M2M_LOG_INFO("%s\n", logMessage);
603-#elif defined(WOLFSSL_ANDROID_DEBUG)
604- if (file_name != NULL)
605- __android_log_print(ANDROID_LOG_VERBOSE, "[wolfSSL]", "[%s L %d] %s",
606- file_name, line_number, logMessage);
607- else
608- __android_log_print(ANDROID_LOG_VERBOSE, "[wolfSSL]", "%s",
609- logMessage);
610-#elif defined(WOLFSSL_XILINX)
611- if (file_name != NULL)
612- xil_printf("[%s L %d] %s\r\n", file_name, line_number, logMessage);
613- else
614- xil_printf("%s\r\n", logMessage);
615-#elif defined(WOLFSSL_LINUXKM)
616- if (file_name != NULL)
617- printk("[%s L %d] %s\n", file_name, line_number, logMessage);
618- else
619- printk("%s\n", logMessage);
620-#elif defined(WOLFSSL_RENESAS_RA6M4)
621- if (file_name != NULL)
622- myprintf("[%s L %d] %s\n", file_name, line_number, logMessage);
623- else
624- myprintf("%s\n", logMessage);
625-#elif defined(STACK_SIZE_CHECKPOINT_MSG) && \
626- defined(HAVE_STACK_SIZE_VERBOSE) && defined(HAVE_STACK_SIZE_VERBOSE_LOG)
627- STACK_SIZE_CHECKPOINT_MSG(logMessage);
628-#else
629+#elif defined(WOLFSSL_DEBUG_PRINTF)
630 if (log_prefix != NULL) {
631 if (file_name != NULL)
632- fprintf(stderr, "[%s]: [%s L %d] %s\n",
633+ WOLFSSL_DEBUG_PRINTF("[%s]: [%s L %d] %s\n",
634 log_prefix, file_name, line_number, logMessage);
635 else
636- fprintf(stderr, "[%s]: %s\n", log_prefix, logMessage);
637+ WOLFSSL_DEBUG_PRINTF("[%s]: %s\n", log_prefix, logMessage);
638 } else {
639 if (file_name != NULL)
640- fprintf(stderr, "[%s L %d] %s\n",
641+ WOLFSSL_DEBUG_PRINTF("[%s L %d] %s\n",
642 file_name, line_number, logMessage);
643 else
644- fprintf(stderr, "%s\n", logMessage);
645+ WOLFSSL_DEBUG_PRINTF("%s\n", logMessage);
646 }
647+#elif defined(ARDUINO)
648+ wolfSSL_Arduino_Serial_Print(logMessage);
649+#elif defined(WOLFSSL_UTASKER)
650+ fnDebugMsg((char*)logMessage);
651+ fnDebugMsg("\r\n");
652+#elif defined(STACK_SIZE_CHECKPOINT_MSG) && \
653+ defined(HAVE_STACK_SIZE_VERBOSE) && defined(HAVE_STACK_SIZE_VERBOSE_LOG)
654+ STACK_SIZE_CHECKPOINT_MSG(logMessage);
655+#else
656+ #error No log method defined.
657 #endif
658 }
659 }
660diff --git a/wolfssl/internal.h b/wolfssl/internal.h
661index 9cdbdb697..dd191fb1a 100644
662--- a/wolfssl/internal.h
663+++ b/wolfssl/internal.h
664@@ -6389,7 +6389,8 @@ WOLFSSL_TEST_VIS void wolfSSL_ResourceFree(WOLFSSL* ssl); /* Micrium uses */
665
666 WOLFSSL_LOCAL int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
667 long sz, int format, int type, WOLFSSL* ssl,
668- long* used, int userChain, int verify);
669+ long* used, int userChain, int verify,
670+ const char *source_name);
671 WOLFSSL_LOCAL int ProcessFile(WOLFSSL_CTX* ctx, const char* fname, int format,
672 int type, WOLFSSL* ssl, int userChain,
673 WOLFSSL_CRL* crl, int verify);
674diff --git a/wolfssl/wolfcrypt/logging.h b/wolfssl/wolfcrypt/logging.h
675index 49de70147..8b3cf0fd8 100644
676--- a/wolfssl/wolfcrypt/logging.h
677+++ b/wolfssl/wolfcrypt/logging.h
678@@ -89,11 +89,6 @@ enum wc_FuncNum {
679 };
680 #endif
681
682-#if defined(ARDUINO)
683-/* implemented in Arduino wolfssl.h */
684-extern WOLFSSL_API int wolfSSL_Arduino_Serial_Print(const char* const s);
685-#endif /* ARDUINO */
686-
687 typedef void (*wolfSSL_Logging_cb)(const int logLevel,
688 const char *const logMessage);
689
690@@ -157,6 +152,10 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix);
691 #define WOLFSSL_TIME(n) WC_DO_NOTHING
692 #endif
693
694+#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_DEBUG_CERTIFICATE_LOADS)
695+ #define WOLFSSL_DEBUG_CERTIFICATE_LOADS
696+#endif
697+
698 #if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_DEBUG_ERRORS_ONLY)
699 #if defined(_WIN32)
700 #if defined(INTIME_RTOS)
701@@ -268,6 +267,90 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix);
702 extern WOLFSSL_API THREAD_LS_T void *StackSizeCheck_stackOffsetPointer;
703 #endif
704
705+/* Port-specific includes and printf methods: */
706+
707+#if defined(ARDUINO)
708+ /* implemented in Arduino wolfssl.h */
709+ extern WOLFSSL_API int wolfSSL_Arduino_Serial_Print(const char* const s);
710+#elif defined(FREESCALE_MQX) || defined(FREESCALE_KSDK_MQX)
711+ /* see wc_port.h for fio.h and nio.h includes */
712+#elif defined(WOLFSSL_SGX)
713+ /* Declare sprintf for ocall */
714+ int sprintf(char* buf, const char *fmt, ...);
715+#elif defined(WOLFSSL_DEOS)
716+#elif defined(MICRIUM)
717+ #if (BSP_SER_COMM_EN == DEF_ENABLED)
718+ #include <bsp_ser.h>
719+ #endif
720+#elif defined(WOLFSSL_USER_LOG)
721+ /* user includes their own headers */
722+#elif defined(WOLFSSL_ESPIDF)
723+ #include "esp_types.h"
724+ #include "esp_log.h"
725+#elif defined(WOLFSSL_TELIT_M2MB)
726+ #include <stdio.h>
727+ #include "m2m_log.h"
728+#elif defined(WOLFSSL_ANDROID_DEBUG)
729+ #include <android/log.h>
730+#elif defined(WOLFSSL_XILINX)
731+ #include "xil_printf.h"
732+#elif defined(WOLFSSL_LINUXKM)
733+ /* the requisite linux/kernel.h is included in linuxkm_wc_port.h, with
734+ * incompatible warnings masked out.
735+ */
736+#elif defined(FUSION_RTOS)
737+ #include <fclstdio.h>
738+ #define fprintf FCL_FPRINTF
739+#else
740+ #include <stdio.h> /* for default printf stuff */
741+#endif
742+
743+#if defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
744+ int dc_log_printf(char*, ...);
745+#endif
746+
747+#ifdef WOLFSSL_DEBUG_PRINTF
748+ /* user-supplied definition */
749+#elif defined(ARDUINO)
750+ /* ARDUINO only has print and sprintf, no printf. */
751+#elif defined(WOLFSSL_LOG_PRINTF) || defined(WOLFSSL_DEOS)
752+ #define WOLFSSL_DEBUG_PRINTF(...) printf(__VA_ARGS__)
753+#elif defined(THREADX) && !defined(THREADX_NO_DC_PRINTF)
754+ #define WOLFSSL_DEBUG_PRINTF(...) dc_log_printf(__VA_ARGS__)
755+#elif defined(MICRIUM)
756+ #define WOLFSSL_DEBUG_PRINTF(...) BSP_Ser_Printf(__VA_ARGS__)
757+#elif defined(WOLFSSL_MDK_ARM)
758+ #define WOLFSSL_DEBUG_PRINTF(...) do { \
759+ fflush(stdout); \
760+ printf(__VA_ARGS__); \
761+ fflush(stdout); \
762+ } while (0)
763+#elif defined(WOLFSSL_UTASKER)
764+ /* WOLFSSL_UTASKER only has fnDebugMsg and related primitives, no printf. */
765+#elif defined(MQX_USE_IO_OLD)
766+ #define WOLFSSL_DEBUG_PRINTF(...) fprintf(_mqxio_stderr, __VAR_ARGS)
767+#elif defined(WOLFSSL_APACHE_MYNEWT)
768+ #define WOLFSSL_DEBUG_PRINTF(...) LOG_DEBUG(&mynewt_log, \
769+ LOG_MODULE_DEFAULT, __VA_ARGS__)
770+#elif defined(WOLFSSL_ESPIDF)
771+ #define WOLFSSL_DEBUG_PRINTF(...) ESP_LOGI("wolfssl", __VA_ARGS__)
772+#elif defined(WOLFSSL_ZEPHYR)
773+ #define WOLFSSL_DEBUG_PRINTF(...) printk(__VA_ARGS__)
774+#elif defined(WOLFSSL_TELIT_M2MB)
775+ #define WOLFSSL_DEBUG_PRINTF(...) M2M_LOG_INFO(__VA_ARGS__)
776+#elif defined(WOLFSSL_ANDROID_DEBUG)
777+ #define WOLFSSL_DEBUG_PRINTF(...) __android_log_print(ANDROID_LOG_VERBOSE, \
778+ "[wolfSSL]", __VA_ARGS__)
779+#elif defined(WOLFSSL_XILINX)
780+ #define WOLFSSL_DEBUG_PRINTF(...) xil_printf(__VA_ARGS__)
781+#elif defined(WOLFSSL_LINUXKM)
782+ #define WOLFSSL_DEBUG_PRINTF(...) printk(__VA_ARGS__)
783+#elif defined(WOLFSSL_RENESAS_RA6M4)
784+ #define WOLFSSL_DEBUG_PRINTF(...) myprintf(__VA_ARGS__)
785+#else
786+ #define WOLFSSL_DEBUG_PRINTF(...) fprintf(stderr, __VA_ARGS__)
787+#endif
788+
789 #ifdef __cplusplus
790 }
791 #endif
diff --git a/meta-networking/recipes-connectivity/wolfssl/files/run-ptest b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest
new file mode 100644
index 0000000000..fd260d441a
--- /dev/null
+++ b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest
@@ -0,0 +1,26 @@
1#!/bin/sh
2
3echo "############ Running Wolfssl Ptest ##########"
4
5log_file=ptest.log
6temp_dir=$(mktemp -d /tmp/wolfss_temp.XXXXXX)
7echo "Wolfssl ptest logs are stored in ${temp_dir}/${log_file}"
8
9./test/unit.test > "$temp_dir/$log_file" 2>&1
10
11ret=$?
12
13echo "Test script returned: $ret"
14
15MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file)
16
17if [ -n "$MAGIC_SENTENCE" ]; then
18 echo "$MAGIC_SENTENCE"
19 echo "PASS: Wolfssl"
20else
21 echo "#### Issue with at least one test !####"
22 echo "FAIL: Wolfssl"
23fi
24NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file)
25
26exit $ret
diff --git a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.0.bb b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.0.bb
deleted file mode 100644
index 47c14dd1a1..0000000000
--- a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.0.bb
+++ /dev/null
@@ -1,22 +0,0 @@
1SUMMARY = "wolfSSL Lightweight Embedded SSL/TLS Library"
2DESCRIPTION = "wolfSSL, formerly CyaSSL, is a lightweight SSL library written \
3 in C and optimized for embedded and RTOS environments. It can \
4 be up to 20 times smaller than OpenSSL while still supporting \
5 a full TLS client and server, up to TLS 1.3"
6HOMEPAGE = "https://www.wolfssl.com/products/wolfssl"
7BUGTRACKER = "https://github.com/wolfssl/wolfssl/issues"
8SECTION = "libs"
9LICENSE = "GPL-2.0-only"
10LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
11
12PROVIDES += "cyassl"
13RPROVIDES:${PN} = "cyassl"
14
15SRC_URI = "git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master"
16SRCREV = "8970ff4c34034dbb3594943d11f8c9d4c5512bd5"
17
18S = "${WORKDIR}/git"
19
20inherit autotools
21
22BBCLASSEXTEND += "native nativesdk"
diff --git a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb
new file mode 100644
index 0000000000..af591cfd7a
--- /dev/null
+++ b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb
@@ -0,0 +1,49 @@
1SUMMARY = "wolfSSL Lightweight Embedded SSL/TLS Library"
2DESCRIPTION = "wolfSSL, formerly CyaSSL, is a lightweight SSL library written \
3 in C and optimized for embedded and RTOS environments. It can \
4 be up to 20 times smaller than OpenSSL while still supporting \
5 a full TLS client and server, up to TLS 1.3"
6HOMEPAGE = "https://www.wolfssl.com/products/wolfssl"
7BUGTRACKER = "https://github.com/wolfssl/wolfssl/issues"
8SECTION = "libs"
9LICENSE = "GPL-2.0-only"
10LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
11
12PROVIDES += "cyassl"
13RPROVIDES:${PN} = "cyassl"
14
15SRC_URI = " \
16 git://github.com/wolfSSL/wolfssl.git;protocol=https;branch=master \
17 file://0001-wolfssl-wolfcrypt-logging.h-and-wolfcrypt-src-loggin.patch \
18 file://run-ptest \
19"
20
21SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285"
22
23
24inherit autotools ptest
25
26EXTRA_OECONF += "--enable-certreq --enable-dtls --enable-opensslextra --enable-certext --enable-certgen"
27
28PACKAGECONFIG ?= "reproducible-build"
29
30PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build,"
31BBCLASSEXTEND += "native nativesdk"
32
33CFLAGS += '-fPIC -DCERT_REL_PREFIX=\\"./\\"'
34
35RDEPENDS:${PN}-ptest += " bash"
36
37do_install_ptest() {
38 # Prevent QA Error "package contains reference to TMPDIR [buildpaths]" for unit.test script
39 # Replace the occurences of ${B}/src with '${PTEST_PATH}'
40 sed -i 's|${B}/src|${PTEST_PATH}|g' ${B}/tests/unit.test
41
42 install -d ${D}${PTEST_PATH}/test
43
44 # create an empty folder examples, needed in wolfssl's tests/api.c to "Test loading path with no files"
45 install -d ${D}${PTEST_PATH}/examples
46 cp -rf ${B}/tests/. ${D}${PTEST_PATH}/test
47 cp -rf ${S}/certs ${D}${PTEST_PATH}
48 cp -rf ${S}/tests ${D}${PTEST_PATH}
49}
diff --git a/meta-networking/recipes-core/images/meta-networking-image-ptest-all.bb b/meta-networking/recipes-core/images/meta-networking-image-ptest-all.bb
index 6d96d4a876..ed58063414 100644
--- a/meta-networking/recipes-core/images/meta-networking-image-ptest-all.bb
+++ b/meta-networking/recipes-core/images/meta-networking-image-ptest-all.bb
@@ -9,7 +9,7 @@ REQUIRED_DISTRO_FEATURES = "ptest"
9require conf/include/ptest-packagelists-meta-networking.inc 9require conf/include/ptest-packagelists-meta-networking.inc
10 10
11# Include the full set of ptests 11# Include the full set of ptests
12PTESTS_META_NETWORKING = "${PTESTS_FAST_META_NETWORKING} ${PTESTS_SLOW_META_NETWORKING} ${PTESTS_PROBLEMS_META_NETWORKING}" 12PTESTS_META_NETWORKING = "${PTESTS_FAST_META_NETWORKING} ${PTESTS_SLOW_META_NETWORKING}"
13 13
14do_testimage[noexec] = "1" 14do_testimage[noexec] = "1"
15do_testimage[depends] = "${@' '.join(['meta-networking-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS_META_NETWORKING').split()])}" 15do_testimage[depends] = "${@' '.join(['meta-networking-image-ptest-'+x+':do_testimage' for x in d.getVar('PTESTS_META_NETWORKING').split()])}"
diff --git a/meta-networking/recipes-core/images/meta-networking-image-ptest.bb b/meta-networking/recipes-core/images/meta-networking-image-ptest.bb
index 295da982ec..b6238d6100 100644
--- a/meta-networking/recipes-core/images/meta-networking-image-ptest.bb
+++ b/meta-networking/recipes-core/images/meta-networking-image-ptest.bb
@@ -20,6 +20,7 @@ BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS_META_NETWO
20# box) and explicitly add up to 1500MB. 20# box) and explicitly add up to 1500MB.
21IMAGE_OVERHEAD_FACTOR = "1.0" 21IMAGE_OVERHEAD_FACTOR = "1.0"
22IMAGE_ROOTFS_EXTRA_SPACE = "324288" 22IMAGE_ROOTFS_EXTRA_SPACE = "324288"
23IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-wolfssl = "714288"
23# If a particular ptest needs more space, it can be customized: 24# If a particular ptest needs more space, it can be customized:
24#IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-<pn> = "1024288" 25#IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-<pn> = "1024288"
25 26
diff --git a/meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb b/meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb
index 41b7cf0878..eca004302b 100644
--- a/meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb
+++ b/meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb
@@ -11,7 +11,6 @@ SRC_URI = "git://git.code.sf.net/p/atftp/code;branch=master;protocol=https \
11 file://atftpd.service \ 11 file://atftpd.service \
12" 12"
13 13
14S = "${WORKDIR}/git"
15 14
16inherit autotools update-rc.d systemd 15inherit autotools update-rc.d systemd
17 16
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-Bug-fix-for-pid_t-not-found-on-musl.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-Bug-fix-for-pid_t-not-found-on-musl.patch
deleted file mode 100644
index 2a583466e3..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-Bug-fix-for-pid_t-not-found-on-musl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From d0d5ac317dab11610a5fc91ca3e7f5ad72ce2236 Mon Sep 17 00:00:00 2001
2From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
3Date: Tue, 29 Oct 2019 13:19:37 +0800
4Subject: [PATCH] Bug fix for pid_t not found on musl.
5
6When compiling version 5.1.6 on musl, the following error occurs:
7log.h:49:8: error: unknown type name 'pid_t'
8
9Upstream-Status: Pending
10
11Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
12---
13 lib/defaults.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/lib/defaults.c b/lib/defaults.c
17index a6ea116..b3ecfa5 100644
18--- a/lib/defaults.c
19+++ b/lib/defaults.c
20@@ -21,6 +21,7 @@
21 #include <string.h>
22 #include <sys/utsname.h>
23 #include <sys/stat.h>
24+#include <sys/types.h>
25 #include <stdarg.h>
26
27 #include "config.h"
28--
292.20.1
30
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch
deleted file mode 100644
index 6128f3d0ed..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From 987c8f4a718cdd6b764592ba7510090a59623959 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 31 Mar 2017 19:10:57 -0700
4Subject: [PATCH] Define __SWORD_TYPE and _PATH_NSSWITCH_CONF
5
6if they are not defined as is in musl then define
7them here
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11---
12Upstream-Status: Pending
13
14 include/automount.h | 8 ++++++++
15 include/nsswitch.h | 3 +++
16 2 files changed, 11 insertions(+)
17
18diff --git a/include/automount.h b/include/automount.h
19index cc336ad..8bdcf12 100644
20--- a/include/automount.h
21+++ b/include/automount.h
22@@ -42,6 +42,14 @@
23
24 #define ENABLE_CORES 1
25
26+#ifndef __SWORD_TYPE
27+# if __WORDSIZE == 32 /* System word size */
28+# define __SWORD_TYPE int
29+# else /* __WORDSIZE == 64 */
30+# define __SWORD_TYPE long int
31+# endif
32+#endif
33+
34 /* We MUST have the paths to mount(8) and umount(8) */
35 #ifndef HAVE_MOUNT
36 #error Failed to locate mount(8)!
37diff --git a/include/nsswitch.h b/include/nsswitch.h
38index d3e4027..7a0c38f 100644
39--- a/include/nsswitch.h
40+++ b/include/nsswitch.h
41@@ -24,6 +24,9 @@
42 #include <netdb.h>
43 #include "list.h"
44
45+#ifndef _PATH_NSSWITCH_CONF
46+#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf"
47+#endif
48 #define NSSWITCH_FILE _PATH_NSSWITCH_CONF
49
50 enum nsswitch_status {
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-if-undefined.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-if-undefined.patch
deleted file mode 100644
index f16ae5277e..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-Define-__SWORD_TYPE-if-undefined.patch
+++ /dev/null
@@ -1,115 +0,0 @@
1From 9fe90ab1e333b2e2bed370ff13ba552eb54c3aaf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 17 Jul 2021 09:56:28 -0700
4Subject: [PATCH] Define __SWORD_TYPE if undefined
5
6These fixes are inspired when building autofs on musl
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 daemon/automount.c | 20 ++++++++++++++------
12 include/hash.h | 5 +++++
13 lib/log.c | 6 +++++-
14 3 files changed, 24 insertions(+), 7 deletions(-)
15
16--- a/daemon/automount.c
17+++ b/daemon/automount.c
18@@ -1,7 +1,7 @@
19 /* ----------------------------------------------------------------------- *
20 *
21 * automount.c - Linux automounter daemon
22- *
23+ *
24 * Copyright 1997 Transmeta Corporation - All Rights Reserved
25 * Copyright 1999-2000 Jeremy Fitzhardinge <jeremy@goop.org>
26 * Copyright 2001-2005 Ian Kent <raven@themaw.net>
27@@ -11,7 +11,7 @@
28 * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
29 * USA; either version 2 of the License, or (at your option) any later
30 * version.
31- *
32+ *
33 * This program is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36@@ -40,6 +40,14 @@
37 #include <systemd/sd-daemon.h>
38 #endif
39
40+#ifndef __SWORD_TYPE
41+# if __WORDSIZE == 32 /* System word size */
42+# define __SWORD_TYPE int
43+# else /* __WORDSIZE == 64 */
44+# define __SWORD_TYPE long int
45+# endif
46+#endif
47+
48 #include "automount.h"
49 #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
50 #include <dlfcn.h>
51@@ -282,7 +290,7 @@ int rmdir_path(struct autofs_point *ap,
52 dev, buf, st.st_dev);
53 return -1;
54 }
55-
56+
57 /*
58 * Last element of path may be a symbolic link; all others
59 * are directories (and the last directory element is
60@@ -455,7 +463,7 @@ int count_mounts(struct autofs_point *ap
61
62 counter.count = 0;
63 counter.dev = dev;
64-
65+
66 if (walk_tree(path, counter_fn, 1, ap, &counter) == -1)
67 return -1;
68
69@@ -811,7 +819,7 @@ static char *automount_path_to_fifo(unsi
70 /*
71 * An automount path can be made up of subdirectories. So, to
72 * create the fifo name, we will just replace instances of '/' with
73- * '-'.
74+ * '-'.
75 */
76 p = fifo_name + strlen(fifodir);
77 while (*p != '\0') {
78@@ -1640,7 +1648,7 @@ static void return_start_status(void *ar
79 sc->done = 1;
80
81 /*
82- * Startup condition mutex must be locked during
83+ * Startup condition mutex must be locked during
84 * the startup process.
85 */
86 status = pthread_cond_signal(&sc->cond);
87--- a/include/hash.h
88+++ b/include/hash.h
89@@ -5,6 +5,11 @@
90
91 #include <sys/types.h>
92 #include <stdint.h>
93+#include <linux/stddef.h>
94+
95+#ifndef __GLIBC__
96+#include <sys/reg.h>
97+#endif
98
99 /*
100 * The "GOLDEN_RATIO_PRIME" is used in ifs/btrfs/brtfs_inode.h and
101--- a/lib/log.c
102+++ b/lib/log.c
103@@ -38,7 +38,11 @@ static char *prepare_attempt_prefix(cons
104 char buffer[ATTEMPT_ID_SIZE + 1];
105 char *prefixed_msg = NULL;
106
107- attempt_id = pthread_getspecific(key_thread_attempt_id);
108+ if (key_thread_attempt_id) {
109+ attempt_id = pthread_getspecific(key_thread_attempt_id);
110+ } else {
111+ attempt_id = 0;
112+ }
113 if (attempt_id) {
114 int len = sizeof(buffer) + 1 + strlen(msg) + 1;
115
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch
deleted file mode 100644
index f18f237d98..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-Do-not-hardcode-path-for-pkg.m4.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From d7a34bb388e33d16260b67275cdb58f9c877d324 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 15:27:47 +0800
4Subject: [PATCH] From 6d24365f0828185fd1bb4d199209ca07eb95c41d Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 24 Aug 2018
6 06:24:36 +0000 Subject: [PATCH] Do not hardcode path for pkg.m4
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12update patch to version 5.1.6
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14
15---
16 configure.in | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/configure.in b/configure.in
20index 07c2051..e85d718 100644
21--- a/configure.in
22+++ b/configure.in
23@@ -12,7 +12,7 @@ define([AC_CACHE_SAVE], )dnl
24 AC_INIT(.autofs-5.1.8)
25
26 # for pkg-config macros
27-m4_include([/usr/share/aclocal/pkg.m4])
28+m4_include([pkg.m4])
29
30 #
31 # autofs installs by default in /usr
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch
deleted file mode 100644
index caf0105118..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
1From 88f991b0ebb6fb8fcaad3d0eb8fb51a7439d053e Mon Sep 17 00:00:00 2001
2From: Fabian Groffen <grobian@gentoo.org>
3Date: Wed, 2 Feb 2022 09:27:13 +0800
4Subject: [PATCH 1/2] autofs-5.1.8 - add autofs_strerror_r() helper for musl
5
6If using musl libc the XSI-compliant variant strerror_r() which returns
7an integer instead of a pointer so add a helper function to handle this
8case.
9
10Signed-off-by: Fabian Groffen <grobian@gentoo.org>
11Signed-off-by: Ian Kent <raven@themaw.net>
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14Upstream-Status: Pending
15
16 include/automount.h | 5 +++++
17 lib/log.c | 10 ++++++++++
18 2 files changed, 15 insertions(+)
19
20diff --git a/include/automount.h b/include/automount.h
21index 8cd8b3a..f759e59 100644
22--- a/include/automount.h
23+++ b/include/automount.h
24@@ -51,6 +51,11 @@
25 # endif
26 #endif
27
28+#ifndef __GLIBC__
29+# define strerror_r(N,B,S) autofs_strerror_r(N,B,S)
30+char *autofs_strerror_r(int errnum, char *buf, size_t buflen); /* GNU */
31+#endif
32+
33 /* We MUST have the paths to mount(8) and umount(8) */
34 #ifndef HAVE_MOUNT
35 #error Failed to locate mount(8)!
36diff --git a/lib/log.c b/lib/log.c
37index 39b1e3b..b99fa39 100644
38--- a/lib/log.c
39+++ b/lib/log.c
40@@ -368,3 +368,13 @@ pid_t log_pidinfo(struct autofs_point *ap, pid_t pid, char *label) {
41
42 return ppid;
43 }
44+
45+#ifndef __GLIBC__
46+# undef strerror_r
47+char *autofs_strerror_r(int errnum, char *buf, size_t buflen) {
48+ int s = strerror_r(errnum, buf, buflen);
49+ if (s)
50+ return NULL;
51+ return buf;
52+}
53+#endif
54--
552.37.3
56
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch
deleted file mode 100644
index 8eec3014a0..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 745e355ac8b595a27e1fcca75bf01d3e244f4a5f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 7 Sep 2017 22:22:31 -0700
4Subject: [PATCH] modules/lookup_multi.c: Replace __S_IEXEC with S_IEXEC
5
6__S_IEXEC is internal to libc and may not be available on
7all libc e.g. musl
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11---
12Upstream-Status: Pending
13
14 modules/lookup_multi.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/modules/lookup_multi.c b/modules/lookup_multi.c
18index 3ecda6d..cf109de 100644
19--- a/modules/lookup_multi.c
20+++ b/modules/lookup_multi.c
21@@ -452,7 +452,7 @@ int lookup_reinit(const char *my_mapfmt,
22 continue;
23 }
24
25- if (st.st_mode & __S_IEXEC)
26+ if (st.st_mode & S_IEXEC)
27 type = src_prog;
28 else
29 type = src_file;
diff --git a/meta-networking/recipes-daemons/autofs/autofs/no-bash.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-no-bash.patch
index f91c307d34..cd9b14358a 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/no-bash.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0001-no-bash.patch
@@ -1,16 +1,18 @@
1From a3007d7ea930823926611081bb873ddd771325cb Mon Sep 17 00:00:00 2001 1From f53458e0b4cca0b0eedcd00b0e90b39d91228085 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 5 Jan 2013 19:53:10 -0800 3Date: Sat, 5 Jan 2013 19:53:10 -0800
4Subject: [PATCH] no bash
4 5
5---
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
8 samples/auto.net | 2 +- 10 samples/auto.net | 2 +-
9 samples/auto.smb | 2 +- 11 samples/auto.smb | 2 +-
10 2 files changed, 2 insertions(+), 2 deletions(-) 12 2 files changed, 2 insertions(+), 2 deletions(-)
11 13
12diff --git a/samples/auto.net b/samples/auto.net 14diff --git a/samples/auto.net b/samples/auto.net
13index 0384f61..61215f6 100755 15index c5b145d..a09d56d 100755
14--- a/samples/auto.net 16--- a/samples/auto.net
15+++ b/samples/auto.net 17+++ b/samples/auto.net
16@@ -1,4 +1,4 @@ 18@@ -1,4 +1,4 @@
@@ -20,7 +22,7 @@ index 0384f61..61215f6 100755
20 # This file must be executable to work! chmod 755! 22 # This file must be executable to work! chmod 755!
21 23
22diff --git a/samples/auto.smb b/samples/auto.smb 24diff --git a/samples/auto.smb b/samples/auto.smb
23index 6af5d85..d296b81 100755 25index f6d41d3..0d945ee 100755
24--- a/samples/auto.smb 26--- a/samples/auto.smb
25+++ b/samples/auto.smb 27+++ b/samples/auto.smb
26@@ -1,4 +1,4 @@ 28@@ -1,4 +1,4 @@
@@ -29,3 +31,6 @@ index 6af5d85..d296b81 100755
29 31
30 # This file must be executable to work! chmod 755! 32 # This file must be executable to work! chmod 755!
31 33
34--
352.25.1
36
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch b/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch
deleted file mode 100644
index d67f6300c8..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0002-Replace-__S_IEXEC-with-S_IEXEC.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 096e33743158e0e8c04d60d01cc66e2945d79777 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 16:52:35 +0800
4Subject: [PATCH] From 557ca399f4b3a397f20bb147ec6dc4ab9732dd1e Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 31 Mar 2017
6 19:12:10 -0700 Subject: [PATCH] Replace __S_IEXEC with S_IEXEC
7
8S_IEXEC is portable
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12update patch to version 5.1.5
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15Upstream-Status: Pending
16
17 daemon/lookup.c | 6 +++---
18 modules/lookup_multi.c | 2 +-
19 2 files changed, 4 insertions(+), 4 deletions(-)
20
21--- a/daemon/lookup.c
22+++ b/daemon/lookup.c
23@@ -397,7 +397,7 @@ static int read_file_source_instance(str
24 return NSS_STATUS_NOTFOUND;
25 }
26
27- if (st.st_mode & __S_IEXEC)
28+ if (st.st_mode & S_IEXEC)
29 type = src_prog;
30 else
31 type = src_file;
32@@ -930,7 +930,7 @@ static int lookup_name_file_source_insta
33 return NSS_STATUS_NOTFOUND;
34 }
35
36- if (st.st_mode & __S_IEXEC)
37+ if (st.st_mode & S_IEXEC)
38 type = src_prog;
39 else
40 type = src_file;
41@@ -1077,7 +1077,7 @@ static struct map_source *lookup_get_map
42 if (!S_ISREG(st.st_mode))
43 return NULL;
44
45- if (st.st_mode & __S_IEXEC)
46+ if (st.st_mode & S_IEXEC)
47 type = "program";
48 else
49 type = "file";
50--- a/modules/lookup_multi.c
51+++ b/modules/lookup_multi.c
52@@ -247,7 +247,7 @@ static struct lookup_mod *nss_open_looku
53 continue;
54 }
55
56- if (st.st_mode & __S_IEXEC)
57+ if (st.st_mode & S_IEXEC)
58 type = src_prog;
59 else
60 type = src_file;
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch b/meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch
deleted file mode 100644
index 9d0caae312..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch
+++ /dev/null
@@ -1,106 +0,0 @@
1From 1c0b0b70a276280f431d72319109a0bbc0267970 Mon Sep 17 00:00:00 2001
2From: Fabian Groffen <grobian@gentoo.org>
3Date: Wed, 2 Feb 2022 10:15:22 +0800
4Subject: [PATCH 2/2] autofs-5.1.8 - handle innetgr() not present in musl
5
6The function innetgr(3) may not be present in musl libc, add a check
7for this.
8
9Originally contributed by Fabian, modified by me.
10
11Upstream-Status: Backport [https://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git/commit/?id=f60e40af3c038b8955325a11b7294ad38c15c9e8]
12Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13Signed-off-by: Ian Kent <raven@themaw.net>
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 configure | 6 ++++++
17 configure.in | 2 +-
18 include/config.h.in | 3 +++
19 modules/parse_amd.c | 7 +++++++
20 4 files changed, 17 insertions(+), 1 deletion(-)
21
22--- a/configure.in
23+++ b/configure.in
24@@ -169,7 +169,7 @@ AF_CHECK_SSS_LIB(SSS_AUTOFS, libsss_auto
25 AC_SUBST(HAVE_SSS_AUTOFS)
26 AC_SUBST(sssldir)
27
28-AC_CHECK_FUNCS(pipe2)
29+AC_CHECK_FUNCS(pipe2 innetgr)
30
31 #
32 # Newer mounts have the -s (sloppy) option to ignore unknown options,
33--- a/include/config.h.in
34+++ b/include/config.h.in
35@@ -30,6 +30,9 @@
36 /* Define to 1 if you have the `getservbyname' function. */
37 #undef HAVE_GETSERVBYNAME
38
39+/* Define to 1 if you have the `innetgr' function. */
40+#undef HAVE_INNETGR
41+
42 /* Define to 1 if you have the <inttypes.h> header file. */
43 #undef HAVE_INTTYPES_H
44
45@@ -45,9 +48,6 @@
46 /* Define if you have the Linux /proc filesystem. */
47 #undef HAVE_LINUX_PROCFS
48
49-/* Define to 1 if you have the <memory.h> header file. */
50-#undef HAVE_MEMORY_H
51-
52 /* define if you have MOUNT */
53 #undef HAVE_MOUNT
54
55@@ -69,6 +69,9 @@
56 /* Define to 1 if you have the <stdint.h> header file. */
57 #undef HAVE_STDINT_H
58
59+/* Define to 1 if you have the <stdio.h> header file. */
60+#undef HAVE_STDIO_H
61+
62 /* Define to 1 if you have the <stdlib.h> header file. */
63 #undef HAVE_STDLIB_H
64
65@@ -141,7 +144,9 @@
66 /* define if you have YACC */
67 #undef PATH_YACC
68
69-/* Define to 1 if you have the ANSI C header files. */
70+/* Define to 1 if all of the C90 standard headers exist (not just the ones
71+ required in a freestanding environment). This macro is provided for
72+ backward compatibility; new code need not use it. */
73 #undef STDC_HEADERS
74
75 /* Define to 1 to use the libtirpc tsd usage workaround */
76--- a/modules/parse_amd.c
77+++ b/modules/parse_amd.c
78@@ -424,6 +424,7 @@ static int sel_in_network(struct autofs_
79 return ret;
80 }
81
82+#ifdef HAVE_INNETGR
83 static int sel_netgrp(struct autofs_point *ap,
84 struct selector *s, struct substvar *sv)
85 {
86@@ -488,6 +489,7 @@ out:
87
88 return ret;
89 }
90+#endif
91
92 static int eval_selector(struct autofs_point *ap,
93 struct amd_entry *this, struct substvar *sv)
94@@ -627,7 +629,12 @@ static int eval_selector(struct autofs_p
95 switch (s->sel->selector) {
96 case SEL_NETGRP:
97 case SEL_NETGRPD:
98+#ifndef HAVE_INNETGR
99+ error(logopt, MODPREFIX
100+ "netgroups not available, function innetgr(3) not available");
101+#else
102 ret = sel_netgrp(ap, s, sv);
103+#endif
104 break;
105
106 default:
diff --git a/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch b/meta-networking/recipes-daemons/autofs/autofs/0002-using-pkg-config-to-detect-krb5.patch
index 41de373fd4..1bf95b8a45 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0002-using-pkg-config-to-detect-krb5.patch
@@ -1,10 +1,7 @@
1From dd90a690f95569b999b8ac9ab57e834b3421dcbb Mon Sep 17 00:00:00 2001 1From 796f1b5cfca595ba4e11ca9dab5c2c46c0710d95 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Roy Li <rongqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 15:19:07 +0800 3Date: Tue, 19 Aug 2014 11:31:35 +0800
4Subject: [PATCH] From dabcbdae38038a8e4ad2c4286112381c407c5ce7 Mon Sep 17 4Subject: [PATCH] using pkg-config to detect krb5
5 00:00:00 2001 From: Roy Li <rongqing.li@windriver.com> Date: Tue, 19 Aug 2014
6 11:31:35 +0800 Subject: [PATCH] using pkg-config to detect libxml-2.0 and
7 krb5
8 5
9Upstream-Status: Pending 6Upstream-Status: Pending
10 7
@@ -13,15 +10,17 @@ Signed-off-by: Roy Li <rongqing.li@windriver.com>
13update patch to 5.1.5 10update patch to 5.1.5
14Signed-off-by: Changqing Li <changqing.li@windriver.com> 11Signed-off-by: Changqing Li <changqing.li@windriver.com>
15--- 12---
16 configure.in | 16 ++++++++++++++-- 13 configure.ac | 9 ++++++++-
17 1 file changed, 14 insertions(+), 2 deletions(-) 14 1 file changed, 8 insertions(+), 1 deletion(-)
18 15
19--- a/configure.in 16diff --git a/configure.ac b/configure.ac
20+++ b/configure.in 17index 76a38f4..1bb1a52 100644
21@@ -215,7 +215,14 @@ PKG_CHECK_MODULES([XML], [libxml-2.0], [ 18--- a/configure.ac
19+++ b/configure.ac
20@@ -214,7 +214,14 @@ PKG_CHECK_MODULES([XML], [libxml-2.0], [
22 AC_DEFINE(LIBXML2_WORKAROUND, 1, [Use libxml2 tsd usage workaround]) 21 AC_DEFINE(LIBXML2_WORKAROUND, 1, [Use libxml2 tsd usage workaround])
23 ], [HAVE_LIBXML=0]) 22 ], [HAVE_LIBXML=0])
24 23
25-AF_CHECK_KRB5() 24-AF_CHECK_KRB5()
26+PKG_CHECK_MODULES(KRB5, [krb5], [ 25+PKG_CHECK_MODULES(KRB5, [krb5], [
27+ HAVE_KRB5=1 26+ HAVE_KRB5=1
@@ -31,6 +30,9 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
31+ LIBS="$LIBS $KRB5_LIBS" 30+ LIBS="$LIBS $KRB5_LIBS"
32+ AC_CHECK_FUNCS([krb5_principal_get_realm]) 31+ AC_CHECK_FUNCS([krb5_principal_get_realm])
33+], [HAVE_KRB5=0]) 32+], [HAVE_KRB5=0])
34 33
35 AC_SEARCH_LIBS([versionsort],[]) 34 AC_SEARCH_LIBS([versionsort],[])
36 if test "$ac_cv_search_versionsort" = "no"; then 35 if test "$ac_cv_search_versionsort" = "no"; then
36--
372.25.1
38
diff --git a/meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch b/meta-networking/recipes-daemons/autofs/autofs/0003-force-STRIP-to-emtpy.patch
index 1fc500319e..942f38d8b0 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0003-force-STRIP-to-emtpy.patch
@@ -1,23 +1,22 @@
1From 3cbee00fe5725b87abdae80cfa2ee735e4513ca6 Mon Sep 17 00:00:00 2001 1From efacbbe29b7212735046a7d0f2cd61148546ce9e Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com> 2From: Roy Li <rongqing.li@windriver.com>
3Date: Tue, 19 Aug 2014 11:31:35 +0800 3Date: Tue, 19 Aug 2014 11:31:35 +0800
4Subject: [PATCH] [PATCH] force STRIP to emtpy 4Subject: [PATCH] force STRIP to emtpy
5 5
6otherwise the generate file will be stripped 6otherwise the generate file will be stripped
7 7
8Signed-off-by: Roy Li <rongqing.li@windriver.com>
9
10---
11Upstream-Status: Pending 8Upstream-Status: Pending
12 9
10Signed-off-by: Roy Li <rongqing.li@windriver.com>
11---
13 Makefile.rules | 2 +- 12 Makefile.rules | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/Makefile.rules b/Makefile.rules 15diff --git a/Makefile.rules b/Makefile.rules
17index 709dd04..b1f7e50 100644 16index 6ce39e5..a6dcd7b 100644
18--- a/Makefile.rules 17--- a/Makefile.rules
19+++ b/Makefile.rules 18+++ b/Makefile.rules
20@@ -31,7 +31,7 @@ LDFLAGS ?= -s 19@@ -36,7 +36,7 @@ LDFLAGS ?= -s
21 endif 20 endif
22 21
23 ifdef DONTSTRIP 22 ifdef DONTSTRIP
@@ -26,3 +25,6 @@ index 709dd04..b1f7e50 100644
26 else 25 else
27 STRIP ?= strip --strip-debug 26 STRIP ?= strip --strip-debug
28 endif 27 endif
28--
292.25.1
30
diff --git a/meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch b/meta-networking/recipes-daemons/autofs/autofs/0004-autofs.init.in-remove-bashism.patch
index 4183069bb1..6065bc71bf 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0004-autofs.init.in-remove-bashism.patch
@@ -1,4 +1,4 @@
1From cfacbb917f87b903b50132a5025f86b0cc522e9c Mon Sep 17 00:00:00 2001 1From b5f4a3c2f02244209ac613aeb8ea406bdc39af27 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com> 2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Sat, 13 Sep 2014 20:19:28 -0700 3Date: Sat, 13 Sep 2014 20:19:28 -0700
4Subject: [PATCH] autofs.init.in: remove bashism 4Subject: [PATCH] autofs.init.in: remove bashism
@@ -9,7 +9,6 @@ Upstream-Status: Pending
9 9
10Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> 10Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
11Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 11Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
12
13--- 12---
14 redhat/autofs.init.in | 12 ++++++------ 13 redhat/autofs.init.in | 12 ++++++------
15 samples/rc.autofs.in | 10 +++++----- 14 samples/rc.autofs.in | 10 +++++-----
@@ -116,3 +115,6 @@ index 487669f..e96cde1 100644
116 pid=`pidof $prog` 115 pid=`pidof $prog`
117 if [ -z $pid ]; then 116 if [ -z $pid ]; then
118 echo $"$prog not running" 117 echo $"$prog not running"
118--
1192.25.1
120
diff --git a/meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch b/meta-networking/recipes-daemons/autofs/autofs/0005-fix-the-YACC-rule-to-fix-a-building-failure.patch
index fd736296a5..462644b011 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0005-fix-the-YACC-rule-to-fix-a-building-failure.patch
@@ -1,9 +1,7 @@
1From 971d48a00ef82880c34e89778bf430a01360ebd5 Mon Sep 17 00:00:00 2001 1From 40318f4f6109d9810b7cb31518a7879ae7632f58 Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com> 2From: Roy Li <rongqing.li@windriver.com>
3Date: Mon, 18 May 2015 16:28:36 +0800 3Date: Mon, 18 May 2015 16:28:36 +0800
4Subject: [PATCH] [PATCH] fix the YACC rule to fix a building failure 4Subject: [PATCH] fix the YACC rule to fix a building failure
5
6Upstream-Statu: Pending
7 5
8The original rule will create the header file twice, one is that the header 6The original rule will create the header file twice, one is that the header
9file as the object file is created, other time is when create the C source file. 7file as the object file is created, other time is when create the C source file.
@@ -16,18 +14,35 @@ This lead to a race when compile amd_tok.o, the header file maybe rewritten.
16 | ^ 14 | ^
17 |../Makefile.rules:64: recipe for target 'amd_tok.o' failed 15 |../Makefile.rules:64: recipe for target 'amd_tok.o' failed
18 |---------------------- 16 |----------------------
19Signed-off-by: Roy Li <rongqing.li@windriver.com>
20 17
21---
22Upstream-Status: Pending 18Upstream-Status: Pending
23 19
24 lib/Makefile | 6 ++++-- 20Signed-off-by: Roy Li <rongqing.li@windriver.com>
21---
22 daemon/Makefile | 3 ++-
23 lib/Makefile | 3 ++-
25 modules/Makefile | 3 ++- 24 modules/Makefile | 3 ++-
26 2 files changed, 6 insertions(+), 3 deletions(-) 25 3 files changed, 6 insertions(+), 3 deletions(-)
27 26
27diff --git a/daemon/Makefile b/daemon/Makefile
28index 3af38e6..2a7ffe9 100644
29--- a/daemon/Makefile
30+++ b/daemon/Makefile
31@@ -44,7 +44,8 @@ automount: $(OBJS) $(AUTOFS_LIB)
32 master_tok.c: master_tok.l
33 $(LEX) -o$@ -Pmaster_ $?
34
35-master_parse.tab.c master_parse.tab.h: master_parse.y
36+master_parse.tab.h: master_parse.tab.c
37+master_parse.tab.c: master_parse.y
38 $(YACC) -v -d -p master_ -b master_parse $?
39
40 master_tok.o: master_tok.c master_parse.tab.h
41diff --git a/lib/Makefile b/lib/Makefile
42index d18c67b..51445fd 100644
28--- a/lib/Makefile 43--- a/lib/Makefile
29+++ b/lib/Makefile 44+++ b/lib/Makefile
30@@ -53,7 +53,8 @@ mount_xdr.o: mount_xdr.c 45@@ -35,7 +35,8 @@ libautofs.so: $(OBJS)
31 nss_tok.c: nss_tok.l 46 nss_tok.c: nss_tok.l
32 $(LEX) -o$@ -Pnss_ $? 47 $(LEX) -o$@ -Pnss_ $?
33 48
@@ -37,9 +52,11 @@ Upstream-Status: Pending
37 $(YACC) -v -d -p nss_ -b nss_parse $? 52 $(YACC) -v -d -p nss_ -b nss_parse $?
38 53
39 nss_tok.o: nss_tok.c nss_parse.tab.h 54 nss_tok.o: nss_tok.c nss_parse.tab.h
55diff --git a/modules/Makefile b/modules/Makefile
56index 6908da0..00dd7ce 100644
40--- a/modules/Makefile 57--- a/modules/Makefile
41+++ b/modules/Makefile 58+++ b/modules/Makefile
42@@ -103,7 +103,8 @@ amd_tok.c: amd_tok.l 59@@ -105,7 +105,8 @@ amd_tok.c: amd_tok.l
43 60
44 amd_tok.o: amd_tok.c amd_parse.tab.h 61 amd_tok.o: amd_tok.c amd_parse.tab.h
45 62
@@ -49,30 +66,6 @@ Upstream-Status: Pending
49 $(YACC) -v -d -p amd_ -b amd_parse $? 66 $(YACC) -v -d -p amd_ -b amd_parse $?
50 67
51 amd_parse.tab.o: amd_parse.tab.c amd_parse.tab.h 68 amd_parse.tab.o: amd_parse.tab.c amd_parse.tab.h
52--- a/daemon/Makefile 69--
53+++ b/daemon/Makefile 702.25.1
54@@ -16,7 +16,7 @@ YACCSRC = master_tok.c master_parse.tab. 71
55 version := $(shell cat ../.version)
56
57 CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include
58-CFLAGS += -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"
59+CFLAGS += -DAUTOFS_LIB_DIR=\"$(autofslibdir)\"
60 CFLAGS += -DAUTOFS_MAP_DIR=\"$(autofsmapdir)\"
61 CFLAGS += -DAUTOFS_CONF_DIR=\"$(autofsconfdir)\"
62 CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfifodir)\"
63@@ -44,7 +44,8 @@ automount: $(OBJS) $(AUTOFS_LIB)
64 master_tok.c: master_tok.l
65 $(LEX) -o$@ -Pmaster_ $?
66
67-master_parse.tab.c master_parse.tab.h: master_parse.y
68+master_parse.tab.h: master_parse.tab.c
69+master_parse.tab.c: master_parse.y
70 $(YACC) -v -d -p master_ -b master_parse $?
71
72 master_tok.o: master_tok.c master_parse.tab.h
73@@ -57,5 +58,3 @@ clean:
74 install: all
75 install -d -m 755 $(INSTALLROOT)$(sbindir)
76 install -c automount -m 755 $(INSTALLROOT)$(sbindir)
77-
78-
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0006-Do-not-hardcode-path-for-pkg.m4.patch b/meta-networking/recipes-daemons/autofs/autofs/0006-Do-not-hardcode-path-for-pkg.m4.patch
new file mode 100644
index 0000000000..ab99a98cf9
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs/0006-Do-not-hardcode-path-for-pkg.m4.patch
@@ -0,0 +1,31 @@
1From 349cc55c4cb7c7b2f5e7de937e11f3c581028b23 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 24 Aug 2018 06:24:36 +0000
4Subject: [PATCH] Do not hardcode path for pkg.m4
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10update patch to version 5.1.6
11Signed-off-by: Changqing Li <changqing.li@windriver.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index 1bb1a52..4cebbd2 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -12,7 +12,7 @@ define([AC_CACHE_SAVE], )dnl
21 AC_INIT(.autofs-5.1.9)
22
23 # for pkg-config macros
24-m4_include([/usr/share/aclocal/pkg.m4])
25+m4_include([pkg.m4])
26
27 #
28 # autofs installs by default in /usr
29--
302.25.1
31
diff --git a/meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch b/meta-networking/recipes-daemons/autofs/autofs/0007-Avoid-conflicts-between-sys-mount.h-and-linux-mount..patch
index e2a94bf825..14faa0c753 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/mount_conflict.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0007-Avoid-conflicts-between-sys-mount.h-and-linux-mount..patch
@@ -1,4 +1,7 @@
1Avoid conflicts between sys/mount.h and linux/mount.h 1From 96e0e3ed49a0e00573fa5907ae80e6d262cb7644 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 9 Sep 2024 23:01:06 +0800
4Subject: [PATCH] Avoid conflicts between sys/mount.h and linux/mount.h
2 5
3linux/fs.h includes linux/mount.h and this include file is unused so 6linux/fs.h includes linux/mount.h and this include file is unused so
4do not include it and avoid conflict too with glibc 2.36+ see [1] 7do not include it and avoid conflict too with glibc 2.36+ see [1]
@@ -8,6 +11,13 @@ do not include it and avoid conflict too with glibc 2.36+ see [1]
8Upstream-Status: Pending 11Upstream-Status: Pending
9 12
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 modules/parse_amd.c | 1 -
16 modules/parse_sun.c | 1 -
17 2 files changed, 2 deletions(-)
18
19diff --git a/modules/parse_amd.c b/modules/parse_amd.c
20index fb6b1b7..d86adf1 100644
11--- a/modules/parse_amd.c 21--- a/modules/parse_amd.c
12+++ b/modules/parse_amd.c 22+++ b/modules/parse_amd.c
13@@ -27,7 +27,6 @@ 23@@ -27,7 +27,6 @@
@@ -18,6 +28,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 28
19 #define MODULE_PARSE 29 #define MODULE_PARSE
20 #include "automount.h" 30 #include "automount.h"
31diff --git a/modules/parse_sun.c b/modules/parse_sun.c
32index a5351fd..8509781 100644
21--- a/modules/parse_sun.c 33--- a/modules/parse_sun.c
22+++ b/modules/parse_sun.c 34+++ b/modules/parse_sun.c
23@@ -30,7 +30,6 @@ 35@@ -30,7 +30,6 @@
@@ -28,3 +40,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
28 40
29 #define MODULE_PARSE 41 #define MODULE_PARSE
30 #include "automount.h" 42 #include "automount.h"
43--
442.25.1
45
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch b/meta-networking/recipes-daemons/autofs/autofs/0008-include-libgen.h-for-basename.patch
index 4c8b4ef779..13254f2c41 100644
--- a/meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch
+++ b/meta-networking/recipes-daemons/autofs/autofs/0008-include-libgen.h-for-basename.patch
@@ -1,4 +1,4 @@
1From 1651e7a35be8b3e2fa90ca57b073f6944664fa62 Mon Sep 17 00:00:00 2001 1From c754222ce955c893e8e3ad75d8c73835950d1931 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 25 Mar 2024 12:04:03 -0700 3Date: Mon, 25 Mar 2024 12:04:03 -0700
4Subject: [PATCH] include libgen.h for basename 4Subject: [PATCH] include libgen.h for basename
@@ -10,6 +10,7 @@ include libgen.h for providing it.
10[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 10[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
11 11
12Upstream-Status: Pending 12Upstream-Status: Pending
13
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 14Signed-off-by: Khem Raj <raj.khem@gmail.com>
14--- 15---
15 daemon/automount.c | 1 + 16 daemon/automount.c | 1 +
@@ -18,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 3 files changed, 3 insertions(+) 19 3 files changed, 3 insertions(+)
19 20
20diff --git a/daemon/automount.c b/daemon/automount.c 21diff --git a/daemon/automount.c b/daemon/automount.c
21index 3d9461d..61b3478 100644 22index 6cb3b1b..efc2680 100644
22--- a/daemon/automount.c 23--- a/daemon/automount.c
23+++ b/daemon/automount.c 24+++ b/daemon/automount.c
24@@ -21,6 +21,7 @@ 25@@ -21,6 +21,7 @@
@@ -30,7 +31,7 @@ index 3d9461d..61b3478 100644
30 #include <stdio.h> 31 #include <stdio.h>
31 #include <stdlib.h> 32 #include <stdlib.h>
32diff --git a/daemon/master.c b/daemon/master.c 33diff --git a/daemon/master.c b/daemon/master.c
33index f99359c..3f56499 100644 34index f2c11e9..1455e40 100644
34--- a/daemon/master.c 35--- a/daemon/master.c
35+++ b/daemon/master.c 36+++ b/daemon/master.c
36@@ -21,6 +21,7 @@ 37@@ -21,6 +21,7 @@
@@ -42,7 +43,7 @@ index f99359c..3f56499 100644
42 #include <sys/types.h> 43 #include <sys/types.h>
43 #include <sys/stat.h> 44 #include <sys/stat.h>
44diff --git a/modules/lookup_file.c b/modules/lookup_file.c 45diff --git a/modules/lookup_file.c b/modules/lookup_file.c
45index 6afc558..82b1f28 100644 46index 99f2e21..4914395 100644
46--- a/modules/lookup_file.c 47--- a/modules/lookup_file.c
47+++ b/modules/lookup_file.c 48+++ b/modules/lookup_file.c
48@@ -15,6 +15,7 @@ 49@@ -15,6 +15,7 @@
@@ -54,5 +55,5 @@ index 6afc558..82b1f28 100644
54 #include <string.h> 55 #include <string.h>
55 #include <time.h> 56 #include <time.h>
56-- 57--
572.44.0 582.25.1
58 59
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch b/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch
new file mode 100644
index 0000000000..442a3138c2
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch
@@ -0,0 +1,35 @@
1From 1a08bbed376c0dfa0ce2d12a93b34fb2d5620c05 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Tue, 10 Sep 2024 21:08:09 +0800
4Subject: [PATCH] hash.h: include <sys/reg.h> instead of <bits/reg.h>
5
6Fix build on musl:
7In file included from ../include/automount.h:25,
8 from parse_subs.c:29:
9../include/hash.h:27:2: error: #error Wordsize not 32 or 64
10 27 | #error Wordsize not 32 or 64
11 | ^~~~~
12
13Upstream-Status: Pending
14
15Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
16---
17 include/hash.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/include/hash.h b/include/hash.h
21index 0f1d7b5..f465ab8 100644
22--- a/include/hash.h
23+++ b/include/hash.h
24@@ -6,7 +6,7 @@
25 #ifdef __GLIBC__
26 #include <bits/wordsize.h>
27 #else
28-#include <bits/reg.h>
29+#include <sys/reg.h>
30 #endif
31 #include <linux/stddef.h>
32 #include <sys/types.h>
33--
342.25.1
35
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch b/meta-networking/recipes-daemons/autofs/autofs/0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch
new file mode 100644
index 0000000000..0e15587340
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs/0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch
@@ -0,0 +1,64 @@
1From a6a79230110e998f780796cb1d4c5d3f59f20d1d Mon Sep 17 00:00:00 2001
2From: Florian Weimer <fweimer@redhat.com>
3Date: Mon, 18 Dec 2023 13:48:18 +0100
4Subject: [PATCH] autofs-5.1.9 - Fix incompatible function pointer types in
5 cyrus-sasl module
6
7Add casts to SASL callbacks to avoid incompatible-pointer-types
8errors. Avoids a build failure with stricter compilers.
9
10Signed-off-by: Florian Weimer <fweimer@redhat.com>
11Signed-off-by: Ian Kent <raven@themaw.net>
12
13Upstream-Status: Backport
14[https://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git/commit/?id=b7ff971bb8aa3fc609bb531ddc4c2ce56226383f]
15
16Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
17---
18 CHANGELOG | 2 ++
19 modules/cyrus-sasl.c | 14 +++++++-------
20 2 files changed, 9 insertions(+), 7 deletions(-)
21
22diff --git a/CHANGELOG b/CHANGELOG
23index 3e47daa..fd9d861 100644
24--- a/CHANGELOG
25+++ b/CHANGELOG
26@@ -1,4 +1,6 @@
27
28+- Fix incompatible function pointer types in cyrus-sasl module.
29+
30 02/11/2023 autofs-5.1.9
31 - fix kernel mount status notification.
32 - fix fedfs build flags.
33diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
34index e742eaf..78b7794 100644
35--- a/modules/cyrus-sasl.c
36+++ b/modules/cyrus-sasl.c
37@@ -109,17 +109,17 @@ static int getpass_func(sasl_conn_t *, void *, int, sasl_secret_t **);
38 static int getuser_func(void *, int, const char **, unsigned *);
39
40 static sasl_callback_t callbacks[] = {
41- { SASL_CB_USER, &getuser_func, NULL },
42- { SASL_CB_AUTHNAME, &getuser_func, NULL },
43- { SASL_CB_PASS, &getpass_func, NULL },
44+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
45+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
46+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
47 { SASL_CB_LIST_END, NULL, NULL },
48 };
49
50 static sasl_callback_t debug_callbacks[] = {
51- { SASL_CB_LOG, &sasl_log_func, NULL },
52- { SASL_CB_USER, &getuser_func, NULL },
53- { SASL_CB_AUTHNAME, &getuser_func, NULL },
54- { SASL_CB_PASS, &getpass_func, NULL },
55+ { SASL_CB_LOG, (int(*)(void)) &sasl_log_func, NULL },
56+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
57+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
58+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
59 { SASL_CB_LIST_END, NULL, NULL },
60 };
61
62--
632.25.1
64
diff --git a/meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch b/meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch
deleted file mode 100644
index 4cfd8edf9f..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From df5d45b2d7ad7e7b5f0542a816d08b0409a529a1 Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com>
3Date: Tue, 19 Aug 2014 11:31:35 +0800
4Subject: [PATCH] [PATCH] add the needed stdarg.h
5
6Upstream-Status: Pending
7
8Signed-off-by: Roy Li <rongqing.li@windriver.com>
9
10---
11 lib/defaults.c | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/lib/defaults.c b/lib/defaults.c
15index 0e48a78..667f35d 100644
16--- a/lib/defaults.c
17+++ b/lib/defaults.c
18@@ -16,6 +16,7 @@
19
20 #include <stdlib.h>
21 #include <stdio.h>
22+#include <stdarg.h>
23 #include <ctype.h>
24 #include <string.h>
25 #include <sys/utsname.h>
diff --git a/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch
deleted file mode 100644
index 8e06db6e4a..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From 080626108c9ab70e2489752ef2a14006d0564b0c Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe.macdonald@windriver.com>
3Date: Tue, 18 Jun 2013 10:05:21 -0400
4Subject: [PATCH] Fix the dependency issue
5
6Upstream-Status: Pending
7
8autofs's lib sources have a dependency on a number of files that are
9generated by rpcgen during buildtime
10
11Signed-off-by: Roy.Li <rongqing.li@windriver.com>
12Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
13
14---
15 lib/Makefile | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/lib/Makefile b/lib/Makefile
19index 518b483..4798a4b 100644
20--- a/lib/Makefile
21+++ b/lib/Makefile
22@@ -81,3 +81,4 @@ install: all
23 clean:
24 rm -f $(LIB) $(RPCS) $(OBJS) $(YACCSRC) *.output *~
25
26+$(OBJS): $(RPCS)
diff --git a/meta-networking/recipes-daemons/autofs/autofs/cross.patch b/meta-networking/recipes-daemons/autofs/autofs/cross.patch
deleted file mode 100644
index 2a4f4fd0dd..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/cross.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From b9b44cd82caceeb638cc6a862b5bb90b93ad6c6a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 5 Jan 2013 19:53:10 -0800
4
5---
6Upstream-Status: Pending
7
8 aclocal.m4 | 2 ++
9 configure.in | 8 ++++++--
10 2 files changed, 8 insertions(+), 2 deletions(-)
11
12diff --git a/aclocal.m4 b/aclocal.m4
13index 2115204..2a9a802 100644
14--- a/aclocal.m4
15+++ b/aclocal.m4
16@@ -7,6 +7,8 @@ dnl --------------------------------------------------------------------------
17 AC_DEFUN(AF_PATH_INCLUDE,
18 [AC_PATH_PROGS($1,$2,$3,$4)
19 if test -n "$$1"; then
20+ AH_TEMPLATE([HAVE_$1], [Have $2])
21+ AH_TEMPLATE([PATH_$1], [Have $2])
22 AC_DEFINE(HAVE_$1,1,[define if you have $1])
23 AC_DEFINE_UNQUOTED(PATH_$1, "$$1", [define if you have $1])
24 HAVE_$1=1
25diff --git a/configure.in b/configure.in
26index 25d7c4e..44a1c8b 100644
27--- a/configure.in
28+++ b/configure.in
29@@ -324,13 +324,15 @@ AC_PROG_CC
30 cat > pietest.c <<EOF
31 int main(void) { return 0; }
32 EOF
33+AF_tmp_ldflags="$LDFLAGS"
34+AF_tmp_cflags="$CFLAGS"
35 CFLAGS=-fPIE
36 LDFLAGS=-pie
37 DAEMON_CFLAGS=
38 DAEMON_LDFLAGS=
39 AC_MSG_CHECKING([whether gcc -fPIE works])
40-AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
41- [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
42+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
43+ [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
44 AC_MSG_RESULT([$gcc_supports_pie])
45 if test $gcc_supports_pie = yes ; then
46 DAEMON_CFLAGS="-fPIE"
47@@ -339,6 +341,8 @@ fi
48 rm -f pietest.c
49 AC_SUBST(DAEMON_CFLAGS)
50 AC_SUBST(DAEMON_LDFLAGS)
51+CFLAGS="${AF_tmp_cflags}"
52+LDFLAGS="${AF_tmp_ldflags}"
53
54 #
55 # Enable ability to access value in external env variable
diff --git a/meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch b/meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch
deleted file mode 100644
index 414325974d..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From c500d9906f163bf716c872d37403b9de02ef0a86 Mon Sep 17 00:00:00 2001
2From: Amy Fong <amy.fong@windriver.com>
3Date: Fri, 18 Jan 2013 12:13:32 -0500
4Subject: [PATCH] autofs: fails to compile with openldap disabled
5
6As of 5.0.6, it appears that changes were introduced so that
7if you compile with openldap disabled and openldap headers are not
8available, then autofs fails to build.
9
10Upstream-Status: Pending
11
12Signed-off-by: Amy Fong <amy.fong@windriver.com>
13--
14 lookup_ldap.h | 4 ++++
15 1 file changed, 4 insertions(+)
16
17---
18 include/lookup_ldap.h | 4 ++++
19 1 file changed, 4 insertions(+)
20
21diff --git a/include/lookup_ldap.h b/include/lookup_ldap.h
22index 3a7aba7..bfdb0b3 100644
23--- a/include/lookup_ldap.h
24+++ b/include/lookup_ldap.h
25@@ -1,7 +1,9 @@
26 #ifndef LOOKUP_LDAP_H
27 #define LOOKUP_LDAP_H
28
29+#ifdef WITH_LDAP
30 #include <ldap.h>
31+#endif
32
33 #ifdef WITH_SASL
34 #include <openssl/ssl.h>
35@@ -117,10 +119,12 @@ struct lookup_context {
36
37 #define LDAP_AUTH_USESIMPLE 0x0008
38
39+#ifdef WITH_LDAP
40 /* lookup_ldap.c */
41 LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt);
42 int unbind_ldap_connection(unsigned logopt, struct ldap_conn *conn, struct lookup_context *ctxt);
43 int authtype_requires_creds(const char *authtype);
44+#endif
45
46 #ifdef WITH_SASL
47 /* cyrus-sasl.c */
diff --git a/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch b/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch
deleted file mode 100644
index be750ab897..0000000000
--- a/meta-networking/recipes-daemons/autofs/autofs/pkgconfig-libnsl.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From 602f9ca83c2bdbf511bcb178fcb4b9fc54da955f Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 15:20:46 +0800
4Subject: [PATCH] From e3ae56cf0bb4063c31295f45d04e3c504f4b6cc7 Mon Sep 17
5 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Mon, 24 Apr 2017
6 20:41:25 -0700 Subject: [PATCH] autofs: Upgrade to 5.1.2 release
7
8Use pkg-config first to look for external libnsl which is now
9split out from glibc, if it does not exist then see if its provided
10by glibc itself.
11
12-Khem
13
14Upstream-Status: Pending
15
16update patch to version 5.1.5
17Signed-off-by: Changqing Li <changqing.li@windriver.com>
18---
19 configure.in | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/configure.in b/configure.in
23index 76ecb40..493b9f1 100644
24--- a/configure.in
25+++ b/configure.in
26@@ -238,7 +238,7 @@ AC_SUBST(LIBCLOCK_GETTIME)
27
28 PKG_CHECK_MODULES([NSL],[libnsl],,
29 [
30-AC_CHECK_LIB(nsl, yp_match, NSL_LIBS="-lnsl")
31+PKG_CHECK_MODULES([NSL], [libnsl], [], [AC_CHECK_LIB([nsl],[yp_match],[LIBNSL="-lnsl"],[LIBNSL=""])])
32 AC_SUBST(NSL_LIBS)
33 NSL_CFLAGS=""
34 ])
35--
362.7.4
37
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb
index e3f9777380..bc52f40d1c 100644
--- a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb
@@ -3,55 +3,44 @@ SECTION = "utils"
3LICENSE = "GPL-2.0-only" 3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=ee9324a6f564bb2376b63878ac396798" 4LIC_FILES_CHKSUM = "file://COPYING;md5=ee9324a6f564bb2376b63878ac396798"
5 5
6DEPENDS += "libtirpc flex-native bison-native e2fsprogs openssl libxml2 util-linux cyrus-sasl libnsl2" 6DEPENDS += "libtirpc flex-native bison-native e2fsprogs openssl util-linux libnsl2"
7 7
8CFLAGS += "-I${STAGING_INCDIR}/tirpc" 8CFLAGS += "-I${STAGING_INCDIR}/tirpc"
9 9
10inherit autotools-brokensep systemd update-rc.d pkgconfig 10inherit autotools-brokensep systemd update-rc.d pkgconfig
11 11
12SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ 12SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \
13 file://no-bash.patch \ 13 file://0001-no-bash.patch \
14 file://cross.patch \ 14 file://0002-using-pkg-config-to-detect-krb5.patch \
15 file://fix_disable_ldap.patch \ 15 file://0003-force-STRIP-to-emtpy.patch \
16 file://autofs-5.0.7-fix-lib-deps.patch \ 16 file://0004-autofs.init.in-remove-bashism.patch \
17 file://add-the-needed-stdarg.h.patch \ 17 file://0005-fix-the-YACC-rule-to-fix-a-building-failure.patch \
18 file://using-pkg-config-to-detect-libxml-2.0-and-krb5.patch \ 18 file://0006-Do-not-hardcode-path-for-pkg.m4.patch \
19 file://force-STRIP-to-emtpy.patch \ 19 file://0007-Avoid-conflicts-between-sys-mount.h-and-linux-mount..patch \
20 file://remove-bashism.patch \ 20 file://0008-include-libgen.h-for-basename.patch \
21 file://fix-the-YACC-rule-to-fix-a-building-failure.patch \ 21 file://0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch \
22 file://0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch \ 22 file://0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch \
23 file://0002-Replace-__S_IEXEC-with-S_IEXEC.patch \
24 file://pkgconfig-libnsl.patch \
25 file://0001-modules-lookup_multi.c-Replace-__S_IEXEC-with-S_IEXE.patch \
26 file://0001-Do-not-hardcode-path-for-pkg.m4.patch \
27 file://0001-Bug-fix-for-pid_t-not-found-on-musl.patch \
28 file://0001-Define-__SWORD_TYPE-if-undefined.patch \
29 file://mount_conflict.patch \
30 file://0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch \
31 file://0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch \
32 file://0001-include-libgen.h-for-basename.patch \
33 " 23 "
34SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c" 24SRC_URI[sha256sum] = "46c30b763ef896f4c4a6df6d62aaaef7afc410e0b7f50d52dbfc6cf728cacd4f"
35 25
36UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/" 26UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/"
37 27
38INITSCRIPT_NAME = "autofs" 28INITSCRIPT_NAME = "autofs"
39INITSCRIPT_PARAMS = "defaults" 29INITSCRIPT_PARAMS = "defaults"
40 30
41# FIXME: modules/Makefile has crappy rules that don't obey LDFLAGS
42#CFLAGS += "${LDFLAGS}"
43
44PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd" 31PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd"
32PACKAGECONFIG[openldap] = "--with-openldap=yes,--with-openldap=no,libxml2 openldap"
33PACKAGECONFIG[sasl] = "--with-sasl=yes,--with-sasl=no,cyrus-sasl krb5"
45 34
46PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 35PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
47 36
48EXTRA_OEMAKE = "DONTSTRIP=1" 37EXTRA_OEMAKE = "DONTSTRIP=1"
49EXTRA_OECONF += "--disable-mount-locking \ 38EXTRA_OECONF += "--disable-mount-locking \
50 --enable-ignore-busy --with-openldap=no \ 39 --enable-ignore-busy \
51 --with-confdir=${sysconfdir}/default \ 40 --with-confdir=${sysconfdir}/default \
52 --with-fifodir=/run \ 41 --with-fifodir=/run \
53 --with-flagdir=/run \ 42 --with-flagdir=/run \
54 --with-sasl=no --with-libtirpc \ 43 --with-libtirpc \
55 --with-mapdir=${sysconfdir} \ 44 --with-mapdir=${sysconfdir} \
56 --with-path=${STAGING_BINDIR_NATIVE} \ 45 --with-path=${STAGING_BINDIR_NATIVE} \
57 --with-fifodir=${localstatedir}/run \ 46 --with-fifodir=${localstatedir}/run \
diff --git a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
index 7947ffe457..ede4491309 100644
--- a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
+++ b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
@@ -42,7 +42,7 @@ inherit systemd
42DEPENDS = "readline ppp ncurses gzip-native rpcsvc-proto-native libtirpc" 42DEPENDS = "readline ppp ncurses gzip-native rpcsvc-proto-native libtirpc"
43RDEPENDS:${PN} = "rpcbind" 43RDEPENDS:${PN} = "rpcbind"
44 44
45EXTRA_OEMAKE = "CC='${CC}' AS='${AS}' LD='${LD}' AR='${AR}' NM='${NM}' STRIP='${STRIP}'" 45EXTRA_OEMAKE = "CC='${CC} ${CFLAGS}' AS='${AS}' LD='${LD} ${LDFLAGS}' AR='${AR}' NM='${NM}' STRIP='${STRIP}'"
46EXTRA_OEMAKE += "PPPD_VERSION=${PPPD_VERSION} SYS_LIBDIR=${libdir}" 46EXTRA_OEMAKE += "PPPD_VERSION=${PPPD_VERSION} SYS_LIBDIR=${libdir}"
47# enable self tests 47# enable self tests
48EXTRA_OEMAKE += "IPPOOL_TEST=y" 48EXTRA_OEMAKE += "IPPOOL_TEST=y"
@@ -52,12 +52,7 @@ CPPFLAGS += "${SELECTED_OPTIMIZATION} -I${STAGING_INCDIR}/tirpc"
52SYSTEMD_SERVICE:${PN} = "ippool.service" 52SYSTEMD_SERVICE:${PN} = "ippool.service"
53 53
54do_compile:prepend() { 54do_compile:prepend() {
55 # fix the CFLAGS= and CPPFLAGS= in main Makefile, to have the extra CFLAGS in env
56 sed -i -e "s/^CFLAGS=/CFLAGS+=/" ${S}/Makefile
57 sed -i -e "s/^CPPFLAGS=/CPPFLAGS+=/" ${S}/Makefile
58
59 sed -i -e "s:-I/usr/include/pppd:-I=/usr/include/pppd:" ${S}/pppd/Makefile 55 sed -i -e "s:-I/usr/include/pppd:-I=/usr/include/pppd:" ${S}/pppd/Makefile
60
61} 56}
62 57
63 58
@@ -88,7 +83,7 @@ FILES:${PN}-test = "/opt/${BPN}"
88# needs tcl to run tests 83# needs tcl to run tests
89RDEPENDS:${PN}-test += "tcl ${BPN}" 84RDEPENDS:${PN}-test += "tcl ${BPN}"
90 85
91PPPD_VERSION="${@get_ppp_version(d)}" 86PPPD_VERSION = "${@get_ppp_version(d)}"
92 87
93def get_ppp_version(d): 88def get_ppp_version(d):
94 import re 89 import re
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.10.bb b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.11.bb
index 6a272775f6..db4a4313a4 100644
--- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.10.bb
+++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.1.11.bb
@@ -12,7 +12,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)
12 12
13LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 13LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
14 14
15SRCREV = "d0f04ae4b9bf0bc0be55fbda5f235afdfbf5dd19" 15SRCREV = "4b3e853ab468a95d8a035efa8fc4298a6c6318a3"
16 16
17SRC_URI = "git://github.com/open-iscsi/open-iscsi;branch=master;protocol=https \ 17SRC_URI = "git://github.com/open-iscsi/open-iscsi;branch=master;protocol=https \
18 file://0001-Makefile-Do-not-set-Werror.patch \ 18 file://0001-Makefile-Do-not-set-Werror.patch \
@@ -23,7 +23,6 @@ SRC_URI = "git://github.com/open-iscsi/open-iscsi;branch=master;protocol=https \
23 file://iscsi-initiator-targets.service \ 23 file://iscsi-initiator-targets.service \
24 file://set_initiatorname \ 24 file://set_initiatorname \
25 " 25 "
26S = "${WORKDIR}/git"
27 26
28inherit update-rc.d systemd autotools pkgconfig 27inherit update-rc.d systemd autotools pkgconfig
29 28
diff --git a/meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch b/meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch
new file mode 100644
index 0000000000..e44e2035c2
--- /dev/null
+++ b/meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch
@@ -0,0 +1,27 @@
1From 5b1b04356f3efc08ae279cafc6ee86df11f10c9a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Aug 2024 23:13:02 -0700
4Subject: [PATCH] configure.ac: Do not emit compiler flags into object files
5
6They contain options which have absolute paths in them e.g. --sysroot
7therefore do not record them and make build reproducible
8
9Upstream-Status: Inappropriate [OE-Specific]
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
15
16--- a/configure.ac
17+++ b/configure.ac
18@@ -1013,8 +1013,7 @@ if test "$enable_hardening" != no; then
19 "-Wp,-D_FORTIFY_SOURCE=$FORTIFY_SOURCE" \
20 "-fexceptions" \
21 "-fstack-protector-strong" \
22- "--param=ssp-buffer-size=4" \
23- "-grecord-gcc-switches"
24+ "--param=ssp-buffer-size=4"
25 do
26 AC_MSG_CHECKING([for $FLAG support])
27 CFLAGS="$CFLAGS $FLAG"
diff --git a/meta-networking/recipes-daemons/keepalived/keepalived/0001-vrrp-Don-t-include-linux-if_ether.h-if-not-needed.patch b/meta-networking/recipes-daemons/keepalived/keepalived/0001-vrrp-Don-t-include-linux-if_ether.h-if-not-needed.patch
new file mode 100644
index 0000000000..f6a38668ee
--- /dev/null
+++ b/meta-networking/recipes-daemons/keepalived/keepalived/0001-vrrp-Don-t-include-linux-if_ether.h-if-not-needed.patch
@@ -0,0 +1,34 @@
1From f129c588f7c8a66e595d8ae96a43d585018e79cd Mon Sep 17 00:00:00 2001
2From: Quentin Armitage <quentin@armitage.org.uk>
3Date: Thu, 7 Nov 2024 11:09:43 +0000
4Subject: [PATCH] vrrp: Don't include <linux/if_ether.h> if not needed
5
6The musl headers do not allow including both <linux/if_ether.h> and
7<net/ethernet.h> since they both define struct ethhdr.
8
9It is likely that we do not need to include <linux/if_ether.h> at all
10since with both glibc and musl including <net/ethernet.h> is sufficient,
11but removing <linux/if_ether.h> is for another day.
12
13Upstream-Status: Backport [https://github.com/acassen/keepalived/commit/f129c588f7c8a66e595d8ae96a43d585018e79cd]
14Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
15---
16 keepalived/vrrp/vrrp.c | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19diff --git a/keepalived/vrrp/vrrp.c b/keepalived/vrrp/vrrp.c
20index 96b2c4c8..4b06e387 100644
21--- a/keepalived/vrrp/vrrp.c
22+++ b/keepalived/vrrp/vrrp.c
23@@ -40,8 +40,10 @@
24 #include <netinet/ip6.h>
25 #include <stdint.h>
26 #include <net/if_arp.h>
27-#include <linux/if_ether.h>
28 #include <net/ethernet.h>
29+#if !defined ETH_HLEN || !defined ETH_ZLEN
30+#include <linux/if_ether.h> /* This may not be needed at all - try removing and see if any issues raised */
31+#endif
32 #ifdef _NETWORK_TIMESTAMP_
33 #include <linux/net_tstamp.h>
34 #endif
diff --git a/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb b/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb
index 85f4a6aa59..6fb4886b96 100644
--- a/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb
+++ b/meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb
@@ -11,18 +11,21 @@ LICENSE = "GPL-2.0-only"
11LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 11LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
12 12
13SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz \ 13SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz \
14 file://0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch \
15 file://0001-vrrp-Don-t-include-linux-if_ether.h-if-not-needed.patch \
14 " 16 "
15SRC_URI[sha256sum] = "85882eb62974f395d4c631be990a41a839594a7e62fbfebcb5649a937a7a1bb6" 17SRC_URI[sha256sum] = "77f4a22e5a23fa8e49b8916acdfb584c864e72905a2f1de2a7f62ed40a896160"
16UPSTREAM_CHECK_URI = "https://github.com/acassen/keepalived/releases" 18UPSTREAM_CHECK_URI = "https://github.com/acassen/keepalived/releases"
17 19
18DEPENDS = "libnfnetlink openssl" 20DEPENDS = "libnfnetlink openssl"
19 21
20inherit autotools pkgconfig systemd 22inherit autotools pkgconfig systemd
21 23
22PACKAGECONFIG ??= "libnl snmp \ 24PACKAGECONFIG ??= "libnl snmp reproducible \
23 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 25 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
24" 26"
25PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" 27PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
28PACKAGECONFIG[reproducible] = "--enable-reproducible-build,,"
26PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" 29PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
27PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd" 30PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd"
28 31
@@ -30,6 +33,10 @@ EXTRA_OEMAKE = "initdir=${sysconfdir}/init.d"
30 33
31export EXTRA_CFLAGS = "${CFLAGS}" 34export EXTRA_CFLAGS = "${CFLAGS}"
32 35
36do_configure:append() {
37 sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${B}/lib/config.h
38}
39
33do_install:append() { 40do_install:append() {
34 if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then 41 if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then
35 chmod 0755 ${D}${sysconfdir}/init.d/${BPN} 42 chmod 0755 ${D}${sysconfdir}/init.d/${BPN}
@@ -39,6 +46,9 @@ do_install:append() {
39 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 46 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
40 install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service 47 install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
41 fi 48 fi
49 if [ -n "${@bb.utils.filter('PACKAGECONFIG', 'reproducible', d)}" ]; then
50 sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${sysconfdir}/keepalived/keepalived.config-opts
51 fi
42} 52}
43 53
44PACKAGE_BEFORE_PN = "${PN}-samples" 54PACKAGE_BEFORE_PN = "${PN}-samples"
diff --git a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.18.bb b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.19.bb
index 4deab153c4..f4c030f7ce 100644
--- a/meta-networking/recipes-daemons/lldpd/lldpd_1.0.18.bb
+++ b/meta-networking/recipes-daemons/lldpd/lldpd_1.0.19.bb
@@ -12,7 +12,7 @@ SRC_URI = "\
12 file://run-ptest \ 12 file://run-ptest \
13 " 13 "
14 14
15SRC_URI[sha256sum] = "4b320675d608901a4a0d4feff8f96bb846d4913d914b0cf75b7d0ae80490f2f7" 15SRC_URI[sha256sum] = "f87df3163d5e5138da901d055b384009785d1eb50fdb17a2343910fcf30a997f"
16 16
17inherit autotools update-rc.d useradd systemd pkgconfig bash-completion github-releases ptest 17inherit autotools update-rc.d useradd systemd pkgconfig bash-completion github-releases ptest
18 18
diff --git a/meta-networking/recipes-daemons/ncftp/ncftp/0001-ncftp-3.2.7-fix-gcc14.patch b/meta-networking/recipes-daemons/ncftp/ncftp/0001-ncftp-3.2.7-fix-gcc14.patch
new file mode 100644
index 0000000000..9b8a0c778b
--- /dev/null
+++ b/meta-networking/recipes-daemons/ncftp/ncftp/0001-ncftp-3.2.7-fix-gcc14.patch
@@ -0,0 +1,20 @@
1fix select arg detection
2
3Reference:
4 https://bugs.gentoo.org/921487
5
6Upstream-Status: Inappropriate [unresponsive contact email address]
7
8Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10--- a/autoconf_local/aclocal.m4
11+++ b/autoconf_local/aclocal.m4
12@@ -4196,7 +4196,7 @@ AC_MSG_CHECKING([types of arguments for
13 #include <sys/select.h>
14 #endif
15 #include <sys/socket.h> /* MG: always incl */
16-extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
17+extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
18 [ac_not_found=no ; break 3],ac_not_found=yes)
19 done
20 done
diff --git a/meta-networking/recipes-daemons/ncftp/ncftp/0002-ncftp-3.2.7-fix-clang.patch b/meta-networking/recipes-daemons/ncftp/ncftp/0002-ncftp-3.2.7-fix-clang.patch
new file mode 100644
index 0000000000..a8de816e62
--- /dev/null
+++ b/meta-networking/recipes-daemons/ncftp/ncftp/0002-ncftp-3.2.7-fix-clang.patch
@@ -0,0 +1,73 @@
1Fix compilation with clang-16
2
3aclocal.m4 contains code that no longer compiles: missing headers and missing
4return types.
5
6Reference:
7 https://gitweb.gentoo.org/repo/gentoo.git/tree/net-ftp/ncftp/files/ncftp-3.2.7-fix-clang.patch
8
9Upstream-Status: Inappropriate [unresponsive contact email address]
10
11Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13--- a/autoconf_local/aclocal.m4
14+++ b/autoconf_local/aclocal.m4
15@@ -3057,6 +3057,7 @@ AC_TRY_LINK([
16 #include <sys/uio.h>
17 #include <sys/socket.h>
18 #include <sys/un.h>
19+#include <string.h>
20 ],[
21 struct sockaddr_un uaddr;
22
23@@ -3285,6 +3286,7 @@ AC_TRY_LINK([
24 #ifdef HAVE_RESOLV_H
25 # include <resolv.h>
26 #endif
27+#include <string.h>
28 ],[
29 /* function-body */
30 int len;
31@@ -3363,6 +3365,7 @@ else
32 #include <stdio.h>
33 #include <stdlib.h>
34
35+ int
36 main(int argc, char **argv)
37 {
38 /* Note: don't actually call readline,
39@@ -5144,6 +5147,7 @@ do
40 #ifdef HAVE_STDLIB_H
41 # include <stdlib.h>
42 #endif
43+#include <string.h>
44
45 #ifdef HAVE_NCURSES_H
46 # define NCURSES_OPAQUE 0
47@@ -5175,6 +5179,7 @@ do
48 #endif
49
50
51+int
52 main(int argc, char **argv)
53 {
54 /* Note: don't actually call curses, since it may block;
55@@ -6509,7 +6514,6 @@ char *malloc();
56 #endif
57 #endif /* MG */
58
59-int
60 int main(void)
61 {
62 char *data, *data2, *data3;
63@@ -6606,8 +6610,9 @@ else
64 AC_CACHE_CHECK(whether setvbuf arguments are reversed,
65 ac_cv_func_setvbuf_reversed,
66 [AC_TRY_RUN([#include <stdio.h>
67+ $include <stdlib.h>
68 /* If setvbuf has the reversed format, exit 0. */
69- main () {
70+ int main (void) {
71 /* This call has the arguments reversed.
72 A reversed system may check and see that the address of main
73 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
diff --git a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb
index 15bb00a3af..6b62e135d6 100644
--- a/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb
+++ b/meta-networking/recipes-daemons/ncftp/ncftp_3.2.7.bb
@@ -9,9 +9,12 @@ SRC_URI = "https://www.ncftp.com/public_ftp/ncftp/${BP}-src.tar.xz \
9 file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \ 9 file://ncftp-configure-use-BUILD_CC-for-ccdv.patch \
10 file://unistd.patch \ 10 file://unistd.patch \
11 file://0001-Forward-port-defining-PREFIX_BINDIR-to-use-new-autoc.patch \ 11 file://0001-Forward-port-defining-PREFIX_BINDIR-to-use-new-autoc.patch \
12 file://0001-ncftp-3.2.7-fix-gcc14.patch \
13 file://0002-ncftp-3.2.7-fix-clang.patch \
12 " 14 "
13SRC_URI[sha256sum] = "d41c5c4d6614a8eae2ed4e4d7ada6b6d3afcc9fb65a4ed9b8711344bef24f7e8" 15SRC_URI[sha256sum] = "d41c5c4d6614a8eae2ed4e4d7ada6b6d3afcc9fb65a4ed9b8711344bef24f7e8"
14 16
17# Doesn't use automake
15inherit autotools-brokensep pkgconfig 18inherit autotools-brokensep pkgconfig
16 19
17CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall" 20CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
@@ -19,8 +22,8 @@ CFLAGS += "-DNO_SSLv2 -D_FILE_OFFSET_BITS=64 -Wall"
19PACKAGECONFIG ??= "" 22PACKAGECONFIG ??= ""
20PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,," 23PACKAGECONFIG[ccdv] = "--enable-ccdv,--disable-ccdv,,"
21 24
25EXTRA_AUTORECONF += "--exclude=aclocal -I ${S}/autoconf_local"
22EXTRA_OECONF = "--disable-precomp --disable-universal ac_cv_path_TAR=tar" 26EXTRA_OECONF = "--disable-precomp --disable-universal ac_cv_path_TAR=tar"
23ACLOCALEXTRAPATH:append = " -I ${S}/autoconf_local"
24 27
25do_install () { 28do_install () {
26 install -d ${D}${bindir} ${D}${sysconfdir} ${D}${mandir} 29 install -d ${D}${bindir} ${D}${sysconfdir} ${D}${mandir}
@@ -28,3 +31,7 @@ do_install () {
28 'SYSCONFDIR=${D}${sysconfdir}' 'mandir=${D}${mandir}' \ 31 'SYSCONFDIR=${D}${sysconfdir}' 'mandir=${D}${mandir}' \
29 install 32 install
30} 33}
34
35# http://errors.yoctoproject.org/Errors/Details/766888/
36# ncftp/3.2.7/ncftp-3.2.7/config.h:358:28: error: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types]
37CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta-networking/recipes-daemons/networkd-dispatcher/networkd-dispatcher_2.2.4.bb b/meta-networking/recipes-daemons/networkd-dispatcher/networkd-dispatcher_2.2.4.bb
index 7f06e0ebf3..e7db8a948b 100644
--- a/meta-networking/recipes-daemons/networkd-dispatcher/networkd-dispatcher_2.2.4.bb
+++ b/meta-networking/recipes-daemons/networkd-dispatcher/networkd-dispatcher_2.2.4.bb
@@ -14,7 +14,6 @@ REQUIRED_DISTRO_FEATURES = "systemd gobject-introspection-data"
14SRCREV = "dfd26d72793914eb3da910ef8c71de6d7c8942a2" 14SRCREV = "dfd26d72793914eb3da910ef8c71de6d7c8942a2"
15SRC_URI = "git://gitlab.com/craftyguy/networkd-dispatcher;protocol=https;nobranch=1" 15SRC_URI = "git://gitlab.com/craftyguy/networkd-dispatcher;protocol=https;nobranch=1"
16 16
17S = "${WORKDIR}/git"
18 17
19SYSTEMD_PACKAGES = "${PN}" 18SYSTEMD_PACKAGES = "${PN}"
20SYSTEMD_SERVICE:${PN} = "networkd-dispatcher.service" 19SYSTEMD_SERVICE:${PN} = "networkd-dispatcher.service"
diff --git a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
index ac13d7a196..d1e08cd073 100644
--- a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
+++ b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
@@ -66,6 +66,7 @@ PACKAGECONFIG[sysfs] = "--enable-sysfs,--disable-sysfs,sysfsutils,"
66PACKAGECONFIG[libgcrypt] = "--enable-encryption,--disable-encryption,libgcrypt," 66PACKAGECONFIG[libgcrypt] = "--enable-encryption,--disable-encryption,libgcrypt,"
67PACKAGECONFIG[non32bit] = "--enable-non32bit-int,--disable-non32bit-int,," 67PACKAGECONFIG[non32bit] = "--enable-non32bit-int,--disable-non32bit-int,,"
68PACKAGECONFIG[snmp-bc] = "--enable-snmp_bc,--disable-snmp_bc" 68PACKAGECONFIG[snmp-bc] = "--enable-snmp_bc,--disable-snmp_bc"
69PACKAGECONFIG[ov-rest] = "--enable-ov_rest,--disable-ov_rest,curl rabbitmq-c json-c"
69 70
70export DISTRO 71export DISTRO
71 72
diff --git a/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch b/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
index 8c9c13b1c4..785fe87452 100644
--- a/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0001-Fix-makedefs.patch
@@ -1,4 +1,4 @@
1From 9000ee4d8bb5c5e0bcc588e9bec86eb56f4285e1 Mon Sep 17 00:00:00 2001 1From e4197bc1f431fd7e555a31e6f7f1e020b4ec8f4c Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com> 2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 19 Jun 2015 16:45:54 +0900 3Date: Fri, 19 Jun 2015 16:45:54 +0900
4Subject: [PATCH] Fix makedefs 4Subject: [PATCH] Fix makedefs
@@ -19,10 +19,10 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
19 1 file changed, 11 insertions(+), 16 deletions(-) 19 1 file changed, 11 insertions(+), 16 deletions(-)
20 20
21diff --git a/makedefs b/makedefs 21diff --git a/makedefs b/makedefs
22index 3448c1e..78e0717 100644 22index a740e41..28fb128 100644
23--- a/makedefs 23--- a/makedefs
24+++ b/makedefs 24+++ b/makedefs
25@@ -197,9 +197,6 @@ echo "# pie=$pie" 25@@ -230,9 +230,6 @@ echo "# pie=$pie"
26 26
27 # Defaults for most sane systems 27 # Defaults for most sane systems
28 28
@@ -32,7 +32,7 @@ index 3448c1e..78e0717 100644
32 ARFL=rv 32 ARFL=rv
33 33
34 # Ugly function to make our error message more visible among the 34 # Ugly function to make our error message more visible among the
35@@ -492,12 +489,12 @@ case "$SYSTEM.$RELEASE" in 35@@ -563,12 +560,12 @@ case "$SYSTEM.$RELEASE" in
36 case "$CCARGS" in 36 case "$CCARGS" in
37 *-DNO_DB*) ;; 37 *-DNO_DB*) ;;
38 *-DHAS_DB*) ;; 38 *-DHAS_DB*) ;;
@@ -48,7 +48,7 @@ index 3448c1e..78e0717 100644
48 else 48 else
49 # No, we're not going to try db1 db2 db3 etc. 49 # No, we're not going to try db1 db2 db3 etc.
50 # On a properly installed system, Postfix builds 50 # On a properly installed system, Postfix builds
51@@ -506,12 +503,12 @@ case "$SYSTEM.$RELEASE" in 51@@ -577,12 +574,12 @@ case "$SYSTEM.$RELEASE" in
52 echo "Install the appropriate db*-devel package first." 1>&2 52 echo "Install the appropriate db*-devel package first." 1>&2
53 exit 1 53 exit 1
54 fi 54 fi
@@ -63,7 +63,7 @@ index 3448c1e..78e0717 100644
63 do 63 do
64 test -e $lib/lib$name.a -o -e $lib/lib$name.so && { 64 test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
65 SYSLIBS="$SYSLIBS -l$name" 65 SYSLIBS="$SYSLIBS -l$name"
66@@ -531,7 +528,7 @@ case "$SYSTEM.$RELEASE" in 66@@ -602,7 +599,7 @@ case "$SYSTEM.$RELEASE" in
67 if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ] 67 if [ `expr "X$CCARGS" : "X.*-DNO_EPOLL"` -gt 0 ]
68 then 68 then
69 : 69 :
@@ -72,7 +72,7 @@ index 3448c1e..78e0717 100644
72 then 72 then
73 echo CCARGS="$CCARGS -DNO_EPOLL" 73 echo CCARGS="$CCARGS -DNO_EPOLL"
74 else 74 else
75@@ -555,8 +552,6 @@ int main(int argc, char **argv) 75@@ -626,8 +623,6 @@ int main(int argc, char **argv)
76 } 76 }
77 EOF 77 EOF
78 ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1 78 ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1
@@ -81,7 +81,7 @@ index 3448c1e..78e0717 100644
81 rm -f makedefs.test makedefs.test.[co] 81 rm -f makedefs.test makedefs.test.[co]
82 fi;; 82 fi;;
83 esac 83 esac
84@@ -572,12 +567,12 @@ EOF 84@@ -644,12 +639,12 @@ EOF
85 case "$CCARGS" in 85 case "$CCARGS" in
86 *-DNO_DB*) ;; 86 *-DNO_DB*) ;;
87 *-DHAS_DB*) ;; 87 *-DHAS_DB*) ;;
@@ -97,7 +97,7 @@ index 3448c1e..78e0717 100644
97 else 97 else
98 # On a properly installed system, Postfix builds 98 # On a properly installed system, Postfix builds
99 # by including <db.h> and by linking with -ldb 99 # by including <db.h> and by linking with -ldb
100@@ -585,12 +580,12 @@ EOF 100@@ -657,12 +652,12 @@ EOF
101 echo "Install the appropriate db*-devel package first." 1>&2 101 echo "Install the appropriate db*-devel package first." 1>&2
102 exit 1 102 exit 1
103 fi 103 fi
@@ -113,5 +113,5 @@ index 3448c1e..78e0717 100644
113 test -e $lib/lib$name.a -o -e $lib/lib$name.so && { 113 test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
114 SYSLIBS="$SYSLIBS -l$name" 114 SYSLIBS="$SYSLIBS -l$name"
115-- 115--
1162.17.1 1162.25.1
117 117
diff --git a/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch b/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
index 28199ccdd2..d46efb95cb 100644
--- a/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0002-Change-fixed-postconf-to-a-variable-for-cross-compil.patch
@@ -1,4 +1,4 @@
1From cb69ffda0c2cbde6acdc8b01c8d5ff78d81a84fc Mon Sep 17 00:00:00 2001 1From 953719878466c55572294f42e85127bda5d34999 Mon Sep 17 00:00:00 2001
2From: Li xin <lixin.fnst@cn.fujitsu.com> 2From: Li xin <lixin.fnst@cn.fujitsu.com>
3Date: Fri, 19 Jun 2015 17:14:58 +0900 3Date: Fri, 19 Jun 2015 17:14:58 +0900
4Subject: [PATCH] Change fixed postconf to a variable for cross-compiling 4Subject: [PATCH] Change fixed postconf to a variable for cross-compiling
@@ -12,7 +12,7 @@ Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
12 2 files changed, 11 insertions(+), 9 deletions(-) 12 2 files changed, 11 insertions(+), 9 deletions(-)
13 13
14diff --git a/Makefile.in b/Makefile.in 14diff --git a/Makefile.in b/Makefile.in
15index 65e7911..40295be 100644 15index a37f89f..17cb64b 100644
16--- a/Makefile.in 16--- a/Makefile.in
17+++ b/Makefile.in 17+++ b/Makefile.in
18@@ -22,7 +22,7 @@ META = meta/main.cf.proto meta/master.cf.proto meta/postfix-files \ 18@@ -22,7 +22,7 @@ META = meta/main.cf.proto meta/master.cf.proto meta/postfix-files \
@@ -25,10 +25,10 @@ index 65e7911..40295be 100644
25 default: update 25 default: update
26 26
27diff --git a/postfix-install b/postfix-install 27diff --git a/postfix-install b/postfix-install
28index e498cd3..8049f43 100644 28index 563ee27..00d4651 100644
29--- a/postfix-install 29--- a/postfix-install
30+++ b/postfix-install 30+++ b/postfix-install
31@@ -244,8 +244,8 @@ test -z "$non_interactive" -a ! -t 0 && { 31@@ -249,8 +249,8 @@ test -z "$non_interactive" -a ! -t 0 && {
32 exit 1 32 exit 1
33 } 33 }
34 34
@@ -39,7 +39,7 @@ index e498cd3..8049f43 100644
39 exit 1 39 exit 1
40 } 40 }
41 41
42@@ -266,7 +266,7 @@ do 42@@ -271,7 +271,7 @@ do
43 case "$junk" in 43 case "$junk" in
44 *MAIL_VERSION*) 44 *MAIL_VERSION*)
45 case "$mail_version" in 45 case "$mail_version" in
@@ -48,7 +48,7 @@ index e498cd3..8049f43 100644
48 esac 48 esac
49 val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1 49 val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1
50 case "$val" in 50 case "$val" in
51@@ -454,7 +454,7 @@ template files main.cf.proto and master.cf.proto." 51@@ -459,7 +459,7 @@ template files main.cf.proto and master.cf.proto."
52 52
53 : ${install_root=/} 53 : ${install_root=/}
54 : ${tempdir=`pwd`} 54 : ${tempdir=`pwd`}
@@ -57,16 +57,16 @@ index e498cd3..8049f43 100644
57 57
58 # Find out the location of installed configuration files. 58 # Find out the location of installed configuration files.
59 59
60@@ -520,7 +520,7 @@ test -f $CONFIG_DIRECTORY/main.cf && { 60@@ -525,7 +525,7 @@ test -f $CONFIG_DIRECTORY/main.cf && {
61 case "$junk" in 61 case "$junk" in
62 "") eval unset $name;; 62 "") eval unset $name;;
63 esac 63 esac
64- eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -hx $name\`} || 64- eval : \${$name=\`bin/postconf -qc $CONFIG_DIRECTORY -hx $name\`} ||
65+ eval : \${$name=\`$POSTCONF -c $CONFIG_DIRECTORY -hx $name\`} || 65+ eval : \${$name=\`$POSTCONF -qc $CONFIG_DIRECTORY -hx $name\`} ||
66 exit 1 66 exit 1
67 done 67 done
68 } 68 }
69@@ -533,7 +533,7 @@ do 69@@ -538,7 +538,7 @@ do
70 case "$junk" in 70 case "$junk" in
71 "") eval unset $name;; 71 "") eval unset $name;;
72 esac 72 esac
@@ -75,7 +75,7 @@ index e498cd3..8049f43 100644
75 done 75 done
76 76
77 # Override settings manually. 77 # Override settings manually.
78@@ -670,6 +670,8 @@ README_DIRECTORY=$install_root$readme_directory 78@@ -675,6 +675,8 @@ README_DIRECTORY=$install_root$readme_directory
79 SHLIB_DIRECTORY=$install_root$shlib_directory 79 SHLIB_DIRECTORY=$install_root$shlib_directory
80 META_DIRECTORY=$install_root$meta_directory 80 META_DIRECTORY=$install_root$meta_directory
81 81
@@ -84,7 +84,7 @@ index e498cd3..8049f43 100644
84 # Avoid repeated tests for existence of these; default permissions suffice. 84 # Avoid repeated tests for existence of these; default permissions suffice.
85 85
86 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1 86 test -d $DAEMON_DIRECTORY || mkdir -p $DAEMON_DIRECTORY || exit 1
87@@ -841,7 +843,7 @@ IFS="$BACKUP_IFS" 87@@ -846,7 +848,7 @@ IFS="$BACKUP_IFS"
88 # the wrong place when Postfix is being upgraded. 88 # the wrong place when Postfix is being upgraded.
89 89
90 case "$mail_version" in 90 case "$mail_version" in
@@ -93,15 +93,15 @@ index e498cd3..8049f43 100644
93 esac 93 esac
94 94
95 # Undo MAIL_VERSION expansion at the end of a parameter value. If 95 # Undo MAIL_VERSION expansion at the end of a parameter value. If
96@@ -861,7 +863,7 @@ do 96@@ -866,7 +868,7 @@ do
97 esac 97 esac
98 done 98 done
99 99
100-bin/postconf -c $CONFIG_DIRECTORY -e \ 100-bin/postconf -qc $CONFIG_DIRECTORY -e \
101+"$POSTCONF" -c $CONFIG_DIRECTORY -e \ 101+"$POSTCONF" -qc $CONFIG_DIRECTORY -e \
102 "daemon_directory = $daemon_directory" \ 102 "daemon_directory = $daemon_directory" \
103 "data_directory = $data_directory" \ 103 "data_directory = $data_directory" \
104 "command_directory = $command_directory" \ 104 "command_directory = $command_directory" \
105-- 105--
1062.17.1 1062.25.1
107 107
diff --git a/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch b/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
index 1545f21637..6f8e3e84da 100644
--- a/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0003-makedefs-Use-native-compiler-to-build-makedefs.test.patch
@@ -1,22 +1,22 @@
1From 995bddd9563b1aecca2369f2f9c675f88bdc0053 Mon Sep 17 00:00:00 2001 1From a8ec63a71361ccd3f6d2959c4c87b7824282b291 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 26 Aug 2017 10:29:37 -0700 3Date: Sat, 26 Aug 2017 10:29:37 -0700
4Subject: [PATCH] makedefs: Use native compiler to build makedefs.test 4Subject: [PATCH] makedefs: Use native compiler to build makedefs.test
5 5
6Its a binary used during build 6Its a binary used during build
7 7
8Upstream-Status: Inappropriate [embedded specific]
9
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 11---
10Upstream-Status: Pending
11
12 makedefs | 10 +++++----- 12 makedefs | 10 +++++-----
13 1 file changed, 5 insertions(+), 5 deletions(-) 13 1 file changed, 5 insertions(+), 5 deletions(-)
14 14
15diff --git a/makedefs b/makedefs 15diff --git a/makedefs b/makedefs
16index 78e0717..3299eba 100644 16index 28fb128..313b401 100644
17--- a/makedefs 17--- a/makedefs
18+++ b/makedefs 18+++ b/makedefs
19@@ -551,7 +551,7 @@ int main(int argc, char **argv) 19@@ -622,7 +622,7 @@ int main(int argc, char **argv)
20 exit(0); 20 exit(0);
21 } 21 }
22 EOF 22 EOF
@@ -25,7 +25,7 @@ index 78e0717..3299eba 100644
25 rm -f makedefs.test makedefs.test.[co] 25 rm -f makedefs.test makedefs.test.[co]
26 fi;; 26 fi;;
27 esac 27 esac
28@@ -787,7 +787,7 @@ int main(int argc, char **argv) 28@@ -865,7 +865,7 @@ int main(int argc, char **argv)
29 exit(0); 29 exit(0);
30 } 30 }
31 EOF 31 EOF
@@ -34,7 +34,7 @@ index 78e0717..3299eba 100644
34 ./makedefs.test 2>/dev/null || 34 ./makedefs.test 2>/dev/null ||
35 CCARGS="$CCARGS -DNO_SIGSETJMP" 35 CCARGS="$CCARGS -DNO_SIGSETJMP"
36 rm -f makedefs.test makedefs.test.[co] 36 rm -f makedefs.test makedefs.test.[co]
37@@ -823,7 +823,7 @@ int main(int argc, char **argv) 37@@ -903,7 +903,7 @@ int main(int argc, char **argv)
38 &error) != 14); 38 &error) != 14);
39 } 39 }
40 EOF 40 EOF
@@ -43,7 +43,7 @@ index 78e0717..3299eba 100644
43 $icu_ldflags >/dev/null 2>&1 43 $icu_ldflags >/dev/null 2>&1
44 if ./makedefs.test 2>/dev/null ; then 44 if ./makedefs.test 2>/dev/null ; then
45 CCARGS="$CCARGS $icu_cppflags" 45 CCARGS="$CCARGS $icu_cppflags"
46@@ -938,7 +938,7 @@ int main(void) 46@@ -1024,7 +1024,7 @@ int main(void)
47 exit(ferror(stdout) ? 1 : 0); 47 exit(ferror(stdout) ? 1 : 0);
48 } 48 }
49 EOF 49 EOF
@@ -52,7 +52,7 @@ index 78e0717..3299eba 100644
52 ./makedefs.test || exit 1 52 ./makedefs.test || exit 1
53 rm -f makedefs.test makedefs.test.[co] 53 rm -f makedefs.test makedefs.test.[co]
54 } 54 }
55@@ -1094,7 +1094,7 @@ int main(void) 55@@ -1180,7 +1180,7 @@ int main(void)
56 exit(ferror(stdout) ? 1 : 0); 56 exit(ferror(stdout) ? 1 : 0);
57 } 57 }
58 EOF 58 EOF
@@ -62,5 +62,5 @@ index 78e0717..3299eba 100644
62 rm -f makedefs.test makedefs.test.[co] 62 rm -f makedefs.test makedefs.test.[co]
63 eval ${parm_name}=\""\$parm_val"\" 63 eval ${parm_name}=\""\$parm_val"\"
64-- 64--
652.17.1 652.25.1
66 66
diff --git a/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch b/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
index a38e783309..0660ee098e 100644
--- a/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0004-Fix-icu-config.patch
@@ -1,4 +1,4 @@
1From afef4a9391e6bb1a6c3e73d370f240577ed8b0dd Mon Sep 17 00:00:00 2001 1From 404150f53bb49af987d7338a808f47fdbd50ba7f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 16 Jan 2022 11:21:54 +0800 3Date: Sun, 16 Jan 2022 11:21:54 +0800
4Subject: [PATCH] Fix icu config 4Subject: [PATCH] Fix icu config
@@ -10,18 +10,18 @@ corrupted in any case its just adding -I/usr/include
10to the CCARGS which we loose nothing if its not 10to the CCARGS which we loose nothing if its not
11entertained. 11entertained.
12 12
13Upstream-Status: Inappropriate [embedded specific]
14
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 15Signed-off-by: Khem Raj <raj.khem@gmail.com>
14--- 16---
15Upstream-Status: Pending
16
17 makedefs | 1 - 17 makedefs | 1 -
18 1 file changed, 1 deletion(-) 18 1 file changed, 1 deletion(-)
19 19
20diff --git a/makedefs b/makedefs 20diff --git a/makedefs b/makedefs
21index 3299eba..2a76f20 100644 21index 313b401..e5db212 100644
22--- a/makedefs 22--- a/makedefs
23+++ b/makedefs 23+++ b/makedefs
24@@ -826,7 +826,6 @@ EOF 24@@ -906,7 +906,6 @@ EOF
25 ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \ 25 ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \
26 $icu_ldflags >/dev/null 2>&1 26 $icu_ldflags >/dev/null 2>&1
27 if ./makedefs.test 2>/dev/null ; then 27 if ./makedefs.test 2>/dev/null ; then
@@ -30,5 +30,5 @@ index 3299eba..2a76f20 100644
30 else 30 else
31 CCARGS="$CCARGS -DNO_EAI" 31 CCARGS="$CCARGS -DNO_EAI"
32-- 32--
332.17.1 332.25.1
34 34
diff --git a/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch b/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
index b425cf8432..1571aa844d 100644
--- a/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
+++ b/meta-networking/recipes-daemons/postfix/files/0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch
@@ -1,4 +1,4 @@
1From 545d4a79b50caa5698622c0c1905ae154197a16f Mon Sep 17 00:00:00 2001 1From 25e7d1a9bc64f39666eb0e2b9b175773615e28d2 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Fri, 12 Oct 2018 12:38:02 +0800 3Date: Fri, 12 Oct 2018 12:38:02 +0800
4Subject: [PATCH] makedefs: add -lnsl and -lresolv to SYSLIBS by default 4Subject: [PATCH] makedefs: add -lnsl and -lresolv to SYSLIBS by default
@@ -14,10 +14,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14 1 file changed, 2 insertions(+), 20 deletions(-) 14 1 file changed, 2 insertions(+), 20 deletions(-)
15 15
16diff --git a/makedefs b/makedefs 16diff --git a/makedefs b/makedefs
17index 2a76f20..9d5db9f 100644 17index e5db212..b00049b 100644
18--- a/makedefs 18--- a/makedefs
19+++ b/makedefs 19+++ b/makedefs
20@@ -506,16 +506,7 @@ case "$SYSTEM.$RELEASE" in 20@@ -577,16 +577,7 @@ case "$SYSTEM.$RELEASE" in
21 SYSLIBS="$SYSLIBS -ldb" 21 SYSLIBS="$SYSLIBS -ldb"
22 ;; 22 ;;
23 esac 23 esac
@@ -35,7 +35,7 @@ index 2a76f20..9d5db9f 100644
35 # Kernel 2.4 added IPv6 35 # Kernel 2.4 added IPv6
36 case "$RELEASE" in 36 case "$RELEASE" in
37 2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";; 37 2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";;
38@@ -583,16 +574,7 @@ EOF 38@@ -655,16 +646,7 @@ EOF
39 SYSLIBS="$SYSLIBS -ldb" 39 SYSLIBS="$SYSLIBS -ldb"
40 ;; 40 ;;
41 esac 41 esac
@@ -54,5 +54,5 @@ index 2a76f20..9d5db9f 100644
54 : ${SHLIB_SUFFIX=.so} 54 : ${SHLIB_SUFFIX=.so}
55 : ${SHLIB_CFLAGS=-fPIC} 55 : ${SHLIB_CFLAGS=-fPIC}
56-- 56--
572.17.1 572.25.1
58 58
diff --git a/meta-networking/recipes-daemons/postfix/files/main.cf b/meta-networking/recipes-daemons/postfix/files/main.cf
index 22c57485d7..e9f80af15d 100644
--- a/meta-networking/recipes-daemons/postfix/files/main.cf
+++ b/meta-networking/recipes-daemons/postfix/files/main.cf
@@ -1,4 +1,4 @@
1compatibility_level = 3.6 1compatibility_level = 3.10
2smtputf8_enable = no 2smtputf8_enable = no
3 3
4# Configure your domain and accounts 4# Configure your domain and accounts
diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb b/meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb
index d48e9145f8..a85176d871 100644
--- a/meta-networking/recipes-daemons/postfix/postfix_3.8.6.bb
+++ b/meta-networking/recipes-daemons/postfix/postfix_3.10.1.bb
@@ -4,7 +4,7 @@ IBM research as an alternative to the widely-used Sendmail program. \
4Postfix attempts to be fast, easy to administer, and secure. The outsidei \ 4Postfix attempts to be fast, easy to administer, and secure. The outsidei \
5has a definite Sendmail-ish flavor, but the inside is completely different." 5has a definite Sendmail-ish flavor, but the inside is completely different."
6 6
7HOMEPAGE= "http://www.postfix.org" 7HOMEPAGE = "http://www.postfix.org"
8SECTION = "mail" 8SECTION = "mail"
9DEPENDS = "db icu libpcre libnsl2 m4-native openssl postfix-native \ 9DEPENDS = "db icu libpcre libnsl2 m4-native openssl postfix-native \
10 ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', 'openldap', '', d)} \ 10 ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', 'openldap', '', d)} \
@@ -28,11 +28,11 @@ SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ 28 file://0005-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
29 " 29 "
30 30
31SRC_URI[sha256sum] = "4b6e17c826cc438cc3016a9c0a55ea7e77c6cbafba7dd57241d81b690b0e9774" 31SRC_URI[sha256sum] = "75868db7a8ed252cd3a14c13a3ce383ddd42563160c02027d061202ee36799bf"
32 32
33UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.8(\.\d+)+).tar.gz" 33UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.10(\.\d+)+).tar.gz"
34 34
35S = "${WORKDIR}/postfix-${PV}" 35S = "${UNPACKDIR}/postfix-${PV}"
36 36
37CLEANBROKEN = "1" 37CLEANBROKEN = "1"
38 38
@@ -87,6 +87,10 @@ export POSTCONF = "${STAGING_DIR_NATIVE}${sbindir_native}/postconf"
87# ignore the OPTS="CC=$CC" in Makefile it will not use the CC=$CC $CCARGS 87# ignore the OPTS="CC=$CC" in Makefile it will not use the CC=$CC $CCARGS
88EXTRA_OEMAKE += "OPT= DEBUG= OPTS= " 88EXTRA_OEMAKE += "OPT= DEBUG= OPTS= "
89 89
90# use gnu17 for now as recommended in:
91# https://marc.info/?l=postfix-users&m=173542420611213
92CFLAGS += "-std=gnu17"
93
90do_compile () { 94do_compile () {
91 unset CFLAGS CPPFLAGS CXXFLAGS 95 unset CFLAGS CPPFLAGS CXXFLAGS
92 local native_build 96 local native_build
@@ -135,20 +139,25 @@ do_install () {
135 rm -rf ${D}${localstatedir}/spool/postfix 139 rm -rf ${D}${localstatedir}/spool/postfix
136 mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/${MLPREFIX}sample-main.cf 140 mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/${MLPREFIX}sample-main.cf
137 install -m 755 ${S}/bin/smtp-sink ${D}/${sbindir}/ 141 install -m 755 ${S}/bin/smtp-sink ${D}/${sbindir}/
138 install -d ${D}${sysconfdir}/init.d
139 install -m 644 ${UNPACKDIR}/main.cf ${D}${sysconfdir}/postfix/main.cf 142 install -m 644 ${UNPACKDIR}/main.cf ${D}${sysconfdir}/postfix/main.cf
140 sed -i 's#@LIBEXECDIR@#${libexecdir}#' ${D}${sysconfdir}/postfix/main.cf 143 sed -i 's#@LIBEXECDIR@#${libexecdir}#' ${D}${sysconfdir}/postfix/main.cf
141 144
142 install -m 755 ${UNPACKDIR}/check_hostname.sh ${D}${sbindir}/ 145 install -m 755 ${UNPACKDIR}/check_hostname.sh ${D}${sbindir}/
143 146
144 install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
145 install -m 644 ${UNPACKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient 147 install -m 644 ${UNPACKDIR}/internal_recipient ${D}${sysconfdir}/postfix/internal_recipient
146 148
147 install -d ${D}${systemd_unitdir}/system 149 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
148 install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system 150 install -d ${D}${sysconfdir}/init.d
149 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service 151 install -m 755 ${UNPACKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
150 sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service 152 fi
151 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service 153
154 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
155 install -d ${D}${systemd_unitdir}/system
156 install -m 0644 ${UNPACKDIR}/postfix.service ${D}${systemd_unitdir}/system
157 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${systemd_unitdir}/system/postfix.service
158 sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${systemd_unitdir}/system/postfix.service
159 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/postfix.service
160 fi
152 161
153 install -m 0755 ${UNPACKDIR}/aliasesdb ${D}${libexecdir}/postfix 162 install -m 0755 ${UNPACKDIR}/aliasesdb ${D}${libexecdir}/postfix
154 163
diff --git a/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch b/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
index 8126b3619a..2b01d3a682 100644
--- a/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
+++ b/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
@@ -30,7 +30,7 @@ diff --git a/Makefile.in b/Makefile.in
30index 9434cbd..13f2e16 100644 30index 9434cbd..13f2e16 100644
31--- a/Makefile.in 31--- a/Makefile.in
32+++ b/Makefile.in 32+++ b/Makefile.in
33@@ -123,7 +123,6 @@ check: proftpd$(EXEEXT) 33@@ -129,7 +129,6 @@ check: proftpd$(EXEEXT)
34 $(DESTDIR)$(localedir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/proftpd $(DESTDIR)$(libdir) $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(libdir)/proftpd $(DESTDIR)$(libexecdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8: 34 $(DESTDIR)$(localedir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/proftpd $(DESTDIR)$(libdir) $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(libdir)/proftpd $(DESTDIR)$(libexecdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8:
35 @if [ ! -d $@ ]; then \ 35 @if [ ! -d $@ ]; then \
36 mkdir -p $@; \ 36 mkdir -p $@; \
@@ -38,18 +38,18 @@ index 9434cbd..13f2e16 100644
38 chmod 0755 $@; \ 38 chmod 0755 $@; \
39 fi 39 fi
40 40
41@@ -133,7 +132,6 @@ install-proftpd: proftpd$(EXEEXT) $(DESTDIR)$(includedir) $(DESTDIR)$(localstate 41@@ -139,7 +138,6 @@ install-proftpd: $(DESTDIR)$(includedir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(
42 rm -f $(DESTDIR)$(sbindir)/in.proftpd ; \ 42 rm -f $(DESTDIR)$(sbindir)/in.proftpd ; \
43 fi 43 fi
44 ln -s $(top_builddir)/proftpd $(DESTDIR)$(sbindir)/in.proftpd 44 ln -s $(top_builddir)/proftpd $(DESTDIR)$(sbindir)/in.proftpd
45- -chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd 45- -chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd
46 46
47 install-libs: $(DESTDIR)$(libdir)/proftpd 47 install-libs: $(DESTDIR)$(libdir)/proftpd
48 cd lib/ && $(MAKE) install 48 cd lib/ && $(MAKE) install
49@@ -170,11 +168,11 @@ install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir) 49@@ -177,11 +175,11 @@ install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
50 $(INSTALL_SBIN) $(top_builddir)/ftpshut $(DESTDIR)$(sbindir)/ftpshut 50 $(INSTALL_SBIN) $(top_builddir)/ftpshut $(DESTDIR)$(sbindir)/ftpshut
51 $(INSTALL_BIN) $(top_builddir)/ftptop $(DESTDIR)$(bindir)/ftptop 51 $(INSTALL_BIN) $(top_builddir)/ftptop $(DESTDIR)$(bindir)/ftptop
52 $(INSTALL_BIN) $(top_builddir)/ftpwho $(DESTDIR)$(bindir)/ftpwho 52 $(INSTALL_BIN) $(top_builddir)/ftpwho $(DESTDIR)$(bindir)/ftpwho
53- $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs 53- $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs
54+ $(INSTALL) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs 54+ $(INSTALL) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs
55 55
@@ -64,7 +64,7 @@ diff --git a/configure b/configure
64index 0a51670..69fa130 100755 64index 0a51670..69fa130 100755
65--- a/configure 65--- a/configure
66+++ b/configure 66+++ b/configure
67@@ -25116,7 +25116,7 @@ _ACEOF 67@@ -25683,7 +25683,7 @@ _ACEOF
68 68
69 69
70 cat >>confdefs.h <<_ACEOF 70 cat >>confdefs.h <<_ACEOF
@@ -73,7 +73,7 @@ index 0a51670..69fa130 100755
73 _ACEOF 73 _ACEOF
74 74
75 75
76@@ -25126,7 +25126,7 @@ _ACEOF 76@@ -25693,7 +25693,7 @@ _ACEOF
77 77
78 78
79 cat >>confdefs.h <<_ACEOF 79 cat >>confdefs.h <<_ACEOF
@@ -86,7 +86,7 @@ diff --git a/configure.in b/configure.in
86index 50561de..93cad3f 100644 86index 50561de..93cad3f 100644
87--- a/configure.in 87--- a/configure.in
88+++ b/configure.in 88+++ b/configure.in
89@@ -4059,8 +4059,8 @@ locale_dir="`eval echo ${locale_dir}`" 89@@ -4248,8 +4248,8 @@ locale_dir="`eval echo ${locale_dir}`"
90 AC_DEFINE_UNQUOTED(PR_LOCALE_DIR, "`eval echo "${locale_dir}"`", [Define the locale directory]) 90 AC_DEFINE_UNQUOTED(PR_LOCALE_DIR, "`eval echo "${locale_dir}"`", [Define the locale directory])
91 91
92 AC_DEFINE_UNQUOTED(PR_RUN_DIR, "`eval echo "${localstatedir}"`", [Define the run directory]) 92 AC_DEFINE_UNQUOTED(PR_RUN_DIR, "`eval echo "${localstatedir}"`", [Define the run directory])
diff --git a/meta-networking/recipes-daemons/proftpd/files/contrib.patch b/meta-networking/recipes-daemons/proftpd/files/contrib.patch
index 96c237d386..53f7b89556 100644
--- a/meta-networking/recipes-daemons/proftpd/files/contrib.patch
+++ b/meta-networking/recipes-daemons/proftpd/files/contrib.patch
@@ -14,15 +14,15 @@ diff --git a/Makefile.in b/Makefile.in
14index 9434cbd..8da7d1f 100644 14index 9434cbd..8da7d1f 100644
15--- a/Makefile.in 15--- a/Makefile.in
16+++ b/Makefile.in 16+++ b/Makefile.in
17@@ -163,7 +163,7 @@ install-modules: $(DESTDIR)$(libexecdir) $(DESTDIR)$(sysconfdir) 17@@ -170,7 +170,7 @@ install-modules: $(DESTDIR)$(libexecdir) $(DESTDIR)$(sysconfdir)
18 test -z "$(SHARED_MODULE_OBJS)" -a -z "$(SHARED_MODULE_DIRS)" -a -z "$(STATIC_MODULE_DIRS)" || (cd modules/ && $(MAKE) install) 18 test -z "$(SHARED_MODULE_OBJS)" -a -z "$(SHARED_MODULE_DIRS)" -a -z "$(STATIC_MODULE_DIRS)" || (cd modules/ && $(MAKE) install)
19 19
20 install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir) 20 install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
21- cd contrib/ && $(MAKE) install-utils 21- cd contrib/ && $(MAKE) install-utils
22+ cd contrib/ && $(MAKE) DESTDIR=${DESTDIR} install-utils 22+ cd contrib/ && $(MAKE) DESTDIR=${DESTDIR} install-utils
23 $(INSTALL_BIN) $(top_builddir)/ftpcount $(DESTDIR)$(bindir)/ftpcount 23 $(INSTALL_BIN) $(top_builddir)/ftpcount $(DESTDIR)$(bindir)/ftpcount
24 $(INSTALL_BIN) $(top_builddir)/ftpdctl $(DESTDIR)$(bindir)/ftpdctl 24 $(INSTALL_BIN) $(top_builddir)/ftpdctl $(DESTDIR)$(bindir)/ftpdctl
25 $(INSTALL_SBIN) $(top_builddir)/ftpscrub $(DESTDIR)$(sbindir)/ftpscrub 25 $(INSTALL_SBIN) $(top_builddir)/ftpscrub $(DESTDIR)$(sbindir)/ftpscrub
26diff --git a/contrib/Makefile.in b/contrib/Makefile.in 26diff --git a/contrib/Makefile.in b/contrib/Makefile.in
27index d1a31af..65d2abc 100644 27index d1a31af..65d2abc 100644
28--- a/contrib/Makefile.in 28--- a/contrib/Makefile.in
diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9.bb
index aa8d5fabd6..65dd2f9561 100644
--- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb
+++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9.bb
@@ -4,10 +4,10 @@ HOMEPAGE = "http://www.proftpd.org"
4LICENSE = "GPL-2.0-or-later" 4LICENSE = "GPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184" 5LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184"
6 6
7SRCREV = "75aa739805a6e05eeb31189934a3d324e7862962" 7SRCREV = "ae25959adb05ae1d6ebfa1f36bf778c9c34e9410"
8BRANCH = "1.3.7" 8BRANCH = "${PV}"
9 9
10SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https \ 10SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https;tag=v${PV} \
11 file://basic.conf.patch \ 11 file://basic.conf.patch \
12 file://proftpd-basic.init \ 12 file://proftpd-basic.init \
13 file://default \ 13 file://default \
@@ -17,11 +17,16 @@ SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https
17 file://proftpd.service \ 17 file://proftpd.service \
18 " 18 "
19 19
20S = "${WORKDIR}/git"
21 20
22inherit autotools-brokensep useradd update-rc.d systemd multilib_script 21inherit autotools-brokensep useradd update-rc.d systemd multilib_script
23 22
24EXTRA_OECONF += "--enable-largefile" 23# patch releases have character after version
24UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+\w?))"
25CVE_VERSION_SUFFIX = "alphabetical"
26
27CVE_STATUS[CVE-2001-0027] = "fixed-version: version 1.2.0rc3 removed affected module"
28
29EXTRA_OECONF += "--enable-largefile INSTALL=install"
25 30
26PACKAGECONFIG ??= "shadow \ 31PACKAGECONFIG ??= "shadow \
27 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ 32 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \
@@ -70,6 +75,12 @@ do_configure () {
70 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} 75 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
71 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} 76 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
72 oe_runconf 77 oe_runconf
78 sed -e 's|--sysroot=${STAGING_DIR_HOST}||g' \
79 -e 's|${STAGING_DIR_NATIVE}||g' \
80 -e 's|-ffile-prefix-map=[^ ]*||g' \
81 -e 's|-fdebug-prefix-map=[^ ]*||g' \
82 -e 's|-fmacro-prefix-map=[^ ]*||g' \
83 -i ${B}/config.h
73} 84}
74 85
75FTPUSER = "ftp" 86FTPUSER = "ftp"
@@ -116,7 +127,7 @@ do_install () {
116 -e 's|-ffile-prefix-map=[^ ]*||g' \ 127 -e 's|-ffile-prefix-map=[^ ]*||g' \
117 -e 's|-fdebug-prefix-map=[^ ]*||g' \ 128 -e 's|-fdebug-prefix-map=[^ ]*||g' \
118 -e 's|-fmacro-prefix-map=[^ ]*||g' \ 129 -e 's|-fmacro-prefix-map=[^ ]*||g' \
119 -i ${D}/${bindir}/prxs 130 -i ${D}/${bindir}/prxs ${D}${includedir}/proftpd/Make.rules ${D}${includedir}/proftpd/config.h
120 131
121 # ftpmail perl script, which reads the proftpd log file and sends 132 # ftpmail perl script, which reads the proftpd log file and sends
122 # automatic email notifications once an upload finishs, 133 # automatic email notifications once an upload finishs,
diff --git a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
index f2c300855c..be0652dfbd 100644
--- a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
+++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
@@ -34,7 +34,7 @@ SRC_URI[sha256sum] = "0dbf54dd2c178bd9fe62481d2c37513ee36636d8bf137cfdad96891490
34 34
35UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/ptpd/files/releases" 35UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/ptpd/files/releases"
36 36
37S = "${WORKDIR}/ptpd-${PV}" 37S = "${UNPACKDIR}/ptpd-${PV}"
38 38
39EXTRA_OEMAKE = "" 39EXTRA_OEMAKE = ""
40 40
diff --git a/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd/nostrip.patch b/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd/nostrip.patch
index 32d714f6f4..90244cf096 100644
--- a/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd/nostrip.patch
+++ b/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd/nostrip.patch
@@ -1,4 +1,4 @@
1From 79fd22c0def26eba130db98e312bb00fec32ac0a Mon Sep 17 00:00:00 2001 1From ed60c2ad3a7ed9762fcb6a304c7f60544606baef Mon Sep 17 00:00:00 2001
2From: Tudor Florea <tudor.florea@enea.com> 2From: Tudor Florea <tudor.florea@enea.com>
3Date: Tue, 4 Aug 2015 03:07:01 +0200 3Date: Tue, 4 Aug 2015 03:07:01 +0200
4Subject: [PATCH] Don't mess with CFLAGS and LDFLAGS when --with-minimal is 4Subject: [PATCH] Don't mess with CFLAGS and LDFLAGS when --with-minimal is
@@ -10,16 +10,15 @@ Upstream-Status: Inappropriate [config]
10 10
11Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> 11Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
12Signed-off-by: Tudor Florea <tudor.florea@enea.com> 12Signed-off-by: Tudor Florea <tudor.florea@enea.com>
13
14--- 13---
15 configure.ac | 2 -- 14 configure.ac | 2 --
16 1 file changed, 2 deletions(-) 15 1 file changed, 2 deletions(-)
17 16
18diff --git a/configure.ac b/configure.ac 17diff --git a/configure.ac b/configure.ac
19index 695ce68..0f28b55 100644 18index e578b2b..3874124 100644
20--- a/configure.ac 19--- a/configure.ac
21+++ b/configure.ac 20+++ b/configure.ac
22@@ -414,8 +414,6 @@ AC_ARG_WITH(minimal, 21@@ -415,8 +415,6 @@ AC_ARG_WITH(minimal,
23 AC_DEFINE(NO_FTP_USERS) 22 AC_DEFINE(NO_FTP_USERS)
24 AC_DEFINE(WITHOUT_ASCII) 23 AC_DEFINE(WITHOUT_ASCII)
25 AC_DEFINE(BORING_MODE) 24 AC_DEFINE(BORING_MODE)
diff --git a/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.51.bb b/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.52.bb
index 6f03f73db5..c5c9c87c7f 100644
--- a/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.51.bb
+++ b/meta-networking/recipes-daemons/pure-ftpd/pure-ftpd_1.0.52.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Pure-FTPd is a free (BSD license), secure, production-quality and
3HOMEPAGE = "http://www.pureftpd.org/project/pure-ftpd" 3HOMEPAGE = "http://www.pureftpd.org/project/pure-ftpd"
4SECTION = "net" 4SECTION = "net"
5LICENSE = "0BSD" 5LICENSE = "0BSD"
6LIC_FILES_CHKSUM = "file://COPYING;md5=194bc994ad6bbd4ff5a021082fe52156" 6LIC_FILES_CHKSUM = "file://COPYING;md5=5138d4a8a877b32de6a78cf7e9e99c25"
7 7
8DEPENDS = "libcap virtual/crypt" 8DEPENDS = "libcap virtual/crypt"
9 9
@@ -11,9 +11,11 @@ SRC_URI = "http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-${PV}.t
11 file://0001-Remove-hardcoded-usr-local-includes-from-configure.a.patch \ 11 file://0001-Remove-hardcoded-usr-local-includes-from-configure.a.patch \
12 file://nostrip.patch \ 12 file://nostrip.patch \
13" 13"
14SRC_URI[sha256sum] = "4160f66b76615eea2397eac4ea3f0a146b7928207b79bc4cc2f99ad7b7bd9513" 14SRC_URI[sha256sum] = "1126f3a95856d08889ff89703cb1aa9ec9924d939d154e96904c920f05dc3c74"
15 15
16inherit autotools 16inherit autotools
17 17
18PACKAGECONFIG[libsodium] ="ac_cv_lib_sodium_crypto_pwhash_scryptsalsa208sha256_str=yes, \ 18EXTRA_AUTORECONF += "-I m4"
19 ac_cv_lib_sodium_crypto_pwhash_scryptsalsa208sha256_str=no, libsodium" 19
20PACKAGECONFIG[libsodium] = "ac_cv_lib_sodium_crypto_pwhash_scryptsalsa208sha256_str=yes, \
21 ac_cv_lib_sodium_crypto_pwhash_scryptsalsa208sha256_str=no, libsodium"
diff --git a/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch b/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch
deleted file mode 100644
index 57338d4713..0000000000
--- a/meta-networking/recipes-daemons/radvd/files/0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 15f439c555289f900eb33111b010bf1266f97edb Mon Sep 17 00:00:00 2001
2From: Jonathan Davies <jpds@protonmail.com>
3Date: Thu, 25 Nov 2021 15:29:18 +0000
4Subject: [PATCH] Reverts the include.h change in
5 46883f8a1a02fe42040dd8e48aec0ed871545d4d
6
7Closes: #158
8
9Upstream-Status: Backport [https://github.com/radvd-project/radvd/commit/06689f8c06f44c7e87f7ff1d814428f88375b53f]
10Signed-off-by: Jonathan Davies <jpds@protonmail.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 includes.h | 5 -----
14 1 file changed, 5 deletions(-)
15
16diff --git a/includes.h b/includes.h
17index ef30b10..c528c86 100644
18--- a/includes.h
19+++ b/includes.h
20@@ -76,12 +76,7 @@
21 #include <sys/sysctl.h>
22 #endif
23
24-#if !defined(__GLIBC__) && defined(linux)
25-#include <linux/if.h>
26-#define IF_NAMESIZE IFNAMSIZ
27-#else
28 #include <net/if.h>
29-#endif
30
31 #ifdef HAVE_NET_IF_DL_H
32 #include <net/if_dl.h>
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.init b/meta-networking/recipes-daemons/radvd/files/radvd.init
index 8b26317ee6..8b26317ee6 100755..100644
--- a/meta-networking/recipes-daemons/radvd/files/radvd.init
+++ b/meta-networking/recipes-daemons/radvd/files/radvd.init
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.service b/meta-networking/recipes-daemons/radvd/files/radvd.service
index e60798a6b3..9230543c48 100644
--- a/meta-networking/recipes-daemons/radvd/files/radvd.service
+++ b/meta-networking/recipes-daemons/radvd/files/radvd.service
@@ -4,8 +4,11 @@ After=network.target
4ConditionPathExists=@SYSCONFDIR@/radvd.conf 4ConditionPathExists=@SYSCONFDIR@/radvd.conf
5 5
6[Service] 6[Service]
7EnvironmentFile=-@SYSCONFDIR@/default/radvd 7Type=forking
8ExecStart=@SBINDIR@/radvd -n $OPTIONS 8EnvironmentFile=@SYSCONFDIR@/default/radvd
9ExecStart=@SBINDIR@/radvd $OPTIONS
10PIDFile=/run/radvd.pid
11ExecReload=/bin/kill -HUP $MAINPID
9 12
10[Install] 13[Install]
11WantedBy=multi-user.target 14WantedBy=multi-user.target
diff --git a/meta-networking/recipes-daemons/radvd/radvd_2.19.bb b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb
index a8a116cbe5..e2d606823b 100644
--- a/meta-networking/recipes-daemons/radvd/radvd_2.19.bb
+++ b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb
@@ -8,7 +8,7 @@ addresses and some other parameters. They also can \
8choose a default router based on these advertisements." 8choose a default router based on these advertisements."
9HOMEPAGE = "http://www.litech.org/radvd/" 9HOMEPAGE = "http://www.litech.org/radvd/"
10SECTION = "net" 10SECTION = "net"
11DEPENDS = "flex-native bison-native libdaemon " 11DEPENDS = "flex-native bison-native libdaemon libbsd"
12 12
13# License is BSD-Style (with advertising clause) but also has an additional 0th clause 13# License is BSD-Style (with advertising clause) but also has an additional 0th clause
14LICENSE = "radvd" 14LICENSE = "radvd"
@@ -20,9 +20,8 @@ SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
20 file://volatiles.03_radvd \ 20 file://volatiles.03_radvd \
21 file://radvd.default \ 21 file://radvd.default \
22 file://radvd.conf \ 22 file://radvd.conf \
23 file://0001-Reverts-the-include.h-change-in-46883f8a1a02fe42040d.patch \
24 " 23 "
25SRC_URI[sha256sum] = "c36470706fec3a9e6bed394ffea08acaff5dac647848d26b96bb9b9c65d58da0" 24SRC_URI[sha256sum] = "af37c5a81d59f3bdc00d83056606ffa1810d4550beed6caa4f81181246494220"
26 25
27inherit autotools useradd pkgconfig systemd 26inherit autotools useradd pkgconfig systemd
28 27
@@ -30,34 +29,37 @@ SYSTEMD_SERVICE:${PN} = "radvd.service"
30SYSTEMD_AUTO_ENABLE = "disable" 29SYSTEMD_AUTO_ENABLE = "disable"
31 30
32do_install:append () { 31do_install:append () {
33 install -m 0755 -d ${D}${sysconfdir}/init.d \ 32 install -m 0755 -d ${D}${sysconfdir}/default
34 ${D}${sysconfdir}/default/volatiles \ 33 install -m 0644 ${UNPACKDIR}/radvd.conf ${D}${sysconfdir}/radvd.conf
35 ${D}${docdir}/radvd 34 install -m 0644 ${UNPACKDIR}/radvd.default ${D}${sysconfdir}/default/radvd
36 # Install init script and volatiles
37 install -m 0755 ${UNPACKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd
38 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd
39 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
40 sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd
41 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd
42 35
43 install -m 0644 ${UNPACKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/03_radvd 36 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
37 install -m 0755 -d ${D}${sysconfdir}/init.d \
38 ${D}${sysconfdir}/default/volatiles
44 39
45 # Install systemd service files 40 install -m 0755 ${UNPACKDIR}/radvd.init ${D}${sysconfdir}/init.d/radvd
46 install -d ${D}${systemd_unitdir}/system 41 sed -i 's!/usr/sbin/!${sbindir}/!g' ${D}${sysconfdir}/init.d/radvd
47 install -m 0644 ${UNPACKDIR}/radvd.service ${D}${systemd_unitdir}/system 42 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/radvd
48 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' \ 43 sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/radvd
49 -e 's#@SBINDIR@#${sbindir}#g' \ 44 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${sysconfdir}/init.d/radvd
50 -e 's#@BASE_BINDIR@#${base_bindir}#g' ${D}${systemd_unitdir}/system/radvd.service
51 45
52 # Install default environment file 46 install -m 0644 ${UNPACKDIR}/volatiles.03_radvd ${D}${sysconfdir}/default/volatiles/03_radvd
53 install -m 0644 ${UNPACKDIR}/radvd.default ${D}${sysconfdir}/default/radvd 47 fi
48
49 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
50 install -m 0755 -d ${D}${systemd_unitdir}/system
51
52 install -m 0644 ${UNPACKDIR}/radvd.service ${D}${systemd_unitdir}/system
53 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' \
54 -e 's#@SBINDIR@#${sbindir}#g' \
55 ${D}${systemd_unitdir}/system/radvd.service
56 fi
54 57
55 # Documentation 58 # Documentation
59 install -m 0755 -d ${D}${docdir}/radvd
56 for i in radvd.conf.example README; do \ 60 for i in radvd.conf.example README; do \
57 install -m 0644 ${S}/$i ${D}${docdir}/radvd; \ 61 install -m 0644 ${S}/$i ${D}${docdir}/radvd; \
58 done 62 done
59
60 install -m 0644 ${UNPACKDIR}/radvd.conf ${D}${sysconfdir}/radvd.conf
61} 63}
62 64
63USERADD_PACKAGES = "${PN}" 65USERADD_PACKAGES = "${PN}"
diff --git a/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch b/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch
new file mode 100644
index 0000000000..9babcfb24d
--- /dev/null
+++ b/meta-networking/recipes-daemons/squid/files/0001-libltdl-remove-reference-to-nonexisting-directory.patch
@@ -0,0 +1,55 @@
1From a6638a007a42917fea4b03e5c30d9b7208c634c4 Mon Sep 17 00:00:00 2001
2From: Peter Marko <peter.marko@siemens.com>
3Date: Thu, 7 Nov 2024 22:04:40 +0100
4Subject: [PATCH] libltdl: remove reference to nonexisting directory
5
6Commit [1] removed directory libltdl/m4 from release tarball by merging
7all those files into libltdl/aclocal.m4, however makefiles still
8reference it causing following error in do_configure:
9
10| autoreconf: Entering directory 'libltdl'
11| autoreconf: configure.ac: not using Gettext
12| autoreconf: running: aclocal --system-acdir=WORKDIR/recipe-sysroot/usr/share/aclocal/ -I WORKDIR/squid-6.12/acinclude/ -I WORKDIR/recipe-sysroot-native/usr/share/aclocal/ --force -I m4
13| aclocal: error: couldn't open directory 'm4': No such file or directory
14| autoreconf: error: aclocal failed with exit status: 1
15
16Remove these invalid references.
17
18[1] https://github.com/squid-cache/squid/commit/b4addc2262e5bee37543f8d1ab9dd98337bafba3
19
20Signed-off-by: Peter Marko <peter.marko@siemens.com>
21Upstream-Status: Inappropriate [upstream ticket https://lists.squid-cache.org/pipermail/squid-users/2024-November/027244.html]
22---
23 libltdl/Makefile.am | 2 +-
24 libltdl/Makefile.in | 2 +-
25 2 files changed, 2 insertions(+), 2 deletions(-)
26
27diff --git a/libltdl/Makefile.am b/libltdl/Makefile.am
28index aad98e2..8a9539b 100644
29--- a/libltdl/Makefile.am
30+++ b/libltdl/Makefile.am
31@@ -29,7 +29,7 @@
32 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33 #####
34
35-ACLOCAL_AMFLAGS = -I m4
36+ACLOCAL_AMFLAGS =
37 AUTOMAKE_OPTIONS = foreign
38 AM_CPPFLAGS =
39 AM_LDFLAGS =
40diff --git a/libltdl/Makefile.in b/libltdl/Makefile.in
41index 9929557..c77df2e 100644
42--- a/libltdl/Makefile.in
43+++ b/libltdl/Makefile.in
44@@ -448,7 +448,7 @@ target_alias = @target_alias@
45 top_build_prefix = @top_build_prefix@
46 top_builddir = @top_builddir@
47 top_srcdir = @top_srcdir@
48-ACLOCAL_AMFLAGS = -I m4
49+ACLOCAL_AMFLAGS =
50 AUTOMAKE_OPTIONS = foreign
51
52 # -I$(srcdir) is needed for user that built libltdl with a sub-Automake
53--
542.30.2
55
diff --git a/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch b/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch
index e0d002c68c..489850e3bd 100644
--- a/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch
+++ b/meta-networking/recipes-daemons/squid/files/Skip-AC_RUN_IFELSE-tests.patch
@@ -37,7 +37,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
37 ]) 37 ])
38--- a/acinclude/lib-checks.m4 38--- a/acinclude/lib-checks.m4
39+++ b/acinclude/lib-checks.m4 39+++ b/acinclude/lib-checks.m4
40@@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_ 40@@ -205,7 +205,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[
41 [ 41 [
42 AC_MSG_RESULT([no]) 42 AC_MSG_RESULT([no])
43 ], 43 ],
diff --git a/meta-networking/recipes-daemons/squid/squid_6.9.bb b/meta-networking/recipes-daemons/squid/squid_6.12.bb
index f670a776eb..87144fb049 100644
--- a/meta-networking/recipes-daemons/squid/squid_6.9.bb
+++ b/meta-networking/recipes-daemons/squid/squid_6.12.bb
@@ -19,13 +19,14 @@ SRC_URI = "http://www.squid-cache.org/Versions/v${MAJ_VER}/${BPN}-${PV}.tar.xz \
19 file://run-ptest \ 19 file://run-ptest \
20 file://volatiles.03_squid \ 20 file://volatiles.03_squid \
21 file://0002-squid-make-squid-conf-tests-run-on-target-device.patch \ 21 file://0002-squid-make-squid-conf-tests-run-on-target-device.patch \
22 file://0001-libltdl-remove-reference-to-nonexisting-directory.patch \
22 file://squid.nm \ 23 file://squid.nm \
23 " 24 "
24 25
25SRC_URI[sha256sum] = "1ad72d46e1cb556e9561214f0fb181adb87c7c47927ef69bc8acd68a03f61882" 26SRC_URI[sha256sum] = "f3df3abb2603a513266f24a5d4699a9f0d76b9f554d1848b67f9c51cd3b3cb50"
26 27
27LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 28LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
28 file://errors/COPYRIGHT;md5=d324bc1f9447d1d1588d75b22a678dc4 \ 29 file://errors/COPYRIGHT;md5=6fbb6a2adc362e206da7b4f42846cdec \
29 " 30 "
30DEPENDS = "libtool" 31DEPENDS = "libtool"
31 32
@@ -47,7 +48,6 @@ PACKAGECONFIG ??= "auth url-rewrite-helpers \
47PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" 48PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack"
48PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," 49PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
49PACKAGECONFIG[werror] = "--enable-strict-error-checking,--disable-strict-error-checking," 50PACKAGECONFIG[werror] = "--enable-strict-error-checking,--disable-strict-error-checking,"
50PACKAGECONFIG[esi] = "--enable-esi,--disable-esi,expat libxml2"
51PACKAGECONFIG[ssl] = "--with-openssl=yes,--with-openssl=no,openssl" 51PACKAGECONFIG[ssl] = "--with-openssl=yes,--with-openssl=no,openssl"
52PACKAGECONFIG[auth] = "--enable-auth-basic='${BASIC_AUTH}',--disable-auth --disable-auth-basic,krb5 openldap db cyrus-sasl" 52PACKAGECONFIG[auth] = "--enable-auth-basic='${BASIC_AUTH}',--disable-auth --disable-auth-basic,krb5 openldap db cyrus-sasl"
53PACKAGECONFIG[url-rewrite-helpers] = "--enable-url-rewrite-helpers,--disable-url-rewrite-helpers," 53PACKAGECONFIG[url-rewrite-helpers] = "--enable-url-rewrite-helpers,--disable-url-rewrite-helpers,"
@@ -66,14 +66,16 @@ BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}"
66EXTRA_OECONF += "--with-default-user=squid \ 66EXTRA_OECONF += "--with-default-user=squid \
67 --sysconfdir=${sysconfdir}/${BPN} \ 67 --sysconfdir=${sysconfdir}/${BPN} \
68 --with-logdir=${localstatedir}/log/${BPN} \ 68 --with-logdir=${localstatedir}/log/${BPN} \
69 'PERL=${USRBINPATH}/env perl'" 69 'PERL=${USRBINPATH}/env perl' \
70 --disable-esi \
71"
70 72
71# Workaround a build failure when using a native compiler that need -std=c++17 73# Workaround a build failure when using a native compiler that need -std=c++17
72# with a cross-compiler that doesn't. 74# with a cross-compiler that doesn't.
73# Upstream issue closed as invalid : https://bugs.squid-cache.org/show_bug.cgi?id=5376 75# Upstream issue closed as invalid : https://bugs.squid-cache.org/show_bug.cgi?id=5376
74BUILD_CXXFLAGS += "-std=c++17" 76BUILD_CXXFLAGS += "-std=c++17"
75 77
76export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" 78export BUILDCXXFLAGS = "${BUILD_CXXFLAGS}"
77 79
78TESTDIR = "test-suite" 80TESTDIR = "test-suite"
79 81
diff --git a/meta-networking/recipes-daemons/vblade/vblade_25.bb b/meta-networking/recipes-daemons/vblade/vblade_25.bb
index 7f20e927c6..f73e72442b 100644
--- a/meta-networking/recipes-daemons/vblade/vblade_25.bb
+++ b/meta-networking/recipes-daemons/vblade/vblade_25.bb
@@ -16,11 +16,10 @@ SRC_URI = "git://github.com/OpenAoE/vblade;branch=master;protocol=https \
16 file://volatiles.99_vblade \ 16 file://volatiles.99_vblade \
17 " 17 "
18 18
19S = "${WORKDIR}/git"
20 19
21UPSTREAM_CHECK_URI = "https://github.com/OpenAoE/vblade/archive/" 20UPSTREAM_CHECK_URI = "https://github.com/OpenAoE/vblade/archive/"
22 21
23inherit autotools-brokensep update-rc.d systemd 22inherit update-rc.d systemd
24 23
25do_install() { 24do_install() {
26 install -D -m 0755 ${S}/vblade ${D}/${sbindir}/vblade 25 install -D -m 0755 ${S}/vblade ${D}/${sbindir}/vblade
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb
index 4a843bd800..9b2be6236b 100644
--- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb
@@ -39,12 +39,12 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
39RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" 39RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}"
40PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" 40PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}"
41WRAPLIB = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '-lwrap', '', d)}" 41WRAPLIB = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '-lwrap', '', d)}"
42NOPAM_SRC ="${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}" 42NOPAM_SRC = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}"
43 43
44inherit update-rc.d useradd systemd 44inherit update-rc.d useradd systemd
45 45
46CONFFILES:${PN} = "${sysconfdir}/vsftpd.conf" 46CONFFILES:${PN} = "${sysconfdir}/vsftpd.conf"
47LDFLAGS:append =" -lcrypt -lcap" 47LDFLAGS:append = " -lcrypt -lcap"
48CFLAGS:append:libc-musl = " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -include fcntl.h" 48CFLAGS:append:libc-musl = " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -include fcntl.h"
49EXTRA_OEMAKE = "-e MAKEFLAGS=" 49EXTRA_OEMAKE = "-e MAKEFLAGS="
50 50
diff --git a/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch b/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch
deleted file mode 100644
index add52483b7..0000000000
--- a/meta-networking/recipes-devtools/libcoap/libcoap/CVE-2024-0962.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1From bf6a303883bde40cf96b960c8574cddd89e71701 Mon Sep 17 00:00:00 2001
2From: Jon Shallow <supjps-libcoap@jpshallow.com>
3Date: Thu, 25 Jan 2024 18:03:17 +0000
4Subject: [PATCH] coap_oscore.c: Fix parsing OSCORE configuration information
5
6A vulnerability was found in obgm libcoap 4.3.4. It has been rated as critical.
7Affected by this issue is the function get_split_entry of the file src/coap_oscore.c of the component Configuration File Handler.
8The manipulation leads to stack-based buffer overflow.
9
10CVE: CVE-2024-0962
11
12Upstream-Status: Backport [https://github.com/obgm/libcoap/pull/1311]
13
14Signed-off-by: alperak <alperyasinak1@gmail.com>
15---
16 src/coap_oscore.c | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/src/coap_oscore.c b/src/coap_oscore.c
20index 83f785c92..e0fb22947 100644
21--- a/src/coap_oscore.c
22+++ b/src/coap_oscore.c
23@@ -1678,11 +1678,12 @@ get_split_entry(const char **start,
24 oscore_value_t *value) {
25 const char *begin = *start;
26 const char *end;
27+ const char *kend;
28 const char *split;
29 size_t i;
30
31 retry:
32- end = memchr(begin, '\n', size);
33+ kend = end = memchr(begin, '\n', size);
34 if (end == NULL)
35 return 0;
36
37@@ -1693,7 +1694,7 @@ get_split_entry(const char **start,
38
39 if (begin[0] == '#' || (end - begin) == 0) {
40 /* Skip comment / blank line */
41- size -= end - begin + 1;
42+ size -= kend - begin + 1;
43 begin = *start;
44 goto retry;
45 }
diff --git a/meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb b/meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb
index 2f5d192a77..a4e5f5ca46 100644
--- a/meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb
+++ b/meta-networking/recipes-devtools/libcoap/libcoap_4.3.5.bb
@@ -2,18 +2,16 @@ SUMMARY = "A C implementation of the Constrained Application Protocol"
2DESCRIPTION = "libcoap implements a lightweight application-protocol for \ 2DESCRIPTION = "libcoap implements a lightweight application-protocol for \
3devices that are constrained their resources such as computing power, \ 3devices that are constrained their resources such as computing power, \
4RF range, memory, bandwith, or network packet sizes." 4RF range, memory, bandwith, or network packet sizes."
5HOMEPAGE ="https://libcoap.net/" 5HOMEPAGE = "https://libcoap.net/"
6 6
7LICENSE = "BSD-2-Clause & BSD-3-Clause" 7LICENSE = "BSD-2-Clause & BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=1978dbc41673ab1c20e64b287c8317bc" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=9aa68c0f6785376aa8ec7f4f1aa6ae3c"
9 9
10SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \ 10SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \
11 file://run-ptest \ 11 file://run-ptest \
12 file://CVE-2024-0962.patch \
13 " 12 "
14SRCREV = "5fd2f89ef068214130e5d60b7087ef48711fa615" 13SRCREV = "7cf7465b784baded4de183290c547d582becfd28"
15 14
16S = "${WORKDIR}/git"
17 15
18inherit autotools manpages pkgconfig ptest 16inherit autotools manpages pkgconfig ptest
19 17
@@ -24,13 +22,14 @@ PACKAGECONFIG ?= "\
24 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ 22 ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \
25" 23"
26PACKAGECONFIG[async] = "--enable-async,--disable-async" 24PACKAGECONFIG[async] = "--enable-async,--disable-async"
27PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls" 25PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls,,,openssl mbedtls wolfssl"
28PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native" 26PACKAGECONFIG[manpages] = "--enable-documentation --enable-doxygen --enable-manpages,--disable-documentation,asciidoc-native doxygen-native graphviz-native"
29PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl" 27PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,,,gnutls openssl wolfssl"
30PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls" 28PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,,,gnutls mbedtls wolfssl"
31PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack" 29PACKAGECONFIG[small-stack] = "--enable-small-stack,--disable-small-stack"
32PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp" 30PACKAGECONFIG[tcp] = "--enable-tcp,--disable-tcp"
33PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit" 31PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cunit"
32PACKAGECONFIG[wolfssl] = "--with-wolfssl,--without-wolfssl,wolfssl,,,gnutls mbedtls openssl"
34 33
35EXTRA_OECONF = "\ 34EXTRA_OECONF = "\
36 --with-epoll --enable-add-default-names \ 35 --with-epoll --enable-add-default-names \
@@ -43,7 +42,7 @@ python () {
43 d.setVar('DISABLE_STATIC', '') 42 d.setVar('DISABLE_STATIC', '')
44} 43}
45 44
46export SGML_CATALOG_FILES="file://${STAGING_ETCDIR_NATIVE}/xml/catalog" 45export SGML_CATALOG_FILES = "file://${STAGING_ETCDIR_NATIVE}/xml/catalog"
47 46
48do_compile:prepend() { 47do_compile:prepend() {
49 oe_runmake update-map-file 48 oe_runmake update-map-file
diff --git a/meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb b/meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb
index d57cb977e4..fdef5473ef 100644
--- a/meta-networking/recipes-devtools/python/python3-scapy_2.5.0.bb
+++ b/meta-networking/recipes-devtools/python/python3-scapy_2.6.0.bb
@@ -16,15 +16,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
16# If you want ptest support, use the git repo 16# If you want ptest support, use the git repo
17# UTscapy does not exist in the pypi pkg 17# UTscapy does not exist in the pypi pkg
18# 18#
19SRCREV = "0474c37bf1d147c969173d52ab3ac76d2404d981" 19SRCREV = "f7a64114b35fd8ee63ce07290f8a2dffd52b215f"
20SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \ 20SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https \
21 file://run-ptest" 21 file://run-ptest"
22 22
23S = "${WORKDIR}/git"
24 23
25UPSTREAM_CHECK_COMMITS = "1" 24UPSTREAM_CHECK_COMMITS = "1"
26 25
27inherit setuptools3 ptest 26inherit python_setuptools_build_meta ptest
28 27
29do_install:append() { 28do_install:append() {
30 mv ${D}${bindir}/scapy ${D}${bindir}/scapy3 29 mv ${D}${bindir}/scapy ${D}${bindir}/scapy3
diff --git a/meta-networking/recipes-extended/corosync/corosync/CVE-2025-30472.patch b/meta-networking/recipes-extended/corosync/corosync/CVE-2025-30472.patch
new file mode 100644
index 0000000000..9b36dbe3fb
--- /dev/null
+++ b/meta-networking/recipes-extended/corosync/corosync/CVE-2025-30472.patch
@@ -0,0 +1,69 @@
1From 7839990f9cdf34e55435ed90109e82709032466a Mon Sep 17 00:00:00 2001
2From: Jan Friesse <jfriesse@redhat.com>
3Date: Mon, 24 Mar 2025 12:05:08 +0100
4Subject: [PATCH] totemsrp: Check size of orf_token msg
5
6orf_token message is stored into preallocated array on endian convert
7so carefully crafted malicious message can lead to crash of corosync.
8
9Solution is to check message size beforehand.
10
11Signed-off-by: Jan Friesse <jfriesse@redhat.com>
12Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
13
14CVE: CVE-2025-30472
15Upstream-Status: Backport [https://github.com/corosync/corosync/commits/7839990f9cdf34e55435ed90109e82709032466a]
16Signed-off-by: Peter Marko <peter.marko@siemens.com>
17---
18 exec/totemsrp.c | 18 +++++++++++++++++-
19 1 file changed, 17 insertions(+), 1 deletion(-)
20
21diff --git a/exec/totemsrp.c b/exec/totemsrp.c
22index 962d0e2a..364528ce 100644
23--- a/exec/totemsrp.c
24+++ b/exec/totemsrp.c
25@@ -3679,12 +3679,20 @@ static int check_orf_token_sanity(
26 const struct totemsrp_instance *instance,
27 const void *msg,
28 size_t msg_len,
29+ size_t max_msg_len,
30 int endian_conversion_needed)
31 {
32 int rtr_entries;
33 const struct orf_token *token = (const struct orf_token *)msg;
34 size_t required_len;
35
36+ if (msg_len > max_msg_len) {
37+ log_printf (instance->totemsrp_log_level_security,
38+ "Received orf_token message is too long... ignoring.");
39+
40+ return (-1);
41+ }
42+
43 if (msg_len < sizeof(struct orf_token)) {
44 log_printf (instance->totemsrp_log_level_security,
45 "Received orf_token message is too short... ignoring.");
46@@ -3698,6 +3706,13 @@ static int check_orf_token_sanity(
47 rtr_entries = token->rtr_list_entries;
48 }
49
50+ if (rtr_entries > RETRANSMIT_ENTRIES_MAX) {
51+ log_printf (instance->totemsrp_log_level_security,
52+ "Received orf_token message rtr_entries is corrupted... ignoring.");
53+
54+ return (-1);
55+ }
56+
57 required_len = sizeof(struct orf_token) + rtr_entries * sizeof(struct rtr_item);
58 if (msg_len < required_len) {
59 log_printf (instance->totemsrp_log_level_security,
60@@ -3868,7 +3883,8 @@ static int message_handler_orf_token (
61 "Time since last token %0.4f ms", tv_diff / (float)QB_TIME_NS_IN_MSEC);
62 #endif
63
64- if (check_orf_token_sanity(instance, msg, msg_len, endian_conversion_needed) == -1) {
65+ if (check_orf_token_sanity(instance, msg, msg_len, sizeof(token_storage),
66+ endian_conversion_needed) == -1) {
67 return (0);
68 }
69
diff --git a/meta-networking/recipes-extended/corosync/corosync_3.1.6.bb b/meta-networking/recipes-extended/corosync/corosync_3.1.9.bb
index cbbbbc70cd..1699701c9d 100644
--- a/meta-networking/recipes-extended/corosync/corosync_3.1.6.bb
+++ b/meta-networking/recipes-extended/corosync/corosync_3.1.9.bb
@@ -5,16 +5,17 @@ HOMEPAGE = "http://corosync.github.io/corosync/"
5 5
6SECTION = "base" 6SECTION = "base"
7 7
8inherit autotools pkgconfig systemd 8inherit autotools pkgconfig systemd github-releases
9 9
10SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ 10SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \
11 file://corosync.conf \ 11 file://corosync.conf \
12 file://CVE-2025-30472.patch \
12 " 13 "
13SRC_URI[sha256sum] = "ca6ed32b4d7f33ed614afce8760fe58d0de92c68b575d4969ebacd892f3d1e27" 14SRC_URI[sha256sum] = "203354bbddee1a97b3c50a076eae89c635f406dd674ccaefc94bb9092acd9535"
14UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.(?!99)\d+(\.\d+)+)" 15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
15 16
16LICENSE = "BSD-3-Clause" 17LICENSE = "BSD-3-Clause"
17LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" 18LIC_FILES_CHKSUM = "file://LICENSE;md5=d9c2cca5d3448c43e52a399ad611658a"
18 19
19DEPENDS = "groff-native nss libqb kronosnet" 20DEPENDS = "groff-native nss libqb kronosnet"
20 21
@@ -34,11 +35,6 @@ PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_system_un
34EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash ap_cv_cc_pie=no" 35EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash ap_cv_cc_pie=no"
35EXTRA_OEMAKE = "tmpfilesdir_DATA=" 36EXTRA_OEMAKE = "tmpfilesdir_DATA="
36 37
37#do_configure:prepend() {
38# ( cd ${S}
39# ${S}/autogen.sh )
40#}
41
42do_install:append() { 38do_install:append() {
43 install -D -m 0644 ${UNPACKDIR}/corosync.conf ${D}${sysconfdir}/corosync/corosync.conf.example 39 install -D -m 0644 ${UNPACKDIR}/corosync.conf ${D}${sysconfdir}/corosync/corosync.conf.example
44 install -d ${D}${sysconfdir}/sysconfig/ 40 install -d ${D}${sysconfdir}/sysconfig/
@@ -59,5 +55,6 @@ do_install:append() {
59 55
60RDEPENDS:${PN} += "bash ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}" 56RDEPENDS:${PN} += "bash ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}"
61 57
58FILES:${PN} += "${datadir}/dbus-1"
62FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug" 59FILES:${PN}-dbg += "${libexecdir}/lcrso/.debug"
63FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt" 60FILES:${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt"
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb b/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
index ee006efe28..b7966d7f12 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.2.0.bb
@@ -21,7 +21,7 @@ UPSTREAM_CHECK_REGEX = "dlm-(?P<pver>\d+(\.\d+)+)"
21LICENSE = "LGPL-2.0-or-later & GPL-2.0-only & GPL-2.0-or-later" 21LICENSE = "LGPL-2.0-or-later & GPL-2.0-only & GPL-2.0-or-later"
22LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" 22LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
23 23
24S = "${WORKDIR}/dlm-dlm-${PV}" 24S = "${UNPACKDIR}/dlm-dlm-${PV}"
25 25
26DEPENDS += "corosync" 26DEPENDS += "corosync"
27 27
@@ -37,6 +37,7 @@ SYSTEMD_AUTO_ENABLE = "enable"
37export EXTRA_OEMAKE = "" 37export EXTRA_OEMAKE = ""
38 38
39CFPROTECTION ?= "-fcf-protection=full" 39CFPROTECTION ?= "-fcf-protection=full"
40CFPROTECTION:riscv32 = ""
40CFPROTECTION:riscv64 = "" 41CFPROTECTION:riscv64 = ""
41CFPROTECTION:arm = "" 42CFPROTECTION:arm = ""
42CFPROTECTION:aarch64 = "" 43CFPROTECTION:aarch64 = ""
diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb b/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb
index cbd5e7a0fd..06b2fa4d2d 100644
--- a/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb
+++ b/meta-networking/recipes-extended/kronosnet/kronosnet_1.24.bb
@@ -20,7 +20,6 @@ UPSTREAM_CHECK_URI = "https://github.com/kronosnet/kronosnet/releases"
20 20
21inherit autotools pkgconfig 21inherit autotools pkgconfig
22 22
23S = "${WORKDIR}/git"
24 23
25# libknet/transport_udp.c:326:48: error: comparison of integers of different signs: 'unsigned long' and 'int' [-Werror,-Wsign-compare] 24# libknet/transport_udp.c:326:48: error: comparison of integers of different signs: 'unsigned long' and 'int' [-Werror,-Wsign-compare]
26# for (cmsg = CMSG_FIRSTHDR(&msg);cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { 25# for (cmsg = CMSG_FIRSTHDR(&msg);cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
diff --git a/meta-networking/recipes-extended/tgt/tgt_1.0.90.bb b/meta-networking/recipes-extended/tgt/tgt_1.0.90.bb
index e816b79e87..a110d556a3 100644
--- a/meta-networking/recipes-extended/tgt/tgt_1.0.90.bb
+++ b/meta-networking/recipes-extended/tgt/tgt_1.0.90.bb
@@ -17,7 +17,6 @@ SRC_URI += "file://tgtd.init \
17 file://tgtd \ 17 file://tgtd \
18" 18"
19 19
20S = "${WORKDIR}/git"
21 20
22CONFFILES:${PN} += "${sysconfdir}/tgt/targets.conf" 21CONFFILES:${PN} += "${sysconfdir}/tgt/targets.conf"
23 22
diff --git a/meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.2.bb b/meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.2.bb
index 940454c3ac..20ba132fd0 100644
--- a/meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.2.bb
+++ b/meta-networking/recipes-filter/arno-iptables-firewall/arno-iptables-firewall_2.1.2.bb
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://gpl_license.txt;md5=11c7b65c4a4acb9d5175f7e9bf99c403"
7SRCREV = "c8dfd85b9e8e453e279525f30c1e3184c092f036" 7SRCREV = "c8dfd85b9e8e453e279525f30c1e3184c092f036"
8SRC_URI = "git://github.com/arno-iptables-firewall/aif;branch=master;protocol=https" 8SRC_URI = "git://github.com/arno-iptables-firewall/aif;branch=master;protocol=https"
9 9
10S = "${WORKDIR}/git"
11 10
12inherit systemd 11inherit systemd
13 12
diff --git a/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/ebtables-legacy-save b/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/ebtables-legacy-save
index 2133600f77..0b39c23deb 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/ebtables-legacy-save
+++ b/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/ebtables-legacy-save
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/bin/sh
2 2
3EBTABLES="/usr/sbin/ebtables-legacy" 3EBTABLES="/usr/sbin/ebtables-legacy"
4 4
@@ -11,7 +11,7 @@ cnt=""
11 11
12for table_name in $(grep -E '^ebtable_' /proc/modules | cut -f1 -d' ' | sed s/ebtable_//); do 12for table_name in $(grep -E '^ebtable_' /proc/modules | cut -f1 -d' ' | sed s/ebtable_//); do
13 table=$($EBTABLES -t $table_name -L $cnt) 13 table=$($EBTABLES -t $table_name -L $cnt)
14 [ $? -eq 0 ] || { echo "$table"; exit -1; } 14 [ $? -eq 0 ] || { echo "$table"; exit 1; }
15 15
16 chain="" 16 chain=""
17 rules="" 17 rules=""
@@ -20,24 +20,23 @@ for table_name in $(grep -E '^ebtable_' /proc/modules | cut -f1 -d' ' | sed s/eb
20 20
21 case "$line" in 21 case "$line" in
22 Bridge\ table:\ *) 22 Bridge\ table:\ *)
23 echo "*${line:14}" 23 echo "*${line#Bridge table: }"
24 ;; 24 ;;
25 Bridge\ chain:\ *) 25 Bridge\ chain:\ *)
26 chain="${line:14}" 26 chain="${line#Bridge chain: }"
27 chain="${chain%%,*}" 27 chain="${chain%%,*}"
28 policy="${line##*policy: }" 28 policy="${line##*policy: }"
29 echo ":$chain $policy" 29 echo ":$chain $policy"
30 ;; 30 ;;
31 *) 31 *)
32 if [ "$cnt" = "--Lc" ]; then 32 [ "$cnt" != "--Lc" ] ||
33 line=${line/, pcnt \=/ -c} 33 line=$(echo "$line" | sed -e 's/, pcnt =/-c/' -e 's/ -- bcnt =//')
34 line=${line/-- bcnt \=/} 34 rules="$rules-A $chain $line
35 fi 35"
36 rules="$rules-A $chain $line\n"
37 ;; 36 ;;
38 esac 37 esac
39 done <<EOF 38 done <<EOF
40$table 39$table
41EOF 40EOF
42 echo -e $rules 41 echo "$rules"
43done 42done
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
index 8918936e14..be8c49854e 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
+++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.11.bb
@@ -6,8 +6,6 @@ LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e" 6LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e"
7SECTION = "net" 7SECTION = "net"
8 8
9RDEPENDS:${PN} += "bash"
10
11RRECOMMENDS:${PN} += "kernel-module-ebtables \ 9RRECOMMENDS:${PN} += "kernel-module-ebtables \
12 " 10 "
13 11
diff --git a/meta-networking/recipes-filter/ipset/ipset_7.21.bb b/meta-networking/recipes-filter/ipset/ipset_7.22.bb
index c7ebdc1c66..5eaf142411 100644
--- a/meta-networking/recipes-filter/ipset/ipset_7.21.bb
+++ b/meta-networking/recipes-filter/ipset/ipset_7.22.bb
@@ -11,7 +11,7 @@ DEPENDS = "libtool libmnl"
11 11
12SRC_URI = "http://ftp.netfilter.org/pub/ipset/${BP}.tar.bz2 \ 12SRC_URI = "http://ftp.netfilter.org/pub/ipset/${BP}.tar.bz2 \
13 file://0001-ipset-Define-portable-basename-function.patch" 13 file://0001-ipset-Define-portable-basename-function.patch"
14SRC_URI[sha256sum] = "e2c6ce4fcf3acb3893ca5d35c86935f80ad76fc5ccae601185842df760e0bc69" 14SRC_URI[sha256sum] = "f6ac5a47c3ef9f4c67fcbdf55e791cbfe38eb0a4aa1baacd12646a140abacdd9"
15 15
16inherit autotools pkgconfig module-base 16inherit autotools pkgconfig module-base
17 17
diff --git a/meta-networking/recipes-filter/libnetfilter/files/0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch b/meta-networking/recipes-filter/libnetfilter/files/0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch
deleted file mode 100644
index a02940af3d..0000000000
--- a/meta-networking/recipes-filter/libnetfilter/files/0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From 21ee35dde73aec5eba35290587d479218c6dd824 Mon Sep 17 00:00:00 2001
2From: Robert Marko <robimarko@gmail.com>
3Date: Thu, 24 Feb 2022 15:01:11 +0100
4Subject: [PATCH] conntrack: fix build with kernel 5.15 and musl
5
6Currently, with kernel 5.15 headers and musl building is failing with
7redefinition errors due to a conflict between the kernel and musl headers.
8
9Musl is able to suppres the conflicting kernel header definitions if they
10are included after the standard libc ones, however since ICMP definitions
11were moved into a separate internal header to avoid duplication this has
12stopped working and is breaking the builds.
13
14It seems that the issue is that <netinet/in.h> which contains the UAPI
15suppression defines is included in the internal.h header and not in the
16proto.h which actually includes the kernel ICMP headers and thus UAPI
17supression defines are not present.
18
19Solve this by moving the <netinet/in.h> include before the ICMP kernel
20includes in the proto.h
21
22Fixes: bc1cb4b11403 ("conntrack: Move icmp request>reply type mapping to common file")
23Signed-off-by: Robert Marko <robimarko@gmail.com>
24Signed-off-by: Florian Westphal <fw@strlen.de>
25
26Upstream-Status: Backport
27[https://git.netfilter.org/libnetfilter_conntrack/commit/?id=21ee35dde73aec5eba35290587d479218c6dd824]
28
29Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
30---
31 include/internal/internal.h | 1 -
32 include/internal/proto.h | 1 +
33 2 files changed, 1 insertion(+), 1 deletion(-)
34
35diff --git a/include/internal/internal.h b/include/internal/internal.h
36index 2ef8a90..7cd7c44 100644
37--- a/include/internal/internal.h
38+++ b/include/internal/internal.h
39@@ -14,7 +14,6 @@
40 #include <arpa/inet.h>
41 #include <time.h>
42 #include <errno.h>
43-#include <netinet/in.h>
44
45 #include <libnfnetlink/libnfnetlink.h>
46 #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
47diff --git a/include/internal/proto.h b/include/internal/proto.h
48index 40e7bfe..60a5f4e 100644
49--- a/include/internal/proto.h
50+++ b/include/internal/proto.h
51@@ -2,6 +2,7 @@
52 #define _NFCT_PROTO_H_
53
54 #include <stdint.h>
55+#include <netinet/in.h>
56 #include <linux/icmp.h>
57 #include <linux/icmpv6.h>
58
59--
602.25.1
61
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-acct_1.0.3.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-acct_1.0.3.bb
index d92c676fa9..880d962eb3 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-acct_1.0.3.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-acct_1.0.3.bb
@@ -12,6 +12,6 @@ SRC_URI = "http://ftp.netfilter.org/pub/libnetfilter_acct/libnetfilter_acct-1.0.
12SRC_URI[md5sum] = "814b2972b2f5c740ff87510bc109168b" 12SRC_URI[md5sum] = "814b2972b2f5c740ff87510bc109168b"
13SRC_URI[sha256sum] = "4250ceef3efe2034f4ac05906c3ee427db31b9b0a2df41b2744f4bf79a959a1a" 13SRC_URI[sha256sum] = "4250ceef3efe2034f4ac05906c3ee427db31b9b0a2df41b2744f4bf79a959a1a"
14 14
15S = "${WORKDIR}/libnetfilter_acct-${PV}" 15S = "${UNPACKDIR}/libnetfilter_acct-${PV}"
16 16
17inherit autotools pkgconfig 17inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.0.9.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.1.0.bb
index abec84b256..08d3ab691c 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.0.9.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-conntrack_1.1.0.bb
@@ -6,13 +6,11 @@ LICENSE = "GPL-2.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" 6LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
7DEPENDS = "libnfnetlink libmnl" 7DEPENDS = "libnfnetlink libmnl"
8 8
9SRC_URI = "https://www.netfilter.org/projects/libnetfilter_conntrack/files/libnetfilter_conntrack-${PV}.tar.bz2 \ 9SRC_URI = "https://www.netfilter.org/projects/libnetfilter_conntrack/files/libnetfilter_conntrack-${PV}.tar.xz \
10 file://0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch \
11 " 10 "
12 11
13SRC_URI[md5sum] = "596c722733cdf30f24d4418f34f999d9" 12SRC_URI[sha256sum] = "67edcb4eb826c2f8dc98af08dabff68f3b3d0fe6fb7d9d0ac1ee7ecce0fe694e"
14SRC_URI[sha256sum] = "67bd9df49fe34e8b82144f6dfb93b320f384a8ea59727e92ff8d18b5f4b579a8"
15 13
16S = "${WORKDIR}/libnetfilter_conntrack-${PV}" 14S = "${UNPACKDIR}/libnetfilter_conntrack-${PV}"
17 15
18inherit autotools pkgconfig 16inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-cthelper_1.0.1.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-cthelper_1.0.1.bb
index ebb0eb2329..9a0d6cabbd 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-cthelper_1.0.1.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-cthelper_1.0.1.bb
@@ -12,6 +12,6 @@ SRC_URI = "https://www.netfilter.org/projects/libnetfilter_cthelper/files/libnet
12SRC_URI[md5sum] = "e59279645fe65d40dd7dfc82a797ca5b" 12SRC_URI[md5sum] = "e59279645fe65d40dd7dfc82a797ca5b"
13SRC_URI[sha256sum] = "14073d5487233897355d3ff04ddc1c8d03cc5ba8d2356236aa88161a9f2dc912" 13SRC_URI[sha256sum] = "14073d5487233897355d3ff04ddc1c8d03cc5ba8d2356236aa88161a9f2dc912"
14 14
15S = "${WORKDIR}/libnetfilter_cthelper-${PV}" 15S = "${UNPACKDIR}/libnetfilter_cthelper-${PV}"
16 16
17inherit autotools pkgconfig 17inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-cttimeout_1.0.1.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-cttimeout_1.0.1.bb
index 5349e6e4b8..46576f4d32 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-cttimeout_1.0.1.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-cttimeout_1.0.1.bb
@@ -11,6 +11,6 @@ SRC_URI = "https://www.netfilter.org/projects/libnetfilter_cttimeout/files/libne
11SRC_URI[md5sum] = "ac64b55952b79cb9910db95ce8883940" 11SRC_URI[md5sum] = "ac64b55952b79cb9910db95ce8883940"
12SRC_URI[sha256sum] = "0b59da2f3204e1c80cb85d1f6d72285fc07b01a2f5678abf5dccfbbefd650325" 12SRC_URI[sha256sum] = "0b59da2f3204e1c80cb85d1f6d72285fc07b01a2f5678abf5dccfbbefd650325"
13 13
14S = "${WORKDIR}/libnetfilter_cttimeout-${PV}" 14S = "${UNPACKDIR}/libnetfilter_cttimeout-${PV}"
15 15
16inherit autotools pkgconfig 16inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-log_1.0.2.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-log_1.0.2.bb
index 699b096ae8..a6e6b9b153 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-log_1.0.2.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-log_1.0.2.bb
@@ -9,6 +9,5 @@ SRCREV = "b0e4be94c0b8f68d4e912402b93a130063c34e17"
9 9
10SRC_URI = "git://git.netfilter.org/libnetfilter_log;branch=master" 10SRC_URI = "git://git.netfilter.org/libnetfilter_log;branch=master"
11 11
12S = "${WORKDIR}/git"
13 12
14inherit autotools pkgconfig 13inherit autotools pkgconfig
diff --git a/meta-networking/recipes-filter/libnetfilter/libnetfilter-queue_1.0.5.bb b/meta-networking/recipes-filter/libnetfilter/libnetfilter-queue_1.0.5.bb
index 301dd86cf3..ccaa80f5ff 100644
--- a/meta-networking/recipes-filter/libnetfilter/libnetfilter-queue_1.0.5.bb
+++ b/meta-networking/recipes-filter/libnetfilter/libnetfilter-queue_1.0.5.bb
@@ -11,7 +11,6 @@ SRCREV = "2ff321690b8dafeca99ee8e9cafac71e36f292b9"
11SRC_URI = "git://git.netfilter.org/libnetfilter_queue;branch=master \ 11SRC_URI = "git://git.netfilter.org/libnetfilter_queue;branch=master \
12 " 12 "
13 13
14S = "${WORKDIR}/git"
15 14
16inherit autotools pkgconfig 15inherit autotools pkgconfig
17 16
diff --git a/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.6.bb b/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.9.bb
index 841a7267b8..abcebceab8 100644
--- a/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.6.bb
+++ b/meta-networking/recipes-filter/libnftnl/libnftnl_1.2.9.bb
@@ -3,13 +3,12 @@ LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=79808397c3355f163c012616125c9e26" 3LIC_FILES_CHKSUM = "file://COPYING;md5=79808397c3355f163c012616125c9e26"
4SECTION = "libs" 4SECTION = "libs"
5 5
6SRC_URI = "git://git.netfilter.org/libnftnl;branch=master \ 6SRC_URI = "git://git.netfilter.org/libnftnl;branch=master;tag=${BP} \
7 file://0001-configure.ac-Add-serial-tests.patch \ 7 file://0001-configure.ac-Add-serial-tests.patch \
8 file://run-ptest \ 8 file://run-ptest \
9 " 9 "
10SRCREV = "83dd4dc316b4189d16ead54cd30bfc89e5160cfd" 10SRCREV = "17190762f33f78090f5ff99a436c4cb866ac3ccd"
11 11
12S = "${WORKDIR}/git"
13 12
14inherit autotools pkgconfig ptest 13inherit autotools pkgconfig ptest
15 14
diff --git a/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch b/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch
deleted file mode 100644
index 164182bb1e..0000000000
--- a/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 7a6089a400a573b9a4fd92f29c00a6be7b8ef269 Mon Sep 17 00:00:00 2001
2From: Phil Sutter <phil@nwl.cc>
3Date: Thu, 2 Nov 2023 16:02:14 +0100
4Subject: [PATCH] tests: shell: Fix sets/reset_command_0 for current kernels
5
6Since kernel commit 4c90bba60c26 ("netfilter: nf_tables: do not refresh
7timeout when resetting element"), element reset won't touch expiry
8anymore. Invert the one check to make sure it remains unaltered, drop
9the other testing behaviour for per-element timeouts.
10
11Signed-off-by: Phil Sutter <phil@nwl.cc>
12
13Upstream-Status: Backport
14[https://git.netfilter.org/nftables/commit/?id=7a6089a400a573b9a4fd92f29c00a6be7b8ef269]
15
16Signed-off-by: William Lyu <William.Lyu@windriver.com>
17---
18 tests/shell/testcases/sets/reset_command_0 | 10 ++--------
19 1 file changed, 2 insertions(+), 8 deletions(-)
20
21diff --git a/tests/shell/testcases/sets/reset_command_0 b/tests/shell/testcases/sets/reset_command_0
22index e663dac8..d38ddb3f 100755
23--- a/tests/shell/testcases/sets/reset_command_0
24+++ b/tests/shell/testcases/sets/reset_command_0
25@@ -44,10 +44,10 @@ elem='element t s { 1.0.0.1 . udp . 53 }'
26 grep 'elements = ' | drop_seconds | uniq | wc -l) == 1 ]]
27 echo OK
28
29-echo -n "counters and expiry are reset: "
30+echo -n "counters are reset, expiry left alone: "
31 NEW=$($NFT "get $elem")
32 grep -q 'counter packets 0 bytes 0' <<< "$NEW"
33-[[ $(expires_minutes <<< "$NEW") -gt 20 ]]
34+[[ $(expires_minutes <<< "$NEW") -lt 20 ]]
35 echo OK
36
37 echo -n "get map elem matches reset map elem: "
38@@ -80,12 +80,6 @@ OUT=$($NFT reset map t m)
39 $DIFF -u <(echo "$EXP") <(echo "$OUT")
40 echo OK
41
42-echo -n "reset command respects per-element timeout: "
43-VAL=$($NFT get element t s '{ 2.0.0.2 . tcp . 22 }' | expires_minutes)
44-[[ $VAL -lt 15 ]] # custom timeout applies
45-[[ $VAL -gt 10 ]] # expires was reset
46-echo OK
47-
48 echo -n "remaining elements are reset: "
49 OUT=$($NFT list ruleset)
50 grep -q '2.0.0.2 . tcp . 22 counter packets 0 bytes 0' <<< "$OUT"
51--
522.43.0
53
diff --git a/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch b/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch
deleted file mode 100644
index 2a966ab443..0000000000
--- a/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From fff913c1eefbc84eb2d9c52038ef29fe881e9ee9 Mon Sep 17 00:00:00 2001
2From: Pablo Neira Ayuso <pablo@netfilter.org>
3Date: Tue, 21 Nov 2023 21:16:38 +0100
4Subject: [PATCH] tests: shell: skip secmark tests if kernel does not support
5 it
6
7Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
8
9Upstream-Status: Backport
10[https://git.netfilter.org/nftables/commit/?id=fff913c1eefbc84eb2d9c52038ef29fe881e9ee9]
11
12Signed-off-by: William Lyu <William.Lyu@windriver.com>
13---
14 tests/shell/features/secmark.nft | 7 +++++++
15 tests/shell/testcases/json/0005secmark_objref_0 | 1 +
16 2 files changed, 8 insertions(+)
17 create mode 100644 tests/shell/features/secmark.nft
18
19diff --git a/tests/shell/features/secmark.nft b/tests/shell/features/secmark.nft
20new file mode 100644
21index 00000000..ccbb572f
22--- /dev/null
23+++ b/tests/shell/features/secmark.nft
24@@ -0,0 +1,7 @@
25+# fb961945457f ("netfilter: nf_tables: add SECMARK support")
26+# v4.20-rc1~14^2~125^2~5
27+table inet x {
28+ secmark ssh_server {
29+ "system_u:object_r:ssh_server_packet_t:s0"
30+ }
31+}
32diff --git a/tests/shell/testcases/json/0005secmark_objref_0 b/tests/shell/testcases/json/0005secmark_objref_0
33index 992d1b00..5c44f093 100755
34--- a/tests/shell/testcases/json/0005secmark_objref_0
35+++ b/tests/shell/testcases/json/0005secmark_objref_0
36@@ -1,6 +1,7 @@
37 #!/bin/bash
38
39 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_json)
40+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_secmark)
41
42 set -e
43
44--
452.43.0
46
diff --git a/meta-networking/recipes-filter/nftables/nftables/run-ptest b/meta-networking/recipes-filter/nftables/nftables/run-ptest
index 32ddf9f455..55e801f67c 100644
--- a/meta-networking/recipes-filter/nftables/nftables/run-ptest
+++ b/meta-networking/recipes-filter/nftables/nftables/run-ptest
@@ -5,14 +5,18 @@ cd ${NFTABLESLIB}/ptest || exit 1
5 5
6LOG="${NFTABLESLIB}/ptest/nftables_ptest_$(date +%Y%m%d-%H%M%S).log" 6LOG="${NFTABLESLIB}/ptest/nftables_ptest_$(date +%Y%m%d-%H%M%S).log"
7NFT=nft 7NFT=nft
8tests/shell/run-tests.sh -v | sed -E '/I: \[OK\]/ s/^/PASS: / ; /W: \[(CHK DUMP|VALGRIND|TAINTED|DUMP FAIL|FAILED)\]/ s/^/FAIL: /' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | tee -a "${LOG}" 8tests/shell/run-tests.sh -v | sed -E '/I: \[OK\]/ s/^/PASS: / ; /W: \[(CHK DUMP|VALGRIND|TAINTED|DUMP FAIL|FAILED)\]/ s/^/FAIL: / ; /I: \[SKIPPED\]/ s/^/SKIP: /' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | tee -a "${LOG}"
9 9
10passed=$(grep -c PASS: "${LOG}") 10passed=$(grep -c PASS: "${LOG}")
11failed=$(grep -c FAIL: "${LOG}") 11failed=$(grep -c FAIL: "${LOG}")
12all=$((passed + failed)) 12skiped=$(grep -c SKIP: "${LOG}")
13
14all=$((passed + failed + skiped))
13 15
14( echo "=== Test Summary ===" 16( echo "=== Test Summary ==="
15 echo "TOTAL: ${all}" 17 echo "TOTAL: ${all}"
16 echo "PASSED: ${passed}" 18 echo "PASSED: ${passed}"
17 echo "FAILED: ${failed}" 19 echo "FAILED: ${failed}"
20 echo "SKIPED: ${skiped}"
21 echo "===================="
18) | tee -a "${LOG}" 22) | tee -a "${LOG}"
diff --git a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.3.bb
index 17f00ffd42..09da57a372 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.0.9.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.1.3.bb
@@ -12,11 +12,9 @@ DEPENDS = "libmnl libnftnl bison-native \
12 ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" 12 ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}"
13 13
14SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \ 14SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
15 file://0001-tests-shell-Fix-sets-reset_command_0-for-current-ker.patch \
16 file://0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch \
17 file://run-ptest \ 15 file://run-ptest \
18 " 16 "
19SRC_URI[sha256sum] = "a3c304cd9ba061239ee0474f9afb938a9bb99d89b960246f66f0c3a0a85e14cd" 17SRC_URI[sha256sum] = "9c8a64b59c90b0825e540a9b8fcb9d2d942c636f81ba50199f068fde44f34ed8"
20 18
21inherit autotools manpages pkgconfig ptest 19inherit autotools manpages pkgconfig ptest
22 20
@@ -26,16 +24,19 @@ PACKAGECONFIG[json] = "--with-json, --without-json, jansson"
26PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline" 24PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline"
27PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native" 25PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native"
28PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" 26PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp"
29PACKAGECONFIG[python] = ",, python3-setuptools-native" 27PACKAGECONFIG[python] = ""
30PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise" 28PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise"
31PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" 29PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables"
32 30
33EXTRA_OECONF = " \ 31EXTRA_OECONF = " \
34 ${@bb.utils.contains_any('PACKAGECONFIG', 'editline linenoise readline', '', '--without-cli', d)}" 32 ${@bb.utils.contains_any('PACKAGECONFIG', 'editline linenoise readline', '', '--without-cli', d)}"
35 33
36SETUPTOOLS_SETUP_PATH = "${S}/py" 34PEP517_SOURCE_PATH = "${S}/py"
37 35
38inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'setuptools3', '', d)} 36# xtables will need it on musl see iptables
37CFLAGS:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0"
38
39inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python_setuptools_build_meta', '', d)}
39 40
40PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}" 41PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'python', '${PN}-python', '', d)}"
41FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" 42FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
@@ -46,21 +47,21 @@ RDEPENDS:${PN}-python = "python3-core python3-json ${PN}"
46do_configure() { 47do_configure() {
47 autotools_do_configure 48 autotools_do_configure
48 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then 49 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
49 setuptools3_do_configure 50 python_pep517_do_configure
50 fi 51 fi
51} 52}
52 53
53do_compile() { 54do_compile() {
54 autotools_do_compile 55 autotools_do_compile
55 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then 56 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
56 setuptools3_do_compile 57 python_pep517_do_compile
57 fi 58 fi
58} 59}
59 60
60do_install() { 61do_install() {
61 autotools_do_install 62 autotools_do_install
62 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then 63 if ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
63 setuptools3_do_install 64 python_pep517_do_install
64 fi 65 fi
65} 66}
66 67
diff --git a/meta-networking/recipes-filter/ulogd2/ulogd2_2.0.8.bb b/meta-networking/recipes-filter/ulogd2/ulogd2_2.0.8.bb
index 635fa6a408..febcf5147c 100644
--- a/meta-networking/recipes-filter/ulogd2/ulogd2_2.0.8.bb
+++ b/meta-networking/recipes-filter/ulogd2/ulogd2_2.0.8.bb
@@ -17,7 +17,6 @@ SRC_URI = "git://git.netfilter.org/ulogd2;branch=master \
17" 17"
18SRCREV = "79aa980f2df9dda0c097e8f883a62f414b9e5138" 18SRCREV = "79aa980f2df9dda0c097e8f883a62f414b9e5138"
19 19
20S = "${WORKDIR}/git"
21 20
22inherit autotools manpages pkgconfig systemd update-rc.d 21inherit autotools manpages pkgconfig systemd update-rc.d
23 22
diff --git a/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch b/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch
deleted file mode 100644
index 4a33dd7204..0000000000
--- a/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From dc6b11f4cc6035b4701e1d7f7c91b2f45757e7a2 Mon Sep 17 00:00:00 2001
2From: Alejandro Enedino Hernandez Samaniego
3 <alejandro@enedino.org>
4Date: Wed, 26 Feb 2020 13:55:16 -0800
5Subject: [PATCH] use pkg-config for gcrypt instead
6
7Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
8
9Upstream-Status: Inappropriate [oe-specific]
10
11---
12 cmake/FindGCRYPT.cmake | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15Index: weechat-2.7.1/cmake/FindGCRYPT.cmake
16===================================================================
17--- weechat-2.7.1.orig/cmake/FindGCRYPT.cmake
18+++ weechat-2.7.1/cmake/FindGCRYPT.cmake
19@@ -27,15 +27,15 @@
20 # GCRYPT_LDFLAGS = ldflags to use to compile
21 #
22
23-find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES libgcrypt-config)
24+find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES pkg-config)
25
26 set(GCRYPT_LDFLAGS)
27 set(GCRYPT_CFLAGS)
28
29 if(LIBGCRYPT_CONFIG_EXECUTABLE)
30
31- execute_process(COMMAND ${LIBGCRYPT_CONFIG_EXECUTABLE} --libs RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
32- execute_process(COMMAND ${LIBGCRYPT_CONFIG_EXECUTABLE} --cflags RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
33+ execute_process(COMMAND ${LIBGCRYPT_CONFIG_EXECUTABLE} libgcrypt --libs RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
34+ execute_process(COMMAND ${LIBGCRYPT_CONFIG_EXECUTABLE} libgcrypt --cflags RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
35
36 if(NOT DEFINED ${GCRYPT_CFLAGS})
37 set(GCRYPT_CFLAGS " ")
diff --git a/meta-networking/recipes-irc/weechat/weechat_4.0.4.bb b/meta-networking/recipes-irc/weechat/weechat_4.6.0.bb
index d13764e4c7..da79c59ba5 100644
--- a/meta-networking/recipes-irc/weechat/weechat_4.0.4.bb
+++ b/meta-networking/recipes-irc/weechat/weechat_4.6.0.bb
@@ -4,13 +4,11 @@ SECTION = "net"
4LICENSE = "GPL-3.0-only" 4LICENSE = "GPL-3.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" 5LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
6 6
7DEPENDS = "openssl zlib icu libgcrypt gnutls curl aspell zstd" 7DEPENDS = "zlib libgcrypt gnutls curl aspell zstd cjson gettext-native"
8 8
9SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz \ 9SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz"
10 file://0001-use-pkg-config-for-gcrypt-instead.patch \
11 "
12 10
13SRC_URI[sha256sum] = "ae5f4979b5ada0339b84e741d5f7e481ee91e3fecd40a09907b64751829eb6f6" 11SRC_URI[sha256sum] = "2681fc662996fead9d66a26d81740088e4284cf4e6dfe6b834f3b98fc703597f"
14 12
15inherit cmake pkgconfig 13inherit cmake pkgconfig
16 14
diff --git a/meta-networking/recipes-irc/znc/znc_1.8.2.bb b/meta-networking/recipes-irc/znc/znc_1.8.2.bb
index 1517384eca..7356115d53 100644
--- a/meta-networking/recipes-irc/znc/znc_1.8.2.bb
+++ b/meta-networking/recipes-irc/znc/znc_1.8.2.bb
@@ -1,21 +1,14 @@
1SUMMARY = "ZNC, an advanced IRC bouncer" 1SUMMARY = "ZNC, an advanced IRC bouncer"
2SECTION = "net" 2SECTION = "net"
3LICENSE = "GPL-2.0-only" 3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
5 5
6DEPENDS = "openssl zlib icu" 6DEPENDS = "openssl zlib icu"
7 7
8SRC_URI = "git://github.com/znc/znc.git;name=znc;branch=master;protocol=https \ 8SRC_URI = "gitsm://github.com/znc/znc.git;branch=master;protocol=https"
9 git://github.com/jimloco/Csocket.git;destsuffix=git/third_party/Csocket;name=Csocket;branch=master;protocol=https \
10 "
11SRCREV_znc = "bf253640d33d03331310778e001fb6f5aba2989e"
12SRCREV_Csocket = "e8d9e0bb248c521c2c7fa01e1c6a116d929c41b4"
13 9
14# This constructs a composite revision based on multiple SRCREV's. 10SRCREV = "bf253640d33d03331310778e001fb6f5aba2989e"
15#
16SRCREV_FORMAT = "znc_Csocket"
17 11
18S = "${WORKDIR}/git"
19 12
20inherit autotools-brokensep pkgconfig 13inherit autotools-brokensep pkgconfig
21 14
@@ -29,4 +22,5 @@ do_configure:prepend() {
29 22
30do_install:append() { 23do_install:append() {
31 sed -i -e 's|${DEBUG_PREFIX_MAP}||g; s|--sysroot=${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc 24 sed -i -e 's|${DEBUG_PREFIX_MAP}||g; s|--sysroot=${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc
25 sed -i -e 's|${DEBUG_PREFIX_MAP}||g; s|--sysroot=${STAGING_DIR_TARGET}||g' ${D}${bindir}/znc-buildmod
32} 26}
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20250521.bb
index 8def54ece6..8fb86bc31e 100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20210914.bb
+++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20250521.bb
@@ -1,7 +1,7 @@
1require wireguard.inc 1require wireguard.inc
2 2
3SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8" 3SRCREV = "e2ecaaa739144997ccff89d6ad6ec81698ea6ced"
4SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master" 4SRC_URI = "git://github.com/WireGuard/wireguard-tools.git;branch=master;protocol=https"
5 5
6inherit bash-completion systemd pkgconfig 6inherit bash-completion systemd pkgconfig
7 7
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard.inc b/meta-networking/recipes-kernel/wireguard/wireguard.inc
index 6fac24e3bd..9afe009bea 100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard.inc
+++ b/meta-networking/recipes-kernel/wireguard/wireguard.inc
@@ -1,5 +1,5 @@
1SUMMARY = "WireGuard is an extremely simple yet fast and modern VPN" 1SUMMARY = "WireGuard is an extremely simple yet fast and modern VPN"
2DESCRIPTION="WireGuard is a secure network tunnel, operating at layer 3, \ 2DESCRIPTION = "WireGuard is a secure network tunnel, operating at layer 3, \
3implemented as a kernel virtual network interface for Linux, which aims to \ 3implemented as a kernel virtual network interface for Linux, which aims to \
4replace both IPsec for most use cases, as well as popular user space and/or \ 4replace both IPsec for most use cases, as well as popular user space and/or \
5TLS-based solutions like OpenVPN, while being more secure, more performant, \ 5TLS-based solutions like OpenVPN, while being more secure, more performant, \
@@ -10,4 +10,4 @@ LICENSE = "GPL-2.0-only"
10 10
11LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 11LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
12 12
13S = "${WORKDIR}/git/src" 13S = "${UNPACKDIR}/${BP}/src"
diff --git a/meta-networking/recipes-protocols/babeld/babeld_1.13.1.bb b/meta-networking/recipes-protocols/babeld/babeld_1.13.1.bb
index a799ad197e..cc69f1448a 100644
--- a/meta-networking/recipes-protocols/babeld/babeld_1.13.1.bb
+++ b/meta-networking/recipes-protocols/babeld/babeld_1.13.1.bb
@@ -17,7 +17,6 @@ SRCREV = "3d61ea1e843e2c5f9706c74d1adad4e1d24d44b9"
17 17
18UPSTREAM_CHECK_GITTAGREGEX = "babeld-(?P<pver>\d+(\.\d+)+)" 18UPSTREAM_CHECK_GITTAGREGEX = "babeld-(?P<pver>\d+(\.\d+)+)"
19 19
20S = "${WORKDIR}/git"
21 20
22EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'" 21EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
23 22
diff --git a/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch b/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch
new file mode 100644
index 0000000000..98ba4d5283
--- /dev/null
+++ b/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch
@@ -0,0 +1,39 @@
1From fa6227d92725af5ae17b8435c0d50d92ff7a575c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Aug 2024 19:32:25 -0700
4Subject: [PATCH] bison/flex: Add flags for carrying user specified parameters
5
6This helps in passing cmdline to flex and bison e.g. to remove lines
7from generated output to avoid absolute paths
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 cmake/Modules/CMakeUserUseBison.cmake | 1 +
13 cmake/Modules/CMakeUserUseFlex.cmake | 1 +
14 2 files changed, 2 insertions(+)
15
16diff --git a/cmake/Modules/CMakeUserUseBison.cmake b/cmake/Modules/CMakeUserUseBison.cmake
17index 9257545..b61bd0e 100644
18--- a/cmake/Modules/CMakeUserUseBison.cmake
19+++ b/cmake/Modules/CMakeUserUseBison.cmake
20@@ -52,6 +52,7 @@ IF(BISON_EXECUTABLE)
21 OUTPUT "${OUTFILE}" "${HEADER}"
22 COMMAND "${BISON_EXECUTABLE}"
23 ARGS "--name-prefix=${PREFIX}"
24+ "${BISON_TARGET_ARG_COMPILE_FLAGS}"
25 "--defines"
26 "--output-file=${OUTFILE}"
27 "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}"
28diff --git a/cmake/Modules/CMakeUserUseFlex.cmake b/cmake/Modules/CMakeUserUseFlex.cmake
29index 7d0394f..1221dca 100644
30--- a/cmake/Modules/CMakeUserUseFlex.cmake
31+++ b/cmake/Modules/CMakeUserUseFlex.cmake
32@@ -39,6 +39,7 @@ IF(FLEX_EXECUTABLE)
33 OUTPUT "${OUTFILE}"
34 COMMAND "${FLEX_EXECUTABLE}"
35 ARGS "-P${PREFIX}"
36+ "${FLEX_TARGET_ARG_COMPILE_FLAGS}"
37 "-o${OUTFILE}"
38 "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}"
39 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}")
diff --git a/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch b/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch
new file mode 100644
index 0000000000..41aeec4ee0
--- /dev/null
+++ b/meta-networking/recipes-protocols/freediameter/files/0001-fixes-for-gcc-15.patch
@@ -0,0 +1,69 @@
1From a54f10082f819dadfa6931166e71edffadb565dd Mon Sep 17 00:00:00 2001
2From: Victor Seva <vseva@debian.org>
3Date: Sun, 23 Feb 2025 13:38:48 +0100
4Subject: [PATCH] fixes for gcc-15
5
6fixes #72
7
8Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/a54f10082f819dadfa6931166e71edffadb565dd]
9Signed-off-by: mark.yang <mark.yang@lge.com>
10---
11 libfdcore/sctp.c | 22 +++++++++++-----------
12 1 file changed, 11 insertions(+), 11 deletions(-)
13
14diff --git a/libfdcore/sctp.c b/libfdcore/sctp.c
15index 95e822e..a4a7f40 100644
16--- a/libfdcore/sctp.c
17+++ b/libfdcore/sctp.c
18@@ -532,29 +532,29 @@ static int fd_setsockopt_prebind(int sk)
19 /* SCTP_EXPLICIT_EOR: we assume implicit EOR in freeDiameter, so let's ensure this is known by the stack */
20 #ifdef SCTP_EXPLICIT_EOR
21 {
22- int bool;
23+ int _bool;
24
25 if (TRACE_BOOL(ANNOYING)) {
26 sz = sizeof(bool);
27 /* Read socket defaults */
28- CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz) );
29- if (sz != sizeof(bool))
30+ CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz) );
31+ if (sz != sizeof(_bool))
32 {
33- TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(bool));
34+ TRACE_DEBUG(INFO, "Invalid size of socket option: %d / %d", sz, (socklen_t)sizeof(_bool));
35 return ENOTSUP;
36 }
37- fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
38+ fd_log_debug( "Def SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
39 }
40
41- bool = 0;
42+ _bool = 0;
43
44 /* Set the option to the socket */
45- CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, sizeof(bool)) );
46+ CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, sizeof(_bool)) );
47
48 if (TRACE_BOOL(ANNOYING)) {
49 /* Check new values */
50- CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &bool, &sz) );
51- fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", bool ? "true" : "false");
52+ CHECK_SYS( getsockopt(sk, IPPROTO_SCTP, SCTP_EXPLICIT_EOR, &_bool, &sz) );
53+ fd_log_debug( "New SCTP_EXPLICIT_EOR value : %s", _bool ? "true" : "false");
54 }
55 }
56 #else /* SCTP_EXPLICIT_EOR */
57@@ -619,10 +619,10 @@ static int fd_setsockopt_prebind(int sk)
58
59 #ifdef SCTP_RECVRCVINFO /* Replaces SCTP_SNDRCV */
60 {
61- int bool = 1;
62+ int _bool = 1;
63
64 /* Set the option to the socket */
65- CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &bool, sizeof(bool)) );
66+ CHECK_SYS( setsockopt(sk, IPPROTO_SCTP, SCTP_RECVRCVINFO, &_bool, sizeof(_bool)) );
67
68 }
69 #else /* SCTP_RECVRCVINFO */
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
index c7c329a5d4..89b2572c04 100644
--- a/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
+++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.5.0.bb
@@ -7,7 +7,7 @@ Accounting needs."
7 7
8HOMEPAGE = "http://www.freediameter.net" 8HOMEPAGE = "http://www.freediameter.net"
9 9
10DEPENDS = "flex bison cmake-native libgcrypt gnutls libidn2 lksctp-tools virtual/kernel bison-native" 10DEPENDS = "flex-native bison-native cmake-native libgcrypt gnutls libidn2 lksctp-tools virtual/kernel bison-native"
11 11
12PACKAGE_ARCH = "${MACHINE_ARCH}" 12PACKAGE_ARCH = "${MACHINE_ARCH}"
13 13
@@ -23,9 +23,10 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast
23 file://freeDiameter.conf \ 23 file://freeDiameter.conf \
24 file://install_test.patch \ 24 file://install_test.patch \
25 file://0001-tests-use-EXTENSIONS_DIR.patch \ 25 file://0001-tests-use-EXTENSIONS_DIR.patch \
26 file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \
27 file://0001-fixes-for-gcc-15.patch \
26 " 28 "
27 29
28S = "${WORKDIR}/git"
29 30
30LICENSE = "BSD-3-Clause" 31LICENSE = "BSD-3-Clause"
31LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f" 32LIC_FILES_CHKSUM = "file://LICENSE;md5=868c059b6147748b1d621e500feeac4f"
@@ -49,6 +50,8 @@ EXTRA_OECMAKE = " \
49 -DEXTENSIONS_DIR:PATH=${libdir}/${fd_pkgname} \ 50 -DEXTENSIONS_DIR:PATH=${libdir}/${fd_pkgname} \
50 -DINSTALL_TEST_SUFFIX:PATH=${PTEST_PATH}-tests \ 51 -DINSTALL_TEST_SUFFIX:PATH=${PTEST_PATH}-tests \
51 -DCMAKE_SKIP_RPATH:BOOL=ON \ 52 -DCMAKE_SKIP_RPATH:BOOL=ON \
53 -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \
54 -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \
52" 55"
53# INSTALL_LIBRARY_SUFFIX is relative to CMAKE_INSTALL_PREFIX 56# INSTALL_LIBRARY_SUFFIX is relative to CMAKE_INSTALL_PREFIX
54# specify it on cmd line will fix the SET bug in CMakeList.txt 57# specify it on cmd line will fix the SET bug in CMakeList.txt
@@ -62,7 +65,7 @@ EXTRA_OECMAKE = " \
62 65
63# -DALL_EXTENSIONS=ON will enable all 66# -DALL_EXTENSIONS=ON will enable all
64 67
65FD_KEY ?="${BPN}.key" 68FD_KEY ?= "${BPN}.key"
66FD_PEM ?= "${BPN}.pem" 69FD_PEM ?= "${BPN}.pem"
67FD_CA ?= "${BPN}.pem" 70FD_CA ?= "${BPN}.pem"
68FD_DH_PEM ?= "${BPN}-dh.pem" 71FD_DH_PEM ?= "${BPN}-dh.pem"
@@ -107,15 +110,13 @@ EOF
107 # create self cert 110 # create self cert
108 openssl req -x509 -config ${STAGING_DIR_NATIVE}/etc/ssl/openssl.cnf -newkey rsa:4096 -sha256 -nodes -out ${D}${sysconfdir}/freeDiameter/${FD_PEM} -keyout ${D}${sysconfdir}/freeDiameter/${FD_KEY} -days 3650 -subj '/CN=${FD_HOSTNAME}.${FD_REALM}' 111 openssl req -x509 -config ${STAGING_DIR_NATIVE}/etc/ssl/openssl.cnf -newkey rsa:4096 -sha256 -nodes -out ${D}${sysconfdir}/freeDiameter/${FD_PEM} -keyout ${D}${sysconfdir}/freeDiameter/${FD_KEY} -days 3650 -subj '/CN=${FD_HOSTNAME}.${FD_REALM}'
109 openssl dhparam -out ${D}${sysconfdir}/freeDiameter/${FD_DH_PEM} 1024 112 openssl dhparam -out ${D}${sysconfdir}/freeDiameter/${FD_DH_PEM} 1024
110
111 find ${B} \( -name "*.c" -o -name "*.h" \) -exec sed -i -e 's#${UNPACKDIR}##g' {} \;
112} 113}
113 114
114do_install_ptest() { 115do_install_ptest() {
115 mv ${D}${PTEST_PATH}-tests/* ${D}${PTEST_PATH}/ 116 mv ${D}${PTEST_PATH}-tests/* ${D}${PTEST_PATH}/
116 rmdir ${D}${PTEST_PATH}-tests 117 rmdir ${D}${PTEST_PATH}-tests
117 install -m 0644 ${B}/tests/CTestTestfile.cmake ${D}${PTEST_PATH}/ 118 install -m 0644 ${B}/tests/CTestTestfile.cmake ${D}${PTEST_PATH}/
118 sed -i -e 's#${UNPACKDIR}##g' ${D}${PTEST_PATH}/CTestTestfile.cmake 119 sed -i -e 's#${WORKDIR}##g' ${D}${PTEST_PATH}/CTestTestfile.cmake
119 sed -i "/^set_tests_properties/d" ${D}${PTEST_PATH}/CTestTestfile.cmake 120 sed -i "/^set_tests_properties/d" ${D}${PTEST_PATH}/CTestTestfile.cmake
120} 121}
121 122
diff --git a/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch b/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch
deleted file mode 100644
index 8c83d5c8eb..0000000000
--- a/meta-networking/recipes-protocols/frr/frr/0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 49aeccbec4bf620bb594999bbd4a9de669a3984c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 Mar 2024 14:34:06 -0700
4Subject: [PATCH] zebra: Mimic GNU basename() API for non-glibc library e.g.
5 musl musl only provides POSIX version of basename and it has also removed
6 providing it via string.h header [1] which now results in compile errors with
7 newer compilers e.g. clang-18
8
9[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
10
11Upstream-Status: Submitted [https://github.com/FRRouting/frr/pull/15561/]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 zebra/zebra_netns_notify.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c
18index 1bb1292e34..d55df2f62d 100644
19--- a/zebra/zebra_netns_notify.c
20+++ b/zebra/zebra_netns_notify.c
21@@ -41,6 +41,10 @@
22 #define ZEBRA_NS_POLLING_INTERVAL_MSEC 1000
23 #define ZEBRA_NS_POLLING_MAX_RETRIES 200
24
25+#if !defined(__GLIBC__)
26+#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
27+#endif
28+
29 DEFINE_MTYPE_STATIC(ZEBRA, NETNS_MISC, "ZebraNetNSInfo");
30 static struct event *zebra_netns_notify_current;
31
32--
332.44.0
34
diff --git a/meta-networking/recipes-protocols/frr/frr_10.0.bb b/meta-networking/recipes-protocols/frr/frr_10.3.bb
index afd2c95a0e..f0f3f34ab3 100644
--- a/meta-networking/recipes-protocols/frr/frr_10.0.bb
+++ b/meta-networking/recipes-protocols/frr/frr_10.3.bb
@@ -10,18 +10,16 @@ LIC_FILES_CHKSUM = "file://doc/licenses/GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a
10 file://doc/licenses/LGPL-2.1;md5=4fbd65380cdd255951079008b364516c" 10 file://doc/licenses/LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
11 11
12 12
13SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/10.0 \ 13SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/10.3 \
14 file://frr.pam \ 14 file://frr.pam \
15 file://0001-zebra-Mimic-GNU-basename-API-for-non-glibc-library-e.patch \
16 " 15 "
17 16
18SRCREV = "03a143cd49ed1b190cb38f48a31ef4d71fa01a02" 17SRCREV = "85cf1ed576deed121751e16a64970f8a652a9e1e"
19 18
20UPSTREAM_CHECK_GITTAGREGEX = "frr-(?P<pver>\d+(\.\d+)+)$" 19UPSTREAM_CHECK_GITTAGREGEX = "frr-(?P<pver>\d+(\.\d+)+)$"
21 20
22CVE_PRODUCT = "frrouting" 21CVE_PRODUCT = "frrouting"
23 22
24S = "${WORKDIR}/git"
25 23
26inherit autotools-brokensep python3native pkgconfig useradd systemd 24inherit autotools-brokensep python3native pkgconfig useradd systemd
27 25
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch
deleted file mode 100644
index 68a395d69e..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0001-Create-subroutine-for-cleaning-recent-interfaces.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From 1fefe289d0c907392382eb2fa2f1f0ecac02f85d Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Wed, 28 Jun 2017 17:30:00 -0500
4Subject: [PATCH] Create subroutine for cleaning recent interfaces
5
6Moves functionality for cleaning the list of recent
7interfaces into its own subroutine.
8
9Upstream-Status: Submitted [dts@apple.com]
10
11Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
12Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
13---
14 mDNSPosix/mDNSPosix.c | 24 ++++++++++++++----------
15 1 file changed, 14 insertions(+), 10 deletions(-)
16
17diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
18index 3b761d04e3c4..5aa220cf694e 100644
19--- a/mDNSPosix/mDNSPosix.c
20+++ b/mDNSPosix/mDNSPosix.c
21@@ -1322,6 +1322,19 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
22 return err;
23 }
24
25+// Clean up any interfaces that have been hanging around on the RecentInterfaces list for more than a minute
26+mDNSlocal void CleanRecentInterfaces(void)
27+{
28+ PosixNetworkInterface **ri = &gRecentInterfaces;
29+ const mDNSs32 utc = mDNSPlatformUTC();
30+ while (*ri)
31+ {
32+ PosixNetworkInterface *pi = *ri;
33+ if (utc - pi->LastSeen < 60) ri = (PosixNetworkInterface **)&pi->coreIntf.next;
34+ else { *ri = (PosixNetworkInterface *)pi->coreIntf.next; mdns_free(pi); }
35+ }
36+}
37+
38 // Creates a PosixNetworkInterface for the interface whose IP address is
39 // intfAddr and whose name is intfName and registers it with mDNS core.
40 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
41@@ -1559,16 +1572,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
42
43 // Clean up.
44 if (intfList != NULL) freeifaddrs(intfList);
45-
46- // Clean up any interfaces that have been hanging around on the RecentInterfaces list for more than a minute
47- PosixNetworkInterface **ri = &gRecentInterfaces;
48- const mDNSs32 utc = mDNSPlatformUTC();
49- while (*ri)
50- {
51- PosixNetworkInterface *pi = *ri;
52- if (utc - pi->LastSeen < 60) ri = (PosixNetworkInterface **)&pi->coreIntf.next;
53- else { *ri = (PosixNetworkInterface *)pi->coreIntf.next; mdns_free(pi); }
54- }
55+ CleanRecentInterfaces();
56
57 return err;
58 }
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch
deleted file mode 100644
index abf82b1e02..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 2db1f5bc941e4b4cd1721e361a47cfe288b07a76 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Thu, 1 Feb 2024 14:07:03 +0000
4Subject: [PATCH] Fix SIGSEGV during DumpStateLog()
5
6DumpStateLog() calls LogMsgWithLevelv() with category == NULL, avoid
7crashing in this case.
8
9Upstream-Status: Inactive-Upstream [Upstream does not take patches]
10Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
11---
12 mDNSShared/mDNSDebug.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/mDNSShared/mDNSDebug.c b/mDNSShared/mDNSDebug.c
16index 7a4ca19eff6d..d449dde320f6 100644
17--- a/mDNSShared/mDNSDebug.c
18+++ b/mDNSShared/mDNSDebug.c
19@@ -71,7 +71,7 @@ mDNSlocal void LogMsgWithLevelv(os_log_t category, os_log_type_t level, const ch
20 mDNSlocal void LogMsgWithLevelv(const char *category, mDNSLogLevel_t level, const char *format, va_list args)
21 {
22 // Do not print the logs if the log category is MDNS_LOG_CATEGORY_DISABLED.
23- if (strcmp(category, MDNS_LOG_CATEGORY_DISABLED) == 0)
24+ if (category && strcmp(category, MDNS_LOG_CATEGORY_DISABLED) == 0)
25 {
26 return;
27 }
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..af33d5444c
--- /dev/null
+++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-build-with-gcc-15.patch
@@ -0,0 +1,34 @@
1From c84f185f29d0839b97177aecb0a78b9717947973 Mon Sep 17 00:00:00 2001
2From: Nguyen Dat Tho <tho3.nguyen@lge.com>
3Date: Wed, 9 Apr 2025 13:05:24 +0900
4Subject: [PATCH] Fix build with gcc-15
5
6To fix error:
7In file included from ../mDNSCore/mDNS.c:76:
8../mDNSShared/CommonServices.h:856:13: error: 'bool' cannot be defined via 'typedef'
9 856 | typedef int bool;
10 | ^~~~
11../mDNSShared/CommonServices.h:856:13: note: 'bool' is a keyword with '-std=c23' onwards
12../mDNSShared/CommonServices.h:856:1: warning: useless type name in empty declaration
13
14Upstream-Status: Pending (An owner of this repository has limited the ability to open a pull request to users that are collaborators on this repository.)
15
16Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
17---
18 mDNSShared/CommonServices.h | 3 +++
19 1 file changed, 3 insertions(+)
20
21diff --git a/mDNSShared/CommonServices.h b/mDNSShared/CommonServices.h
22index 7efb077f3b04..f0f3a8b3157e 100644
23--- a/mDNSShared/CommonServices.h
24+++ b/mDNSShared/CommonServices.h
25@@ -192,6 +192,9 @@ extern "C" {
26
27 #include <stdint.h>
28 #include <arpa/inet.h>
29+#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
30+ #include <stdbool.h>
31+#endif
32
33 #elif ( TARGET_OS_SOLARIS )
34
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch
deleted file mode 100644
index 7ec5996013..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0001-Handle-interface-without-ifa_addr.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From c67102307f25c5f4d238c736e90519e56a76ae79 Mon Sep 17 00:00:00 2001
2From: Stefan Agner <stefan@agner.ch>
3Date: Fri, 23 Jun 2023 10:10:00 +0200
4Subject: [PATCH] Handle interface without `ifa_addr`
5
6It seems that certain interface types may have `ifa_addr` set to null.
7Handle this case gracefully.
8
9Upstream-Status: Submitted [https://github.com/apple-oss-distributions/mDNSResponder/pull/2/commits/11b410d4d683c90e693c40315997bb3e8ec90e9a]
10
11Signed-off-by: Stefan Agner <stefan@agner.ch>
12Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
13---
14 mDNSPosix/mDNSPosix.c | 4 +++-
15 1 file changed, 3 insertions(+), 1 deletion(-)
16
17diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
18index 0c9dd2582660..c3ead26799e6 100644
19--- a/mDNSPosix/mDNSPosix.c
20+++ b/mDNSPosix/mDNSPosix.c
21@@ -1895,6 +1895,7 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
22 continue;
23
24 if ((ifa_loop4 == NULL) &&
25+ ((*ifi)->ifa_addr != NULL) &&
26 ((*ifi)->ifa_addr->sa_family == AF_INET) &&
27 ((*ifi)->ifa_flags & IFF_UP) &&
28 ((*ifi)->ifa_flags & IFF_LOOPBACK))
29@@ -1903,7 +1904,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
30 continue;
31 }
32
33- if ( (((*ifi)->ifa_addr->sa_family == AF_INET)
34+ if ( ((*ifi)->ifa_addr != NULL) &&
35+ (((*ifi)->ifa_addr->sa_family == AF_INET)
36 #if HAVE_IPV6
37 || ((*ifi)->ifa_addr->sa_family == AF_INET6)
38 #endif
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch
new file mode 100644
index 0000000000..242aa7f7d8
--- /dev/null
+++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Use-secure_getenv-on-Linux.patch
@@ -0,0 +1,30 @@
1From 1bf3be6cd775635aed95689f97a13fa6a037c741 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Tue, 27 May 2025 13:33:30 +0100
4Subject: [PATCH] Use secure_getenv on Linux
5
6Upstream-Status: Inactive-Upstream [Upstream does not take patches]
7Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
8---
9 mDNSShared/dnssd_clientstub.c | 4 ++++
10 1 file changed, 4 insertions(+)
11
12diff --git a/mDNSShared/dnssd_clientstub.c b/mDNSShared/dnssd_clientstub.c
13index 6667276ee33a..e7b51813664e 100644
14--- a/mDNSShared/dnssd_clientstub.c
15+++ b/mDNSShared/dnssd_clientstub.c
16@@ -801,10 +801,14 @@ static DNSServiceErrorType ConnectToServer(DNSServiceRef *ref, DNSServiceFlags f
17 #endif
18 #ifndef USE_TCP_LOOPBACK
19 char* uds_serverpath = NULL;
20+#ifdef TARGET_OS_LINUX
21+ uds_serverpath = secure_getenv(MDNS_UDS_SERVERPATH_ENVVAR);
22+#else
23 if (!issetugid())
24 {
25 uds_serverpath = getenv(MDNS_UDS_SERVERPATH_ENVVAR);
26 }
27+#endif
28 if (uds_serverpath == NULL)
29 uds_serverpath = MDNS_UDS_SERVERPATH;
30 else if (strlen(uds_serverpath) >= MAX_CTLPATH)
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
index 0dc36ae1d4..651879ea86 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0001-dns-sd-Include-missing-headers.patch
@@ -1,4 +1,4 @@
1From a5fe20fa00088683136a09a4da3c36d9b20fe1b9 Mon Sep 17 00:00:00 2001 1From cdbc28c668dd627906f833f9a8e32ac53b0b0139 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 4 Nov 2021 07:31:32 -0700 3Date: Thu, 4 Nov 2021 07:31:32 -0700
4Subject: [PATCH] dns-sd: Include missing headers 4Subject: [PATCH] dns-sd: Include missing headers
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch b/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch
deleted file mode 100644
index 5ce7eb1015..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0002-Create-subroutine-for-tearing-down-an-interface.patch
+++ /dev/null
@@ -1,56 +0,0 @@
1From d265ac9346d3dcbcf1187134318baafcfa75c054 Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Wed, 28 Jun 2017 17:30:00 -0500
4Subject: [PATCH] Create subroutine for tearing down an interface
5
6Creates a subroutine for tearing down an interface.
7
8Upstream-Status: Submitted [dts@apple.com]
9
10Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
11Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
12---
13 mDNSPosix/mDNSPosix.c | 22 ++++++++++++++++------
14 1 file changed, 16 insertions(+), 6 deletions(-)
15
16diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
17index 5aa220cf694e..a6041b04a21e 100644
18--- a/mDNSPosix/mDNSPosix.c
19+++ b/mDNSPosix/mDNSPosix.c
20@@ -1043,6 +1043,19 @@ mDNSlocal void FreePosixNetworkInterface(PosixNetworkInterface *intf)
21 gRecentInterfaces = intf;
22 }
23
24+mDNSlocal void TearDownInterface(mDNS *const m, PosixNetworkInterface *intf)
25+{
26+ mDNS_DeregisterInterface(m, &intf->coreIntf, NormalActivation);
27+ if (gMDNSPlatformPosixVerboseLevel > 0) fprintf(stderr, "Deregistered interface %s\n", intf->intfName);
28+ FreePosixNetworkInterface(intf);
29+
30+ num_registered_interfaces--;
31+ if (num_registered_interfaces == 0) {
32+ num_pkts_accepted = 0;
33+ num_pkts_rejected = 0;
34+ }
35+}
36+
37 // Grab the first interface, deregister it, free it, and repeat until done.
38 mDNSlocal void ClearInterfaceList(mDNS *const m)
39 {
40@@ -1051,13 +1064,10 @@ mDNSlocal void ClearInterfaceList(mDNS *const m)
41 while (m->HostInterfaces)
42 {
43 PosixNetworkInterface *intf = (PosixNetworkInterface*)(m->HostInterfaces);
44- mDNS_DeregisterInterface(m, &intf->coreIntf, NormalActivation);
45- if (gMDNSPlatformPosixVerboseLevel > 0) fprintf(stderr, "Deregistered interface %s\n", intf->intfName);
46- FreePosixNetworkInterface(intf);
47+ TearDownInterface(m, intf);
48 }
49- num_registered_interfaces = 0;
50- num_pkts_accepted = 0;
51- num_pkts_rejected = 0;
52+
53+ assert(num_registered_interfaces == 0);
54 }
55
56 mDNSlocal int SetupIPv6Socket(int fd)
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch
index 86b659f8a1..abe8178f63 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0002-make-Set-libdns_sd.so-soname-correctly.patch
@@ -1,4 +1,4 @@
1From dfa9e2c494d1a834f5bdfe4dc24e8329dd8720eb Mon Sep 17 00:00:00 2001 1From dcc1f39a0918cdebf53ac7c105b3d33df960ed14 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com> 2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Mon, 5 Dec 2022 15:14:12 +0000 3Date: Mon, 5 Dec 2022 15:14:12 +0000
4Subject: [PATCH] make: Set libdns_sd.so soname correctly 4Subject: [PATCH] make: Set libdns_sd.so soname correctly
@@ -10,7 +10,7 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
10 1 file changed, 1 insertion(+), 1 deletion(-) 10 1 file changed, 1 insertion(+), 1 deletion(-)
11 11
12diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile 12diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile
13index 041706523139..c877c8bb19e6 100755 13index e05ba10b4340..7c510317f1b6 100755
14--- a/mDNSPosix/Makefile 14--- a/mDNSPosix/Makefile
15+++ b/mDNSPosix/Makefile 15+++ b/mDNSPosix/Makefile
16@@ -276,7 +276,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$(LDSUFFIX) 16@@ -276,7 +276,7 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$(LDSUFFIX)
@@ -21,4 +21,4 @@ index 041706523139..c877c8bb19e6 100755
21+ $(LD) $(SOOPTS) $(LINKOPTS) -Wl,-soname,libdns_sd.$(LDSUFFIX).1 -o $@ $+ 21+ $(LD) $(SOOPTS) $(LINKOPTS) -Wl,-soname,libdns_sd.$(LDSUFFIX).1 -o $@ $+
22 $(STRIP) $@ 22 $(STRIP) $@
23 23
24 Clients: setup libdns_sd ../Clients/build/dns-sd 24 Clients: setup ../Clients/build/dns-sd
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch b/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch
deleted file mode 100644
index 59871eb66a..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0003-Track-interface-socket-family.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 5f58e5671cd6dbd4cb49bd30fb606d430b626361 Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Wed, 28 Jun 2017 17:30:00 -0500
4Subject: [PATCH] Track interface socket family
5
6Tracks the socket family associated with the interface.
7
8Upstream-Status: Submitted [dts@apple.com]
9
10Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
11Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
12---
13 mDNSPosix/mDNSPosix.c | 1 +
14 mDNSPosix/mDNSPosix.h | 2 ++
15 2 files changed, 3 insertions(+)
16
17diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
18index a6041b04a21e..15bbecee04a4 100644
19--- a/mDNSPosix/mDNSPosix.c
20+++ b/mDNSPosix/mDNSPosix.c
21@@ -1415,6 +1415,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
22 // Set up the extra fields in PosixNetworkInterface.
23 assert(intf->intfName != NULL); // intf->intfName already set up above
24 intf->index = intfIndex;
25+ intf->sa_family = intfAddr->sa_family;
26 intf->multicastSocket4 = -1;
27 #if HAVE_IPV6
28 intf->multicastSocket6 = -1;
29diff --git a/mDNSPosix/mDNSPosix.h b/mDNSPosix/mDNSPosix.h
30index 9675591b0434..dd7864cd0d5e 100644
31--- a/mDNSPosix/mDNSPosix.h
32+++ b/mDNSPosix/mDNSPosix.h
33@@ -19,6 +19,7 @@
34 #define __mDNSPlatformPosix_h
35
36 #include <signal.h>
37+#include <sys/socket.h>
38 #include <sys/time.h>
39
40 #ifdef __cplusplus
41@@ -40,6 +41,7 @@ struct PosixNetworkInterface
42 char * intfName;
43 PosixNetworkInterface * aliasIntf;
44 int index;
45+ sa_family_t sa_family;
46 int multicastSocket4;
47 #if HAVE_IPV6
48 int multicastSocket6;
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch b/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch
deleted file mode 100644
index bf2b85c2ab..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0004-Indicate-loopback-interface-to-mDNS-core.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 935033dd40772240c9bcc6b9610d78eb3753bfaf Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Tue, 1 Aug 2017 17:06:01 -0500
4Subject: [PATCH] Indicate loopback interface to mDNS core
5
6Tells the mDNS core if an interface is a loopback interface,
7similar to AddInterfaceToList() in the MacOS implementation.
8
9Upstream-Status: Submitted [dts@apple.com]
10
11Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
12Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
13---
14 mDNSPosix/mDNSPosix.c | 7 ++++---
15 1 file changed, 4 insertions(+), 3 deletions(-)
16
17diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
18index 15bbecee04a4..f4c31a07d587 100644
19--- a/mDNSPosix/mDNSPosix.c
20+++ b/mDNSPosix/mDNSPosix.c
21@@ -1348,7 +1348,7 @@ mDNSlocal void CleanRecentInterfaces(void)
22 // Creates a PosixNetworkInterface for the interface whose IP address is
23 // intfAddr and whose name is intfName and registers it with mDNS core.
24 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask,
25- const mDNSu8 *intfHaddr, mDNSu16 intfHlen, const char *intfName, int intfIndex)
26+ const mDNSu8 *intfHaddr, mDNSu16 intfHlen, const char *intfName, int intfIndex, int intfFlags)
27 {
28 int err = 0;
29 PosixNetworkInterface *intf;
30@@ -1411,6 +1411,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
31
32 intf->coreIntf.Advertise = m->AdvertiseLocalAddresses;
33 intf->coreIntf.McastTxRx = mDNStrue;
34+ intf->coreIntf.Loopback = ((intfFlags & IFF_LOOPBACK) != 0) ? mDNStrue : mDNSfalse;
35
36 // Set up the extra fields in PosixNetworkInterface.
37 assert(intf->intfName != NULL); // intf->intfName already set up above
38@@ -1561,7 +1562,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
39 }
40 #endif
41 if (SetupOneInterface(m, i->ifa_addr, i->ifa_netmask,
42- hwaddr, hwaddr_len, i->ifa_name, ifIndex) == 0)
43+ hwaddr, hwaddr_len, i->ifa_name, ifIndex, i->ifa_flags) == 0)
44 {
45 if (i->ifa_addr->sa_family == AF_INET)
46 foundav4 = mDNStrue;
47@@ -1578,7 +1579,7 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
48 // if ((m->HostInterfaces == NULL) && (firstLoopback != NULL))
49 if (!foundav4 && firstLoopback)
50 (void) SetupOneInterface(m, firstLoopback->ifa_addr, firstLoopback->ifa_netmask,
51- NULL, 0, firstLoopback->ifa_name, firstLoopbackIndex);
52+ NULL, 0, firstLoopback->ifa_name, firstLoopbackIndex, firstLoopback->ifa_flags);
53 }
54
55 // Clean up.
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch
index 8d1915de8c..af27a89f4c 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0004-make-Separate-TLS-targets-from-libraries.patch
@@ -1,4 +1,4 @@
1From f871ac42165c29f763785aa0199dfc76f1731f4d Mon Sep 17 00:00:00 2001 1From f7ee12c1f8e85b9d2fe4023b6539c8051dc710c3 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com> 2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Mon, 5 Dec 2022 15:14:26 +0000 3Date: Mon, 5 Dec 2022 15:14:26 +0000
4Subject: [PATCH] make: Separate TLS targets from libraries 4Subject: [PATCH] make: Separate TLS targets from libraries
@@ -13,7 +13,7 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
13 1 file changed, 8 insertions(+), 6 deletions(-) 13 1 file changed, 8 insertions(+), 6 deletions(-)
14 14
15diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile 15diff --git a/mDNSPosix/Makefile b/mDNSPosix/Makefile
16index c877c8bb19e6..3a5897c4dbee 100755 16index 7c510317f1b6..8dd5984020ee 100755
17--- a/mDNSPosix/Makefile 17--- a/mDNSPosix/Makefile
18+++ b/mDNSPosix/Makefile 18+++ b/mDNSPosix/Makefile
19@@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux) 19@@ -112,9 +112,11 @@ ifeq ($(findstring linux,$(os)),linux)
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch b/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch
deleted file mode 100644
index ebdfe8c783..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0005-Use-list-for-changed-interfaces.patch
+++ /dev/null
@@ -1,166 +0,0 @@
1From 47118760466b74939cec9f5233062236a12bb3f4 Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Thu, 13 Jul 2017 09:00:00 -0500
4Subject: [PATCH] Use list for changed interfaces
5
6Uses a linked list to store the index of changed network interfaces
7instead of a bitfield. This allows for network interfaces with an
8index greater than 31 (an index of 36 was seen on Android).
9
10Upstream-Status: Submitted [dts@apple.com]
11
12Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
13Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
14---
15 mDNSPosix/mDNSPosix.c | 58 ++++++++++++++++++++++++++++++++-----------
16 1 file changed, 43 insertions(+), 15 deletions(-)
17
18diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
19index f4c31a07d587..6b2fe76d4b66 100644
20--- a/mDNSPosix/mDNSPosix.c
21+++ b/mDNSPosix/mDNSPosix.c
22@@ -74,6 +74,14 @@ struct IfChangeRec
23 };
24 typedef struct IfChangeRec IfChangeRec;
25
26+// Used to build a list of network interface indices
27+struct NetworkInterfaceIndex
28+{
29+ int if_index;
30+ struct NetworkInterfaceIndex *Next;
31+};
32+typedef struct NetworkInterfaceIndex NetworkInterfaceIndex;
33+
34 // Note that static data is initialized to zero in (modern) C.
35 static PosixEventSource *gEventSources; // linked list of PosixEventSource's
36 static sigset_t gEventSignalSet; // Signals which event loop listens for
37@@ -1621,6 +1629,23 @@ mDNSlocal mStatus OpenIfNotifySocket(int *pFD)
38 return err;
39 }
40
41+mDNSlocal void AddInterfaceIndexToList(GenLinkedList *list, int if_index)
42+{
43+ NetworkInterfaceIndex *item;
44+
45+ for (item = (NetworkInterfaceIndex*)list->Head; item != NULL; item = item->Next)
46+ {
47+ if (if_index == item->if_index) return;
48+ }
49+
50+ item = mdns_malloc(sizeof *item);
51+ if (item == NULL) return;
52+
53+ item->if_index = if_index;
54+ item->Next = NULL;
55+ AddToTail(list, item);
56+}
57+
58 #if MDNS_DEBUGMSGS
59 mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)
60 {
61@@ -1648,14 +1673,13 @@ mDNSlocal void PrintNetLinkMsg(const struct nlmsghdr *pNLMsg)
62 }
63 #endif
64
65-mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
66+mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *changedInterfaces)
67 // Read through the messages on sd and if any indicate that any interface records should
68 // be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0.
69 {
70 ssize_t readCount;
71 char buff[4096];
72 struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff;
73- mDNSu32 result = 0;
74
75 // The structure here is more complex than it really ought to be because,
76 // unfortunately, there's no good way to size a buffer in advance large
77@@ -1691,9 +1715,9 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
78
79 // Process the NetLink message
80 if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK)
81- result |= 1 << ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index;
82+ AddInterfaceIndexToList(changedInterfaces, ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index);
83 else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR)
84- result |= 1 << ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index;
85+ AddInterfaceIndexToList(changedInterfaces, ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index);
86
87 // Advance pNLMsg to the next message in the buffer
88 if ((pNLMsg->nlmsg_flags & NLM_F_MULTI) != 0 && pNLMsg->nlmsg_type != NLMSG_DONE)
89@@ -1704,8 +1728,6 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
90 else
91 break; // all done!
92 }
93-
94- return result;
95 }
96
97 #else // USES_NETLINK
98@@ -1737,14 +1759,13 @@ mDNSlocal void PrintRoutingSocketMsg(const struct ifa_msghdr *pRSMsg)
99 }
100 #endif
101
102-mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
103+mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *changedInterfaces)
104 // Read through the messages on sd and if any indicate that any interface records should
105 // be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0.
106 {
107 ssize_t readCount;
108 char buff[4096];
109 struct ifa_msghdr *pRSMsg = (struct ifa_msghdr*) buff;
110- mDNSu32 result = 0;
111
112 readCount = read(sd, buff, sizeof buff);
113 if (readCount < (ssize_t) sizeof(struct ifa_msghdr))
114@@ -1759,12 +1780,10 @@ mDNSlocal mDNSu32 ProcessRoutingNotification(int sd)
115 pRSMsg->ifam_type == RTM_IFINFO)
116 {
117 if (pRSMsg->ifam_type == RTM_IFINFO)
118- result |= 1 << ((struct if_msghdr*) pRSMsg)->ifm_index;
119+ AddInterfaceIndexToList(changedInterfaces, ((struct if_msghdr*) pRSMsg)->ifm_index);
120 else
121- result |= 1 << pRSMsg->ifam_index;
122+ AddInterfaceIndexToList(changedInterfaces, pRSMsg->ifam_index);
123 }
124-
125- return result;
126 }
127
128 #endif // USES_NETLINK
129@@ -1774,7 +1793,8 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
130 {
131 IfChangeRec *pChgRec = (IfChangeRec*) context;
132 fd_set readFDs;
133- mDNSu32 changedInterfaces = 0;
134+ GenLinkedList changedInterfaces;
135+ NetworkInterfaceIndex *changedInterface;
136 struct timeval zeroTimeout = { 0, 0 };
137
138 (void)fd; // Unused
139@@ -1782,17 +1802,25 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
140 FD_ZERO(&readFDs);
141 FD_SET(pChgRec->NotifySD, &readFDs);
142
143+ InitLinkedList(&changedInterfaces, offsetof(NetworkInterfaceIndex, Next));
144+
145 do
146 {
147- changedInterfaces |= ProcessRoutingNotification(pChgRec->NotifySD);
148+ ProcessRoutingNotification(pChgRec->NotifySD, &changedInterfaces);
149 }
150 while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout));
151
152 // Currently we rebuild the entire interface list whenever any interface change is
153 // detected. If this ever proves to be a performance issue in a multi-homed
154 // configuration, more care should be paid to changedInterfaces.
155- if (changedInterfaces)
156+ if (changedInterfaces.Head != NULL)
157 mDNSPlatformPosixRefreshInterfaceList(pChgRec->mDNS);
158+
159+ while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL)
160+ {
161+ RemoveFromList(&changedInterfaces, changedInterface);
162+ mdns_free(changedInterface);
163+ }
164 }
165
166 // Register with either a Routing Socket or RtNetLink to listen for interface changes.
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch
index 3c46d599c1..7d8f04c902 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0005-mDNSCore-Fix-broken-debug-parameter.patch
@@ -1,4 +1,4 @@
1From 0b3953dfdeef8dc9b8a23820659feee9e15b5bad Mon Sep 17 00:00:00 2001 1From e79f75487e32f87677519ec40c021b1623395bde Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com> 2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Mon, 5 Dec 2022 22:49:49 +0000 3Date: Mon, 5 Dec 2022 22:49:49 +0000
4Subject: [PATCH] mDNSCore: Fix broken debug parameter 4Subject: [PATCH] mDNSCore: Fix broken debug parameter
@@ -10,10 +10,10 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
10 1 file changed, 1 insertion(+), 1 deletion(-) 10 1 file changed, 1 insertion(+), 1 deletion(-)
11 11
12diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c 12diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c
13index d4519a7f62aa..3090edb2ac5d 100644 13index ad9eaa37a82a..fc51e1ad9bd4 100644
14--- a/mDNSCore/mDNS.c 14--- a/mDNSCore/mDNS.c
15+++ b/mDNSCore/mDNS.c 15+++ b/mDNSCore/mDNS.c
16@@ -10253,7 +10253,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastAnswers(mDNS *const m, const DNSMessage * 16@@ -11046,7 +11046,7 @@ mDNSlocal void mDNSCoreReceiveNoUnicastAnswers(mDNS *const m, const DNSMessage *
17 #else 17 #else
18 const DNSServRef dnsserv = qptr->qDNSServer; 18 const DNSServRef dnsserv = qptr->qDNSServer;
19 #endif 19 #endif
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch
deleted file mode 100644
index be63471e64..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0006-Handle-noisy-netlink-sockets.patch
+++ /dev/null
@@ -1,249 +0,0 @@
1From 105514b75df6d7abd052ec64d8106f5c07cc4782 Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Mon, 24 Jul 2017 09:38:55 -0500
4Subject: [PATCH] Handle noisy netlink sockets
5
6The POSIX implementation currently clears all network interfaces
7when netlink indicates that there has been a change. This causes
8the following problems:
9
10 1) Applications are informed that all of the services they are
11 tracking have been removed.
12 2) Increases network load because the client must re-query for
13 all records it is interested in.
14
15This changes netlink notification handling by:
16
17 1) Always comparing with the latest interface list returned
18 by the OS.
19 2) Confirming that the interface has been changed in a way
20 that we care about.
21
22Upstream-Status: Submitted [dts@apple.com]
23
24Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
25Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
26---
27 mDNSPosix/mDNSPosix.c | 182 +++++++++++++++++++++++++++++++++++++++---
28 1 file changed, 172 insertions(+), 10 deletions(-)
29
30diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
31index 6b2fe76d4b66..ecd5741d038d 100644
32--- a/mDNSPosix/mDNSPosix.c
33+++ b/mDNSPosix/mDNSPosix.c
34@@ -1788,14 +1788,43 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
35
36 #endif // USES_NETLINK
37
38+// Test whether the given PosixNetworkInterface matches the given struct ifaddrs
39+mDNSlocal mDNSBool InterfacesMatch(PosixNetworkInterface *intf, struct ifaddrs *ifi)
40+{
41+ mDNSBool match = mDNSfalse;
42+ mDNSAddr ip, mask;
43+ unsigned int if_index;
44+
45+ if_index = if_nametoindex(ifi->ifa_name);
46+ if (if_index == 0)
47+ return mDNSfalse;
48+
49+ if((intf->index == if_index) &&
50+ (intf->sa_family == ifi->ifa_addr->sa_family) &&
51+ (strcmp(intf->coreIntf.ifname, ifi->ifa_name) == 0))
52+ {
53+ SockAddrTomDNSAddr(ifi->ifa_addr, &ip, NULL);
54+ SockAddrTomDNSAddr(ifi->ifa_netmask, &mask, NULL);
55+
56+ match = mDNSSameAddress(&intf->coreIntf.ip, &ip) &&
57+ mDNSSameAddress(&intf->coreIntf.mask, &mask);
58+ }
59+
60+ return match;
61+}
62+
63 // Called when data appears on interface change notification socket
64 mDNSlocal void InterfaceChangeCallback(int fd, void *context)
65 {
66 IfChangeRec *pChgRec = (IfChangeRec*) context;
67+ mDNS *m = pChgRec->mDNS;
68 fd_set readFDs;
69 GenLinkedList changedInterfaces;
70 NetworkInterfaceIndex *changedInterface;
71 struct timeval zeroTimeout = { 0, 0 };
72+ struct ifaddrs *ifa_list, **ifi, *ifa_loop4 = NULL;
73+ PosixNetworkInterface *intf, *intfNext;
74+ mDNSBool found, foundav4;
75
76 (void)fd; // Unused
77
78@@ -1810,12 +1839,149 @@ mDNSlocal void InterfaceChangeCallback(int fd, void *context)
79 }
80 while (0 < select(pChgRec->NotifySD + 1, &readFDs, (fd_set*) NULL, (fd_set*) NULL, &zeroTimeout));
81
82- // Currently we rebuild the entire interface list whenever any interface change is
83- // detected. If this ever proves to be a performance issue in a multi-homed
84- // configuration, more care should be paid to changedInterfaces.
85- if (changedInterfaces.Head != NULL)
86- mDNSPlatformPosixRefreshInterfaceList(pChgRec->mDNS);
87+ CleanRecentInterfaces();
88+
89+ if (changedInterfaces.Head == NULL) goto cleanup;
90+
91+ if (getifaddrs(&ifa_list) < 0) goto cleanup;
92+
93+ for (intf = (PosixNetworkInterface*)(m->HostInterfaces); intf != NULL; intf = intfNext)
94+ {
95+ intfNext = (PosixNetworkInterface*)(intf->coreIntf.next);
96+
97+ // Loopback interface(s) are handled later
98+ if (intf->coreIntf.Loopback) continue;
99+
100+ found = mDNSfalse;
101+ for (ifi = &ifa_list; *ifi != NULL; ifi = &(*ifi)->ifa_next)
102+ {
103+ if (InterfacesMatch(intf, *ifi))
104+ {
105+ found = mDNStrue;
106+ break;
107+ }
108+ }
109+
110+ // Removes changed and old interfaces from m->HostInterfaces
111+ if (!found) TearDownInterface(m, intf);
112+ }
113+
114+ // Add new and changed interfaces in ifa_list
115+ // Save off loopback interface in case it is needed later
116+ for (ifi = &ifa_list; *ifi != NULL; ifi = &(*ifi)->ifa_next)
117+ {
118+ found = mDNSfalse;
119+ for (intf = (PosixNetworkInterface*)(m->HostInterfaces); intf != NULL; intf = intfNext)
120+ {
121+ intfNext = (PosixNetworkInterface*)(intf->coreIntf.next);
122+
123+ // Loopback interface(s) are handled later
124+ if (intf->coreIntf.Loopback) continue;
125+
126+ if (InterfacesMatch(intf, *ifi))
127+ {
128+ found = mDNStrue;
129+ break;
130+ }
131+
132+ // Removes changed and old interfaces from m->HostInterfaces
133+ }
134+ if (found)
135+ continue;
136+
137+ if ((ifa_loop4 == NULL) &&
138+ ((*ifi)->ifa_addr->sa_family == AF_INET) &&
139+ ((*ifi)->ifa_flags & IFF_UP) &&
140+ ((*ifi)->ifa_flags & IFF_LOOPBACK))
141+ {
142+ ifa_loop4 = *ifi;
143+ continue;
144+ }
145+
146+ if ( (((*ifi)->ifa_addr->sa_family == AF_INET)
147+#if HAVE_IPV6
148+ || ((*ifi)->ifa_addr->sa_family == AF_INET6)
149+#endif
150+ ) && ((*ifi)->ifa_flags & IFF_UP)
151+ && !((*ifi)->ifa_flags & IFF_POINTOPOINT)
152+ && !((*ifi)->ifa_flags & IFF_LOOPBACK))
153+ {
154+ struct ifaddrs *i = *ifi;
155+
156+#define ethernet_addr_len 6
157+ uint8_t hwaddr[ethernet_addr_len];
158+ int hwaddr_len = 0;
159+
160+#if defined(TARGET_OS_LINUX) && TARGET_OS_LINUX
161+ struct ifreq ifr;
162+ int sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
163+ if (sockfd >= 0)
164+ {
165+ /* Add hardware address */
166+ memcpy(ifr.ifr_name, i->ifa_name, IFNAMSIZ);
167+ if (ioctl(sockfd, SIOCGIFHWADDR, &ifr) != -1)
168+ {
169+ if (ifr.ifr_hwaddr.sa_family == ARPHRD_ETHER)
170+ {
171+ memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ethernet_addr_len);
172+ hwaddr_len = ethernet_addr_len;
173+ }
174+ }
175+ close(sockfd);
176+ }
177+ else
178+ {
179+ memset(hwaddr, 0, sizeof(hwaddr));
180+ }
181+#endif // TARGET_OS_LINUX
182+ SetupOneInterface(m, i->ifa_addr, i->ifa_netmask,
183+ hwaddr, hwaddr_len, i->ifa_name, if_nametoindex(i->ifa_name), i->ifa_flags);
184+ }
185+ }
186+
187+ // Determine if there is at least one non-loopback IPv4 interface. This is to work around issues
188+ // with multicast loopback on IPv6 interfaces -- see corresponding logic in SetupInterfaceList().
189+ foundav4 = mDNSfalse;
190+ for (intf = (PosixNetworkInterface*)(m->HostInterfaces); intf != NULL; intf = (PosixNetworkInterface*)(intf->coreIntf.next))
191+ {
192+ if (intf->sa_family == AF_INET && !intf->coreIntf.Loopback)
193+ {
194+ foundav4 = mDNStrue;
195+ break;
196+ }
197+ }
198+
199+ if (foundav4)
200+ {
201+ for (intf = (PosixNetworkInterface*)(m->HostInterfaces); intf != NULL; intf = intfNext)
202+ {
203+ intfNext = (PosixNetworkInterface*)(intf->coreIntf.next);
204+ if (intf->coreIntf.Loopback) TearDownInterface(m, intf);
205+ }
206+ }
207+ else
208+ {
209+ found = mDNSfalse;
210+
211+ for (intf = (PosixNetworkInterface*)(m->HostInterfaces); intf != NULL; intf = (PosixNetworkInterface*)(intf->coreIntf.next))
212+ {
213+ if (intf->coreIntf.Loopback)
214+ {
215+ found = mDNStrue;
216+ break;
217+ }
218+ }
219+
220+ if (!found && (ifa_loop4 != NULL))
221+ {
222+ SetupOneInterface(m, ifa_loop4->ifa_addr, ifa_loop4->ifa_netmask,
223+ NULL, 0, ifa_loop4->ifa_name, if_nametoindex(ifa_loop4->ifa_name), ifa_loop4->ifa_flags);
224+ }
225+ }
226+
227+ if (ifa_list != NULL) freeifaddrs(ifa_list);
228
229+cleanup:
230 while ((changedInterface = (NetworkInterfaceIndex*)changedInterfaces.Head) != NULL)
231 {
232 RemoveFromList(&changedInterfaces, changedInterface);
233@@ -1947,15 +2113,11 @@ mDNSexport void mDNSPlatformClose(mDNS *const m)
234 #endif
235 }
236
237-// This is used internally by InterfaceChangeCallback.
238-// It's also exported so that the Standalone Responder (mDNSResponderPosix)
239+// This is exported so that the Standalone Responder (mDNSResponderPosix)
240 // can call it in response to a SIGHUP (mainly for debugging purposes).
241 mDNSexport mStatus mDNSPlatformPosixRefreshInterfaceList(mDNS *const m)
242 {
243 int err;
244- // This is a pretty heavyweight way to process interface changes --
245- // destroying the entire interface list and then making fresh one from scratch.
246- // We should make it like the OS X version, which leaves unchanged interfaces alone.
247 ClearInterfaceList(m);
248 err = SetupInterfaceList(m);
249 return PosixErrorToStatus(err);
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch
index ffa3fa3827..5f8f428302 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0006-make-Add-top-level-Makefile.patch
@@ -1,4 +1,4 @@
1From 626ccae85aab5b0902a8e3c05d9f0e3fbbe4fcd2 Mon Sep 17 00:00:00 2001 1From a1c982808ebfb71ba7e0f16040013b7127a6e2ab Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com> 2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Tue, 6 Dec 2022 13:28:31 +0000 3Date: Tue, 6 Dec 2022 13:28:31 +0000
4Subject: [PATCH] make: Add top-level Makefile 4Subject: [PATCH] make: Add top-level Makefile
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch b/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch
deleted file mode 100644
index 276f879df2..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0007-Mark-deleted-interfaces-as-being-changed.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From 3715b3f4a0ba2d2cb05e5ba617b523c759c88d4b Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Wed, 9 Aug 2017 09:16:58 -0500
4Subject: [PATCH] Mark deleted interfaces as being changed
5
6Netlink notification handling ignores messages for deleted links,
7RTM_DELLINK. It does handle RTM_GETLINK. According to libnl docu-
8mentation (http://www.infradead.org/~tgr/libnl/doc/route.html)
9RTM_DELLINK can be sent by the kernel, but RTM_GETLINK cannot.
10There was likely a mixup in the original implementation, so this
11change replaces handling for RTM_GETLINK with RTM_DELLINK.
12
13Testing and Verification Instructions:
14 1. Use ip-link to add and remove a VLAN interface and verify
15 that mDNSResponder handles the deleted link.
16
17Upstream-Status: Submitted [dts@apple.com]
18
19Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
20Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
21---
22 mDNSPosix/mDNSPosix.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
26index ecd5741d038d..776531dbc8e8 100644
27--- a/mDNSPosix/mDNSPosix.c
28+++ b/mDNSPosix/mDNSPosix.c
29@@ -1714,7 +1714,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
30 #endif
31
32 // Process the NetLink message
33- if (pNLMsg->nlmsg_type == RTM_GETLINK || pNLMsg->nlmsg_type == RTM_NEWLINK)
34+ if (pNLMsg->nlmsg_type == RTM_DELLINK || pNLMsg->nlmsg_type == RTM_NEWLINK)
35 AddInterfaceIndexToList(changedInterfaces, ((struct ifinfomsg*) NLMSG_DATA(pNLMsg))->ifi_index);
36 else if (pNLMsg->nlmsg_type == RTM_DELADDR || pNLMsg->nlmsg_type == RTM_NEWADDR)
37 AddInterfaceIndexToList(changedInterfaces, ((struct ifaddrmsg*) NLMSG_DATA(pNLMsg))->ifa_index);
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch b/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch
deleted file mode 100644
index f3c7f62d3f..0000000000
--- a/meta-networking/recipes-protocols/mdns/mdns/0008-Handle-errors-from-socket-calls.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 4e6621eee389e1cbb558fe268e02d5153a1d8f2d Mon Sep 17 00:00:00 2001
2From: Nate Karstens <nate.karstens@garmin.com>
3Date: Thu, 10 Aug 2017 08:27:32 -0500
4Subject: [PATCH] Handle errors from socket calls
5
6Adds handling for socket() or read() returning a
7negative value (indicating an error has occurred).
8
9Upstream-Status: Submitted [dts@apple.com]
10
11Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
12Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
13---
14 mDNSPosix/mDNSPosix.c | 12 +++++++++---
15 1 file changed, 9 insertions(+), 3 deletions(-)
16
17diff --git a/mDNSPosix/mDNSPosix.c b/mDNSPosix/mDNSPosix.c
18index 776531dbc8e8..0c9dd2582660 100644
19--- a/mDNSPosix/mDNSPosix.c
20+++ b/mDNSPosix/mDNSPosix.c
21@@ -1677,7 +1677,7 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
22 // Read through the messages on sd and if any indicate that any interface records should
23 // be torn down and rebuilt, return affected indices as a bitmask. Otherwise return 0.
24 {
25- ssize_t readCount;
26+ ssize_t readVal, readCount;
27 char buff[4096];
28 struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff;
29
30@@ -1686,7 +1686,10 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
31 // enough to hold all pending data and so avoid message fragmentation.
32 // (Note that FIONREAD is not supported on AF_NETLINK.)
33
34- readCount = read(sd, buff, sizeof buff);
35+ readVal = read(sd, buff, sizeof buff);
36+ if (readVal < 0) return;
37+ readCount = readVal;
38+
39 while (1)
40 {
41 // Make sure we've got an entire nlmsghdr in the buffer, and payload, too.
42@@ -1702,7 +1705,9 @@ mDNSlocal void ProcessRoutingNotification(int sd, GenLinkedList *change
43 pNLMsg = (struct nlmsghdr*) buff;
44
45 // read more data
46- readCount += read(sd, buff + readCount, sizeof buff - readCount);
47+ readVal = read(sd, buff + readCount, sizeof buff - readCount);
48+ if (readVal < 0) return;
49+ readCount += readVal;
50 continue; // spin around and revalidate with new readCount
51 }
52 else
53@@ -2017,6 +2022,7 @@ mDNSlocal mDNSBool mDNSPlatformInit_CanReceiveUnicast(void)
54 int err;
55 int s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
56 struct sockaddr_in s5353;
57+ if (s < 0) return mDNSfalse;
58 s5353.sin_family = AF_INET;
59 s5353.sin_port = MulticastDNSPort.NotAnInteger;
60 s5353.sin_addr.s_addr = 0;
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
index 818017037c..e8785b1aa7 100644
--- a/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
+++ b/meta-networking/recipes-protocols/mdns/mdns/0009-remove-unneeded-headers.patch
@@ -1,4 +1,4 @@
1From 05cb409ce213f35798c02faf2032d4846a84b48e Mon Sep 17 00:00:00 2001 1From 8e32fb0876a073c23ab73047a2e0f6d011b3660c Mon Sep 17 00:00:00 2001
2From: Beniamin Sandu <beniaminsandu@gmail.com> 2From: Beniamin Sandu <beniaminsandu@gmail.com>
3Date: Thu, 15 Jun 2023 17:02:58 +0000 3Date: Thu, 15 Jun 2023 17:02:58 +0000
4Subject: [PATCH] remove unneeded headers 4Subject: [PATCH] remove unneeded headers
@@ -7,8 +7,7 @@ From a quick look, these seem to not be needed and having them
7breaks the build with mbedtls 3.x. Without them it builds fine 7breaks the build with mbedtls 3.x. Without them it builds fine
8on both 2.x and 3.x versions. 8on both 2.x and 3.x versions.
9 9
10Upstream-Status: Pending 10Upstream-Status: Inactive-Upstream [Upstream does not take patches]
11
12Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com> 11Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
13--- 12---
14 mDNSPosix/mbedtls.c | 2 -- 13 mDNSPosix/mbedtls.c | 2 --
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2200.120.24.bb b/meta-networking/recipes-protocols/mdns/mdns_2600.120.12.bb
index 9aeda92a4b..f7c8f17800 100644
--- a/meta-networking/recipes-protocols/mdns/mdns_2200.120.24.bb
+++ b/meta-networking/recipes-protocols/mdns/mdns_2600.120.12.bb
@@ -6,26 +6,19 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=31c50371921e0fb731003bbc665f29bf"
6 6
7DEPENDS:append:libc-musl = " musl-nscd" 7DEPENDS:append:libc-musl = " musl-nscd"
8 8
9SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=rel/mDNSResponder-2200 \ 9SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https;branch=${BRANCH};tag=mDNSResponder-${PV} \
10 file://0001-dns-sd-Include-missing-headers.patch \ 10 file://0001-dns-sd-Include-missing-headers.patch \
11 file://0002-make-Set-libdns_sd.so-soname-correctly.patch \ 11 file://0002-make-Set-libdns_sd.so-soname-correctly.patch \
12 file://0004-make-Separate-TLS-targets-from-libraries.patch \ 12 file://0004-make-Separate-TLS-targets-from-libraries.patch \
13 file://0005-mDNSCore-Fix-broken-debug-parameter.patch \ 13 file://0005-mDNSCore-Fix-broken-debug-parameter.patch \
14 file://0006-make-Add-top-level-Makefile.patch \ 14 file://0006-make-Add-top-level-Makefile.patch \
15 file://0001-Create-subroutine-for-cleaning-recent-interfaces.patch \
16 file://0002-Create-subroutine-for-tearing-down-an-interface.patch \
17 file://0003-Track-interface-socket-family.patch \
18 file://0004-Indicate-loopback-interface-to-mDNS-core.patch \
19 file://0005-Use-list-for-changed-interfaces.patch \
20 file://0006-Handle-noisy-netlink-sockets.patch \
21 file://0007-Mark-deleted-interfaces-as-being-changed.patch \
22 file://0008-Handle-errors-from-socket-calls.patch \
23 file://0009-remove-unneeded-headers.patch \ 15 file://0009-remove-unneeded-headers.patch \
16 file://0001-Fix-build-with-gcc-15.patch \
17 file://0001-Use-secure_getenv-on-Linux.patch \
24 file://mdns.service \ 18 file://mdns.service \
25 file://0001-Handle-interface-without-ifa_addr.patch \
26 file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \
27 " 19 "
28SRCREV = "51a7148a21362285f8013648c4bfa91247ff598a" 20BRANCH = "rel/mDNSResponder-2600"
21SRCREV = "3a0deda2995d98243dae379bcec10e57928c15e8"
29 22
30# We install a stub Makefile in the top directory so that the various checks 23# We install a stub Makefile in the top directory so that the various checks
31# in base.bbclass pass their tests for a Makefile, this ensures (that amongst 24# in base.bbclass pass their tests for a Makefile, this ensures (that amongst
@@ -34,7 +27,6 @@ SRCREV = "51a7148a21362285f8013648c4bfa91247ff598a"
34# 27#
35# We can't use the approach of setting ${S} to mDNSPosix as we need 28# We can't use the approach of setting ${S} to mDNSPosix as we need
36# DEBUG_PREFIX_MAP to cover files which come from the Clients directory too. 29# DEBUG_PREFIX_MAP to cover files which come from the Clients directory too.
37S = "${WORKDIR}/git"
38 30
39inherit github-releases manpages systemd update-rc.d 31inherit github-releases manpages systemd update-rc.d
40 32
@@ -109,7 +101,7 @@ do_install () {
109 install mdnsd.sh ${D}${INIT_D_DIR}/mdns 101 install mdnsd.sh ${D}${INIT_D_DIR}/mdns
110} 102}
111 103
112pkg_postinst:${PN} () { 104pkg_postinst:${PN}-libnss-mdns () {
113 if [ -r $D${sysconfdir}/nsswitch.conf ]; then 105 if [ -r $D${sysconfdir}/nsswitch.conf ]; then
114 sed -e '/^hosts:/s/\s*\<mdns\>//' \ 106 sed -e '/^hosts:/s/\s*\<mdns\>//' \
115 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \ 107 -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 mdns\3\4\5/' \
@@ -117,7 +109,7 @@ pkg_postinst:${PN} () {
117 fi 109 fi
118} 110}
119 111
120pkg_prerm:${PN} () { 112pkg_prerm:${PN}-libnss-mdns () {
121 if [ -r $D${sysconfdir}/nsswitch.conf ]; then 113 if [ -r $D${sysconfdir}/nsswitch.conf ]; then
122 sed -e '/^hosts:/s/\s*\<mdns\>//' \ 114 sed -e '/^hosts:/s/\s*\<mdns\>//' \
123 -e '/^hosts:/s/\s*mdns//' \ 115 -e '/^hosts:/s/\s*mdns//' \
@@ -128,7 +120,12 @@ pkg_prerm:${PN} () {
128SYSTEMD_SERVICE:${PN} = "mdns.service" 120SYSTEMD_SERVICE:${PN} = "mdns.service"
129INITSCRIPT_NAME = "mdns" 121INITSCRIPT_NAME = "mdns"
130 122
123PACKAGE_BEFORE_PN = "${PN}-libnss-mdns"
124
125RRECOMMENDS:${PN}:append:libc-glibc = " ${PN}-libnss-mdns"
126
131FILES_SOLIBSDEV = "${libdir}/libdns_sd.so" 127FILES_SOLIBSDEV = "${libdir}/libdns_sd.so"
132FILES:${PN} += "${libdir}/libnss_mdns-0.2.so" 128FILES:${PN}-libnss-mdns = "${sysconfdir}/nss_mdns.conf ${libdir}/libnss_mdns*.so*"
129RPROVIDES:${PN}-libnss-mdns = "libnss-mdns"
133 130
134RPROVIDES:${PN} += "libdns_sd.so" 131RPROVIDES:${PN} += "libdns-sd"
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.9.4-kernel-6.7.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.9.4-kernel-6.7.patch
new file mode 100644
index 0000000000..3f978d5f80
--- /dev/null
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/net-snmp-5.9.4-kernel-6.7.patch
@@ -0,0 +1,123 @@
1From f5ae6baf0018abda9dedc368fe6d52c0d7a8ab8f Mon Sep 17 00:00:00 2001
2From: Philippe Troin <phil+github-commits@fifi.org>
3Date: Sat, 3 Feb 2024 10:30:30 -0800
4Subject: [PATCH] Add Linux 6.7 compatibility parsing /proc/net/snmp
5
6Linux 6.7 adds a new OutTransmits field to Ip in /proc/net/snmp.
7This breaks the hard-coded assumptions about the Ip line length.
8Add compatibility to parse Linux 6.7 Ip header while keep support
9for previous versions.
10
11Upstream-Status: Pending
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 .../ip-mib/data_access/systemstats_linux.c | 46 +++++++++++++++----
15 1 file changed, 37 insertions(+), 9 deletions(-)
16
17diff --git a/agent/mibgroup/ip-mib/data_access/systemstats_linux.c b/agent/mibgroup/ip-mib/data_access/systemstats_linux.c
18index 49e0a34d5c..f04e828a94 100644
19--- a/agent/mibgroup/ip-mib/data_access/systemstats_linux.c
20+++ b/agent/mibgroup/ip-mib/data_access/systemstats_linux.c
21@@ -36,7 +36,7 @@ netsnmp_access_systemstats_arch_init(void)
22 }
23
24 /*
25- /proc/net/snmp
26+ /proc/net/snmp - Linux 6.6 and lower
27
28 Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates
29 Ip: 2 64 7083534 0 0 0 0 0 6860233 6548963 0 0 1 286623 63322 1 259920 0 0
30@@ -49,6 +49,26 @@ netsnmp_access_systemstats_arch_init(void)
31
32 Udp: InDatagrams NoPorts InErrors OutDatagrams
33 Udp: 1491094 122 0 1466178
34+*
35+ /proc/net/snmp - Linux 6.7 and higher
36+
37+ Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates OutTransmits
38+ Ip: 1 64 50859058 496 0 37470604 0 0 20472980 7515791 1756 0 0 7264 3632 0 3548 0 7096 44961424
39+
40+ Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutRateLimitGlobal OutRateLimitHost OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
41+ Icmp: 114447 2655 0 17589 0 0 0 0 66905 29953 0 0 0 0 143956 0 0 572 16610 484 0 0 0 59957 66905 0 0 0 0
42+
43+ IcmpMsg: InType0 InType3 InType8 OutType0 OutType3 OutType8 OutType11
44+ IcmpMsg: 29953 17589 66905 66905 16610 59957 484
45+
46+ Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors
47+ Tcp: 1 200 120000 -1 17744 13525 307 3783 6 18093137 9277788 3499 8 7442 0
48+
49+ Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
50+ Udp: 2257832 1422 0 2252835 0 0 0 84 0
51+
52+ UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors IgnoredMulti MemErrors
53+ UdpLite: 0 0 0 0 0 0 0 0 0
54 */
55
56
57@@ -101,10 +121,10 @@ _systemstats_v4(netsnmp_container* container, u_int load_flags)
58 FILE *devin;
59 char line[1024];
60 netsnmp_systemstats_entry *entry = NULL;
61- int scan_count;
62+ int scan_count, expected_scan_count;
63 char *stats, *start = line;
64 int len;
65- unsigned long long scan_vals[19];
66+ unsigned long long scan_vals[20];
67
68 DEBUGMSGTL(("access:systemstats:container:arch", "load v4 (flags %x)\n",
69 load_flags));
70@@ -126,10 +146,17 @@ _systemstats_v4(netsnmp_container* container, u_int load_flags)
71 */
72 NETSNMP_IGNORE_RESULT(fgets(line, sizeof(line), devin));
73 len = strlen(line);
74- if (224 != len) {
75+ switch (len) {
76+ case 224:
77+ expected_scan_count = 19;
78+ break;
79+ case 237:
80+ expected_scan_count = 20;
81+ break;
82+ default:
83 fclose(devin);
84 snmp_log(LOG_ERR, "systemstats_linux: unexpected header length in /proc/net/snmp."
85- " %d != 224\n", len);
86+ " %d not in { 224, 237 } \n", len);
87 return -4;
88 }
89
90@@ -178,20 +205,20 @@ _systemstats_v4(netsnmp_container* container, u_int load_flags)
91 memset(scan_vals, 0x0, sizeof(scan_vals));
92 scan_count = sscanf(stats,
93 "%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu"
94- "%llu %llu %llu %llu %llu %llu %llu %llu %llu",
95+ "%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu",
96 &scan_vals[0],&scan_vals[1],&scan_vals[2],
97 &scan_vals[3],&scan_vals[4],&scan_vals[5],
98 &scan_vals[6],&scan_vals[7],&scan_vals[8],
99 &scan_vals[9],&scan_vals[10],&scan_vals[11],
100 &scan_vals[12],&scan_vals[13],&scan_vals[14],
101 &scan_vals[15],&scan_vals[16],&scan_vals[17],
102- &scan_vals[18]);
103+ &scan_vals[18],&scan_vals[19]);
104 DEBUGMSGTL(("access:systemstats", " read %d values\n", scan_count));
105
106- if(scan_count != 19) {
107+ if(scan_count != expected_scan_count) {
108 snmp_log(LOG_ERR,
109 "error scanning systemstats data (expected %d, got %d)\n",
110- 19, scan_count);
111+ expected_scan_count, scan_count);
112 netsnmp_access_systemstats_entry_free(entry);
113 return -4;
114 }
115@@ -223,6 +250,7 @@ _systemstats_v4(netsnmp_container* container, u_int load_flags)
116 entry->stats.HCOutFragFails.high = scan_vals[17] >> 32;
117 entry->stats.HCOutFragCreates.low = scan_vals[18] & 0xffffffff;
118 entry->stats.HCOutFragCreates.high = scan_vals[18] >> 32;
119+ /* entry->stats. = scan_vals[19]; / * OutTransmits */
120
121 entry->stats.columnAvail[IPSYSTEMSTATSTABLE_HCINRECEIVES] = 1;
122 entry->stats.columnAvail[IPSYSTEMSTATSTABLE_INHDRERRORS] = 1;
123
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/netsnmp-swinst-crash.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/netsnmp-swinst-crash.patch
new file mode 100644
index 0000000000..109a0600a6
--- /dev/null
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/netsnmp-swinst-crash.patch
@@ -0,0 +1,17 @@
1Fix crash in swinst
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c
6+++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c
7@@ -210,7 +210,9 @@ netsnmp_swinst_arch_load( netsnmp_contai
8 memcpy( entry->swDate, cp, date_len );
9 entry->swDate_len = date_len;
10 }
11- closedir( d );
12+ if (d != NULL)
13+ closedir( d );
14+
15 #ifdef HAVE_LIBPKG
16 }
17 #endif
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
index 75b3d9e8c6..6a62304a1c 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb
@@ -28,12 +28,16 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
28 file://0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch \ 28 file://0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch \
29 file://0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch \ 29 file://0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch \
30 file://0001-Android-Fix-the-build.patch \ 30 file://0001-Android-Fix-the-build.patch \
31 file://netsnmp-swinst-crash.patch \
32 file://net-snmp-5.9.4-kernel-6.7.patch \
31 " 33 "
32SRC_URI[sha256sum] = "8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544" 34SRC_URI[sha256sum] = "8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544"
33 35
34UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" 36UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/"
35UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" 37UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/"
36 38
39CVE_PRODUCT = "net-snmp:net-snmp"
40
37inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest multilib_script multilib_header 41inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest multilib_script multilib_header
38 42
39EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'" 43EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'"
@@ -53,6 +57,8 @@ PACKAGECONFIG[perl] = "--enable-embedded-perl --with-perl-modules=yes, --disable
53PACKAGECONFIG[smux] = "" 57PACKAGECONFIG[smux] = ""
54PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd" 58PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd"
55 59
60SYSCONTACT_DISTRO ?= "no-contact-set@example.com"
61
56EXTRA_OECONF = " \ 62EXTRA_OECONF = " \
57 --enable-shared \ 63 --enable-shared \
58 --disable-manuals \ 64 --disable-manuals \
@@ -61,6 +67,7 @@ EXTRA_OECONF = " \
61 --with-persistent-directory=${localstatedir}/lib/net-snmp \ 67 --with-persistent-directory=${localstatedir}/lib/net-snmp \
62 --with-endianness=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \ 68 --with-endianness=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
63 --with-mib-modules='${MIB_MODULES}' \ 69 --with-mib-modules='${MIB_MODULES}' \
70 --with-sys-contact='${SYSCONTACT_DISTRO}' \
64" 71"
65 72
66MIB_MODULES = "" 73MIB_MODULES = ""
@@ -73,6 +80,7 @@ CACHED_CONFIGUREVARS = " \
73 lt_cv_shlibpath_overrides_runpath=yes \ 80 lt_cv_shlibpath_overrides_runpath=yes \
74 ac_cv_path_UNAMEPROG=${base_bindir}/uname \ 81 ac_cv_path_UNAMEPROG=${base_bindir}/uname \
75 ac_cv_path_PSPROG=${base_bindir}/ps \ 82 ac_cv_path_PSPROG=${base_bindir}/ps \
83 ac_cv_ps_flags="-e" \
76 ac_cv_file__etc_printcap=no \ 84 ac_cv_file__etc_printcap=no \
77 NETSNMP_CONFIGURE_OPTIONS= \ 85 NETSNMP_CONFIGURE_OPTIONS= \
78" 86"
@@ -265,12 +273,12 @@ RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs"
265RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd" 273RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd"
266RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd" 274RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd"
267RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs" 275RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs"
268RDEPENDS:${PN}-libs += "libpci \ 276RDEPENDS:${PN}-libs += "${PN}-lib-netsnmp \
269 ${PN}-lib-netsnmp \
270 ${PN}-lib-agent \ 277 ${PN}-lib-agent \
271 ${PN}-lib-helpers \ 278 ${PN}-lib-helpers \
272 ${PN}-lib-mibs \ 279 ${PN}-lib-mibs \
273" 280"
281RDEPENDS:${PN}-libs:append:class-target = " libpci"
274RDEPENDS:${PN}-ptest += "perl \ 282RDEPENDS:${PN}-ptest += "perl \
275 perl-module-test \ 283 perl-module-test \
276 perl-module-file-basename \ 284 perl-module-file-basename \
diff --git a/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb b/meta-networking/recipes-protocols/opcua/open62541_1.3.15.bb
index 19a50aee3a..b7f5112197 100644
--- a/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb
+++ b/meta-networking/recipes-protocols/opcua/open62541_1.3.15.bb
@@ -8,35 +8,40 @@ LIC_FILES_CHKSUM = "\
8" 8"
9 9
10SRCREV_FORMAT = "opcua_mdnsd_ua-nodeset_mqtt-c" 10SRCREV_FORMAT = "opcua_mdnsd_ua-nodeset_mqtt-c"
11SRCREV_opcua = "086b1557d6f49e8a82c999054a7da77d080cd54e" 11SRCREV_opcua = "3eed1a6d5c5b207c531b2d35ed88aa0a4a4541e5"
12SRCREV_mdnsd = "3151afe5899dba5125dffa9f4cf3ae1fe2edc0f0" 12SRCREV_mdnsd = "488d24fb9d427aec77df180268f0291eeee7fb8b"
13SRCREV_ua-nodeset = "f71b3f411d5cb16097c3ae0c744f67ad45535ffb" 13SRCREV_ua-nodeset = "f71b3f411d5cb16097c3ae0c744f67ad45535ffb"
14SRCREV_mqtt-c = "f69ce1e7fd54f3b1834c9c9137ce0ec5d703cb4d" 14SRCREV_mqtt-c = "f69ce1e7fd54f3b1834c9c9137ce0ec5d703cb4d"
15 15
16SRC_URI = " \ 16SRC_URI = " \
17 git://github.com/open62541/open62541.git;name=opcua;branch=1.3;protocol=https \ 17 git://github.com/open62541/open62541.git;name=opcua;branch=1.3;protocol=https \
18 git://github.com/Pro/mdnsd.git;name=mdnsd;protocol=https;branch=master;destsuffix=git/deps/mdnsd \ 18 git://github.com/Pro/mdnsd.git;name=mdnsd;protocol=https;branch=master;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/mdnsd \
19 git://github.com/OPCFoundation/UA-Nodeset;name=ua-nodeset;protocol=https;branch=v1.04;destsuffix=git/deps/ua-nodeset \ 19 git://github.com/OPCFoundation/UA-Nodeset;name=ua-nodeset;protocol=https;branch=v1.04;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/ua-nodeset \
20 git://github.com/LiamBindle/MQTT-C.git;name=mqtt-c;protocol=https;branch=master;destsuffix=git/deps/mqtt-c \ 20 git://github.com/LiamBindle/MQTT-C.git;name=mqtt-c;protocol=https;branch=master;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/mqtt-c \
21 file://0001-fix-build-do-not-install-git-files.patch \ 21 file://0001-fix-build-do-not-install-git-files.patch \
22" 22"
23 23
24S = "${WORKDIR}/git"
25 24
26inherit cmake python3native 25inherit cmake python3native
27 26
28EXTRA_OECMAKE += "\ 27EXTRA_OECMAKE += "\
29 -DBUILD_SHARED_LIBS=ON \ 28 -DBUILD_SHARED_LIBS=ON \
30 -DUA_NAMESPACE_ZERO=FULL \
31 -DUA_LOGLEVEL=600 \ 29 -DUA_LOGLEVEL=600 \
32 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 30 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
33" 31"
34 32
35PACKAGECONFIG ?= "encryption-mbedtls pubsub pubsub-eth subscriptions subscriptions-events" 33FILES:${PN} = "${libdir}/lib*${SOLIBS}"
36PACKAGECONFIG[amalgamation] = "-DUA_ENABLE_AMALGAMATION=ON, -DUA_ENABLE_AMALGAMATION=OFF" 34
35# The tools package contains scripts to generate certificates and OPC UA schema definitions + nodeset descriptions.
36PACKAGES += "${PN}-tools"
37FILES:${PN}-tools = "${datadir}/${BPN}/tools/*"
38
39PACKAGECONFIG ?= "encryption-mbedtls pubsub pubsub-eth subscriptions subscriptions-events namespace-full"
37PACKAGECONFIG[encryption-mbedtls] = "-DUA_ENABLE_ENCRYPTION=MBEDTLS, , mbedtls, , , encryption-openssl" 40PACKAGECONFIG[encryption-mbedtls] = "-DUA_ENABLE_ENCRYPTION=MBEDTLS, , mbedtls, , , encryption-openssl"
38PACKAGECONFIG[encryption-openssl] = "-DUA_ENABLE_ENCRYPTION=OPENSSL, , openssl, , , encryption-mbedtls" 41PACKAGECONFIG[encryption-openssl] = "-DUA_ENABLE_ENCRYPTION=OPENSSL, , openssl, , , encryption-mbedtls"
39PACKAGECONFIG[multithreading] = "-DUA_MULTITHREADING=100, -DUA_MULTITHREADING=0" 42PACKAGECONFIG[multithreading] = "-DUA_MULTITHREADING=100, -DUA_MULTITHREADING=0"
43PACKAGECONFIG[namespace-full] = "-DUA_NAMESPACE_ZERO=FULL, , , , , namespace-reduced"
44PACKAGECONFIG[namespace-reduced] = "-DUA_NAMESPACE_ZERO=REDUCED, , , , , namespace-full"
40PACKAGECONFIG[pubsub] = "-DUA_ENABLE_PUBSUB=ON, -DUA_ENABLE_PUBSUB=OFF" 45PACKAGECONFIG[pubsub] = "-DUA_ENABLE_PUBSUB=ON, -DUA_ENABLE_PUBSUB=OFF"
41PACKAGECONFIG[pubsub-eth] = "-DUA_ENABLE_PUBSUB_ETH_UADP=ON, -DUA_ENABLE_PUBSUB_ETH_UADP=OFF" 46PACKAGECONFIG[pubsub-eth] = "-DUA_ENABLE_PUBSUB_ETH_UADP=ON, -DUA_ENABLE_PUBSUB_ETH_UADP=OFF"
42PACKAGECONFIG[subscriptions] = "-DUA_ENABLE_SUBSCRIPTIONS=ON, -DUA_ENABLE_SUBSCRIPTIONS=OFF" 47PACKAGECONFIG[subscriptions] = "-DUA_ENABLE_SUBSCRIPTIONS=ON, -DUA_ENABLE_SUBSCRIPTIONS=OFF"
@@ -51,3 +56,6 @@ do_configure:prepend:toolchain-clang:riscv32() {
51 sed -i -e 's/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)/' ${S}/CMakeLists.txt 56 sed -i -e 's/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)/' ${S}/CMakeLists.txt
52} 57}
53 58
59do_install:append(){
60 sed -i 's|${RECIPE_SYSROOT}|\$\{CMAKE_SYSROOT\}|g' ${D}${libdir}/cmake/open62541/open62541Targets.cmake
61}
diff --git a/meta-networking/recipes-protocols/openflow/openflow_git.bb b/meta-networking/recipes-protocols/openflow/openflow_git.bb
index aad044a043..1588245f8a 100644
--- a/meta-networking/recipes-protocols/openflow/openflow_git.bb
+++ b/meta-networking/recipes-protocols/openflow/openflow_git.bb
@@ -37,7 +37,6 @@ EXTRA_OECONF += " \
37 " 37 "
38DEPENDS:append:libc-musl = " libexecinfo" 38DEPENDS:append:libc-musl = " libexecinfo"
39 39
40S = "${WORKDIR}/git"
41 40
42inherit autotools-brokensep pkgconfig 41inherit autotools-brokensep pkgconfig
43 42
@@ -67,3 +66,8 @@ do_install:append() {
67} 66}
68 67
69FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" 68FILES:${PN} += "${nonarch_libdir}/tmpfiles.d"
69
70# http://errors.yoctoproject.org/Errors/Details/766898/
71# lib/flow.c:213:48: error: initialization of 'const struct arp_eth_header *' from incompatible pointer type 'struct arp_header *' [-Wincompatible-pointer-types]
72# lib/backtrace.c:126:32: error: passing argument 1 of 'backtrace' from incompatible pointer type [-Wincompatible-pointer-types]
73CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp/run-ptest b/meta-networking/recipes-protocols/openl2tp/openl2tp/run-ptest
index 01c9c7b447..a40b6c4228 100644
--- a/meta-networking/recipes-protocols/openl2tp/openl2tp/run-ptest
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp/run-ptest
@@ -30,13 +30,11 @@ else
30fi 30fi
31 31
32#read -p "Please input the network interface you use to test(such as eth0, em1 etc):" ETH_TEST 32#read -p "Please input the network interface you use to test(such as eth0, em1 etc):" ETH_TEST
33echo "Please input the network interface you use to test(such as eth0, em1 etc):" 33ETH_TEST=`ip route get 8.8.8.8 | awk -- '{print $5}'`
34read ETH_TEST > /dev/null
35
36if [ x"$ETH_TEST" = x ]; then 34if [ x"$ETH_TEST" = x ]; then
37 exit_cus "The network interface cannot be null" 1 35 exit_cus "The network interface cannot be null" 1
38fi 36fi
39ifconfig | grep $ETH_TEST > /dev/null || exit_cus "The network interface you provide is invalid" 1 37ip a | grep $ETH_TEST > /dev/null || exit_cus "The network interface you provide is invalid" 1
40 38
41# check openl2tp related kernel config 39# check openl2tp related kernel config
42zcat /proc/config.gz | grep CONFIG_L2TP=y > /dev/null || exit_cus "Failed to check CONFIG_L2TP=y, skip the tests." 1 40zcat /proc/config.gz | grep CONFIG_L2TP=y > /dev/null || exit_cus "Failed to check CONFIG_L2TP=y, skip the tests." 1
@@ -63,8 +61,7 @@ if [ x"$ETH_TEST" = x ]; then
63fi 61fi
64 62
65sed -i 's/eth2/'\"$ETH_TEST\"'/g' ${OPENL2TP_DIR}/ptest/test_procs.tcl 63sed -i 's/eth2/'\"$ETH_TEST\"'/g' ${OPENL2TP_DIR}/ptest/test_procs.tcl
66test_ip="`ifconfig $ETH_TEST | grep 'inet ' | sed 's/^.*inet addr://g' | \ 64test_ip="`ip addr show $ETH_TEST | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d '/' -f1`"
67 sed 's/ *Mask.*$//g'|sed 's/ *Bcast.*$//g'`"
68sed -i 's/192.168.0.1/'"$test_ip"'/g' ${OPENL2TP_DIR}/ptest/tunnel.test 65sed -i 's/192.168.0.1/'"$test_ip"'/g' ${OPENL2TP_DIR}/ptest/tunnel.test
69 66
70# load module l2tp_ppp 67# load module l2tp_ppp
@@ -73,7 +70,7 @@ lsmod | grep l2tp_ppp > /dev/null || exit_cus "FAIL: Load module l2tp_ppp" 2
73 70
74# start openl2tpd 71# start openl2tpd
75ps aux | grep openl2tpd | grep -v grep > /dev/null && killall openl2tpd > /dev/null 72ps aux | grep openl2tpd | grep -v grep > /dev/null && killall openl2tpd > /dev/null
76ppp_path=`rpm -ql openl2tp | grep ppp_null.so` 73ppp_path=`find / -name ppp_null.so`
77echo "test it here" 74echo "test it here"
78/usr/sbin/openl2tpd -d all -D -f -p ${ppp_path} & > /dev/null 75/usr/sbin/openl2tpd -d all -D -f -p ${ppp_path} & > /dev/null
79 76
@@ -95,3 +92,4 @@ else
95fi 92fi
96 93
97restore_file 94restore_file
95ps aux | grep openl2tpd | grep -v grep > /dev/null && killall openl2tpd > /dev/null
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
index f64c7340d1..4e5b45891d 100644
--- a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
@@ -41,14 +41,14 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \
41SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0" 41SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0"
42SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f" 42SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f"
43 43
44inherit autotools-brokensep pkgconfig systemd ptest 44inherit pkgconfig systemd ptest
45 45
46SYSTEMD_SERVICE:${PN} = "openl2tpd.service" 46SYSTEMD_SERVICE:${PN} = "openl2tpd.service"
47SYSTEMD_AUTO_ENABLE = "disable" 47SYSTEMD_AUTO_ENABLE = "disable"
48 48
49DEPENDS += "libtirpc" 49DEPENDS += "libtirpc"
50CPPFLAGS += "-I${STAGING_INCDIR}/tirpc" 50CPPFLAGS += "-I${STAGING_INCDIR}/tirpc"
51CFLAGS += "-I${STAGING_INCDIR}/tirpc" 51CFLAGS += "-I${STAGING_INCDIR}/tirpc -std=gnu17"
52LDFLAGS += "-ltirpc" 52LDFLAGS += "-ltirpc"
53 53
54PARALLEL_MAKE = "" 54PARALLEL_MAKE = ""
@@ -67,7 +67,9 @@ do_compile:prepend() {
67 ${S}/Makefile 67 ${S}/Makefile
68} 68}
69 69
70do_install:append () { 70do_install () {
71 oe_runmake 'DESTDIR=${D}' install
72
71 install -d ${D}${sysconfdir}/init.d 73 install -d ${D}${sysconfdir}/init.d
72 install -d ${D}${sysconfdir}/default 74 install -d ${D}${sysconfdir}/default
73 install -m 0755 ${S}/etc/rc.d/init.d/openl2tpd ${D}${sysconfdir}/init.d/openl2tpd 75 install -m 0755 ${S}/etc/rc.d/init.d/openl2tpd ${D}${sysconfdir}/init.d/openl2tpd
@@ -94,3 +96,4 @@ do_install_ptest () {
94} 96}
95 97
96RDEPENDS:${PN} = "ppp ppp-l2tp bash" 98RDEPENDS:${PN} = "ppp ppp-l2tp bash"
99RDEPENDS:${PN}-ptest += "rpcbind kernel-module-l2tp-ppp procps-ps tcl"
diff --git a/meta-networking/recipes-protocols/openlldp/openlldp_1.1.1.bb b/meta-networking/recipes-protocols/openlldp/openlldp_1.1.1.bb
index 010cd5af84..ad72b5cdde 100644
--- a/meta-networking/recipes-protocols/openlldp/openlldp_1.1.1.bb
+++ b/meta-networking/recipes-protocols/openlldp/openlldp_1.1.1.bb
@@ -5,7 +5,6 @@ HOMEPAGE = "http://open-lldp.org/start"
5LICENSE = "GPL-2.0-only" 5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8c2bc283e65df398ced5f5b747e78162" 6LIC_FILES_CHKSUM = "file://COPYING;md5=8c2bc283e65df398ced5f5b747e78162"
7 7
8S = "${WORKDIR}/git"
9 8
10inherit pkgconfig autotools 9inherit pkgconfig autotools
11inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} 10inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}
diff --git a/meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.10.0.bb b/meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.10.0.bb
index cabe18ef8a..a19b313cc3 100644
--- a/meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.10.0.bb
+++ b/meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.10.0.bb
@@ -18,7 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/sourceforge/pptpclient/pptp-${PV}.tar.gz \
18SRC_URI[md5sum] = "8d25341352fdae5ad5b36b9f18254908" 18SRC_URI[md5sum] = "8d25341352fdae5ad5b36b9f18254908"
19SRC_URI[sha256sum] = "82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4" 19SRC_URI[sha256sum] = "82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4"
20 20
21S = "${WORKDIR}/pptp-${PV}" 21S = "${UNPACKDIR}/pptp-${PV}"
22 22
23EXTRA_OEMAKE = "-e MAKEFLAGS=" 23EXTRA_OEMAKE = "-e MAKEFLAGS="
24 24
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb
index c8e1767114..42e9c4260f 100644
--- a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe_3.15.bb
@@ -5,7 +5,7 @@ LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581" 5LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=a194eaefae2be54ee3221339b10d0581"
6 6
7 7
8SRC_URI = "https://dianne.skoll.ca/projects/rp-pppoe/download/OLD/rp-pppoe-${PV}.tar.gz \ 8SRC_URI = "https://downloads.uls.co.za/rp-pppoe/rp-pppoe-${PV}.tar.gz \
9 file://top-autoconf.patch \ 9 file://top-autoconf.patch \
10 file://configure_in_cross.patch \ 10 file://configure_in_cross.patch \
11 file://update-config.patch \ 11 file://update-config.patch \
diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
index 8099fa5c6e..2cbb025049 100644
--- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
+++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
@@ -21,7 +21,7 @@ inherit autotools-brokensep
21LIBS:append:libc-musl = " -lssp_nonshared" 21LIBS:append:libc-musl = " -lssp_nonshared"
22LIBS:append:libc-glibc = " -lc_nonshared" 22LIBS:append:libc-glibc = " -lc_nonshared"
23 23
24S = "${WORKDIR}/tsocks-1.8" 24S = "${UNPACKDIR}/tsocks-1.8"
25 25
26FILES:${PN} = "${libdir}/* ${bindir}/tsocks" 26FILES:${PN} = "${libdir}/* ${bindir}/tsocks"
27FILES:${PN}-dev = "" 27FILES:${PN}-dev = ""
diff --git a/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb b/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb
index 4c18c6aff9..8f21620584 100644
--- a/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb
+++ b/meta-networking/recipes-protocols/usrsctp/usrsctp_git.bb
@@ -6,7 +6,6 @@ SRCREV = "848eca82f92273af9a79687a90343a2ebcf3481d"
6SRC_URI = "git://github.com/sctplab/usrsctp;protocol=https;branch=master \ 6SRC_URI = "git://github.com/sctplab/usrsctp;protocol=https;branch=master \
7 " 7 "
8 8
9S = "${WORKDIR}/git"
10 9
11UPSTREAM_CHECK_COMMITS = "1" 10UPSTREAM_CHECK_COMMITS = "1"
12 11
@@ -25,3 +24,4 @@ PACKAGECONFIG[inet6] = "--enable-inet6,--disable-inet6,"
25EXTRA_OECONF += "--disable-debug" 24EXTRA_OECONF += "--disable-debug"
26 25
27CVE_VERSION = "0.9.5.0" 26CVE_VERSION = "0.9.5.0"
27CVE_STATUS[CVE-2019-20503] = "cpe-incorrect: The current version (0.9.5.0) is not affected by the CVE which affects versions at least earlier than 0.9.4.0"
diff --git a/meta-networking/recipes-protocols/vsomeip/vsomeip/0003-Do-not-build-external-gtest.patch b/meta-networking/recipes-protocols/vsomeip/vsomeip/0003-Do-not-build-external-gtest.patch
deleted file mode 100644
index 09dab9a8b0..0000000000
--- a/meta-networking/recipes-protocols/vsomeip/vsomeip/0003-Do-not-build-external-gtest.patch
+++ /dev/null
@@ -1,187 +0,0 @@
1From b1bf398015bc090020459954e5cd1ec3b51b8ac3 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Tue, 11 Jul 2023 16:53:46 +0800
4Subject: [PATCH] Do not build external gtest
5
6We don't need to build external gtest since we already depend on
7googletest.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
12---
13 CMakeLists.txt | 11 ----
14 test/CMakeLists.txt | 22 +------
15 test/network_tests/CMakeLists.txt | 99 -------------------------------
16 3 files changed, 3 insertions(+), 129 deletions(-)
17
18diff --git a/CMakeLists.txt b/CMakeLists.txt
19index d791c12e..f1bcba27 100644
20--- a/CMakeLists.txt
21+++ b/CMakeLists.txt
22@@ -18,17 +18,6 @@ set (VSOMEIP_VERSION ${VSOMEIP_MAJOR_VERSION}.${VSOMEIP_MINOR_VERSION}.${VSOMEIP
23 set (PACKAGE_VERSION ${VSOMEIP_VERSION}) # Used in documentation/doxygen.in
24 set (CMAKE_VERBOSE_MAKEFILE off)
25
26-if (NOT GTEST_ROOT)
27- if (DEFINED ENV{GTEST_ROOT})
28- set(GTEST_ROOT $ENV{GTEST_ROOT})
29- else()
30- include(FetchContent)
31- FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG v1.14.0)
32- FetchContent_Populate(googletest)
33- set(GTEST_ROOT ${googletest_SOURCE_DIR})
34- endif()
35-endif()
36-
37 ###################################################################################################
38 # see http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file
39 ###################################################################################################
40diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
41index f66ac5d3..6f09bf40 100644
42--- a/test/CMakeLists.txt
43+++ b/test/CMakeLists.txt
44@@ -17,27 +17,11 @@ find_package(benchmark)
45 # remove export symbols from the cxx flags
46 string(REPLACE "${EXPORTSYMBOLS}" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
47
48-# check for set environment variable
49-if(${GTEST_ROOT} STREQUAL "n/a")
50- message(STATUS "GTEST_ROOT is not defined. For building the tests the variable
51- GTEST_ROOT has to be defined. Tests can not be built.")
52- # early exit
53- return() # test can not be build -> make commands build_tests and check are not available
54-else()
55- message(STATUS "GTEST_ROOT is set. gtest root path set to ${GTEST_ROOT}")
56+find_package(GTest)
57+if (NOT GTest_FOUND)
58+ message(WARNING "GTest is not found. Tests can not be built.")
59 endif()
60
61-# build google test as static library (always) -> therefore deactivate BUILD_SHARED_LIBS in case it is active
62-set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 0)
63-if ("${BUILD_SHARED_LIBS}" STREQUAL "ON")
64- set(BUILD_SHARED_LIBS OFF)
65- set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 1)
66-endif()
67-add_subdirectory(${GTEST_ROOT} ${CMAKE_CURRENT_BINARY_DIR}/gtest EXCLUDE_FROM_ALL)
68-if ("${BUILD_SHARED_LIBS_AUTOMATIC_OFF}" STREQUAL "1")
69- set(BUILD_SHARED_LIBS ON)
70- set(BUILD_SHARED_LIBS_AUTOMATIC_OFF 0)
71-endif()
72
73 ##############################################################################
74 # build tests
75diff --git a/test/network_tests/CMakeLists.txt b/test/network_tests/CMakeLists.txt
76index 883cc5cf..9a2a4f5e 100644
77--- a/test/network_tests/CMakeLists.txt
78+++ b/test/network_tests/CMakeLists.txt
79@@ -4116,105 +4116,6 @@ if(NOT ${TESTS_BAT})
80
81 endif()
82
83-##############################################################################
84-# Add for every test a dependency to gtest
85-##############################################################################
86-
87-if(NOT ${TESTS_BAT})
88- add_dependencies(${TEST_CONFIGURATION} gtest)
89- add_dependencies(${TEST_APPLICATION} gtest)
90- add_dependencies(${TEST_APPLICATION_SINGLE_PROCESS_NAME} gtest)
91- add_dependencies(${TEST_APPLICATION_AVAILABILITY_NAME} gtest)
92- add_dependencies(${TEST_MAGIC_COOKIES_CLIENT} gtest)
93- add_dependencies(${TEST_MAGIC_COOKIES_SERVICE} gtest)
94- add_dependencies(${TEST_HEADER_FACTORY} gtest)
95- add_dependencies(${TEST_HEADER_FACTORY_CLIENT} gtest)
96- add_dependencies(${TEST_HEADER_FACTORY_SERVICE} gtest)
97- add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
98- add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
99- add_dependencies(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE} gtest)
100- add_dependencies(${TEST_PAYLOAD_SERVICE} gtest)
101- add_dependencies(${TEST_PAYLOAD_CLIENT} gtest)
102- add_dependencies(${TEST_BIG_PAYLOAD_SERVICE} gtest)
103- add_dependencies(${TEST_BIG_PAYLOAD_CLIENT} gtest)
104- add_dependencies(${TEST_CLIENT_ID_SERVICE} gtest)
105- add_dependencies(${TEST_CLIENT_ID_UTILITY} gtest)
106- add_dependencies(${TEST_DEBOUNCE_CLIENT} gtest)
107- add_dependencies(${TEST_DEBOUNCE_SERVICE} gtest)
108- add_dependencies(${TEST_DEBOUNCE_FILTER_CLIENT} gtest)
109- add_dependencies(${TEST_DEBOUNCE_FILTER_SERVICE} gtest)
110- add_dependencies(${TEST_DEBOUNCE_CALLBACK_CLIENT} gtest)
111- add_dependencies(${TEST_DEBOUNCE_CALLBACK_SERVICE} gtest)
112- add_dependencies(${TEST_DEBOUNCE_FREQUENCY_CLIENT} gtest)
113- add_dependencies(${TEST_DEBOUNCE_FREQUENCY_SERVICE} gtest)
114- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_SERVICE} gtest)
115- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE} gtest)
116- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT} gtest)
117- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE} gtest)
118- add_dependencies(${TEST_CPU_LOAD_SERVICE} gtest)
119- add_dependencies(${TEST_CPU_LOAD_CLIENT} gtest)
120- add_dependencies(${TEST_INITIAL_EVENT_SERVICE} gtest)
121- add_dependencies(${TEST_INITIAL_EVENT_CLIENT} gtest)
122- add_dependencies(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER} gtest)
123- add_dependencies(${TEST_INITIAL_EVENT_STOP_SERVICE} gtest)
124- add_dependencies(${TEST_OFFER_SERVICE} gtest)
125- add_dependencies(${TEST_OFFER_CLIENT} gtest)
126- add_dependencies(${TEST_OFFER_SERVICE_EXTERNAL} gtest)
127- add_dependencies(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER} gtest)
128- add_dependencies(${TEST_OFFERED_SERVICES_INFO_CLIENT} gtest)
129- add_dependencies(${TEST_OFFERED_SERVICES_INFO_SERVICE} gtest)
130- add_dependencies(${TEST_PENDING_SUBSCRIPTION_SERVICE} gtest)
131- add_dependencies(${TEST_PENDING_SUBSCRIPTION_CLIENT} gtest)
132- add_dependencies(${TEST_MALICIOUS_DATA_SERVICE} gtest)
133- add_dependencies(${TEST_MALICIOUS_DATA_CLIENT} gtest)
134- if (${TEST_SECURITY})
135- add_dependencies(${TEST_SECURITY_SERVICE} gtest)
136- add_dependencies(${TEST_SECURITY_CLIENT} gtest)
137- endif()
138- add_dependencies(${TEST_E2E_SERVICE} gtest)
139- add_dependencies(${TEST_E2E_CLIENT} gtest)
140- if (${TEST_E2E_PROFILE_04})
141- add_dependencies(${TEST_E2E_PROFILE_04_SERVICE} gtest)
142- add_dependencies(${TEST_E2E_PROFILE_04_CLIENT} gtest)
143- endif()
144- if (${TEST_E2E_PROFILE_07})
145- add_dependencies(${TEST_E2E_PROFILE_07_SERVICE} gtest)
146- add_dependencies(${TEST_E2E_PROFILE_07_CLIENT} gtest)
147- endif()
148- add_dependencies(${TEST_EVENT_SERVICE} gtest)
149- add_dependencies(${TEST_EVENT_CLIENT} gtest)
150- if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "QNX")
151- add_dependencies(${TEST_NPDU_SERVICE_ONE} gtest)
152- add_dependencies(${TEST_NPDU_SERVICE_TWO} gtest)
153- add_dependencies(${TEST_NPDU_SERVICE_THREE} gtest)
154- add_dependencies(${TEST_NPDU_SERVICE_FOUR} gtest)
155- add_dependencies(${TEST_NPDU_CLIENT_ONE} gtest)
156- add_dependencies(${TEST_NPDU_CLIENT_TWO} gtest)
157- add_dependencies(${TEST_NPDU_CLIENT_THREE} gtest)
158- add_dependencies(${TEST_NPDU_CLIENT_FOUR} gtest)
159- add_dependencies(${TEST_NPDU_DAEMON_CLIENT} gtest)
160- add_dependencies(${TEST_NPDU_DAEMON_SERVICE} gtest)
161- endif()
162- add_dependencies(${TEST_SOMEIPTP_CLIENT} gtest)
163- add_dependencies(${TEST_SOMEIPTP_SERVICE} gtest)
164- if(${TEST_SECOND_ADDRESS})
165- add_dependencies(${TEST_SECOND_ADDRESS_CLIENT} gtest)
166- add_dependencies(${TEST_SECOND_ADDRESS_SERVICE} gtest)
167- endif()
168- add_dependencies(${TEST_SUSPEND_RESUME_CLIENT} gtest)
169- add_dependencies(${TEST_SUSPEND_RESUME_SERVICE} gtest)
170-else()
171- add_dependencies(${TEST_APPLICATION} gtest)
172- add_dependencies(${TEST_HEADER_FACTORY} gtest)
173- add_dependencies(${TEST_HEADER_FACTORY_CLIENT} gtest)
174- add_dependencies(${TEST_HEADER_FACTORY_SERVICE} gtest)
175- add_dependencies(${TEST_PAYLOAD_SERVICE} gtest)
176- add_dependencies(${TEST_PAYLOAD_CLIENT} gtest)
177- add_dependencies(${TEST_BIG_PAYLOAD_SERVICE} gtest)
178- add_dependencies(${TEST_BIG_PAYLOAD_CLIENT} gtest)
179- add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
180- add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
181-endif()
182
183 ##############################################################################
184 # Add tests to the target build_network_tests
185--
1862.25.1
187
diff --git a/meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch b/meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch
index 4bb2318555..2d789627a3 100644
--- a/meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch
+++ b/meta-networking/recipes-protocols/vsomeip/vsomeip/0004-Do-not-specify-PIE-flag-explicitly.patch
@@ -23,11 +23,9 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
23 CMakeLists.txt | 4 ++-- 23 CMakeLists.txt | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-) 24 1 file changed, 2 insertions(+), 2 deletions(-)
25 25
26diff --git a/CMakeLists.txt b/CMakeLists.txt
27index f1bcba27..2653a4df 100644
28--- a/CMakeLists.txt 26--- a/CMakeLists.txt
29+++ b/CMakeLists.txt 27+++ b/CMakeLists.txt
30@@ -60,12 +60,12 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") 28@@ -70,7 +70,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux"
31 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") 29 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
32 # This is only relevant for GCC and causes warnings on Clang 30 # This is only relevant for GCC and causes warnings on Clang
33 set(EXPORTSYMBOLS "-Wl,-export-dynamic -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exportmap.gcc") 31 set(EXPORTSYMBOLS "-Wl,-export-dynamic -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exportmap.gcc")
@@ -36,12 +34,12 @@ index f1bcba27..2653a4df 100644
36 endif() 34 endif()
37 35
38 set(NO_DEPRECATED "") 36 set(NO_DEPRECATED "")
39 set(OPTIMIZE "") 37@@ -78,7 +78,7 @@ endif()
40- set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wpedantic -Werror -fPIE") 38 if(NOT DEFINED _FORTIFY_SOURCE)
41+ set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wpedantic") 39 set(_FORTIFY_SOURCE 2)
40 endif()
41- set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic -Werror -fPIE")
42+ set(OS_CXX_FLAGS "${OS_CXX_FLAGS} -D_GLIBCXX_USE_NANOSLEEP -pthread -O -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector-strong -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_FORTIFY_SOURCE=${_FORTIFY_SOURCE} -Wformat -Wformat-security -Wpedantic")
42 43
43 # force all use of std::mutex and std::recursive_mutex to use runtime init 44 # force all use of std::mutex and std::recursive_mutex to use runtime init
44 # instead of static initialization so mutexes can be hooked to enable PI as needed 45 # instead of static initialization so mutexes can be hooked to enable PI as needed
45--
462.25.1
47
diff --git a/meta-networking/recipes-protocols/vsomeip/vsomeip_3.4.10.bb b/meta-networking/recipes-protocols/vsomeip/vsomeip_3.5.3.bb
index 4c38970205..f854078004 100644
--- a/meta-networking/recipes-protocols/vsomeip/vsomeip_3.4.10.bb
+++ b/meta-networking/recipes-protocols/vsomeip/vsomeip_3.5.3.bb
@@ -7,15 +7,17 @@ SECTION = "net"
7LICENSE = "MPL-2.0" 7LICENSE = "MPL-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
9 9
10GTEST_VER = "1.15.2"
10SRC_URI = "git://github.com/GENIVI/${BPN}.git;branch=master;protocol=https;name=vsomeip \ 11SRC_URI = "git://github.com/GENIVI/${BPN}.git;branch=master;protocol=https;name=vsomeip \
12 https://github.com/google/googletest/releases/download/v${GTEST_VER}/googletest-${GTEST_VER}.tar.gz;name=gtest;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/ \
11 file://0001-Fix-pkgconfig-dir-for-multilib.patch \ 13 file://0001-Fix-pkgconfig-dir-for-multilib.patch \
12 file://0002-Install-example-configuration-files-to-etc-vsomeip.patch \ 14 file://0002-Install-example-configuration-files-to-etc-vsomeip.patch \
13 file://0003-Do-not-build-external-gtest.patch \
14 file://0004-Do-not-specify-PIE-flag-explicitly.patch \ 15 file://0004-Do-not-specify-PIE-flag-explicitly.patch \
15 file://0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch \ 16 file://0005-test-common-CMakeLists.txt-add-missing-link-with-dlt.patch \
16 " 17 "
17 18
18SRCREV = "02c199dff8aba814beebe3ca417fd991058fe90c" 19SRCREV = "6461369b3874c844642c9adaac9d1b7406794ab8"
20SRC_URI[gtest.sha256sum] = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926"
19 21
20COMPATIBLE_HOST:mips = "null" 22COMPATIBLE_HOST:mips = "null"
21COMPATIBLE_HOST:mips64 = "null" 23COMPATIBLE_HOST:mips64 = "null"
@@ -24,12 +26,12 @@ COMPATIBLE_HOST:libc-musl = 'null'
24 26
25DEPENDS = "boost dlt-daemon googletest" 27DEPENDS = "boost dlt-daemon googletest"
26 28
27S = "${WORKDIR}/git"
28 29
29inherit cmake pkgconfig 30inherit cmake pkgconfig
30 31
31EXTRA_OECMAKE = "-DINSTALL_LIB_DIR:PATH=${baselib} \ 32EXTRA_OECMAKE = "-DINSTALL_LIB_DIR:PATH=${baselib} \
32 -DINSTALL_CMAKE_DIR:PATH=${baselib}/cmake/vsomeip3 \ 33 -DINSTALL_CMAKE_DIR:PATH=${baselib}/cmake/vsomeip3 \
34 -DGTEST_ROOT=${S}/googletest-${GTEST_VER} \
33 " 35 "
34 36
35# For vsomeip-test 37# For vsomeip-test
@@ -61,7 +63,7 @@ do_install:append() {
61 63
62 for d in unit_tests network_tests; do 64 for d in unit_tests network_tests; do
63 install -d ${D}/opt/${PN}-test/test/$d 65 install -d ${D}/opt/${PN}-test/test/$d
64 cp -f ${B}/test/$d/*test* ${D}/opt/${PN}-test/test/$d 66 cp -rf ${B}/test/$d/*_tests ${D}/opt/${PN}-test/test/$d
65 done 67 done
66} 68}
67 69
@@ -73,3 +75,4 @@ FILES:${PN}-dbg += " \
73FILES:${PN}-test = " \ 75FILES:${PN}-test = " \
74 /opt/${PN}-test \ 76 /opt/${PN}-test \
75 " 77 "
78SKIP_RECIPE[vsomeip] ?= "Does not work with boost >= 1.87"
diff --git a/meta-networking/recipes-protocols/xl2tpd/xl2tpd/0001-Fix-build-with-GCC-15.patch b/meta-networking/recipes-protocols/xl2tpd/xl2tpd/0001-Fix-build-with-GCC-15.patch
new file mode 100644
index 0000000000..2ba927bf0e
--- /dev/null
+++ b/meta-networking/recipes-protocols/xl2tpd/xl2tpd/0001-Fix-build-with-GCC-15.patch
@@ -0,0 +1,39 @@
1From 754b0ca247b2d789f9f613f8757b9732494e9489 Mon Sep 17 00:00:00 2001
2From: Yaakov Selkowitz <yselkowi@redhat.com>
3Date: Thu, 6 Mar 2025 21:03:28 -0500
4Subject: [PATCH] Fix build with GCC 15
5
6GCC 15 defaults to C23, in which the interpretation of function
7declarations without parameters changed from unspecified to `void`. This
8results in `control_handle_lac_status` not being compatible with the
9expected callback function type. Adding the expected type parameters,
10albeit unused, fixes the compatibility.
11
12Upstream-Status: Submitted [https://github.com/xelerance/xl2tpd/pull/272]
13Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
14---
15 xl2tpd.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/xl2tpd.c b/xl2tpd.c
19index 3195988..0d148e9 100644
20--- a/xl2tpd.c
21+++ b/xl2tpd.c
22@@ -74,7 +74,7 @@ static int control_handle_lac_hangup(FILE* resf, char* bufp);
23 static int control_handle_lac_disconnect(FILE* resf, char* bufp);
24 static int control_handle_lac_add_modify(FILE* resf, char* bufp);
25 static int control_handle_lac_remove(FILE* resf, char* bufp);
26-static int control_handle_lac_status();
27+static int control_handle_lac_status(FILE*, char*);
28 static int control_handle_lns_remove(FILE* resf, char* bufp);
29
30 static struct control_requests_handler control_handlers[] = {
31@@ -1541,7 +1541,7 @@ static int control_handle_lac_remove(FILE* resf, char* bufp){
32 return 1;
33 }
34
35-static int control_handle_lac_status(){
36+static int control_handle_lac_status(FILE*, char*){
37 show_status ();
38 return 1;
39 }
diff --git a/meta-networking/recipes-protocols/xl2tpd/xl2tpd_1.3.16.bb b/meta-networking/recipes-protocols/xl2tpd/xl2tpd_1.3.16.bb
index 08bab4a338..e1638bfa19 100644
--- a/meta-networking/recipes-protocols/xl2tpd/xl2tpd_1.3.16.bb
+++ b/meta-networking/recipes-protocols/xl2tpd/xl2tpd_1.3.16.bb
@@ -8,12 +8,13 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
8LICENSE = "GPL-2.0-only" 8LICENSE = "GPL-2.0-only"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" 9LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
10 10
11SRC_URI = "git://github.com/xelerance/xl2tpd.git;branch=master;protocol=https" 11SRC_URI = "git://github.com/xelerance/xl2tpd.git;branch=master;protocol=https \
12 file://0001-Fix-build-with-GCC-15.patch \
13"
12SRCREV = "1ef2a025981223c1e16fc833bef226c86ff8c295" 14SRCREV = "1ef2a025981223c1e16fc833bef226c86ff8c295"
13 15
14UPSTREAM_CHECK_URI = "https://github.com/xelerance/xl2tpd/releases" 16UPSTREAM_CHECK_URI = "https://github.com/xelerance/xl2tpd/releases"
15 17
16S = "${WORKDIR}/git"
17 18
18inherit update-rc.d 19inherit update-rc.d
19 20
diff --git a/meta-networking/recipes-support/arptables/arptables_git.bb b/meta-networking/recipes-support/arptables/arptables_git.bb
index f9dd66f605..be2cfb0816 100644
--- a/meta-networking/recipes-support/arptables/arptables_git.bb
+++ b/meta-networking/recipes-support/arptables/arptables_git.bb
@@ -14,7 +14,6 @@ SRC_URI = " \
14SRC_URI[arptables.md5sum] = "1d4ab05761f063b0751645d8f2b8f8e5" 14SRC_URI[arptables.md5sum] = "1d4ab05761f063b0751645d8f2b8f8e5"
15SRC_URI[arptables.sha256sum] = "e529fd465c67d69ad335299a043516e6b38cdcd337a5ed21718413e96073f928" 15SRC_URI[arptables.sha256sum] = "e529fd465c67d69ad335299a043516e6b38cdcd337a5ed21718413e96073f928"
16 16
17S = "${WORKDIR}/git"
18SYSTEMD_SERVICE:${PN} = "arptables.service" 17SYSTEMD_SERVICE:${PN} = "arptables.service"
19 18
20inherit systemd 19inherit systemd
diff --git a/meta-networking/recipes-support/bmon/bmon_4.0.bb b/meta-networking/recipes-support/bmon/bmon_4.0.bb
index c974d54fe8..f47069471a 100644
--- a/meta-networking/recipes-support/bmon/bmon_4.0.bb
+++ b/meta-networking/recipes-support/bmon/bmon_4.0.bb
@@ -9,4 +9,3 @@ SRC_URI = "git://github.com/tgraf/bmon.git;branch=master;protocol=https"
9 9
10inherit autotools pkgconfig 10inherit autotools pkgconfig
11 11
12S = "${WORKDIR}/git"
diff --git a/meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb
index cf0fc1c33d..59e3dbae5f 100644
--- a/meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb
+++ b/meta-networking/recipes-support/bridge-utils/bridge-utils_1.7.1.bb
@@ -15,9 +15,8 @@ SRC_URI = "\
15 file://0004-cleanup-includes.patch \ 15 file://0004-cleanup-includes.patch \
16" 16"
17 17
18S = "${WORKDIR}/git"
19 18
20DEPENDS = "sysfsutils" 19CVE_PRODUCT = "kernel:bridge-utils"
21 20
22inherit autotools-brokensep update-alternatives 21inherit autotools-brokensep update-alternatives
23 22
diff --git a/meta-networking/recipes-support/celt051/celt051_git.bb b/meta-networking/recipes-support/celt051/celt051_git.bb
index 4842a0fbdf..a9a664c196 100644
--- a/meta-networking/recipes-support/celt051/celt051_git.bb
+++ b/meta-networking/recipes-support/celt051/celt051_git.bb
@@ -21,7 +21,6 @@ SRC_URI = "git://gitlab.xiph.org/xiph/celt.git;branch=compat-v0.5.1;protocol=htt
21 file://0001-tests-Include-entcode.c-into-test-sources-to-provide.patch \ 21 file://0001-tests-Include-entcode.c-into-test-sources-to-provide.patch \
22 " 22 "
23 23
24S = "${WORKDIR}/git"
25 24
26inherit pkgconfig autotools-brokensep 25inherit pkgconfig autotools-brokensep
27 26
diff --git a/meta-networking/recipes-support/chrony/chrony_4.5.bb b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb
index 0681a34393..5ac3e6d37e 100644
--- a/meta-networking/recipes-support/chrony/chrony_4.5.bb
+++ b/meta-networking/recipes-support/chrony/chrony_4.6.1.bb
@@ -30,7 +30,7 @@ SECTION = "net"
30LICENSE = "GPL-2.0-only" 30LICENSE = "GPL-2.0-only"
31LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 31LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
32 32
33SRC_URI = "https://download.tuxfamily.org/chrony/chrony-${PV}.tar.gz \ 33SRC_URI = "https://chrony-project.org/releases/chrony-${PV}.tar.gz \
34 file://chrony.conf \ 34 file://chrony.conf \
35 file://chronyd \ 35 file://chronyd \
36 file://arm_eabi.patch \ 36 file://arm_eabi.patch \
@@ -39,7 +39,7 @@ SRC_URI = "https://download.tuxfamily.org/chrony/chrony-${PV}.tar.gz \
39SRC_URI:append:libc-musl = " \ 39SRC_URI:append:libc-musl = " \
40 file://0001-Fix-compilation-with-musl.patch \ 40 file://0001-Fix-compilation-with-musl.patch \
41" 41"
42SRC_URI[sha256sum] = "19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422" 42SRC_URI[sha256sum] = "571ff73fbf0ae3097f0604eca2e00b1d8bb2e91affe1a3494785ff21d6199c5c"
43 43
44DEPENDS = "pps-tools" 44DEPENDS = "pps-tools"
45 45
@@ -48,9 +48,9 @@ DEPENDS = "pps-tools"
48inherit update-rc.d systemd pkgconfig 48inherit update-rc.d systemd pkgconfig
49 49
50# Add chronyd user if privdrop packageconfig is selected 50# Add chronyd user if privdrop packageconfig is selected
51inherit ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)} 51inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'privdrop', 'useradd', '', d)}
52USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}" 52USERADD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '${PN}', '', d)}"
53USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /bin/nologin chronyd;', '', d)}" 53USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'privdrop', '--system -d / -M --shell /sbin/nologin chronyd;', '', d)}"
54 54
55# Configuration options: 55# Configuration options:
56# - Security-related: 56# - Security-related:
@@ -67,6 +67,7 @@ PACKAGECONFIG[sechash] = "--without-tomcrypt,--disable-sechash,nss"
67PACKAGECONFIG[privdrop] = ",--disable-privdrop,libcap" 67PACKAGECONFIG[privdrop] = ",--disable-privdrop,libcap"
68PACKAGECONFIG[scfilter] = "--enable-scfilter,--without-seccomp,libseccomp" 68PACKAGECONFIG[scfilter] = "--enable-scfilter,--without-seccomp,libseccomp"
69PACKAGECONFIG[ipv6] = ",--disable-ipv6," 69PACKAGECONFIG[ipv6] = ",--disable-ipv6,"
70PACKAGECONFIG[nts] = ",--disable-nts,gnutls"
70 71
71# --disable-static isn't supported by chrony's configure script. 72# --disable-static isn't supported by chrony's configure script.
72DISABLE_STATIC = "" 73DISABLE_STATIC = ""
diff --git a/meta-networking/recipes-support/cifs/cifs-utils_7.0.bb b/meta-networking/recipes-support/cifs/cifs-utils_7.0.bb
index c78bbae7b8..e2918503be 100644
--- a/meta-networking/recipes-support/cifs/cifs-utils_7.0.bb
+++ b/meta-networking/recipes-support/cifs/cifs-utils_7.0.bb
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
7SRCREV = "316522036133d44ed02cd39ed2748e2b59c85b30" 7SRCREV = "316522036133d44ed02cd39ed2748e2b59c85b30"
8SRC_URI = "git://git.samba.org/cifs-utils.git;branch=master" 8SRC_URI = "git://git.samba.org/cifs-utils.git;branch=master"
9 9
10S = "${WORKDIR}/git"
11DEPENDS += "libtalloc" 10DEPENDS += "libtalloc"
12 11
13PACKAGECONFIG ??= "" 12PACKAGECONFIG ??= ""
diff --git a/meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch b/meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch
new file mode 100644
index 0000000000..1712a53462
--- /dev/null
+++ b/meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch
@@ -0,0 +1,36 @@
1From ebe9144fdfdc8154661b93322cec4a1c43aa75ff Mon Sep 17 00:00:00 2001
2From: alperak <alperyasinak1@gmail.com>
3Date: Tue, 1 Oct 2024 19:45:38 +0300
4Subject: [PATCH] Fix invalid conversion from int to CURLoption
5
6Options.hpp:281:74: error: invalid conversion from 'int' to 'CURLoption' [-fpermissive]
7 281 | typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
8 | ^
9 | |
10 | int
11
12Fix invalid conversion by adding explicit cast to CURLoption
13
14Upstream-Status: Pending
15
16Signed-off-by: alperak <alperyasinak1@gmail.com>
17---
18 include/curlpp/Options.hpp | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/include/curlpp/Options.hpp b/include/curlpp/Options.hpp
22index c705c9d..7c9a501 100644
23--- a/include/curlpp/Options.hpp
24+++ b/include/curlpp/Options.hpp
25@@ -278,7 +278,7 @@ namespace options
26 typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_LIMIT> LowSpeedLimit;
27 typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_TIME> LowSpeedTime;
28 typedef curlpp::OptionTrait<long, CURLOPT_MAXCONNECTS> MaxConnects;
29- typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
30+ typedef curlpp::OptionTrait<curl_closepolicy, (CURLoption)CURLOPT_CLOSEPOLICY> ClosePolicy;
31 typedef curlpp::OptionTrait<bool, CURLOPT_FRESH_CONNECT> FreshConnect;
32 typedef curlpp::OptionTrait<bool, CURLOPT_FORBID_REUSE> ForbidReuse;
33 typedef curlpp::OptionTrait<long, CURLOPT_CONNECTTIMEOUT> ConnectTimeout;
34--
352.25.1
36
diff --git a/meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb b/meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb
index 131f1873a2..25ea1fdefb 100644
--- a/meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb
+++ b/meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb
@@ -8,11 +8,11 @@ DEPENDS = "curl"
8DEPENDS:class-native = "curl-native" 8DEPENDS:class-native = "curl-native"
9 9
10SRC_URI = "git://github.com/jpbarrette/curlpp.git;branch=master;protocol=https \ 10SRC_URI = "git://github.com/jpbarrette/curlpp.git;branch=master;protocol=https \
11 file://0001-curlpp-config.in-Remove-references-to-absolute-build.patch" 11 file://0001-curlpp-config.in-Remove-references-to-absolute-build.patch \
12 file://0002-fix-invalid-conversion-from-int-to-CURLoption.patch"
12 13
13SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f" 14SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"
14 15
15S = "${WORKDIR}/git"
16 16
17inherit cmake pkgconfig binconfig 17inherit cmake pkgconfig binconfig
18 18
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.91.bb
index be74759d5e..25f2d4c09a 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.91.bb
@@ -12,12 +12,11 @@ DEPENDS += "gettext-native"
12#at least versions 2.69 and prior are moved to the archive folder on the server 12#at least versions 2.69 and prior are moved to the archive folder on the server
13SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getVar('PV').split('.')[1]) > 69]}dnsmasq-${PV}.tar.gz \ 13SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getVar('PV').split('.')[1]) > 69]}dnsmasq-${PV}.tar.gz \
14 file://init \ 14 file://init \
15 file://dnsmasq.conf \
16 file://dnsmasq-resolvconf.service \ 15 file://dnsmasq-resolvconf.service \
17 file://dnsmasq-noresolvconf.service \ 16 file://dnsmasq-noresolvconf.service \
18 file://dnsmasq-resolved.conf \ 17 file://dnsmasq-resolved.conf \
19" 18"
20SRC_URI[sha256sum] = "8f6666b542403b5ee7ccce66ea73a4a51cf19dd49392aaccd37231a2c51b303b" 19SRC_URI[sha256sum] = "2d26a048df452b3cfa7ba05efbbcdb19b12fe7a0388761eb5d00938624bd76c8"
21 20
22inherit pkgconfig update-rc.d systemd 21inherit pkgconfig update-rc.d systemd
23 22
@@ -25,8 +24,13 @@ INITSCRIPT_NAME = "dnsmasq"
25INITSCRIPT_PARAMS = "defaults" 24INITSCRIPT_PARAMS = "defaults"
26 25
27# dnsmasq defaults 26# dnsmasq defaults
28PACKAGECONFIG ?= "auth dhcp dhcp6 dumpfile inotify ipset loop script tftp" 27PACKAGECONFIG ?= "\
28 auth dhcp dumpfile inotify ipset loop script tftp \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'dhcp6', '', d)} \
30 ${@bb.utils.contains('MACHINE_FEATURES', 'rtc', '', 'broken-rtc', d)} \
31"
29 32
33# see src/config.h
30PACKAGECONFIG[auth] = "-DHAVE_AUTH,-DNO_AUTH" 34PACKAGECONFIG[auth] = "-DHAVE_AUTH,-DNO_AUTH"
31PACKAGECONFIG[broken-rtc] = "-DHAVE_BROKEN_RTC," 35PACKAGECONFIG[broken-rtc] = "-DHAVE_BROKEN_RTC,"
32PACKAGECONFIG[conntrack] = "-DHAVE_CONNTRACK,,libnetfilter-conntrack" 36PACKAGECONFIG[conntrack] = "-DHAVE_CONNTRACK,,libnetfilter-conntrack"
@@ -81,7 +85,7 @@ do_install () {
81 "MANDIR=${D}${mandir}" \ 85 "MANDIR=${D}${mandir}" \
82 install-i18n 86 install-i18n
83 install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d 87 install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
84 install -m 644 ${UNPACKDIR}/dnsmasq.conf ${D}${sysconfdir}/ 88 install -m 644 ${S}/dnsmasq.conf.example ${D}${sysconfdir}/dnsmasq.conf
85 install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq 89 install -m 755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
86 90
87 install -d ${D}${systemd_unitdir}/system 91 install -d ${D}${systemd_unitdir}/system
diff --git a/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf b/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf
deleted file mode 100755
index 2897b90300..0000000000
--- a/meta-networking/recipes-support/dnsmasq/files/dnsmasq.conf
+++ /dev/null
@@ -1,298 +0,0 @@
1# Configuration file for dnsmasq.
2#
3# Format is one option per line, legal options are the same
4# as the long options legal on the command line. See
5# "/usr/bin/dnsmasq --help" or "man 8 dnsmasq" for details.
6
7# Listen on this specific port instead of the standard DNS port
8# (53). Setting this to zero completely disables DNS function,
9# leaving only DHCP and/or TFTP.
10#port=5353
11
12# Change these lines if you want dnsmasq to serve MX records.
13# Only one of mx-host and mx-target need be set, the other defaults
14# to the name of the host running dnsmasq.
15#mx-host=
16#mx-target=
17#selfmx
18#localmx
19
20# The following two options make you a better netizen, since they
21# tell dnsmasq to filter out queries which the public DNS cannot
22# answer, and which load the servers (especially the root servers)
23# uneccessarily. If you have a dial-on-demand link they also stop
24# these requests from bringing up the link uneccessarily.
25
26# Never forward plain names (with a dot or domain part)
27domain-needed
28# Never forward addresses in the non-routed address spaces.
29bogus-priv
30
31
32# Uncomment this to filter useless windows-originated DNS requests
33# which can trigger dial-on-demand links needlessly.
34# Note that (amongst other things) this blocks all SRV requests,
35# so don't use it if you use eg Kerberos.
36#filterwin2k
37
38# Change this line if you want dns to get its upstream servers from
39# somewhere other that /etc/resolv.conf
40#resolv-file=
41
42# By default, dnsmasq will send queries to any of the upstream
43# servers it knows about and tries to favour servers to are known
44# to be up. Uncommenting this forces dnsmasq to try each query
45# with each server strictly in the order they appear in
46# /etc/resolv.conf
47#strict-order
48
49# If you don't want dnsmasq to read /etc/resolv.conf or any other
50# file, getting its servers for this file instead (see below), then
51# uncomment this
52#no-resolv
53
54# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
55# files for changes and re-read them then uncomment this.
56#no-poll
57
58# Add other name servers here, with domain specs if they are for
59# non-public domains.
60#server=/localnet/192.168.0.1
61
62# Add local-only domains here, queries in these domains are answered
63# from /etc/hosts or DHCP only.
64#local=/localnet/
65
66# Add domains which you want to force to an IP address here.
67# The example below send any host in doubleclick.net to a local
68# webserver.
69#address=/doubleclick.net/127.0.0.1
70
71# You no longer (as of version 1.7) need to set these to enable
72# dnsmasq to read /etc/ppp/resolv.conf since dnsmasq now uses the
73# "dip" group to achieve this.
74#user=
75#group=
76
77# If you want dnsmasq to listen for requests only on specified interfaces
78# (and the loopback) give the name of the interface (eg eth0) here.
79# Repeat the line for more than one interface.
80#interface=
81# Or you can specify which interface _not_ to listen on
82#except-interface=
83# Or which to listen on by address (remember to include 127.0.0.1 if
84# you use this.)
85#listen-address=127.0.0.1
86
87# On systems which support it, dnsmasq binds the wildcard address,
88# even when it is listening on only some interfaces. It then discards
89# requests that it shouldn't reply to. This has the advantage of
90# working even when interfaces come and go and change address. If you
91# want dnsmasq to really bind only the interfaces it is listening on,
92# uncomment this option. About the only time you may need this is when
93# running another nameserver on the same machine.
94#bind-interfaces
95
96# If you don't want dnsmasq to read /etc/hosts, uncomment the
97# following line.
98#no-hosts
99# or if you want it to read another file, as well as /etc/hosts, use
100# this.
101#addn-hosts=/etc/banner_add_hosts
102
103# Set this (and domain: see below) if you want to have a domain
104# automatically added to simple names in a hosts-file.
105#expand-hosts
106
107# Set the domain for dnsmasq. this is optional, but if it is set, it
108# does the following things.
109# 1) Allows DHCP hosts to have fully qualified domain names, as long
110# as the domain part matches this setting.
111# 2) Sets the "domain" DHCP option thereby potentially setting the
112# domain of all systems configured by DHCP
113# 3) Provides the domain part for "expand-hosts"
114#domain=thekelleys.org.uk
115
116# Uncomment this to enable the integrated DHCP server, you need
117# to supply the range of addresses available for lease and optionally
118# a lease time. If you have more than one network, you will need to
119# repeat this for each network on which you want to supply DHCP
120# service.
121#dhcp-range=192.168.0.50,192.168.0.150,12h
122#dhcp-range=10.0.0.10,10.0.0.200,2h
123
124# This is an example of a DHCP range where the netmask is given. This
125# is needed for networks we reach the dnsmasq DHCP server via a relay
126# agent. If you don't know what a DHCP relay agent is, you probably
127# don't need to worry about this.
128#dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
129
130# This is an example of a DHCP range with a network-id, so that
131# some DHCP options may be set only for this network.
132#dhcp-range=red,192.168.0.50,192.168.0.150
133
134# Supply parameters for specified hosts using DHCP. There are lots
135# of valid alternatives, so we will give examples of each. Note that
136# IP addresses DO NOT have to be in the range given above, they just
137# need to be on the same network. The order of the parameters in these
138# do not matter, it's permissble to give name,adddress and MAC in any order
139
140# Always allocate the host with ethernet address 11:22:33:44:55:66
141# The IP address 192.168.0.60
142#dhcp-host=11:22:33:44:55:66,192.168.0.60
143
144# Always set the name of the host with hardware address
145# 11:22:33:44:55:66 to be "fred"
146#dhcp-host=11:22:33:44:55:66,fred
147
148# Always give the host with ethernet address 11:22:33:44:55:66
149# the name fred and IP address 192.168.0.60 and lease time 45 minutes
150#dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m
151
152# Give the machine which says it's name is "bert" IP address
153# 192.168.0.70 and an infinite lease
154#dhcp-host=bert,192.168.0.70,infinite
155
156# Always give the host with client identifier 01:02:02:04
157# the IP address 192.168.0.60
158#dhcp-host=id:01:02:02:04,192.168.0.60
159
160# Always give the host with client identifier "marjorie"
161# the IP address 192.168.0.60
162#dhcp-host=id:marjorie,192.168.0.60
163
164# Enable the address given for "judge" in /etc/hosts
165# to be given to a machine presenting the name "judge" when
166# it asks for a DHCP lease.
167#dhcp-host=judge
168
169# Never offer DHCP service to a machine whose ethernet
170# address is 11:22:33:44:55:66
171#dhcp-host=11:22:33:44:55:66,ignore
172
173# Ignore any client-id presented by the machine with ethernet
174# address 11:22:33:44:55:66. This is useful to prevent a machine
175# being treated differently when running under different OS's or
176# between PXE boot and OS boot.
177#dhcp-host=11:22:33:44:55:66,id:*
178
179# Send extra options which are tagged as "red" to
180# the machine with ethernet address 11:22:33:44:55:66
181#dhcp-host=11:22:33:44:55:66,net:red
182
183# Send extra options which are tagged as "red" to any machine whose
184# DHCP vendorclass string includes the substring "Linux"
185#dhcp-vendorclass=red,Linux
186
187# Send extra options which are tagged as "red" to any machine one
188# of whose DHCP userclass strings includes the substring "accounts"
189#dhcp-userclass=red,accounts
190
191# If this line is uncommented, dnsmasq will read /etc/ethers and act
192# on the ethernet-address/IP pairs found there just as if they had
193# been given as --dhcp-host options. Useful if you keep
194# MAC-address/host mappings there for other purposes.
195#read-ethers
196
197# Send options to hosts which ask for a DHCP lease.
198# See RFC 2132 for details of available options.
199# Note that all the common settings, such as netmask and
200# broadcast address, DNS server and default route, are given
201# sane defaults by dnsmasq. You very likely will not need any
202# any dhcp-options. If you use Windows clients and Samba, there
203# are some options which are recommended, they are detailed at the
204# end of this section.
205# For reference, the common options are:
206# subnet mask - 1
207# default router - 3
208# DNS server - 6
209# broadcast address - 28
210
211# Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5
212#dhcp-option=42,192.168.0.4,10.10.0.5
213
214# Set the NTP time server address to be the same machine as
215# is running dnsmasq
216#dhcp-option=42,0.0.0.0
217
218# Set the NIS domain name to "welly"
219#dhcp-option=40,welly
220
221# Set the default time-to-live to 50
222#dhcp-option=23,50
223
224# Set the "all subnets are local" flag
225#dhcp-option=27,1
226
227# Send the etherboot magic flag and then etherboot options (a string).
228#dhcp-option=128,e4:45:74:68:00:00
229#dhcp-option=129,NIC=eepro100
230
231# Specify an option which will only be sent to the "red" network
232# (see dhcp-range for the declaration of the "red" network)
233#dhcp-option=red,42,192.168.1.1
234
235# The following DHCP options set up dnsmasq in the same way as is specified
236# for the ISC dhcpcd in
237# http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
238# adapted for a typical dnsmasq installation where the host running
239# dnsmasq is also the host running samba.
240# you may want to uncomment them if you use Windows clients and Samba.
241#dhcp-option=19,0 # option ip-forwarding off
242#dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
243#dhcp-option=45,0.0.0.0 # netbios datagram distribution server
244#dhcp-option=46,8 # netbios node type
245#dhcp-option=47 # empty netbios scope.
246
247
248# Set the boot filename and tftpd server name and address
249# for BOOTP. You will only need this is you want to
250# boot machines over the network.
251#dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3
252
253# Set the limit on DHCP leases, the default is 150
254#dhcp-lease-max=150
255
256# The DHCP server needs somewhere on disk to keep its lease database.
257# This defaults to a sane location, but if you want to change it, use
258# the line below.
259#dhcp-leasefile=/var/lib/misc/dnsmasq.leases
260
261# Set the cachesize here.
262#cache-size=150
263
264# If you want to disable negative caching, uncomment this.
265#no-negcache
266
267# Normally responses which come form /etc/hosts and the DHCP lease
268# file have Time-To-Live set as zero, which conventionally means
269# do not cache further. If you are happy to trade lower load on the
270# server for potentially stale date, you can set a time-to-live (in
271# seconds) here.
272#local-ttl=
273
274# If you want dnsmasq to detect attempts by Verisign to send queries
275# to unregistered .com and .net hosts to its sitefinder service and
276# have dnsmasq instead return the correct NXDOMAIN response, uncomment
277# this line. You can add similar lines to do the same for other
278# registries which have implemented wildcard A records.
279#bogus-nxdomain=64.94.110.11
280
281# If you want to fix up DNS results from upstream servers, use the
282# alias option. This only works for IPv4.
283# This alias makes a result of 1.2.3.4 appear as 5.6.7.8
284#alias=1.2.3.4,5.6.7.8
285# and this maps 1.2.3.x to 5.6.7.x
286#alias=1.2.3.0,5.6.7.0,255.255.255.0
287
288# For debugging purposes, log each DNS query as it passes through
289# dnsmasq.
290#log-queries
291
292# Include a another lot of configuration options.
293#conf-file=/etc/dnsmasq.more.conf
294
295
296
297
298
diff --git a/meta-networking/recipes-support/dovecot/dovecot/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830.patch b/meta-networking/recipes-support/dovecot/dovecot/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830.patch
new file mode 100644
index 0000000000..0765d963c1
--- /dev/null
+++ b/meta-networking/recipes-support/dovecot/dovecot/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830.patch
@@ -0,0 +1,24 @@
1From 1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830 Mon Sep 17 00:00:00 2001
2From: fundawang <fundawang@yeah.net>
3Date: Sun, 27 Oct 2024 22:11:21 +0800
4Subject: [PATCH] configure: Explicitly check for icu-uc
5
6Ensure we link against libicu-uc when it's split in v76.
7
8Upstream-Status: Backport [https://github.com/dovecot/core/commit/1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 m4/want_icu.m4 | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14--- a/m4/want_icu.m4
15+++ b/m4/want_icu.m4
16@@ -1,7 +1,7 @@
17 AC_DEFUN([DOVECOT_WANT_ICU], [
18 if test "$want_icu" != "no"; then
19 if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null; then
20- PKG_CHECK_MODULES(LIBICU, icu-i18n)
21+ PKG_CHECK_MODULES(LIBICU, [icu-i18n icu-uc])
22 have_icu=yes
23 AC_DEFINE(HAVE_LIBICU,, [Define if you want ICU normalization support for FTS])
24 elif test "$want_icu" = "yes"; then
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb b/meta-networking/recipes-support/dovecot/dovecot_2.3.21.1.bb
index 2f887e6018..3177cdb1d7 100644
--- a/meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb
+++ b/meta-networking/recipes-support/dovecot/dovecot_2.3.21.1.bb
@@ -11,8 +11,9 @@ SRC_URI = "http://dovecot.org/releases/2.3/dovecot-${PV}.tar.gz \
11 file://dovecot.socket \ 11 file://dovecot.socket \
12 file://0001-not-check-pandoc.patch \ 12 file://0001-not-check-pandoc.patch \
13 file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ 13 file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \
14 file://1ccd5b54a408d12fce0c94ab0bbaedbb5ef69830.patch \
14 " 15 "
15SRC_URI[sha256sum] = "05b11093a71c237c2ef309ad587510721cc93bbee6828251549fc1586c36502d" 16SRC_URI[sha256sum] = "2d90a178c4297611088bf7daae5492a3bc3d5ab6328c3a032eb425d2c249097e"
16 17
17DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" 18DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native"
18CFLAGS += "-I${STAGING_INCDIR}/tirpc" 19CFLAGS += "-I${STAGING_INCDIR}/tirpc"
@@ -50,7 +51,8 @@ SYSTEMD_AUTO_ENABLE = "disable"
50do_install:append () { 51do_install:append () {
51 rm -rf ${D}${libdir}/dovecot/dovecot-config 52 rm -rf ${D}${libdir}/dovecot/dovecot-config
52 install -d 755 ${D}/etc/dovecot 53 install -d 755 ${D}/etc/dovecot
53 touch 644 ${D}/etc/dovecot/dovecot.conf 54 touch ${D}/etc/dovecot/dovecot.conf
55 chmod 644 ${D}/etc/dovecot/dovecot.conf
54 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then 56 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
55 install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system 57 install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system
56 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service 58 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..00105fb844
--- /dev/null
+++ b/meta-networking/recipes-support/drbd/drbd-utils/0001-Fix-build-with-gcc-15.patch
@@ -0,0 +1,34 @@
1From b42265af87d9efcc9aac91b3a3da3df5c5c66e29 Mon Sep 17 00:00:00 2001
2From: Nguyen Dat Tho <tho3.nguyen@lge.com>
3Date: Wed, 9 Apr 2025 17:33:25 +0900
4Subject: [PATCH] Fix build with gcc-15
5
6To fix the following error:
7In file included from string_matching.cpp:1:
8./string_matching.h:10:18: error: 'uint16_t' does not name a type
9 10 | extern const uint16_t PATTERN_LIMIT;
10 | ^~~~~~~~
11./string_matching.h:7:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
12
13Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/50]
14
15Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
16---
17 user/drbdmon/string_matching.h | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/user/drbdmon/string_matching.h b/user/drbdmon/string_matching.h
21index 9b3918fe..b783ba48 100644
22--- a/user/drbdmon/string_matching.h
23+++ b/user/drbdmon/string_matching.h
24@@ -4,6 +4,7 @@
25 #include <string>
26 #include <memory>
27 #include <stdexcept>
28+#include <cstdint>
29
30 namespace string_matching
31 {
32--
332.34.1
34
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch
deleted file mode 100644
index b98e1e70c7..0000000000
--- a/meta-networking/recipes-support/drbd/drbd-utils/0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 61991db099f66348dddbc3408e7ee8c05bda85cb Mon Sep 17 00:00:00 2001
2From: Yoann Congal <yoann.congal@smile.fr>
3Date: Sat, 2 Mar 2024 16:23:07 +0100
4Subject: [PATCH] configure.ac: Add an option to disable host udev version
5 checks
6
7In cross-compilation environment, the build host might have an outdated
8udev or no udev at all. But the user may still want to build with the
9enabled udev rule (for its udev-enabled target).
10
11This patch adds a "--disable-udevchecks" option the disable build host
12udev version check at configure-time and unconditionally install the
13enabled udev rule. Without this new option, the behavior stays the same
14(checks enabled).
15
16Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
17Upstream-Status: Backport [https://github.com/LINBIT/drbd-utils/commit/f2b5a7335ae52109dfb95a9d99ae20519c43d59a]
18---
19 configure.ac | 9 +++++++--
20 1 file changed, 7 insertions(+), 2 deletions(-)
21
22diff --git a/configure.ac b/configure.ac
23index f1d69ea3..4c56d33b 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -71,6 +71,11 @@ AC_ARG_WITH([udev],
27 [AS_HELP_STRING([--with-udev],
28 [Enable udev integration])],
29 [WITH_UDEV=$withval])
30+AC_ARG_ENABLE([udevchecks],
31+ [AS_HELP_STRING([--disable-udevchecks],
32+ [Disable host udev version checks])],
33+ [],
34+ [enable_udevchecks=yes])
35 AC_ARG_WITH([xen],
36 [AS_HELP_STRING([--with-xen],
37 [Enable Xen integration])],
38@@ -315,7 +320,7 @@ if test -z $GIT; then
39 AC_MSG_WARN(Cannot update buildtag without git. You may safely ignore this warning when building from a tarball.)
40 fi
41
42-if test $UDEVADM = false && test $UDEVINFO = false; then
43+if test "x$enable_udevchecks" != "xno" && test $UDEVADM = false && test $UDEVINFO = false; then
44 if test "$WITH_UDEV" = "yes"; then
45 AC_MSG_WARN([udev support enabled, but neither udevadm nor udevinfo found on this system.])
46 fi
47@@ -423,7 +428,7 @@ else
48 test -z $INITDIR && INITDIR="$sysconfdir/init.d"
49
50 dnl Our udev rules file is known to work only with udev >= 85
51- if test "$WITH_UDEV" = "yes"; then
52+ if test "x$enable_udevchecks" != "xno" && test "$WITH_UDEV" = "yes"; then
53 udev_version=$( set -- $($UDEVADM version); echo $1 )
54 if test -z "$udev_version"; then
55 udev_version=$( set -- $($UDEVINFO -V); echo $3 )
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
index 27f0a9b54a..93cb8e185e 100644
--- a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
+++ b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-utils-support-usrmerge.patch
@@ -1,30 +1,21 @@
1From 264ae7b062ac52a5545a8a562b51001f7ce7369d Mon Sep 17 00:00:00 2001 1From a019fbe36ab965e754b818fe1bdb0cea0e3ffb60 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 21 Apr 2022 17:22:35 +0800 3Date: Thu, 21 Apr 2022 17:22:35 +0800
4Subject: [PATCH] drbd-utils: support usermerge 4Subject: [PATCH] drbd-utils: support usrmerge
5 5
6Upstream-Status: Inappropriate [oe-specific] 6Upstream-Status: Inappropriate [oe-specific]
7 7
8Signed-off-by: Changqing Li <changqing.li@windriver.com> 8Signed-off-by: Changqing Li <changqing.li@windriver.com>
9Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> 9Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
10--- 10---
11 configure.ac | 2 +- 11 configure.ac | 2 +-
12 scripts/Makefile.in | 10 +++++----- 12 1 file changed, 1 insertion(+), 1 deletion(-)
13 scripts/drbd-demote-or-escalate@.service | 2 +-
14 scripts/drbd-promote@.service | 4 ++--
15 scripts/drbd-wait-promotable@.service | 2 +-
16 scripts/drbd.service | 6 +++---
17 scripts/drbd@.service | 6 +++---
18 scripts/ocf.ra@.service | 4 ++--
19 user/v83/Makefile.in | 14 +++++++-------
20 user/v84/Makefile.in | 14 +++++++-------
21 10 files changed, 32 insertions(+), 32 deletions(-)
22 13
23diff --git a/configure.ac b/configure.ac 14diff --git a/configure.ac b/configure.ac
24index f1d69ea3..3289ac7d 100644 15index 37148597..52015fb2 100644
25--- a/configure.ac 16--- a/configure.ac
26+++ b/configure.ac 17+++ b/configure.ac
27@@ -183,7 +183,7 @@ AC_ARG_WITH(tmpfilesdir, 18@@ -217,7 +217,7 @@ AC_ARG_WITH(tmpfilesdir,
28 AC_SUBST(tmpfilesdir) 19 AC_SUBST(tmpfilesdir)
29 20
30 # set default early 21 # set default early
@@ -33,169 +24,6 @@ index f1d69ea3..3289ac7d 100644
33 if test x"$with_udev" = x || \ 24 if test x"$with_udev" = x || \
34 test x"$with_udev" = xyes ; then 25 test x"$with_udev" = xyes ; then
35 if test x"$PKG_CONFIG" != x; then 26 if test x"$PKG_CONFIG" != x; then
36diff --git a/scripts/Makefile.in b/scripts/Makefile.in 27--
37index aca15a22..a1cd2ffe 100644 282.25.1
38--- a/scripts/Makefile.in 29
39+++ b/scripts/Makefile.in
40@@ -91,11 +91,11 @@ ifeq ($(subst both,systemd,$(initscripttype)),systemd)
41 install -d $(DESTDIR)$(systemdunitdir)
42 install -m 644 $(SYSTEMD_UNITS) $(DESTDIR)$(systemdunitdir)/
43 install -m 644 $(SYSTEMD_TEMPLATES) $(DESTDIR)$(systemdunitdir)/
44- install -d $(DESTDIR)/lib/drbd/scripts
45- install -m 755 drbd $(DESTDIR)/lib/drbd/scripts
46- install -m 755 drbd-service-shim.sh $(DESTDIR)/lib/drbd/scripts
47- install -m 755 drbd-wait-promotable.sh $(DESTDIR)/lib/drbd/scripts
48- install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/lib/drbd/scripts
49+ install -d $(DESTDIR)/${nonarch_libdir}/drbd/scripts
50+ install -m 755 drbd $(DESTDIR)/${nonarch_libdir}/drbd/scripts
51+ install -m 755 drbd-service-shim.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts
52+ install -m 755 drbd-wait-promotable.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts
53+ install -m 755 ocf.ra.wrapper.sh $(DESTDIR)/${nonarch_libdir}/drbd/scripts
54 install -d $(DESTDIR)$(tmpfilesdir)/
55 install -m 444 drbd.tmpfiles.conf $(DESTDIR)$(tmpfilesdir)/drbd.conf
56 endif
57diff --git a/scripts/drbd-demote-or-escalate@.service b/scripts/drbd-demote-or-escalate@.service
58index 20932238..8b5ce4a2 100644
59--- a/scripts/drbd-demote-or-escalate@.service
60+++ b/scripts/drbd-demote-or-escalate@.service
61@@ -28,5 +28,5 @@ TimeoutSec=60
62 # "Type=forking" would be an option to have it retry a number of times,
63 # and then only escalate to FailureAction if that did not help.
64 Type=oneshot
65-ExecStart=/lib/drbd/scripts/drbd-service-shim.sh secondary-or-escalate %I
66+ExecStart=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh secondary-or-escalate %I
67 ExecStopPost=-/bin/journalctl --sync
68diff --git a/scripts/drbd-promote@.service b/scripts/drbd-promote@.service
69index 71345d9b..678e0703 100644
70--- a/scripts/drbd-promote@.service
71+++ b/scripts/drbd-promote@.service
72@@ -24,5 +24,5 @@ RemainAfterExit=yes
73 # (ab)using systemd features
74 # if we cannot configure and promote, that's a condition, not a failure
75 # See the comment above wrt. FailureAction vs OnFailure
76-ExecCondition=/lib/drbd/scripts/drbd-service-shim.sh primary %I
77-ExecStop=/lib/drbd/scripts/drbd-service-shim.sh secondary %I
78+ExecCondition=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh primary %I
79+ExecStop=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh secondary %I
80diff --git a/scripts/drbd-wait-promotable@.service b/scripts/drbd-wait-promotable@.service
81index 81c3789f..3416abc6 100644
82--- a/scripts/drbd-wait-promotable@.service
83+++ b/scripts/drbd-wait-promotable@.service
84@@ -10,7 +10,7 @@ Type=oneshot
85
86 # on first start, wait for access to "good data"
87 # let systemd handle timeouts
88-ExecStart=/lib/drbd/scripts/drbd-wait-promotable.sh %I
89+ExecStart=@nonarch_libdir@/drbd/scripts/drbd-wait-promotable.sh %I
90 RemainAfterExit=yes
91
92 [Install]
93diff --git a/scripts/drbd.service b/scripts/drbd.service
94index 96c599e7..c81e95a6 100644
95--- a/scripts/drbd.service
96+++ b/scripts/drbd.service
97@@ -12,11 +12,11 @@ RemainAfterExit=yes
98 # A check for INIT_VERSION already exists, just set it to something.
99 Environment=INIT_VERSION=systemd
100
101-ExecStart=/lib/drbd/scripts/drbd start
102-ExecStop=/lib/drbd/scripts/drbd stop
103+ExecStart=@nonarch_libdir@/drbd/scripts/drbd start
104+ExecStop=@nonarch_libdir@/drbd/scripts/drbd stop
105
106 # Re-adjust everything on reload
107-ExecReload=/lib/drbd/scripts/drbd reload
108+ExecReload=@nonarch_libdir@/drbd/scripts/drbd reload
109
110 [Install]
111 WantedBy=multi-user.target
112diff --git a/scripts/drbd@.service b/scripts/drbd@.service
113index 0fad10be..556f3857 100644
114--- a/scripts/drbd@.service
115+++ b/scripts/drbd@.service
116@@ -35,8 +35,8 @@ RemainAfterExit=yes
117
118 # depends... do we want this as ExecCondition or as ExecStart
119 # failed start is "failed", failed condition is just "not startable yet"
120-ExecStart=/lib/drbd/scripts/drbd-service-shim.sh adjust %I
121-ExecReload=/lib/drbd/scripts/drbd-service-shim.sh adjust %I
122+ExecStart=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh adjust %I
123+ExecReload=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh adjust %I
124
125 # can only succeed, if you first stop all depending services
126-ExecStopPost=/lib/drbd/scripts/drbd-service-shim.sh down %I
127+ExecStopPost=@nonarch_libdir@/drbd/scripts/drbd-service-shim.sh down %I
128diff --git a/scripts/ocf.ra@.service b/scripts/ocf.ra@.service
129index 9c2268a6..1666c482 100644
130--- a/scripts/ocf.ra@.service
131+++ b/scripts/ocf.ra@.service
132@@ -22,5 +22,5 @@ Environment=monitor_inverval=30
133 # Only the first argument is used by the wrapper,
134 # the %n is just to identify which is which in the process list.
135 # All parameterization is done via Environment= in per instance override.conf
136-ExecStart=/lib/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n
137-ExecStopPost=/lib/drbd/scripts/ocf.ra.wrapper.sh stop %n
138+ExecStart=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh start-and-monitor %n
139+ExecStopPost=@nonarch_libdir@/drbd/scripts/ocf.ra.wrapper.sh stop %n
140diff --git a/user/v83/Makefile.in b/user/v83/Makefile.in
141index 08cfe574..4c4971b6 100644
142--- a/user/v83/Makefile.in
143+++ b/user/v83/Makefile.in
144@@ -96,19 +96,19 @@ install:
145 ifeq ($(WITH_83_SUPPORT),yes)
146 install -d $(DESTDIR)$(localstatedir)/lib/drbd
147 install -d $(DESTDIR)$(localstatedir)/lock
148- install -d $(DESTDIR)/lib/drbd/
149+ install -d $(DESTDIR)/${nonarch_libdir}/drbd/
150 if getent group haclient > /dev/null 2> /dev/null ; then \
151- install -g haclient -m 4750 drbdsetup-83 $(DESTDIR)/lib/drbd/ ; \
152- install -m 755 drbdadm-83 $(DESTDIR)/lib/drbd/ ; \
153+ install -g haclient -m 4750 drbdsetup-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
154+ install -m 755 drbdadm-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
155 else \
156- install -m 755 drbdsetup-83 $(DESTDIR)/lib/drbd/ ; \
157- install -m 755 drbdadm-83 $(DESTDIR)/lib/drbd/ ; \
158+ install -m 755 drbdsetup-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
159+ install -m 755 drbdadm-83 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
160 fi
161 endif
162
163 uninstall:
164- rm -f $(DESTDIR)/lib/drbd/drbdsetup-83
165- rm -f $(DESTDIR)/lib/drbd/drbdadm-83
166+ rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdsetup-83
167+ rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdadm-83
168
169 .PHONY: install uninstall clean distclean
170 ../../configure:
171diff --git a/user/v84/Makefile.in b/user/v84/Makefile.in
172index 0fcefc5f..81f7d5ec 100644
173--- a/user/v84/Makefile.in
174+++ b/user/v84/Makefile.in
175@@ -110,19 +110,19 @@ ifeq ($(WITH_84_SUPPORT),yes)
176 install -d $(DESTDIR)$(localstatedir)/lib/drbd
177 install -d $(DESTDIR)$(localstatedir)/run/drbd
178 install -d $(DESTDIR)$(localstatedir)/lock
179- install -d $(DESTDIR)/lib/drbd/
180+ install -d $(DESTDIR)/${nonarch_libdir}/drbd/
181 if getent group haclient > /dev/null 2> /dev/null ; then \
182- install -g haclient -m 4750 drbdsetup-84 $(DESTDIR)/lib/drbd/ ; \
183- install -m 755 drbdadm-84 $(DESTDIR)/lib/drbd/ ; \
184+ install -g haclient -m 4750 drbdsetup-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
185+ install -m 755 drbdadm-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
186 else \
187- install -m 755 drbdsetup-84 $(DESTDIR)/lib/drbd/ ; \
188- install -m 755 drbdadm-84 $(DESTDIR)/lib/drbd/ ; \
189+ install -m 755 drbdsetup-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
190+ install -m 755 drbdadm-84 $(DESTDIR)/${nonarch_libdir}/drbd/ ; \
191 fi
192 endif
193
194 uninstall:
195- rm -f $(DESTDIR)/lib/drbd/drbdsetup-84
196- rm -f $(DESTDIR)/lib/drbd/drbdadm-84
197+ rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdsetup-84
198+ rm -f $(DESTDIR)/${nonarch_libdir}/drbd/drbdadm-84
199
200 spell:
201 for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdsetup.c drbdtool_common.c; do \
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch
index c7766067a1..ac2626c1c8 100644
--- a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch
+++ b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbdmon-add-LDFLAGS-when-linking.patch
@@ -1,4 +1,4 @@
1From bb044160faf4ae7615ddfdb17641dd88c33cde57 Mon Sep 17 00:00:00 2001 1From 26ed5003847a14a16d0c1d4030aa1a361c0289fb Mon Sep 17 00:00:00 2001
2From: Sakib Sajal <sakib.sajal@windriver.com> 2From: Sakib Sajal <sakib.sajal@windriver.com>
3Date: Thu, 31 Mar 2022 15:09:58 -0400 3Date: Thu, 31 Mar 2022 15:09:58 -0400
4Subject: [PATCH] drbdmon: add LDFLAGS when linking 4Subject: [PATCH] drbdmon: add LDFLAGS when linking
@@ -7,11 +7,11 @@ Upstream-Status: Pending
7 7
8Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> 8Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
9--- 9---
10 user/drbdmon/Makefile.in | 4 ++-- 10 user/drbdmon/Makefile.in | 6 +++---
11 1 file changed, 2 insertions(+), 2 deletions(-) 11 1 file changed, 3 insertions(+), 3 deletions(-)
12 12
13diff --git a/user/drbdmon/Makefile.in b/user/drbdmon/Makefile.in 13diff --git a/user/drbdmon/Makefile.in b/user/drbdmon/Makefile.in
14index 7bd8987e..115a81b8 100644 14index 9c5427e9..0101a60b 100644
15--- a/user/drbdmon/Makefile.in 15--- a/user/drbdmon/Makefile.in
16+++ b/user/drbdmon/Makefile.in 16+++ b/user/drbdmon/Makefile.in
17@@ -1,6 +1,6 @@ 17@@ -1,6 +1,6 @@
@@ -22,12 +22,19 @@ index 7bd8987e..115a81b8 100644
22 CXX = @CXX@ 22 CXX = @CXX@
23 LIBS = @LIBS@ 23 LIBS = @LIBS@
24 24
25@@ -72,7 +72,7 @@ $(dsaext-obj): $(basename $(dsaext-obj)).cpp $(basename $(dsaext-obj)).h 25@@ -76,10 +76,10 @@ $(dsaext-obj): $(basename $(dsaext-obj)).cpp $(basename $(dsaext-obj)).h
26 $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h 26 $(integerparse-obj): $(basename $(integerparse-obj)).cpp $(basename $(integerparse-obj)).h
27 27
28 drbdmon: $(ls-obj) 28 drbdmon: $(ls-obj)
29- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS) 29- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LIBS)
30+ $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) 30+ $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS)
31 31
32 drbd-events-log-supplier: $(supplier-obj)
33- $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^
34+ $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $^
35
32 # do not try to rebuild Makefile itself 36 # do not try to rebuild Makefile itself
33 Makefile: ; 37 Makefile: ;
38--
392.25.1
40
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb
index 63f0fd18c1..4c520e8c78 100644
--- a/meta-networking/recipes-support/drbd/drbd-utils_9.27.0.bb
+++ b/meta-networking/recipes-support/drbd/drbd-utils_9.30.0.bb
@@ -8,17 +8,16 @@ LICENSE = "GPL-2.0-or-later"
8LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018" 8LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
9 9
10SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;protocol=https \ 10SRC_URI = "git://github.com/LINBIT/drbd-utils;name=drbd-utils;branch=master;protocol=https \
11 git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=git/drbd-headers;branch=master;protocol=https \ 11 git://github.com/LINBIT/drbd-headers;name=drbd-headers;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/drbd-headers;branch=master;protocol=https \
12 file://0001-drbdmon-add-LDFLAGS-when-linking.patch \ 12 file://0001-drbdmon-add-LDFLAGS-when-linking.patch \
13 ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \ 13 ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','file://0001-drbd-utils-support-usrmerge.patch','',d)} \
14 file://0001-configure.ac-Add-an-option-to-disable-host-udev-vers.patch \ 14 file://0001-Fix-build-with-gcc-15.patch \
15 " 15 "
16SRCREV_drbd-utils = "fdd9a4d603a9dc99d110d8bd0e288d7c0b6f586e" 16SRCREV_drbd-utils = "36ea199f38b543b2da92219109c2832e122e5bf9"
17SRCREV_drbd-headers = "0349f00825b4198d4ec3248f43884114a187676a" 17SRCREV_drbd-headers = "94f4472513f351efba5788f783feba6ac6efe9fc"
18 18
19SRCREV_FORMAT = "drbd-utils_drbd-headers" 19SRCREV_FORMAT = "drbd-utils_drbd-headers"
20 20
21S = "${WORKDIR}/git"
22 21
23UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases" 22UPSTREAM_CHECK_URI = "https://github.com/LINBIT/drbd-utils/releases"
24 23
diff --git a/meta-networking/recipes-support/dropwatch/dropwatch_1.5.4.bb b/meta-networking/recipes-support/dropwatch/dropwatch_1.5.4.bb
index baa9398a18..badeed8e82 100644
--- a/meta-networking/recipes-support/dropwatch/dropwatch_1.5.4.bb
+++ b/meta-networking/recipes-support/dropwatch/dropwatch_1.5.4.bb
@@ -13,7 +13,6 @@ SRC_URI = "git://github.com/nhorman/dropwatch.git;protocol=https;nobranch=1 \
13" 13"
14SRCREV = "1e7e487a019a7c02f1f429c4d3a4647fa3787a13" 14SRCREV = "1e7e487a019a7c02f1f429c4d3a4647fa3787a13"
15 15
16S = "${WORKDIR}/git"
17 16
18DEPENDS = "binutils libnl libpcap readline" 17DEPENDS = "binutils libnl libpcap readline"
19 18
diff --git a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb
index 723d7c8f78..d5dc10a889 100644
--- a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb
+++ b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb
@@ -25,7 +25,6 @@ SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \
25 25
26SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" 26SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31"
27 27
28S = "${WORKDIR}/git"
29 28
30EXTRA_OECMAKE = " \ 29EXTRA_OECMAKE = " \
31 -DCMAKE_SKIP_RPATH=TRUE \ 30 -DCMAKE_SKIP_RPATH=TRUE \
diff --git a/meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb b/meta-networking/recipes-support/fetchmail/fetchmail_6.5.2.bb
index 6cde94b202..c1def016e9 100644
--- a/meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb
+++ b/meta-networking/recipes-support/fetchmail/fetchmail_6.5.2.bb
@@ -6,23 +6,20 @@ connections). It supports every remote-mail protocol now in use on the Internet:
6RPOP, APOP, KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and IPSEC." 6RPOP, APOP, KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and IPSEC."
7SECTION = "mail" 7SECTION = "mail"
8LICENSE = "GPL-2.0-only & MIT" 8LICENSE = "GPL-2.0-only & MIT"
9LIC_FILES_CHKSUM = "file://COPYING;md5=ee6b9f41d9324434dd11bd8a38f1b044" 9LIC_FILES_CHKSUM = "file://COPYING;md5=46d2874dd6a0c8961d80c805f106a35f"
10 10
11DEPENDS = "openssl" 11DEPENDS = "openssl"
12 12
13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz \ 13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz \
14 " 14 "
15SRC_URI[sha256sum] = "a6cb4ea863ac61d242ffb2db564a39123761578d3e40d71ce7b6f2905be609d9" 15SRC_URI[sha256sum] = "8fd0477408620ae382c1d0ef83d8946a95e5be0c2e582dd4ebe55cba513a45fe"
16 16
17inherit autotools gettext pkgconfig python3-dir python3native 17inherit autotools gettext pkgconfig python3-dir python3native
18 18
19EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix}" 19EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix} --disable-rpath "
20
21INSANE_SKIP:${PN} = "already-stripped"
22 20
23do_install:append() { 21do_install:append() {
24 sed -i 's,${RECIPE_SYSROOT_NATIVE},,g' ${D}${bindir}/fetchmailconf 22 sed -i 's,${RECIPE_SYSROOT_NATIVE},,g' ${D}${bindir}/fetchmailconf
25 sed -i 's,${RECIPE_SYSROOT},,g' ${D}${bindir}/fetchmail
26} 23}
27 24
28PACKAGES =+ "fetchmail-python" 25PACKAGES =+ "fetchmail-python"
diff --git a/meta-networking/recipes-support/fping/fping_5.2.bb b/meta-networking/recipes-support/fping/fping_5.3.bb
index f75b6441b2..5f3ec67cfc 100644
--- a/meta-networking/recipes-support/fping/fping_5.2.bb
+++ b/meta-networking/recipes-support/fping/fping_5.3.bb
@@ -15,9 +15,9 @@ NO_GENERIC_LICENSE[fping] = "COPYING"
15LIC_FILES_CHKSUM = "file://COPYING;md5=c6170fbadddfcd74f011515291d96901" 15LIC_FILES_CHKSUM = "file://COPYING;md5=c6170fbadddfcd74f011515291d96901"
16 16
17SRC_URI = "http://www.fping.org/dist/fping-${PV}.tar.gz" 17SRC_URI = "http://www.fping.org/dist/fping-${PV}.tar.gz"
18SRC_URI[sha256sum] = "a7692d10d73fb0bb76e1f7459aa7f19bbcdbfc5adbedef02f468974b18b0e42f" 18SRC_URI[sha256sum] = "d57bd0141aea082e3adfc198bfc3db5dfd12a7014c7c2655e97f61cd54901d0e"
19 19
20S = "${WORKDIR}/fping-${PV}" 20S = "${UNPACKDIR}/fping-${PV}"
21 21
22inherit autotools 22inherit autotools
23 23
diff --git a/meta-networking/recipes-support/fwknop/fwknop/0001-Fix-compilation-with-GCC-s-fno-common-flag-fixes-305.patch b/meta-networking/recipes-support/fwknop/fwknop/0001-Fix-compilation-with-GCC-s-fno-common-flag-fixes-305.patch
deleted file mode 100644
index e696ac4ead..0000000000
--- a/meta-networking/recipes-support/fwknop/fwknop/0001-Fix-compilation-with-GCC-s-fno-common-flag-fixes-305.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 5aea816f27a71e6c88ad50e7326fa6584eeb7ad9 Mon Sep 17 00:00:00 2001
2From: Francois Marier <francois@debian.org>
3Date: Fri, 24 Jul 2020 21:22:47 -0700
4Subject: [PATCH] Fix compilation with GCC's -fno-common flag (fixes #305)
5
6Upstream-Status: Submitted [https://github.com/mrash/fwknop/pull/319]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 client/log_msg.h | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/client/log_msg.h b/client/log_msg.h
13index cc17716..3dda161 100644
14--- a/client/log_msg.h
15+++ b/client/log_msg.h
16@@ -38,7 +38,7 @@ enum
17 LOG_VERBOSITY_INFO, /*!< Constant to define a INFO message */
18 LOG_VERBOSITY_DEBUG, /*!< Constant to define a DEBUG message */
19 LOG_LAST_VERBOSITY
20-} log_level_t;
21+};
22
23 #define LOG_DEFAULT_VERBOSITY LOG_VERBOSITY_NORMAL /*!< Default verbosity to use */
24
25--
262.28.0
27
diff --git a/meta-networking/recipes-support/fwknop/fwknop/0001-configure.ac-Fix-missing-comma-in-AS_IF.patch b/meta-networking/recipes-support/fwknop/fwknop/0001-configure.ac-Fix-missing-comma-in-AS_IF.patch
deleted file mode 100644
index f3e1707408..0000000000
--- a/meta-networking/recipes-support/fwknop/fwknop/0001-configure.ac-Fix-missing-comma-in-AS_IF.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From fee4cb0ae2d1fcd012cb7f501c3db0d8ec910798 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 2 Apr 2023 10:01:51 -0700
4Subject: [PATCH] configure.ac: Fix missing comma in AS_IF
5
6this is flagged with autconf 2.72
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/configure.ac b/configure.ac
15index 47a069e..9cdfd3f 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -744,7 +744,7 @@ dnl
19 IPFW_EXE=""
20 IPTABLES_EXE=""
21 FIREWALLD_EXE=""
22- ]
23+ ],
24 ]
25 ]
26 ]
27--
282.40.0
29
diff --git a/meta-networking/recipes-support/fwknop/fwknop_2.6.10.bb b/meta-networking/recipes-support/fwknop/fwknop_2.6.11.bb
index a1f56cdf16..7cc044d996 100644
--- a/meta-networking/recipes-support/fwknop/fwknop_2.6.10.bb
+++ b/meta-networking/recipes-support/fwknop/fwknop_2.6.11.bb
@@ -1,20 +1,20 @@
1SUMMARY = "fwknop - Single Packet Authorization" 1SUMMARY = "fwknop - Single Packet Authorization"
2HOMEPAGE = "http://www.cipherdyne.org/fwknop/" 2HOMEPAGE = "http://www.cipherdyne.org/fwknop/"
3LICENSE = "GPL-2.0-only" 3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ 4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5 " 5
6inherit autotools-brokensep pkgconfig 6inherit autotools-brokensep pkgconfig
7 7
8SRC_URI = "http://www.cipherdyne.org/${BPN}/download/${BPN}-${PV}.tar.bz2 \ 8SRC_URI = "http://www.cipherdyne.org/${BPN}/download/${BPN}-${PV}.tar.bz2 \
9 file://0001-Fix-compilation-with-GCC-s-fno-common-flag-fixes-305.patch \
10 file://0001-Use-pkg-config-to-find-gpgme.patch \ 9 file://0001-Use-pkg-config-to-find-gpgme.patch \
11 file://0001-configure.ac-Fix-missing-comma-in-AS_IF.patch \
12 " 10 "
13SRC_URI[sha256sum] = "f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb894ca77" 11SRC_URI[sha256sum] = "a4ec7c22dd90dd684f9f7b96d3a901c4131ec8c7a3b9db26d0428513f6774c64"
14 12
15DEPENDS = "libpcap gpgme" 13DEPENDS = "libpcap gpgme"
16 14
17EXTRA_OECONF = " --with-iptables=${sbindir}/iptables" 15EXTRA_OECONF = "--with-iptables=${sbindir}/iptables \
16 --with-gpg=${bindir}/gpg \
17 --with-wget=${base_bindir}/wget"
18 18
19do_configure:prepend () { 19do_configure:prepend () {
20 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/config 20 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/config
diff --git a/meta-networking/recipes-support/geoip/geoip-perl_1.51.bb b/meta-networking/recipes-support/geoip/geoip-perl_1.51.bb
index 8e23b66c48..9c2535b95b 100644
--- a/meta-networking/recipes-support/geoip/geoip-perl_1.51.bb
+++ b/meta-networking/recipes-support/geoip/geoip-perl_1.51.bb
@@ -9,7 +9,6 @@ SECTION = "libdevel"
9LICENSE = "Artistic-1.0 | GPL-1.0-or-later" 9LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=e4f3ea6e9b28af88dc0321190a1f8250" 10LIC_FILES_CHKSUM = "file://LICENSE;md5=e4f3ea6e9b28af88dc0321190a1f8250"
11 11
12S = "${WORKDIR}/git"
13SRCREV = "4cdfdc38eca237c19c22a8b90490446ce6d970fa" 12SRCREV = "4cdfdc38eca237c19c22a8b90490446ce6d970fa"
14SRC_URI = "git://github.com/maxmind/geoip-api-perl.git;branch=main;protocol=https \ 13SRC_URI = "git://github.com/maxmind/geoip-api-perl.git;branch=main;protocol=https \
15 file://run-ptest \ 14 file://run-ptest \
diff --git a/meta-networking/recipes-support/geoip/geoip_1.6.12.bb b/meta-networking/recipes-support/geoip/geoip_1.6.12.bb
index b247823cd4..7482dba64a 100644
--- a/meta-networking/recipes-support/geoip/geoip_1.6.12.bb
+++ b/meta-networking/recipes-support/geoip/geoip_1.6.12.bb
@@ -11,10 +11,10 @@ SECTION = "libdevel"
11GEOIP_DATABASE_VERSION = "20181205" 11GEOIP_DATABASE_VERSION = "20181205"
12 12
13SRC_URI = "git://github.com/maxmind/geoip-api-c.git;branch=main;protocol=https \ 13SRC_URI = "git://github.com/maxmind/geoip-api-c.git;branch=main;protocol=https \
14 http://sources.openembedded.org/GeoIP.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoIP-dat; \ 14 https://downloads.yoctoproject.org/mirror/sources/GeoIP.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoIP-dat; \
15 http://sources.openembedded.org/GeoIPv6.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoIPv6-dat; \ 15 https://downloads.yoctoproject.org/mirror/sources/GeoIPv6.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoIPv6-dat; \
16 http://sources.openembedded.org/GeoLiteCity.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoLiteCity-dat; \ 16 https://downloads.yoctoproject.org/mirror/sources/GeoLiteCity.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoLiteCity-dat; \
17 http://sources.openembedded.org/GeoLiteCityv6.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoLiteCityv6-dat; \ 17 https://downloads.yoctoproject.org/mirror/sources/GeoLiteCityv6.dat.${GEOIP_DATABASE_VERSION}.gz;apply=no;name=GeoLiteCityv6-dat; \
18 file://run-ptest \ 18 file://run-ptest \
19" 19"
20SRCREV = "4b526e7331ca1d692b74a0509ddcc725622ed31a" 20SRCREV = "4b526e7331ca1d692b74a0509ddcc725622ed31a"
@@ -36,7 +36,6 @@ LICENSE = "LGPL-2.1-only"
36LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad \ 36LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad \
37 file://LICENSE;md5=0388276749a542b0d611601fa7c1dcc8 " 37 file://LICENSE;md5=0388276749a542b0d611601fa7c1dcc8 "
38 38
39S = "${WORKDIR}/git"
40 39
41inherit autotools 40inherit autotools
42 41
diff --git a/meta-networking/recipes-support/http-parser/http-parser_2.9.4.bb b/meta-networking/recipes-support/http-parser/http-parser_2.9.4.bb
index 528289b7fd..7def915db5 100644
--- a/meta-networking/recipes-support/http-parser/http-parser_2.9.4.bb
+++ b/meta-networking/recipes-support/http-parser/http-parser_2.9.4.bb
@@ -14,7 +14,6 @@ LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778"
14SRC_URI = "git://github.com/nodejs/http-parser.git;branch=master;protocol=https" 14SRC_URI = "git://github.com/nodejs/http-parser.git;branch=master;protocol=https"
15SRCREV = "2343fd6b5214b2ded2cdcf76de2bf60903bb90cd" 15SRCREV = "2343fd6b5214b2ded2cdcf76de2bf60903bb90cd"
16 16
17S = "${WORKDIR}/git"
18 17
19EXTRA_OEMAKE = "PLATFORM=linux" 18EXTRA_OEMAKE = "PLATFORM=linux"
20 19
diff --git a/meta-networking/recipes-support/ifenslave/ifenslave_2.14.bb b/meta-networking/recipes-support/ifenslave/ifenslave_2.14.bb
index 02a5520a97..bc0975ecc1 100644
--- a/meta-networking/recipes-support/ifenslave/ifenslave_2.14.bb
+++ b/meta-networking/recipes-support/ifenslave/ifenslave_2.14.bb
@@ -5,18 +5,12 @@ SECTION = "net"
5LICENSE = "GPL-3.0-only" 5LICENSE = "GPL-3.0-only"
6LIC_FILES_CHKSUM = "file://debian/copyright;md5=acc89812938cf9ad6b1debc37cea0253" 6LIC_FILES_CHKSUM = "file://debian/copyright;md5=acc89812938cf9ad6b1debc37cea0253"
7 7
8inherit manpages
9MAN_PKG = "${PN}"
10
11SRCREV = "62e60904afbe58fda0c7104fdad1c4f618266ba6" 8SRCREV = "62e60904afbe58fda0c7104fdad1c4f618266ba6"
12SRC_URI = "git://salsa.debian.org/debian/ifenslave.git;protocol=https;branch=main" 9SRC_URI = "git://salsa.debian.org/debian/ifenslave.git;protocol=https;branch=main"
13 10
14S = "${WORKDIR}/git"
15 11
16do_install() { 12do_install() {
17 install -m 0755 -D ${S}/debian/ifenslave.if-pre-up ${D}${sysconfdir}/network/if-pre-up.d/ifenslave 13 install -m 0755 -D ${S}/debian/ifenslave.if-pre-up ${D}${sysconfdir}/network/if-pre-up.d/ifenslave
18 install -m 0755 -D ${S}/debian/ifenslave.if-post-down ${D}${sysconfdir}/network/if-post-down.d/ifenslave 14 install -m 0755 -D ${S}/debian/ifenslave.if-post-down ${D}${sysconfdir}/network/if-post-down.d/ifenslave
19 install -m 0755 -D ${S}/debian/ifenslave.if-up ${D}${sysconfdir}/network/if-up.d/ifenslave 15 install -m 0755 -D ${S}/debian/ifenslave.if-up ${D}${sysconfdir}/network/if-up.d/ifenslave
20} 16}
21
22FILES:${PN}-doc:remove = "${mandir}"
diff --git a/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch b/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..73540e18c6
--- /dev/null
+++ b/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch
@@ -0,0 +1,46 @@
1From e579fbe1f73dc89e2bf81a5b6c949f8ae24f93b2 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Fri, 21 Mar 2025 09:31:05 +0000
4Subject: [PATCH] cfgfile: fix build with gcc-15
5
6* fix read_config declaration to match
7
8cfgfile.c:247:5: error: conflicting types for 'read_config'; have 'int(char *, int)'
9 247 | int read_config(char *file, int whinge_on_error) {
10 | ^~~~~~~~~~~
11In file included from cfgfile.c:16:
12cfgfile.h:16:5: note: previous declaration of 'read_config' with type 'int(void)'
13 16 | int read_config();
14 | ^~~~~~~~~~~
15make[2]: *** [Makefile:566: cfgfile.o] Error 1
16make[2]: *** Waiting for unfinished jobs....
17iftop.c: In function 'main':
18iftop.c:803:5: error: too many arguments to function 'read_config'; expected 0, have 2
19 803 | read_config(options.config_file, options.config_file_specified);
20 | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
21In file included from iftop.c:50:
22cfgfile.h:16:5: note: declared here
23 16 | int read_config();
24 | ^~~~~~~~~~~
25
26Upstream-Status: Pending [last pre release was over 10 years ago and https://code.blinkace.com/pdw/iftop has last commit from 4 years ago]
27
28Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
29---
30
31 cfgfile.h | 2 +-
32 1 file changed, 1 insertion(+), 1 deletion(-)
33
34diff --git a/cfgfile.h b/cfgfile.h
35index 11ba475..a331b75 100644
36--- a/cfgfile.h
37+++ b/cfgfile.h
38@@ -13,7 +13,7 @@ typedef struct {
39 int value;
40 } config_enumeration_type;
41
42-int read_config();
43+int read_config(char *file, int whinge_on_error);
44
45 char *config_get_string(const char *directive);
46 int config_get_bool(const char *directive);
diff --git a/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb b/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb
index 517d781281..4d9fea58e0 100644
--- a/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb
+++ b/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=76498170798db0f4f0fb685a225f702f"
8 8
9SRC_URI = "http://www.ex-parrot.com/pdw/iftop/download/iftop-${PV}.tar.gz \ 9SRC_URI = "http://www.ex-parrot.com/pdw/iftop/download/iftop-${PV}.tar.gz \
10 file://iftop-1.0-gcc10.patch \ 10 file://iftop-1.0-gcc10.patch \
11 file://0001-cfgfile-fix-build-with-gcc-15.patch \
11 " 12 "
12SRC_URI[md5sum] = "7e6decb4958e8a4890cccac335239f24" 13SRC_URI[md5sum] = "7e6decb4958e8a4890cccac335239f24"
13SRC_URI[sha256sum] = "f733eeea371a7577f8fe353d86dd88d16f5b2a2e702bd96f5ffb2c197d9b4f97" 14SRC_URI[sha256sum] = "f733eeea371a7577f8fe353d86dd88d16f5b2a2e702bd96f5ffb2c197d9b4f97"
diff --git a/meta-networking/recipes-support/ipcalc/ipcalc_1.0.3.bb b/meta-networking/recipes-support/ipcalc/ipcalc_1.0.3.bb
index 055c6e1432..18970751c3 100644
--- a/meta-networking/recipes-support/ipcalc/ipcalc_1.0.3.bb
+++ b/meta-networking/recipes-support/ipcalc/ipcalc_1.0.3.bb
@@ -9,6 +9,5 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
9SRC_URI = "git://gitlab.com/ipcalc/ipcalc.git;protocol=https;branch=master" 9SRC_URI = "git://gitlab.com/ipcalc/ipcalc.git;protocol=https;branch=master"
10SRCREV = "c341e55be386649c0a5347eefeae410753c4e753" 10SRCREV = "c341e55be386649c0a5347eefeae410753c4e753"
11 11
12S = "${WORKDIR}/git"
13 12
14inherit meson 13inherit meson
diff --git a/meta-networking/recipes-support/libconfuse/libconfuse_3.3.bb b/meta-networking/recipes-support/libconfuse/libconfuse_3.3.bb
deleted file mode 100644
index b8d0536eb3..0000000000
--- a/meta-networking/recipes-support/libconfuse/libconfuse_3.3.bb
+++ /dev/null
@@ -1,14 +0,0 @@
1DESCRIPTION = "libConfuse is a configuration file parser library"
2LICENSE = "ISC"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=42fa47330d4051cd219f7d99d023de3a"
4
5SRCREV = "a42aebf13db33afd575da6e63f55163d371f776d"
6SRC_URI = "git://github.com/libconfuse/libconfuse.git;branch=master;protocol=https"
7
8inherit autotools-brokensep pkgconfig gettext
9
10S = "${WORKDIR}/git"
11
12do_configure:prepend(){
13 (cd ${S} && ${S}/autogen.sh)
14}
diff --git a/meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb b/meta-networking/recipes-support/libcpr/libcpr_1.12.0.bb
index 93fdb78eba..58da899081 100644
--- a/meta-networking/recipes-support/libcpr/libcpr_1.10.5.bb
+++ b/meta-networking/recipes-support/libcpr/libcpr_1.12.0.bb
@@ -8,10 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=08beaae5deae1c43c065592da8f38095"
8 8
9DEPENDS = "curl openssl" 9DEPENDS = "curl openssl"
10 10
11SRC_URI = "git://github.com/libcpr/cpr.git;protocol=https;branch=1.10.x" 11SRC_URI = "git://github.com/libcpr/cpr.git;protocol=https;branch=master"
12SRCREV = "3b15fa82ea74739b574d705fea44959b58142eb8" 12SRCREV = "da40186618909b1a7363d4e4495aa899c6e0eb75"
13 13
14S = "${WORKDIR}/git"
15 14
16inherit cmake 15inherit cmake
17 16
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
index 3d0764a3b9..50f83221c0 100644
--- a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
+++ b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
@@ -12,7 +12,6 @@ SRC_URI = "git://github.com/libesmtp/libESMTP.git;branch=master;protocol=https \
12 file://0001-Add-build-option-for-NTLM-support.patch" 12 file://0001-Add-build-option-for-NTLM-support.patch"
13SRCREV = "1d0af244310a66943ab400be56b15a9087f181eb" 13SRCREV = "1d0af244310a66943ab400be56b15a9087f181eb"
14 14
15S = "${WORKDIR}/git"
16 15
17LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742 \ 16LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742 \
18 file://COPYING.GPL;md5=393a5ca445f6965873eca0259a17f833" 17 file://COPYING.GPL;md5=393a5ca445f6965873eca0259a17f833"
diff --git a/meta-networking/recipes-support/libldb/libldb_2.8.1.bb b/meta-networking/recipes-support/libldb/libldb_2.8.1.bb
index 29ff2cf6f2..dbb27e6ba6 100644
--- a/meta-networking/recipes-support/libldb/libldb_2.8.1.bb
+++ b/meta-networking/recipes-support/libldb/libldb_2.8.1.bb
@@ -6,7 +6,7 @@ LICENSE = "LGPL-3.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later"
6DEPENDS += "libtdb libtalloc libtevent popt cmocka" 6DEPENDS += "libtdb libtalloc libtevent popt cmocka"
7RDEPENDS:pyldb += "python3" 7RDEPENDS:pyldb += "python3"
8 8
9export PYTHONHASHSEED="1" 9export PYTHONHASHSEED = "1"
10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" 10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}"
11 11
12SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ 12SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
@@ -38,11 +38,11 @@ SRC_URI[sha256sum] = "b68ce6eb0ccd2870fa3c8c334f2028b5d16606fd41308696c17b71959f
38 38
39inherit pkgconfig waf-samba ptest 39inherit pkgconfig waf-samba ptest
40 40
41S = "${WORKDIR}/ldb-${PV}" 41S = "${UNPACKDIR}/ldb-${PV}"
42 42
43# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 43# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
44# to cross Popen 44# to cross Popen
45export WAF_NO_PREFORK="yes" 45export WAF_NO_PREFORK = "yes"
46 46
47EXTRA_OECONF += "--disable-rpath \ 47EXTRA_OECONF += "--disable-rpath \
48 --disable-rpath-install \ 48 --disable-rpath-install \
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached.inc b/meta-networking/recipes-support/libmemcached/libmemcached.inc
deleted file mode 100644
index 319ab29ce7..0000000000
--- a/meta-networking/recipes-support/libmemcached/libmemcached.inc
+++ /dev/null
@@ -1,17 +0,0 @@
1DESCRIPTION = "open source C/C++ client library and tools for the memcached server"
2DEPENDS = "libevent util-linux"
3SECTION = "libdevel"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://COPYING;md5=865490941c91ba790f0ea78dec93bd60"
6
7SRC_URI = "http://launchpad.net/libmemcached/1.0/${PV}/+download/libmemcached-${PV}.tar.gz"
8
9UPSTREAM_CHECK_URI = "https://launchpad.net/libmemcached"
10
11TARGET_LDFLAGS += "-luuid"
12TARGET_CFLAGS += "-D__USE_GNU -D_GNU_SOURCE"
13
14PACKAGECONFIG ??= ""
15PACKAGECONFIG[sasl] = "--enable-sasl,--disable-sasl,cyrus-sasl"
16
17inherit autotools gettext pkgconfig
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb
index 56778c0483..561308b33d 100644
--- a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb
+++ b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb
@@ -1,6 +1,11 @@
1require libmemcached.inc 1DESCRIPTION = "open source C/C++ client library and tools for the memcached server"
2DEPENDS = "libevent util-linux"
3SECTION = "libdevel"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://COPYING;md5=865490941c91ba790f0ea78dec93bd60"
2 6
3SRC_URI += "\ 7SRC_URI = "\
8 http://launchpad.net/libmemcached/1.0/${PV}/+download/libmemcached-${PV}.tar.gz \
4 file://crosscompile.patch \ 9 file://crosscompile.patch \
5 file://0001-configure.ac-Do-not-configure-build-aux.patch \ 10 file://0001-configure.ac-Do-not-configure-build-aux.patch \
6 file://0001-Fix-comparison-types.patch \ 11 file://0001-Fix-comparison-types.patch \
@@ -8,3 +13,15 @@ SRC_URI += "\
8 " 13 "
9SRC_URI[md5sum] = "b3958716b4e53ddc5992e6c49d97e819" 14SRC_URI[md5sum] = "b3958716b4e53ddc5992e6c49d97e819"
10SRC_URI[sha256sum] = "e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82" 15SRC_URI[sha256sum] = "e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82"
16
17UPSTREAM_CHECK_URI = "https://launchpad.net/libmemcached"
18
19CVE_STATUS[CVE-2023-27478] = "fixed-version: this problem was not yet introduced in 1.0.18"
20
21TARGET_LDFLAGS += "-luuid"
22TARGET_CFLAGS += "-D__USE_GNU -D_GNU_SOURCE"
23
24PACKAGECONFIG ??= ""
25PACKAGECONFIG[sasl] = "--enable-sasl,--disable-sasl,cyrus-sasl"
26
27inherit autotools gettext pkgconfig
diff --git a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb b/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb
deleted file mode 100644
index cdf8415ff7..0000000000
--- a/meta-networking/recipes-support/libmemcached/libmemcached_1.0.7.bb
+++ /dev/null
@@ -1,4 +0,0 @@
1require libmemcached.inc
2
3SRC_URI[md5sum] = "d59a462a92d296f76bff2d9bc72b2516"
4SRC_URI[sha256sum] = "3efa86c9733eaad55d7119cb16769424e2aa6c22b3392e8f973946fce6678d81"
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.4.2.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb
index b617f097cf..ff36a61d15 100644
--- a/meta-networking/recipes-support/libtalloc/libtalloc_2.4.2.bb
+++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6
6 file://pytalloc.h;beginline=1;endline=18;md5=21ab13bd853679d7d47a1739cb3b7db6 \ 6 file://pytalloc.h;beginline=1;endline=18;md5=21ab13bd853679d7d47a1739cb3b7db6 \
7 " 7 "
8 8
9export PYTHONHASHSEED="1" 9export PYTHONHASHSEED = "1"
10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" 10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}"
11 11
12SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ 12SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \
@@ -14,7 +14,7 @@ SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \
14 file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ 14 file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \
15 file://run-ptest \ 15 file://run-ptest \
16" 16"
17SRC_URI[sha256sum] = "85ecf9e465e20f98f9950a52e9a411e14320bc555fa257d87697b7e7a9b1d8a6" 17SRC_URI[sha256sum] = "dc46c40b9f46bb34dd97fe41f548b0e8b247b77a918576733c528e83abd854dd"
18 18
19inherit waf-samba pkgconfig ptest 19inherit waf-samba pkgconfig ptest
20 20
@@ -30,11 +30,11 @@ PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
30 30
31SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" 31SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}"
32 32
33S = "${WORKDIR}/talloc-${PV}" 33S = "${UNPACKDIR}/talloc-${PV}"
34 34
35# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 35# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
36# to cross Popen 36# to cross Popen
37export WAF_NO_PREFORK="yes" 37export WAF_NO_PREFORK = "yes"
38 38
39EXTRA_OECONF += "--disable-rpath \ 39EXTRA_OECONF += "--disable-rpath \
40 --disable-rpath-install \ 40 --disable-rpath-install \
diff --git a/meta-networking/recipes-support/libtdb/libtdb_1.4.10.bb b/meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb
index bd3f9f63a9..7221130fe6 100644
--- a/meta-networking/recipes-support/libtdb/libtdb_1.4.10.bb
+++ b/meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb
@@ -6,7 +6,7 @@ LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later"
6LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ 6LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \
7 file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" 7 file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6"
8 8
9export PYTHONHASHSEED="1" 9export PYTHONHASHSEED = "1"
10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" 10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}"
11 11
12SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ 12SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \
@@ -15,7 +15,7 @@ SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \
15 file://run-ptest \ 15 file://run-ptest \
16" 16"
17 17
18SRC_URI[sha256sum] = "02338e33c16c21c9e29571cef523e76b2b708636254f6f30c6cf195d48c62daf" 18SRC_URI[sha256sum] = "5ee276e7644d713e19e4b6adc00b440afb5851ff21e65821ffaed89e15a5e167"
19 19
20PACKAGECONFIG ??= "\ 20PACKAGECONFIG ??= "\
21 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ 21 ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \
@@ -28,13 +28,13 @@ PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
28PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" 28PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
29PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" 29PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
30 30
31S = "${WORKDIR}/tdb-${PV}" 31S = "${UNPACKDIR}/tdb-${PV}"
32 32
33inherit waf-samba pkgconfig ptest 33inherit waf-samba pkgconfig ptest
34 34
35# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 35# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
36# to cross Popen 36# to cross Popen
37export WAF_NO_PREFORK="yes" 37export WAF_NO_PREFORK = "yes"
38 38
39EXTRA_OECONF += "--disable-rpath \ 39EXTRA_OECONF += "--disable-rpath \
40 --disable-rpath-install \ 40 --disable-rpath-install \
diff --git a/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
index f1b8f8e9b1..a3301db077 100644
--- a/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
+++ b/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
@@ -1,4 +1,4 @@
1From 2bb7bf2d945d4ea0dafe3858adc6b8faae18b1e8 Mon Sep 17 00:00:00 2001 1From f8b5f542c782b235051ed39239dd32c93eb2c69c Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 24 Nov 2021 13:33:35 +0800 3Date: Wed, 24 Nov 2021 13:33:35 +0800
4Subject: [PATCH] Fix pyext_PATTERN for cross compilation 4Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -25,10 +25,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
25 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
26 26
27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py 27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
28index b2dd1a9..2bd3545 100644 28index 8646454..4eb8725 100644
29--- a/third_party/waf/waflib/Tools/python.py 29--- a/third_party/waf/waflib/Tools/python.py
30+++ b/third_party/waf/waflib/Tools/python.py 30+++ b/third_party/waf/waflib/Tools/python.py
31@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'): 31@@ -351,7 +351,7 @@ def check_python_headers(conf, features='pyembed pyext'):
32 x = 'MACOSX_DEPLOYMENT_TARGET' 32 x = 'MACOSX_DEPLOYMENT_TARGET'
33 if dct[x]: 33 if dct[x]:
34 env[x] = conf.environ[x] = str(dct[x]) 34 env[x] = conf.environ[x] = str(dct[x])
@@ -37,6 +37,3 @@ index b2dd1a9..2bd3545 100644
37 37
38 38
39 # Try to get pythonX.Y-config 39 # Try to get pythonX.Y-config
40--
412.25.1
42
diff --git a/meta-networking/recipes-support/libtevent/libtevent_0.16.1.bb b/meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb
index 0a37d7977d..7ee044d146 100644
--- a/meta-networking/recipes-support/libtevent/libtevent_0.16.1.bb
+++ b/meta-networking/recipes-support/libtevent/libtevent_0.17.0.bb
@@ -6,7 +6,7 @@ LICENSE = "LGPL-3.0-or-later"
6DEPENDS += "libtalloc libtirpc cmocka" 6DEPENDS += "libtalloc libtirpc cmocka"
7RDEPENDS:python3-tevent = "python3" 7RDEPENDS:python3-tevent = "python3"
8 8
9export PYTHONHASHSEED="1" 9export PYTHONHASHSEED = "1"
10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" 10export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}"
11 11
12SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ 12SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \
@@ -17,7 +17,7 @@ SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \
17 17
18LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681" 18LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681"
19 19
20SRC_URI[sha256sum] = "362971e0f32dc1905f6fe4736319c4b8348c22dc85aa6c3f690a28efe548029e" 20SRC_URI[sha256sum] = "7702fb373b69da2960b86134b6a9ec6fa0b949a01756fec00a4a6a43575c8361"
21 21
22inherit pkgconfig ptest waf-samba 22inherit pkgconfig ptest waf-samba
23 23
@@ -33,11 +33,11 @@ PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
33 33
34SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" 34SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}"
35 35
36S = "${WORKDIR}/tevent-${PV}" 36S = "${UNPACKDIR}/tevent-${PV}"
37 37
38# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 38# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
39# to cross Popen 39# to cross Popen
40export WAF_NO_PREFORK="yes" 40export WAF_NO_PREFORK = "yes"
41 41
42EXTRA_OECONF += "--disable-rpath \ 42EXTRA_OECONF += "--disable-rpath \
43 --disable-rpath-install \ 43 --disable-rpath-install \
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0001-Fix-implicit-declaration-error.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0001-Fix-implicit-declaration-error.patch
new file mode 100644
index 0000000000..1c5f79c9d8
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0001-Fix-implicit-declaration-error.patch
@@ -0,0 +1,44 @@
1From 1435d613ee632bd7a2aa15180acf06ff3723da41 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Sat, 26 Apr 2025 13:03:35 +0200
4Subject: [PATCH] Fix implicit-declaration error
5
6* taken from:
7 https://github.com/sbwml/package_network_utils_linux-atm/blob/main/patches/900-fix-implicit-declaration-error.patch
8
9* fixes:
10 http://errors.yoctoproject.org/Errors/Details/766901/
11 linux-atm-2.5.2/src/led/conn.c:414:57: error: passing argument 3 of 'accept' from incompatible pointer type [-Wincompatible-pointer-types]
12
13Upstream-Status: Inappropriate [Upstream is dead]
14Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
15---
16 src/led/conn.c | 2 +-
17 src/maint/hediag.c | 1 +
18 2 files changed, 2 insertions(+), 1 deletion(-)
19
20diff --git a/src/led/conn.c b/src/led/conn.c
21index 99da5e4..89639e1 100644
22--- a/src/led/conn.c
23+++ b/src/led/conn.c
24@@ -405,7 +405,7 @@ Conn_t *accept_conn(Conn_t *conn)
25 {
26 Conn_t *new;
27 struct sockaddr_atmsvc addr;
28- size_t len;
29+ socklen_t len;
30 int fd;
31 char buff[MAX_ATM_ADDR_LEN+1];
32
33diff --git a/src/maint/hediag.c b/src/maint/hediag.c
34index a4f792f..3b1b7fb 100644
35--- a/src/maint/hediag.c
36+++ b/src/maint/hediag.c
37@@ -9,6 +9,7 @@
38 #include <linux/atmdev.h>
39 #include <linux/sonet.h>
40 #include <linux/atm_he.h>
41+#include <string.h>
42
43 struct reg_table {
44 unsigned addr;
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm/0002-Fix-build-with-gcc-15.patch b/meta-networking/recipes-support/linux-atm/linux-atm/0002-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..1cbd6a5831
--- /dev/null
+++ b/meta-networking/recipes-support/linux-atm/linux-atm/0002-Fix-build-with-gcc-15.patch
@@ -0,0 +1,91 @@
1From 2a9d42b2b190d533cf126a93bcad842cea825bbe Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Sat, 26 Apr 2025 13:04:56 +0200
4Subject: [PATCH] Fix build with gcc-15
5
6* taken from:
7 https://github.com/sbwml/package_network_utils_linux-atm/blob/1d1c3f884daf9ee4bce077f3db9d990617683669/patches/901-linux-atm-dont-use-bool-keyword.patch
8
9* fixes:
10 http://errors.yoctoproject.org/Errors/Details/852979/
11
12In file included from load_lex.l:11:
13../../../linux-atm-2.5.2/src/lane/load_lex.h:27:10: error: two or more data types in declaration specifiers
14 27 | Bool_t bool;
15 | ^~~~
16../../../linux-atm-2.5.2/src/lane/load_lex.h:27:14: warning: declaration does not declare anything
17 27 | Bool_t bool;
18 | ^
19In file included from ../../../linux-atm-2.5.2/src/lane/load.c:29:
20../../../linux-atm-2.5.2/src/lane/load_lex.h:27:10: error: two or more data types in declaration specifiers
21 27 | Bool_t bool;
22 | ^~~~
23../../../linux-atm-2.5.2/src/lane/load_lex.h:27:14: warning: declaration does not declare anything
24 27 | Bool_t bool;
25 | ^
26load_lex.l: In function 'yylex':
27load_lex.l:47:11: error: expected identifier before 'bool'
28load_lex.l:51:11: error: expected identifier before 'bool'
29../../../linux-atm-2.5.2/src/lane/load.c: In function 'load_vars':
30../../../linux-atm-2.5.2/src/lane/load.c:501:29: error: expected identifier before 'bool'
31 501 | g_return.bool==BL_TRUE?"True":"False");
32 | ^~~~
33../../../linux-atm-2.5.2/src/lane/load.c:502:51: error: expected identifier before 'bool'
34 502 | set_var_bool(curr_unit, varname, g_return.bool);
35 | ^~~~
36make[3]: *** [Makefile:513: load.o] Error 1
37
38Upstream-Status: Inappropriate [Upstream is dead]
39Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
40---
41 src/lane/load.c | 4 ++--
42 src/lane/load_lex.h | 2 +-
43 src/lane/load_lex.l | 4 ++--
44 3 files changed, 5 insertions(+), 5 deletions(-)
45
46diff --git a/src/lane/load.c b/src/lane/load.c
47index 39d4672..1cc2202 100644
48--- a/src/lane/load.c
49+++ b/src/lane/load.c
50@@ -498,8 +498,8 @@ load_vars(const char *file)
51 break;
52 case BOOLEAN:
53 Debug_unit(&load_unit, "Variable is boolean: %s",
54- g_return.bool==BL_TRUE?"True":"False");
55- set_var_bool(curr_unit, varname, g_return.bool);
56+ g_return.b==BL_TRUE?"True":"False");
57+ set_var_bool(curr_unit, varname, g_return.b);
58 break;
59 case INTEGER:
60 Debug_unit(&load_unit, "Variable is integer: %d", g_return.intti);
61diff --git a/src/lane/load_lex.h b/src/lane/load_lex.h
62index 2384e70..72b8f9b 100644
63--- a/src/lane/load_lex.h
64+++ b/src/lane/load_lex.h
65@@ -24,7 +24,7 @@
66 #define END 0
67
68 typedef struct {
69- Bool_t bool;
70+ Bool_t b;
71 int intti;
72 AtmAddr_t *atmaddress;
73 LaneDestination_t *destaddr;
74diff --git a/src/lane/load_lex.l b/src/lane/load_lex.l
75index c184795..1d412e3 100644
76--- a/src/lane/load_lex.l
77+++ b/src/lane/load_lex.l
78@@ -44,11 +44,11 @@ H [0-9a-fA-F]
79 return ATMADDRESS;
80 }
81 True |
82-true {g_return.bool = BL_TRUE;
83+true {g_return.b = BL_TRUE;
84 return BOOLEAN;
85 }
86 False |
87-false {g_return.bool = BL_FALSE;
88+false {g_return.b = BL_FALSE;
89 return BOOLEAN;
90 }
91 \#.* {}
diff --git a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
index 86b9112ba2..3d679d7dc7 100644
--- a/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
+++ b/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb
@@ -16,6 +16,8 @@ SRC_URI = "http://nchc.dl.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BPN}-${P
16 file://0001-make-Add-PREFIX-knob.patch \ 16 file://0001-make-Add-PREFIX-knob.patch \
17 file://0001-include-string-h-from-memcpy-and-strcpy-function-pro.patch \ 17 file://0001-include-string-h-from-memcpy-and-strcpy-function-pro.patch \
18 file://0001-configure-Check-for-symbol-from-libresolv-instead-of.patch \ 18 file://0001-configure-Check-for-symbol-from-libresolv-instead-of.patch \
19 file://0001-Fix-implicit-declaration-error.patch \
20 file://0002-Fix-build-with-gcc-15.patch \
19 " 21 "
20 22
21SRC_URI:append:libc-musl = " file://musl-no-on_exit.patch" 23SRC_URI:append:libc-musl = " file://musl-no-on_exit.patch"
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.19.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.21.bb
index 0243f2a1db..407194792f 100644
--- a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.19.bb
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.21.bb
@@ -8,10 +8,7 @@ LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \ 8 file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
9" 9"
10 10
11SRCREV = "05b50d379ff0037de4957bb2a1befcce88b70225" 11SRCREV = "37d5f1225573b91d706a5e547d081f79963a9deb"
12
13PV .= "+git"
14LK_REL = "1.0.19"
15 12
16SRC_URI = " \ 13SRC_URI = " \
17 git://github.com/sctp/lksctp-tools.git;branch=master;protocol=https \ 14 git://github.com/sctp/lksctp-tools.git;branch=master;protocol=https \
@@ -20,7 +17,6 @@ SRC_URI = " \
20 file://v6test.sh \ 17 file://v6test.sh \
21" 18"
22 19
23S = "${WORKDIR}/git"
24 20
25BBCLASSEXTEND = "native" 21BBCLASSEXTEND = "native"
26 22
@@ -34,19 +30,14 @@ do_install_ptest () {
34 done 30 done
35} 31}
36 32
37SOLIBVERSION="${LK_REL}"
38SOLIBMAJORVERSION="1"
39
40PACKAGES =+ "${PN}-withsctp ${PN}-utils" 33PACKAGES =+ "${PN}-withsctp ${PN}-utils"
41 34
42FILES:${PN} = " \ 35FILES:${PN} = " \
43 ${libdir}/libsctp.so.${SOLIBVERSION} \ 36 ${libdir}/libsctp.so.* \
44 ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
45" 37"
46 38
47FILES:${PN}-withsctp = " \ 39FILES:${PN}-withsctp = " \
48 ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION} \ 40 ${libdir}/lksctp-tools/libwithsctp.so.* \
49 ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
50" 41"
51 42
52FILES:${PN}-dev += " \ 43FILES:${PN}-dev += " \
diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
index f0b7e9184e..b442fb9f56 100644
--- a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
+++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
@@ -19,7 +19,6 @@ SRC_URI = "git://github.com/linux-wpan/lowpan-tools;branch=master;protocol=https
19 " 19 "
20SRCREV = "1c2d8674cc6f4b1166a066e8822e295c105ae7a2" 20SRCREV = "1c2d8674cc6f4b1166a066e8822e295c105ae7a2"
21 21
22S = "${WORKDIR}/git"
23 22
24inherit autotools python3-dir pkgconfig 23inherit autotools python3-dir pkgconfig
25 24
diff --git a/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch
new file mode 100644
index 0000000000..4ff9b09299
--- /dev/null
+++ b/meta-networking/recipes-support/mctp/mctp/0001-mctp-bench-Adjust-headers.patch
@@ -0,0 +1,38 @@
1From 166b2251a156a03a80318533440178ac0b913945 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 17 Feb 2025 21:29:41 -0800
4Subject: [PATCH] mctp-bench: Adjust headers
5
6bits/time.h is not be included directly, instead use time.h
7since poll.h is included there is no need to include sys/poll.h
8
9Fixes
10../git/src/mctp-bench.c:2:10: fatal error: 'bits/time.h' file not found
11 2 | #include <bits/time.h>
12 | ^~~~~~~~~~~~~
13
14Upstream-Status: Submitted [https://github.com/CodeConstruct/mctp/pull/65]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 src/mctp-bench.c | 3 +--
18 1 file changed, 1 insertion(+), 2 deletions(-)
19
20diff --git a/src/mctp-bench.c b/src/mctp-bench.c
21index eeb6fcf..60b3bb0 100644
22--- a/src/mctp-bench.c
23+++ b/src/mctp-bench.c
24@@ -1,5 +1,5 @@
25 #define _XOPEN_SOURCE 700
26-#include <bits/time.h>
27+#include <time.h>
28 #include <err.h>
29 #include <errno.h>
30 #include <poll.h>
31@@ -9,7 +9,6 @@
32 #include <stdlib.h>
33 #include <string.h>
34 #include <sys/ioctl.h>
35-#include <sys/poll.h>
36 #include <sys/socket.h>
37 #include <time.h>
38 #include <unistd.h>
diff --git a/meta-networking/recipes-support/mctp/mctp_1.1.bb b/meta-networking/recipes-support/mctp/mctp_2.1.bb
index bf3961be42..04fecf7aca 100644
--- a/meta-networking/recipes-support/mctp/mctp_1.1.bb
+++ b/meta-networking/recipes-support/mctp/mctp_2.1.bb
@@ -5,14 +5,18 @@ LICENSE = "GPL-2.0-only"
5 5
6LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21"
7 7
8SRCREV = "a591ad885aa28f113cb45870b2fd5bce48378d6f" 8SRCREV = "dd944cf5b5a8b834f3685bcb2017190258dbcd0b"
9 9
10SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https" 10SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https \
11 file://0001-mctp-bench-Adjust-headers.patch"
11 12
12S = "${WORKDIR}/git"
13 13
14inherit meson pkgconfig systemd 14inherit meson pkgconfig systemd
15 15
16EXTRA_OEMESON = " \
17 -Dtests=false \
18"
19
16PACKAGECONFIG ??= " \ 20PACKAGECONFIG ??= " \
17 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 21 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
18" 22"
diff --git a/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb b/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb
index 3867b89052..52e7e53c32 100644
--- a/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb
+++ b/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb
@@ -3,12 +3,11 @@ require mdio-tools.inc
3DEPENDS += "virtual/kernel libmnl" 3DEPENDS += "virtual/kernel libmnl"
4# This module requires Linux 5.6 higher 4# This module requires Linux 5.6 higher
5 5
6S = "${WORKDIR}/git"
7 6
8inherit module 7inherit module
9 8
10EXTRA_OEMAKE = "-C kernel/ KDIR=${STAGING_KERNEL_DIR}" 9EXTRA_OEMAKE = "-C kernel/ KDIR=${STAGING_KERNEL_DIR}"
11MODULES_MODULE_SYMVERS_LOCATION="kernel" 10MODULES_MODULE_SYMVERS_LOCATION = "kernel"
12MODULES_INSTALL_TARGET = "install" 11MODULES_INSTALL_TARGET = "install"
13 12
14RPROVIDES:${PN} += "kernel-module-mdio-netlink" 13RPROVIDES:${PN} += "kernel-module-mdio-netlink"
diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools.inc b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
index b99ce82810..fc8161eb1f 100644
--- a/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
+++ b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "A low-level debug tool for communicating with devices attached to
2SECTION = "networking" 2SECTION = "networking"
3HOMEPAGE = "https://github.com/wkz/mdio-tools" 3HOMEPAGE = "https://github.com/wkz/mdio-tools"
4LICENSE = "GPL-2.0-or-later" 4LICENSE = "GPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6 6
7SRC_URI = "git://github.com/wkz/mdio-tools.git;protocol=https;branch=master" 7SRC_URI = "git://github.com/wkz/mdio-tools.git;protocol=https;branch=master"
8SRCREV = "f74eaf38dbda441df4fcaeb21ca4465957953a2f" 8SRCREV = "f74eaf38dbda441df4fcaeb21ca4465957953a2f"
diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb b/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb
index 0c64889bc3..2c8f9b8c37 100644
--- a/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb
+++ b/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb
@@ -2,8 +2,7 @@ require mdio-tools.inc
2 2
3DEPENDS += "virtual/kernel libmnl" 3DEPENDS += "virtual/kernel libmnl"
4 4
5S = "${WORKDIR}/git"
6 5
7inherit pkgconfig autotools 6inherit pkgconfig autotools
8 7
9RDEPENDS:${PN} = "kernel-module-mdio-netlink" 8RRECOMMENDS:${PN} = "kernel-module-mdio-netlink"
diff --git a/meta-networking/recipes-support/memcached/memcached/0001-Fix-function-protypes.patch b/meta-networking/recipes-support/memcached/memcached/0001-Fix-function-protypes.patch
deleted file mode 100644
index 15ef54f80e..0000000000
--- a/meta-networking/recipes-support/memcached/memcached/0001-Fix-function-protypes.patch
+++ /dev/null
@@ -1,110 +0,0 @@
1From 6021d3d60e64d9174f41515d2d962df9b5d7645e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 29 Aug 2022 17:15:28 -0700
4Subject: [PATCH] Fix function protypes
5
6clang-15+ has started diagnosing them as errors
7
8thread.c:925:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
9| void STATS_UNLOCK() {
10| ^
11| void
12
13Upstream-Status: Submitted [https://github.com/memcached/memcached/pull/928]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 assoc.c | 4 ++--
17 memcached.c | 4 ++--
18 slabs.c | 2 +-
19 testapp.c | 2 +-
20 thread.c | 4 ++--
21 5 files changed, 8 insertions(+), 8 deletions(-)
22
23diff --git a/assoc.c b/assoc.c
24index bc68695..01063a9 100644
25--- a/assoc.c
26+++ b/assoc.c
27@@ -261,7 +261,7 @@ static void *assoc_maintenance_thread(void *arg) {
28
29 static pthread_t maintenance_tid;
30
31-int start_assoc_maintenance_thread() {
32+int start_assoc_maintenance_thread(void) {
33 int ret;
34 char *env = getenv("MEMCACHED_HASH_BULK_MOVE");
35 if (env != NULL) {
36@@ -279,7 +279,7 @@ int start_assoc_maintenance_thread() {
37 return 0;
38 }
39
40-void stop_assoc_maintenance_thread() {
41+void stop_assoc_maintenance_thread(void) {
42 mutex_lock(&maintenance_lock);
43 do_run_maintenance_thread = 0;
44 pthread_cond_signal(&maintenance_cond);
45diff --git a/memcached.c b/memcached.c
46index 7871fe8..4d3b54a 100644
47--- a/memcached.c
48+++ b/memcached.c
49@@ -84,7 +84,7 @@ static int try_read_command_udp(conn *c);
50 static enum try_read_result try_read_network(conn *c);
51 static enum try_read_result try_read_udp(conn *c);
52
53-static int start_conn_timeout_thread();
54+static int start_conn_timeout_thread(void);
55
56 /* stats */
57 static void stats_init(void);
58@@ -374,7 +374,7 @@ static void *conn_timeout_thread(void *arg) {
59 return NULL;
60 }
61
62-static int start_conn_timeout_thread() {
63+static int start_conn_timeout_thread(void) {
64 int ret;
65
66 if (settings.idle_timeout == 0)
67diff --git a/slabs.c b/slabs.c
68index 3c78d8a..0dadd35 100644
69--- a/slabs.c
70+++ b/slabs.c
71@@ -638,7 +638,7 @@ static void *memory_allocate(size_t size) {
72 }
73
74 /* Must only be used if all pages are item_size_max */
75-static void memory_release() {
76+static void memory_release(void) {
77 void *p = NULL;
78 if (mem_base != NULL)
79 return;
80diff --git a/testapp.c b/testapp.c
81index 5face54..387a847 100644
82--- a/testapp.c
83+++ b/testapp.c
84@@ -80,7 +80,7 @@ static struct conn *con = NULL;
85 static bool allow_closed_read = false;
86 static bool enable_ssl = false;
87
88-static void close_conn() {
89+static void close_conn(void) {
90 if (con == NULL) return;
91 #ifdef TLS
92 if (con->ssl) {
93diff --git a/thread.c b/thread.c
94index d5ed052..f5efdc3 100644
95--- a/thread.c
96+++ b/thread.c
97@@ -918,11 +918,11 @@ enum store_item_type store_item(item *item, int comm, conn* c) {
98
99 /******************************* GLOBAL STATS ******************************/
100
101-void STATS_LOCK() {
102+void STATS_LOCK(void) {
103 pthread_mutex_lock(&stats_lock);
104 }
105
106-void STATS_UNLOCK() {
107+void STATS_UNLOCK(void) {
108 pthread_mutex_unlock(&stats_lock);
109 }
110
diff --git a/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
index 45428ed234..26281e73ef 100644
--- a/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
+++ b/meta-networking/recipes-support/memcached/memcached/memcached-add-hugetlbfs-check.patch
@@ -1,4 +1,7 @@
1memcached: add knob to detect whether hugetlbfs are checked 1From dfa90817a08f206f7e2dbba44d913968ae7f7d94 Mon Sep 17 00:00:00 2001
2From: Chong Lu <Chong.Lu@windriver.com>
3Date: Tue, 19 Aug 2014 17:38:32 +0800
4Subject: [PATCH] memcached: add knob to detect whether hugetlbfs are checked
2 5
3Add knob to detect whether hugetlbfs are checked or not. 6Add knob to detect whether hugetlbfs are checked or not.
4 7
@@ -6,12 +9,14 @@ Upstream-Status: Pending
6 9
7Signed-off-by: Chong Lu <Chong.Lu@windriver.com> 10Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
8--- 11---
9 configure.ac | 7 ++++++- 12 configure.ac | 6 +++++-
10 1 file changed, 6 insertions(+), 1 deletion(-) 13 1 file changed, 5 insertions(+), 1 deletion(-)
11 14
15diff --git a/configure.ac b/configure.ac
16index 6f2ef97..bd7dd96 100644
12--- a/configure.ac 17--- a/configure.ac
13+++ b/configure.ac 18+++ b/configure.ac
14@@ -488,8 +488,12 @@ if test "x$enable_static" = "xyes"; then 19@@ -559,8 +559,12 @@ if test "x$enable_static" = "xyes"; then
15 fi 20 fi
16 21
17 dnl ---------------------------------------------------------------------------- 22 dnl ----------------------------------------------------------------------------
diff --git a/meta-networking/recipes-support/memcached/memcached_1.6.17.bb b/meta-networking/recipes-support/memcached/memcached_1.6.38.bb
index 270ad5486d..9799b55a09 100644
--- a/meta-networking/recipes-support/memcached/memcached_1.6.17.bb
+++ b/meta-networking/recipes-support/memcached/memcached_1.6.38.bb
@@ -21,9 +21,12 @@ RDEPENDS:${PN} += "perl perl-module-posix perl-module-autoloader \
21 21
22SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \ 22SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \
23 file://memcached-add-hugetlbfs-check.patch \ 23 file://memcached-add-hugetlbfs-check.patch \
24 file://0001-Fix-function-protypes.patch \
25 " 24 "
26SRC_URI[sha256sum] = "2055e373613d8fc21529aff9f0adce3e23b9ce01ba0478d30e7941d9f2bd1224" 25SRC_URI[sha256sum] = "334d792294e37738796b5b03375c47bb6db283b1152e2ea4ccb720152dd17c66"
26
27CVE_STATUS[CVE-2022-26635] = "disputed: this is a problem of applications using php-memcached inproperly"
28
29UPSTREAM_CHECK_URI = "${HOMEPAGE}"
27 30
28# set the same COMPATIBLE_HOST as libhugetlbfs 31# set the same COMPATIBLE_HOST as libhugetlbfs
29COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*" 32COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
diff --git a/meta-networking/recipes-support/mtr/mtr_0.95.bb b/meta-networking/recipes-support/mtr/mtr_0.95.bb
index 92f9c4bfc0..ac8b48e4e5 100644
--- a/meta-networking/recipes-support/mtr/mtr_0.95.bb
+++ b/meta-networking/recipes-support/mtr/mtr_0.95.bb
@@ -11,7 +11,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
11SRCREV = "852e5617fbf331cf292723702161f0ac9afe257c" 11SRCREV = "852e5617fbf331cf292723702161f0ac9afe257c"
12SRC_URI = "git://github.com/traviscross/mtr;branch=master;protocol=https" 12SRC_URI = "git://github.com/traviscross/mtr;branch=master;protocol=https"
13 13
14S = "${WORKDIR}/git"
15 14
16inherit autotools pkgconfig 15inherit autotools pkgconfig
17 16
diff --git a/meta-networking/recipes-support/nbdkit/nbdkit/0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch b/meta-networking/recipes-support/nbdkit/nbdkit/0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch
new file mode 100644
index 0000000000..2f7ffd3d20
--- /dev/null
+++ b/meta-networking/recipes-support/nbdkit/nbdkit/0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch
@@ -0,0 +1,38 @@
1From 1ccbd8fdbd2e367a702e48c8703b2f010d067b23 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 22 May 2023 18:16:24 -0700
4Subject: [PATCH] plugins: Avoid absolute buildpaths in binaries
5
6plugins seems to add CC to the plugins shared objects via compiler
7cmdline which ends up in real code. Therefore scrub buildpaths from CC
8and CFLAGS before passing them to plugin's build.
9
10Upstream-Status: Submitted [https://gitlab.com/nbdkit/nbdkit/-/merge_requests/30]
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 plugins/cc/Makefile.am | 7 +++++--
15 1 file changed, 5 insertions(+), 2 deletions(-)
16
17diff --git a/plugins/cc/Makefile.am b/plugins/cc/Makefile.am
18index df8b5d15..80586a17 100644
19--- a/plugins/cc/Makefile.am
20+++ b/plugins/cc/Makefile.am
21@@ -44,9 +44,12 @@ nbdkit_cc_plugin_la_SOURCES = \
22 $(top_srcdir)/include/nbdkit-plugin.h \
23 $(NULL)
24
25+workdir := $(shell dirname $(abs_top_builddir))
26+cc_no_sysroot := $(shell echo \"$(CC)\"|sed -e 's#$(workdir)#<WORKDIR>#g')
27+cflags_no_sysroot := $(shell echo \"$(CFLAGS)\"|sed -e 's#$(workdir)#<WORKDIR>#g')
28 nbdkit_cc_plugin_la_CPPFLAGS = \
29- -DCC="\"$(CC_PLUGIN_CC)\"" \
30- -DCFLAGS="\"$(CC_PLUGIN_CFLAGS)\"" \
31+ -DCC=\"$(cc_no_sysroot)\" \
32+ -DCFLAGS=\"$(cflags_no_sysroot)\" \
33 -I$(top_srcdir)/include \
34 -I$(top_builddir)/include \
35 -I$(top_srcdir)/common/include \
36--
372.40.1
38
diff --git a/meta-networking/recipes-support/nbdkit/nbdkit_1.33.11.bb b/meta-networking/recipes-support/nbdkit/nbdkit_1.33.11.bb
index cdf2677f13..1c9db1e956 100644
--- a/meta-networking/recipes-support/nbdkit/nbdkit_1.33.11.bb
+++ b/meta-networking/recipes-support/nbdkit/nbdkit_1.33.11.bb
@@ -13,7 +13,6 @@ SRC_URI = "git://github.com/libguestfs/nbdkit.git;protocol=https;branch=master \
13 file://0001-plugins-Avoid-absolute-buildpaths-in-binaries.patch" 13 file://0001-plugins-Avoid-absolute-buildpaths-in-binaries.patch"
14SRCREV = "6c02c6a469d62a047f230b0ccf03f72328312d2b" 14SRCREV = "6c02c6a469d62a047f230b0ccf03f72328312d2b"
15 15
16S = "${WORKDIR}/git"
17 16
18DEPENDS = "curl xz e2fsprogs zlib" 17DEPENDS = "curl xz e2fsprogs zlib"
19 18
diff --git a/meta-networking/recipes-support/nbdkit/nbdkit_1.43.11.bb b/meta-networking/recipes-support/nbdkit/nbdkit_1.43.11.bb
new file mode 100644
index 0000000000..9e7bdc9966
--- /dev/null
+++ b/meta-networking/recipes-support/nbdkit/nbdkit_1.43.11.bb
@@ -0,0 +1,33 @@
1SUMMARY = "nbdkit is a toolkit for creating NBD servers."
2DESCRIPTION = "NBD — Network Block Device — is a protocol \
3for accessing Block Devices (hard disks and disk-like things) \
4over a Network. \
5\
6nbdkit is a toolkit for creating NBD servers."
7
8HOMEPAGE = "https://gitlab.com/nbdkit/nbdkit"
9LICENSE = "BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=26250adec854bc317493f6fb98efe049"
11
12SRC_URI = "git://gitlab.com/nbdkit/nbdkit.git;protocol=https;branch=master;tag=v${PV} \
13 file://0002-plugins-Avoid-absolute-buildpaths-in-binaries.patch \
14 "
15SRCREV = "2d0f232b590f4001881dd0819f55af72b88c4b2f"
16
17
18DEPENDS = "curl xz e2fsprogs zlib"
19
20# autotools-brokensep is needed as nbdkit does not support build in external directory
21inherit pkgconfig python3native perlnative bash-completion autotools-brokensep
22
23# Those are required to build standalone
24EXTRA_OECONF = " --without-libvirt --without-libguestfs --disable-perl"
25
26# Disable some extended support (not desired for small embedded systems)
27#EXTRA_OECONF += " --disable-python"
28#EXTRA_OECONF += " --disable-ocaml"
29#EXTRA_OECONF += " --disable-rust"
30#EXTRA_OECONF += " --disable-ruby"
31#EXTRA_OECONF += " --disable-tcl"
32#EXTRA_OECONF += " --disable-lua"
33#EXTRA_OECONF += " --disable-vddk"
diff --git a/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch b/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch
new file mode 100644
index 0000000000..6f5f3e712e
--- /dev/null
+++ b/meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch
@@ -0,0 +1,100 @@
1From 397d00cfd672f3782196e927d0a878ab1d800112 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Fri, 18 Apr 2025 17:30:48 +0900
4Subject: [PATCH] fix incompatible type error with gcc 15
5
6 * fix following errors:
7 ./select.h:13:12: error: conflicting types for 'select'; have 'int(void)'
8 13 | extern int select();
9 | ^~~~~~
10 In file included from TOPDIR/tmp/work/core2-64-oe-linux/libowfat/0.32/recipe-sysroot/usr/include/sys/types.h:179,
11 from ./select.h:6:
12 ./buffer.h:40:65: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'} from incompatible pointer type 'ssize_t (*)(int, char *, size_t)' {aka 'long int (*)(int, char *, long unsigned int)'} [-Wincompatible-pointer-types]
13 40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
14 | ^
15Upstream-Status: Submitted [felix-libowfat@fefe.de]
16Signed-off-by: mark.yang <mark.yang@lge.com>
17---
18 buffer.h | 2 +-
19 buffer/buffer_frombuf.c | 2 +-
20 buffer/buffer_stubborn.c | 2 +-
21 buffer/buffer_stubborn2.c | 2 +-
22 buffer/buffer_tosa.c | 2 +-
23 select.h2 | 2 --
24 6 files changed, 5 insertions(+), 7 deletions(-)
25
26diff --git a/buffer.h b/buffer.h
27index 54bed5c..eaf7acb 100644
28--- a/buffer.h
29+++ b/buffer.h
30@@ -24,7 +24,7 @@ typedef struct buffer {
31 int fd; /* passed as first argument to op */
32 } buffer;
33
34-#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, NULL, (fd) }
35+#define BUFFER_INIT(op,fd,buf,len) { (buf), 0, 0, (len), (void*)(op), NULL, NULL, (fd) }
36 #define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) }
37 #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
38 #define BUFFER_INSIZE 8192
39diff --git a/buffer/buffer_frombuf.c b/buffer/buffer_frombuf.c
40index 0c9d931..2aa27ca 100644
41--- a/buffer/buffer_frombuf.c
42+++ b/buffer/buffer_frombuf.c
43@@ -14,6 +14,6 @@ void buffer_frombuf(buffer* b,const char* x,size_t l) {
44 b->n=l;
45 b->a=l;
46 b->fd=0;
47- b->op=dummyreadwrite;
48+ b->op=(void*)dummyreadwrite;
49 b->deinit=0;
50 }
51diff --git a/buffer/buffer_stubborn.c b/buffer/buffer_stubborn.c
52index 2e00418..8079000 100644
53--- a/buffer/buffer_stubborn.c
54+++ b/buffer/buffer_stubborn.c
55@@ -1,7 +1,7 @@
56 #include <errno.h>
57 #include "buffer.h"
58
59-int buffer_stubborn(ssize_t (*op)(),int fd,const char* buf, size_t len,void* cookie) {
60+int buffer_stubborn(ssize_t (*op)(int,char*,size_t,void*),int fd,const char* buf, size_t len,void* cookie) {
61 ssize_t w;
62 errno=0;
63 while (len) {
64diff --git a/buffer/buffer_stubborn2.c b/buffer/buffer_stubborn2.c
65index b9146e2..b47a245 100644
66--- a/buffer/buffer_stubborn2.c
67+++ b/buffer/buffer_stubborn2.c
68@@ -1,7 +1,7 @@
69 #include <errno.h>
70 #include "buffer.h"
71
72-ssize_t buffer_stubborn_read(ssize_t (*op)(),int fd,const char* buf, size_t len,void* cookie) {
73+ssize_t buffer_stubborn_read(ssize_t (*op)(int,char*,size_t,void*),int fd,const char* buf, size_t len,void* cookie) {
74 ssize_t w;
75 for (;;) {
76 if ((w=op(fd,buf,len,cookie))<0)
77diff --git a/buffer/buffer_tosa.c b/buffer/buffer_tosa.c
78index a10be4f..99111a9 100644
79--- a/buffer/buffer_tosa.c
80+++ b/buffer/buffer_tosa.c
81@@ -21,7 +21,7 @@ int buffer_tosa(buffer* b,stralloc* sa) {
82 b->n=0;
83 b->a=1024;
84 b->fd=0;
85- b->op=strallocwrite;
86+ b->op=(void*)strallocwrite;
87 b->cookie=sa;
88 b->deinit=0;
89 return 0;
90diff --git a/select.h2 b/select.h2
91index 961c380..2a22543 100644
92--- a/select.h2
93+++ b/select.h2
94@@ -10,6 +10,4 @@
95 /* braindead BSD uses bzero in FD_ZERO but doesn't #include string.h */
96 #include <string.h>
97
98-extern int select();
99-
100 #endif
diff --git a/meta-networking/recipes-support/ncp/libowfat_0.32.bb b/meta-networking/recipes-support/ncp/libowfat_0.32.bb
index 94f36f904a..cc67d9aefa 100644
--- a/meta-networking/recipes-support/ncp/libowfat_0.32.bb
+++ b/meta-networking/recipes-support/ncp/libowfat_0.32.bb
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
9SRC_URI = "https://www.fefe.de/${BPN}/${BP}.tar.xz \ 9SRC_URI = "https://www.fefe.de/${BPN}/${BP}.tar.xz \
10 file://0001-Depend-on-haveuint128.h-for-umult64.c.patch \ 10 file://0001-Depend-on-haveuint128.h-for-umult64.c.patch \
11 file://0001-replace-__pure__-with-compiler-attribute-pure.patch \ 11 file://0001-replace-__pure__-with-compiler-attribute-pure.patch \
12 file://0001-fix-incompatible-type-error-with-gcc-15.patch \
12 " 13 "
13SRC_URI[md5sum] = "ee015ccf45cb2bc61c942642038c2bdc" 14SRC_URI[md5sum] = "ee015ccf45cb2bc61c942642038c2bdc"
14SRC_URI[sha256sum] = "f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1" 15SRC_URI[sha256sum] = "f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1"
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch b/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch
new file mode 100644
index 0000000000..7bfb17bf08
--- /dev/null
+++ b/meta-networking/recipes-support/ndisc6/ndisc6/0001-Remove-use-of-variables-indicating-buildtime-informa.patch
@@ -0,0 +1,85 @@
1From 7b3e78cf0348ea737609a2ace07c7c55aae36bcb Mon Sep 17 00:00:00 2001
2From: Santiago Vila <sanvila@debian.org>
3Date: Wed, 9 Oct 2024 22:05:09 -0700
4Subject: [PATCH] Remove use of variables indicating buildtime information
5
6We should not really care about the build date or the build host
7
8Sourced From: https://salsa.debian.org/debian/ndisc6/-/blob/master/debian/patches/reproducible-build.patch?ref_type=heads
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 rdnss/rdnssd.c | 2 --
14 src/addrinfo.c | 2 --
15 src/ndisc.c | 2 --
16 src/tcpspray.c | 2 --
17 src/traceroute.c | 2 --
18 5 files changed, 10 deletions(-)
19
20diff --git a/rdnss/rdnssd.c b/rdnss/rdnssd.c
21index b87edb2..7201525 100644
22--- a/rdnss/rdnssd.c
23+++ b/rdnss/rdnssd.c
24@@ -741,8 +741,6 @@ version (void)
25 {
26 printf (_("rdnssd: IPv6 Recursive DNS Server discovery Daemon %s (%s)\n"),
27 VERSION, "$Rev$");
28- printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
29- printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
30 puts (_("Written by Pierre Ynard and Remi Denis-Courmont\n"));
31
32 printf (_("Copyright (C) %u-%u Pierre Ynard, Remi Denis-Courmont\n"),
33diff --git a/src/addrinfo.c b/src/addrinfo.c
34index cd73722..6316abd 100644
35--- a/src/addrinfo.c
36+++ b/src/addrinfo.c
37@@ -148,8 +148,6 @@ static int quick_usage (const char *path)
38 static int version (void)
39 {
40 printf (_("addrinfo %s (%s)\n"), VERSION, "$Rev$");
41- printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
42- printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
43 puts (_("Written by Remi Denis-Courmont\n"));
44
45 printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2002, 2007);
46diff --git a/src/ndisc.c b/src/ndisc.c
47index b190b18..6e222a0 100644
48--- a/src/ndisc.c
49+++ b/src/ndisc.c
50@@ -920,9 +920,7 @@ version (void)
51 {
52 printf (_(
53 "ndisc6: IPv6 Neighbor/Router Discovery userland tool %s (%s)\n"), VERSION, "$Rev$");
54- printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
55
56- printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
57 puts (_("Written by Remi Denis-Courmont\n"));
58
59 printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2004, 2007);
60diff --git a/src/tcpspray.c b/src/tcpspray.c
61index 39d8939..6347795 100644
62--- a/src/tcpspray.c
63+++ b/src/tcpspray.c
64@@ -302,8 +302,6 @@ version (void)
65 {
66 printf (_(
67 "tcpspray6: TCP/IP bandwidth tester %s (%s)\n"), VERSION, "$Rev$");
68- printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
69- printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
70 puts (_("Written by Remi Denis-Courmont\n"));
71
72 printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2005, 2007);
73diff --git a/src/traceroute.c b/src/traceroute.c
74index 489bc55..604b6af 100644
75--- a/src/traceroute.c
76+++ b/src/traceroute.c
77@@ -1251,8 +1251,6 @@ version (void)
78 {
79 printf (_(
80 "traceroute6: TCP & UDP IPv6 traceroute tool %s (%s)\n"), VERSION, "$Rev$");
81- printf (_(" built %s on %s\n"), __DATE__, PACKAGE_BUILD_HOSTNAME);
82- printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
83 puts (_("Written by Remi Denis-Courmont\n"));
84
85 printf (_("Copyright (C) %u-%u Remi Denis-Courmont\n"), 2005, 2007);
diff --git a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
index a827e7f42a..6931c64d4a 100644
--- a/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
+++ b/meta-networking/recipes-support/ndisc6/ndisc6_1.0.8.bb
@@ -8,9 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
8SRCREV = "92e5d1cf6547fe40316b2a6ca2f7b8195ae0cbe5" 8SRCREV = "92e5d1cf6547fe40316b2a6ca2f7b8195ae0cbe5"
9SRC_URI = "git://git.remlab.net/git/ndisc6.git;protocol=http;branch=master \ 9SRC_URI = "git://git.remlab.net/git/ndisc6.git;protocol=http;branch=master \
10 file://0001-autogen-Do-not-symlink-gettext.h-from-build-host.patch \ 10 file://0001-autogen-Do-not-symlink-gettext.h-from-build-host.patch \
11 file://0001-Remove-use-of-variables-indicating-buildtime-informa.patch \
11 " 12 "
12 13
13S = "${WORKDIR}/git"
14 14
15DEPENDS = "coreutils-native" 15DEPENDS = "coreutils-native"
16 16
@@ -27,6 +27,10 @@ do_configure:prepend() {
27 ${S}/autogen.sh 27 ${S}/autogen.sh
28} 28}
29 29
30do_configure:append() {
31 sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${B}/config.h
32}
33
30do_install:append () { 34do_install:append () {
31 rm -rf ${D}${localstatedir} 35 rm -rf ${D}${localstatedir}
32 # Enable SUID bit for applications that need it 36 # Enable SUID bit for applications that need it
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch
new file mode 100644
index 0000000000..c1757d39ad
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd/0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch
@@ -0,0 +1,51 @@
1From 4ca437b129252635e89694446945e69912300ceb Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Wed, 16 Apr 2025 20:35:46 +0900
4Subject: [PATCH] fix netcat-openbsd: ftbfs with GCC-15
5
6* fix build failure with GCC-15
7netcat.c:1443:41: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
8 1443 | signal(SIGALRM, quit);
9 | ^~~~
10 | |
11 | void (*)(void)
12In file included from netcat.c:100:
13TOPDIR/tmp/work/core2-64-oe-linux/netcat-openbsd/1.195/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
14 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
15 | ~~~~~~~~~~~~~~~^~~~~~~~~
16netcat.c:241:13: note: 'quit' declared here
17 241 | static void quit();
18 | ^~~~
19TOPDIR/tmp/work/core2-64-oe-linux/netcat-openbsd/1.195/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
20 72 | typedef void (*__sighandler_t) (int);
21 | ^~~~~~~~~~~~~~
22make: *** [Makefile:17: netcat.o] Error 1
23
24Upstream-Status: Submitted [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097448]
25Signed-off-by: mark.yang <mark.yang@lge.com>
26---
27 netcat.c | 4 ++--
28 1 file changed, 2 insertions(+), 2 deletions(-)
29
30diff --git a/netcat.c b/netcat.c
31index d70598a..b8ba959 100644
32--- a/netcat.c
33+++ b/netcat.c
34@@ -238,7 +238,7 @@ char *proto_name(int uflag, int dccpflag);
35 static int connect_with_timeout(int fd, const struct sockaddr *sa,
36 socklen_t salen, int ctimeout);
37
38-static void quit();
39+static void quit(int sig);
40
41 int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
42 int b64_pton(char const *src, u_char *target, size_t targsize);
43@@ -2235,7 +2235,7 @@ usage(int ret)
44 * quit()
45 * handler for a "-q" timeout (exit 0 instead of 1)
46 */
47-static void quit()
48+static void quit(__attribute__((unused)) int sig)
49 {
50 exit(0);
51 }
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb
index 20ad43a4d5..99ae90aa91 100644
--- a/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.195.bb
@@ -10,6 +10,7 @@ do_patch[depends] = "quilt-native:do_populate_sysroot"
10SRC_URI = "http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \ 10SRC_URI = "http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz;name=netcat \
11 http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-1.debian.tar.xz;name=netcat-patch;subdir=${BP} \ 11 http://snapshot.debian.org/archive/debian/20181022T085404Z/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-1.debian.tar.xz;name=netcat-patch;subdir=${BP} \
12 file://0001-bundle-own-base64-encode-decode-functions.patch \ 12 file://0001-bundle-own-base64-encode-decode-functions.patch \
13 file://0001-fix-netcat-openbsd-ftbfs-with-GCC-15.patch \
13 " 14 "
14 15
15SRC_URI[netcat.md5sum] = "219d5e49c45658e229a3bda63063a986" 16SRC_URI[netcat.md5sum] = "219d5e49c45658e229a3bda63063a986"
diff --git a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb
index c68974f9f0..4170e9fab0 100644
--- a/meta-networking/recipes-support/netcf/netcf_0.2.8.bb
+++ b/meta-networking/recipes-support/netcf/netcf_0.2.8.bb
@@ -18,7 +18,6 @@ DEPENDS += "augeas libnl libxslt libxml2"
18 18
19do_configure[depends] += "${MLPREFIX}gnulib:do_populate_sysroot" 19do_configure[depends] += "${MLPREFIX}gnulib:do_populate_sysroot"
20 20
21S = "${WORKDIR}/git"
22 21
23inherit gettext autotools perlnative pkgconfig systemd 22inherit gettext autotools perlnative pkgconfig systemd
24 23
@@ -27,8 +26,6 @@ EXTRA_OECONF:append:class-target = " --with-driver=redhat"
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 26PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
28PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," 27PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts,"
29 28
30EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
31
32do_configure:prepend() { 29do_configure:prepend() {
33 currdir=`pwd` 30 currdir=`pwd`
34 cd ${S} 31 cd ${S}
diff --git a/meta-networking/recipes-support/netperf/files/0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch b/meta-networking/recipes-support/netperf/files/0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch
new file mode 100644
index 0000000000..51313d8055
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/files/0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch
@@ -0,0 +1,168 @@
1From fd4f2099efd378a3e00809b485ae22ebf20ab0f7 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Wed, 16 Apr 2025 20:02:36 +0900
4Subject: [PATCH] Fix too many arguments error occurring in gcc-15
5
6* See more details in http://errors.yoctoproject.org/Errors/Details/851803/
7../../git/src/nettest_bsd.c:4497:19: error: too many arguments to function 'alloc_sendfile_buf_ring'; expected 0, have 4
8 4497 | send_ring = alloc_sendfile_buf_ring(send_width,
9 | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
10In file included from ../../git/src/nettest_bsd.c:175:
11../../git/src/netlib.h:690:26: note: declared here
12 690 | extern struct ring_elt *alloc_sendfile_buf_ring();
13 | ^~~~~~~~~~~~~~~~~~~~~~~
14In file included from ../../git/src/nettest_omni.c:184:
15../../git/src/hist.h:135:6: error: conflicting types for 'HIST_purge'; have 'void(struct histogram_struct *)'
16 135 | void HIST_purge(HIST h);
17 | ^~~~~~~~~~
18In file included from ../../git/src/nettest_omni.c:166:
19../../git/src/netlib.h:651:17: note: previous declaration of 'HIST_purge' with type 'void(void)'
20 651 | extern void HIST_purge();
21 | ^~~~~~~~~~
22../../git/src/nettest_bsd.c: In function 'recv_tcp_stream':
23../../git/src/nettest_bsd.c:5197:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
24 5197 | recv_ring = allocate_buffer_ring(recv_width,
25 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
26../../git/src/netlib.h:679:26: note: declared here
27 679 | extern struct ring_elt *allocate_buffer_ring();
28 | ^~~~~~~~~~~~~~~~~~~~
29../../git/src/nettest_bsd.c: In function 'recv_tcp_maerts':
30../../git/src/nettest_bsd.c:5617:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
31 5617 | send_ring = allocate_buffer_ring(send_width,
32 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
33../../git/src/netlib.h:679:26: note: declared here
34 679 | extern struct ring_elt *allocate_buffer_ring();
35 | ^~~~~~~~~~~~~~~~~~~~
36../../git/src/nettest_bsd.c: In function 'recv_udp_stream':
37../../git/src/nettest_bsd.c:7345:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
38 7345 | recv_ring = allocate_buffer_ring(recv_width,
39 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
40../../git/src/netlib.h:679:26: note: declared here
41 679 | extern struct ring_elt *allocate_buffer_ring();
42 | ^~~~~~~~~~~~~~~~~~~~
43../../git/src/nettest_bsd.c: In function 'recv_udp_rr':
44../../git/src/nettest_bsd.c:8360:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
45 8360 | recv_ring = allocate_buffer_ring(recv_width,
46 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
47../../git/src/netlib.h:679:26: note: declared here
48 679 | extern struct ring_elt *allocate_buffer_ring();
49 | ^~~~~~~~~~~~~~~~~~~~
50../../git/src/nettest_bsd.c:8365:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
51 8365 | send_ring = allocate_buffer_ring(send_width,
52 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
53../../git/src/netlib.h:679:26: note: declared here
54 679 | extern struct ring_elt *allocate_buffer_ring();
55 | ^~~~~~~~~~~~~~~~~~~~
56../../git/src/nettest_bsd.c: In function 'recv_tcp_rr':
57../../git/src/nettest_bsd.c:8677:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
58 8677 | send_ring = allocate_buffer_ring(send_width,
59 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
60../../git/src/netlib.h:679:26: note: declared here
61 679 | extern struct ring_elt *allocate_buffer_ring();
62 | ^~~~~~~~~~~~~~~~~~~~
63../../git/src/nettest_bsd.c:8682:15: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
64 8682 | recv_ring = allocate_buffer_ring(recv_width,
65 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
66../../git/src/netlib.h:679:26: note: declared here
67 679 | extern struct ring_elt *allocate_buffer_ring();
68 | ^~~~~~~~~~~~~~~~~~~~
69../../git/src/nettest_omni.c: In function 'send_omni_inner':
70../../git/src/nettest_omni.c:4044:21: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
71 4044 | send_ring = allocate_buffer_ring(send_width,
72 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
73../../git/src/netlib.h:679:26: note: declared here
74 679 | extern struct ring_elt *allocate_buffer_ring();
75 | ^~~~~~~~~~~~~~~~~~~~
76../../git/src/nettest_omni.c:4086:21: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
77 4086 | recv_ring = allocate_buffer_ring(recv_width,
78 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
79../../git/src/netlib.h:679:26: note: declared here
80 679 | extern struct ring_elt *allocate_buffer_ring();
81 | ^~~~~~~~~~~~~~~~~~~~
82../../git/src/nettest_omni.c:5050:5: error: too many arguments to function 'HIST_get_stats'; expected 0, have 5
83 5050 | HIST_get_stats(time_hist,
84 | ^~~~~~~~~~~~~~ ~~~~~~~~~
85../../git/src/netlib.h:650:17: note: declared here
86 650 | extern void HIST_get_stats();
87 | ^~~~~~~~~~~~~~
88../../git/src/nettest_omni.c:5055:19: error: too many arguments to function 'HIST_get_percentile'; expected 0, have 2
89 5055 | p50_latency = HIST_get_percentile(time_hist, 0.50);
90 | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
91../../git/src/netlib.h:649:17: note: declared here
92 649 | extern int HIST_get_percentile();
93 | ^~~~~~~~~~~~~~~~~~~
94../../git/src/nettest_omni.c:5056:19: error: too many arguments to function 'HIST_get_percentile'; expected 0, have 2
95 5056 | p90_latency = HIST_get_percentile(time_hist, 0.90);
96 | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
97../../git/src/netlib.h:649:17: note: declared here
98 649 | extern int HIST_get_percentile();
99 | ^~~~~~~~~~~~~~~~~~~
100../../git/src/nettest_omni.c:5057:19: error: too many arguments to function 'HIST_get_percentile'; expected 0, have 2
101 5057 | p99_latency = HIST_get_percentile(time_hist, 0.99);
102 | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
103../../git/src/netlib.h:649:17: note: declared here
104 649 | extern int HIST_get_percentile();
105 | ^~~~~~~~~~~~~~~~~~~
106../../git/src/nettest_omni.c: In function 'recv_omni':
107../../git/src/nettest_omni.c:5354:17: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
108 5354 | send_ring = allocate_buffer_ring(send_width,
109 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
110../../git/src/netlib.h:679:26: note: declared here
111 679 | extern struct ring_elt *allocate_buffer_ring();
112 | ^~~~~~~~~~~~~~~~~~~~
113../../git/src/nettest_omni.c:5396:17: error: too many arguments to function 'allocate_buffer_ring'; expected 0, have 4
114 5396 | recv_ring = allocate_buffer_ring(recv_width,
115 | ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
116../../git/src/netlib.h:679:26: note: declared here
117 679 | extern struct ring_elt *allocate_buffer_ring();
118 | ^~~~~~~~~~~~~~~~~~~~
119
120Upstream-Status: Submitted [https://github.com/HewlettPackard/netperf/pull/86]
121Signed-off-by: mark.yang <mark.yang@lge.com>
122---
123 src/netlib.h | 11 ++++++-----
124 1 file changed, 6 insertions(+), 5 deletions(-)
125
126diff --git a/src/netlib.h b/src/netlib.h
127index b1f4199..8e1f6fe 100644
128--- a/src/netlib.h
129+++ b/src/netlib.h
130@@ -564,6 +564,7 @@ extern void demo_interval_final();
131 #endif
132 #endif
133
134+#include "hist.h"
135 extern void netlib_init();
136 extern int netlib_get_page_size();
137 extern void install_signal_catchers();
138@@ -646,9 +647,9 @@ extern char *find_interface_slot(char *interface_name);
139 extern void find_interface_ids(char *interface_name, int *vendor, int *device, int *sub_vend, int *sub_dev);
140 extern void find_driver_info(char *ifname, char *driver, char *version, char *firmware, char *bus, int len);
141 extern void find_system_info(char **system_model, char **cpu_model, int *cpu_frequency);
142-extern int HIST_get_percentile();
143-extern void HIST_get_stats();
144-extern void HIST_purge();
145+extern int HIST_get_percentile(HIST h, const double percentile);
146+extern void HIST_get_stats(HIST h, int *min, int *max, double *mean, double *stddev);
147+extern void HIST_purge(HIST h);
148 extern void find_security_info(int *enabled, int *type, char **specific);
149 extern void demo_first_timestamp();
150 extern void demo_reset();
151@@ -676,7 +677,7 @@ extern void catcher(int, siginfo_t *,void *);
152 #else
153 extern void catcher(int);
154 #endif /* __hpux */
155-extern struct ring_elt *allocate_buffer_ring();
156+extern struct ring_elt *allocate_buffer_ring(int recv_width, int recv_size, int local_recv_align, int local_recv_offset);
157 extern void access_buffer(char *buffer_ptr,
158 int length,
159 int dirty_count,
160@@ -687,7 +688,7 @@ extern struct ring_elt *allocate_exs_buffer_ring();
161 #endif /* HAVE_ICSC_EXS */
162
163 #ifdef HAVE_SENDFILE
164-extern struct ring_elt *alloc_sendfile_buf_ring();
165+extern struct ring_elt *alloc_sendfile_buf_ring(int send_width, int send_size, int local_send_align, int local_send_offset);
166 extern int netperf_sendfile(SOCKET send_socket, struct ring_elt *send_ring);
167 #endif /* HAVE_SENDFILE */
168
diff --git a/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch b/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch
new file mode 100644
index 0000000000..6aba8a4f79
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch
@@ -0,0 +1,41 @@
1From 333e92a2d804420748447e043c6a04affc600e20 Mon Sep 17 00:00:00 2001
2From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
3Date: Thu, 27 Feb 2025 21:09:04 +0200
4Subject: [PATCH] Makefile.am: add ACLOCAL_AMFLAGS
5
6Add ACLOCAL_AMFLAGS, a standard way to tell aclocal where to find
7necessary macros.
8
9Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
10Upstream-Status: Submitted [https://github.com/HewlettPackard/netperf/pull/84]
11---
12 Makefile.am | 1 +
13 autogen.sh | 2 +-
14 2 files changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/Makefile.am b/Makefile.am
17index 2cb9c24f2eec..dc266e34c997 100644
18--- a/Makefile.am
19+++ b/Makefile.am
20@@ -19,6 +19,7 @@
21 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
22 # USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24+ACLOCAL_AMFLAGS = -I src/missing/m4
25 AUTOMAKE_OPTIONS = dist-bzip2 dist-zip
26 SUBDIRS = src doc
27 EXTRA_DIST = README.* Release_Notes inet_ntop.c autogen.sh m4
28diff --git a/autogen.sh b/autogen.sh
29index bc8389c24171..1156f42edae6 100755
30--- a/autogen.sh
31+++ b/autogen.sh
32@@ -1,5 +1,5 @@
33 #! /bin/sh
34
35-aclocal -I src/missing/m4 \
36+aclocal \
37 && automake --add-missing \
38 && autoconf && autoheader
39--
402.39.5
41
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb
index 579a04b86f..4043da5621 100644
--- a/meta-networking/recipes-support/netperf/netperf_git.bb
+++ b/meta-networking/recipes-support/netperf/netperf_git.bb
@@ -15,11 +15,12 @@ SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht
15 file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ 15 file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \
16 file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ 16 file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \
17 file://netserver_permissions.patch \ 17 file://netserver_permissions.patch \
18 file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \
19 file://0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch \
18 " 20 "
19 21
20SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" 22SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"
21 23
22S = "${WORKDIR}/git"
23 24
24inherit update-rc.d autotools texinfo systemd 25inherit update-rc.d autotools texinfo systemd
25 26
@@ -35,12 +36,6 @@ PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools,"
35PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," 36PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,,"
36PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,," 37PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,,"
37 38
38# autotools.bbclass attends to include m4 files with path depth <= 2 by
39# "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
40do_configure:prepend() {
41 test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files
42}
43
44do_install() { 39do_install() {
45 sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init 40 sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init
46 install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir} 41 install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir}
@@ -69,6 +64,6 @@ do_install() {
69 64
70RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}" 65RRECOMMENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}"
71 66
72INITSCRIPT_NAME="netperf" 67INITSCRIPT_NAME = "netperf"
73INITSCRIPT_PARAMS="defaults" 68INITSCRIPT_PARAMS = "defaults"
74SYSTEMD_SERVICE:${PN} = "netserver.service" 69SYSTEMD_SERVICE:${PN} = "netserver.service"
diff --git a/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb b/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb
index 341eab015c..58ace6263d 100644
--- a/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb
+++ b/meta-networking/recipes-support/netsniff-ng/netsniff-ng_0.6.8.bb
@@ -10,7 +10,6 @@ SRC_URI = " \
10 file://0001-Cmds-automatically-create-folder.patch \ 10 file://0001-Cmds-automatically-create-folder.patch \
11 " 11 "
12 12
13S = "${WORKDIR}/git"
14 13
15inherit pkgconfig 14inherit pkgconfig
16 15
diff --git a/meta-networking/recipes-support/nis/yp-tools_4.2.3.bb b/meta-networking/recipes-support/nis/yp-tools_4.2.3.bb
index 9b2c186873..54fd68ed43 100644
--- a/meta-networking/recipes-support/nis/yp-tools_4.2.3.bb
+++ b/meta-networking/recipes-support/nis/yp-tools_4.2.3.bb
@@ -18,7 +18,6 @@ SRC_URI = "git://github.com/thkukuk/yp-tools;branch=master;protocol=https \
18 file://domainname.service \ 18 file://domainname.service \
19 " 19 "
20 20
21S = "${WORKDIR}/git"
22 21
23DEPENDS = "libtirpc libnsl2 virtual/crypt" 22DEPENDS = "libtirpc libnsl2 virtual/crypt"
24 23
diff --git a/meta-networking/recipes-support/ntimed/ntimed_git.bb b/meta-networking/recipes-support/ntimed/ntimed_git.bb
index 955c03f42d..36fba5f57b 100644
--- a/meta-networking/recipes-support/ntimed/ntimed_git.bb
+++ b/meta-networking/recipes-support/ntimed/ntimed_git.bb
@@ -14,7 +14,6 @@ SRC_URI = "git://github.com/bsdphk/Ntimed;branch=master;protocol=https \
14PV = "0.0+git" 14PV = "0.0+git"
15SRCREV = "db0abbb4c80f2ecef6bc5d9639bca5bea28532a2" 15SRCREV = "db0abbb4c80f2ecef6bc5d9639bca5bea28532a2"
16 16
17S = "${WORKDIR}/git"
18 17
19# use adjtimex on musl 18# use adjtimex on musl
20CFLAGS:append:libc-musl = " -Dntp_adjtime=adjtimex" 19CFLAGS:append:libc-musl = " -Dntp_adjtime=adjtimex"
diff --git a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb b/meta-networking/recipes-support/ntopng/ndpi_4.2.bb
index 13c3398c2b..f0175167a4 100644
--- a/meta-networking/recipes-support/ntopng/ndpi_4.2.bb
+++ b/meta-networking/recipes-support/ntopng/ndpi_4.2.bb
@@ -5,7 +5,7 @@ inspection. Based on OpenDPI it includes ntop extensions"
5SECTION = "libdevel" 5SECTION = "libdevel"
6DEPENDS = "libpcap json-c" 6DEPENDS = "libpcap json-c"
7RDEPENDS:${PN} += " libpcap" 7RDEPENDS:${PN} += " libpcap"
8LICENSE = "GPL-3.0-only" 8LICENSE = "LGPL-3.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" 9LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24"
10 10
11SRCREV = "8b5c6af71b562549f8416b31803daae223e09f46" 11SRCREV = "8b5c6af71b562549f8416b31803daae223e09f46"
@@ -13,7 +13,6 @@ SRC_URI = "git://github.com/ntop/nDPI.git;branch=4.2-stable;protocol=https \
13 file://0001-autogen.sh-not-generate-configure.patch \ 13 file://0001-autogen.sh-not-generate-configure.patch \
14 " 14 "
15 15
16S = "${WORKDIR}/git"
17 16
18inherit autotools-brokensep pkgconfig 17inherit autotools-brokensep pkgconfig
19 18
diff --git a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb b/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb
index 9bb93910f8..014706893a 100644
--- a/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb
+++ b/meta-networking/recipes-support/ntopng/ntopng_5.2.1.bb
@@ -23,7 +23,6 @@ SRC_URI = "git://github.com/ntop/ntopng.git;protocol=https;branch=5.2-stable \
23 file://ntopng.service \ 23 file://ntopng.service \
24 " 24 "
25 25
26S = "${WORKDIR}/git"
27 26
28# don't use the lua under thirdparty as it supports cross compiling badly 27# don't use the lua under thirdparty as it supports cross compiling badly
29export LUA_LIB = "${STAGING_LIBDIR}/liblua.a" 28export LUA_LIB = "${STAGING_LIBDIR}/liblua.a"
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd b/meta-networking/recipes-support/ntp/ntp/ntpd
index d1b9c49076..a0c43ed5e5 100755
--- a/meta-networking/recipes-support/ntp/ntp/ntpd
+++ b/meta-networking/recipes-support/ntp/ntp/ntpd
@@ -72,7 +72,7 @@ case "$1" in
72 startdaemon 72 startdaemon
73 ;; 73 ;;
74 status) 74 status)
75 status /usr/sbin/ntpd; 75 status ntpd;
76 exit $? 76 exit $?
77 ;; 77 ;;
78 *) 78 *)
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb
index 302cf9915f..33d19a696a 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb
@@ -26,6 +26,8 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
26 26
27SRC_URI[sha256sum] = "cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5" 27SRC_URI[sha256sum] = "cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5"
28 28
29UPSTREAM_CHECK_REGEX = "ntp-(?P<pver>(\d+(\.\d+)+)(p\d+)?)\.tar"
30
29CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows" 31CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows"
30CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility" 32CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility"
31CVE_STATUS_GROUPS += "CVE_STATUS_NTP" 33CVE_STATUS_GROUPS += "CVE_STATUS_NTP"
@@ -55,6 +57,11 @@ CVE_STATUS_NTP = " \
55 57
56inherit autotools update-rc.d useradd systemd pkgconfig 58inherit autotools update-rc.d useradd systemd pkgconfig
57 59
60# For some reason this recipe reconfigures the nested configure.ac files in
61# do_compile because libtool.m4 is newer than aclocal.m4, and that then
62# doesn't know about the site configuration.
63do_compile[prefuncs] += "autotools_sitefiles"
64
58# The ac_cv_header_readline_history is to stop ntpdc depending on either 65# The ac_cv_header_readline_history is to stop ntpdc depending on either
59# readline or curses 66# readline or curses
60EXTRA_OECONF += "--with-net-snmp-config=no \ 67EXTRA_OECONF += "--with-net-snmp-config=no \
diff --git a/meta-networking/recipes-support/nuttcp/nuttcp_8.2.2.bb b/meta-networking/recipes-support/nuttcp/nuttcp_8.2.2.bb
index b02f775a55..17fc818e8a 100644
--- a/meta-networking/recipes-support/nuttcp/nuttcp_8.2.2.bb
+++ b/meta-networking/recipes-support/nuttcp/nuttcp_8.2.2.bb
@@ -18,8 +18,7 @@ SRC_URI = "http://nuttcp.net/${BPN}/beta/${BP}.c \
18SRC_URI[md5sum] = "d3c92c4d2f261221193c3726c1b9a42f" 18SRC_URI[md5sum] = "d3c92c4d2f261221193c3726c1b9a42f"
19SRC_URI[sha256sum] = "8c5595bcd27c2fd66831be74c390df078cfb1870aa427f2511ac2586d236c8a1" 19SRC_URI[sha256sum] = "8c5595bcd27c2fd66831be74c390df078cfb1870aa427f2511ac2586d236c8a1"
20 20
21S = "${WORKDIR}/sources" 21S = "${UNPACKDIR}"
22UNPACKDIR = "${S}"
23 22
24do_compile () { 23do_compile () {
25 ${CC} ${CFLAGS} ${LDFLAGS} -o nuttcp nuttcp-${PV}.c 24 ${CC} ${CFLAGS} ${LDFLAGS} -o nuttcp nuttcp-${PV}.c
diff --git a/meta-networking/recipes-support/open-isns/open-isns_0.102.bb b/meta-networking/recipes-support/open-isns/open-isns_0.102.bb
index 24c520901d..5c38f6b5dc 100644
--- a/meta-networking/recipes-support/open-isns/open-isns_0.102.bb
+++ b/meta-networking/recipes-support/open-isns/open-isns_0.102.bb
@@ -19,7 +19,6 @@ SRC_URI = "git://github.com/open-iscsi/open-isns;branch=master;protocol=https \
19 19
20SRCREV = "c0e6d9fedc5a7041260de477fe1a8455fa074113" 20SRCREV = "c0e6d9fedc5a7041260de477fe1a8455fa074113"
21 21
22S = "${WORKDIR}/git"
23 22
24inherit systemd autotools-brokensep update-rc.d 23inherit systemd autotools-brokensep update-rc.d
25 24
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch
new file mode 100644
index 0000000000..aad1b10b52
--- /dev/null
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Fix-build-when-compiling-with-std-c23.patch
@@ -0,0 +1,26 @@
1From 2a79621f58bf1c4bc0166ccc044fcf343fb66b44 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Wed, 20 Nov 2024 10:40:03 +1100
4Subject: [PATCH] Fix build when compiling with -std=c23
5
6Fixes the build when using gcc 15
7
8Upstream-Status: Submitted [https://github.com/vmware/open-vm-tools/pull/751]
9Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
10---
11 open-vm-tools/lib/lock/ul.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/open-vm-tools/lib/lock/ul.c b/open-vm-tools/lib/lock/ul.c
15index d376a98af..fc9fdb714 100644
16--- a/open-vm-tools/lib/lock/ul.c
17+++ b/open-vm-tools/lib/lock/ul.c
18@@ -29,7 +29,7 @@
19 static Bool mxInPanic = FALSE; // track when involved in a panic
20 static Bool mxUserCollectLockingTree = FALSE;
21
22-Bool (*MXUserTryAcquireForceFail)() = NULL;
23+Bool (*MXUserTryAcquireForceFail)(const char *) = NULL;
24
25 static MX_Rank (*MXUserMxCheckRank)(void) = NULL;
26 static void (*MXUserMxLockLister)(void) = NULL;
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.5.0.bb
index 7e3fe5601f..fa26a759dc 100644
--- a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.5.0.bb
@@ -25,7 +25,7 @@ LICENSE:modules/freebsd/vmxnet = "GPL-2.0-only"
25LICENSE:modules/linux = "GPL-2.0-only" 25LICENSE:modules/linux = "GPL-2.0-only"
26LICENSE:modules/solaris = "CDDL-1.0" 26LICENSE:modules/solaris = "CDDL-1.0"
27 27
28SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stable-12.3.x \ 28SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stable-12.5.x \
29 file://tools.conf \ 29 file://tools.conf \
30 file://vmtoolsd.service \ 30 file://vmtoolsd.service \
31 file://vmtoolsd.init \ 31 file://vmtoolsd.init \
@@ -43,6 +43,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stabl
43 file://0012-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ 43 file://0012-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \
44 file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \ 44 file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \
45 file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \ 45 file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \
46 file://0001-Fix-build-when-compiling-with-std-c23.patch;patchdir=.. \
46 " 47 "
47 48
48UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" 49UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)"
@@ -50,9 +51,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)"
50SRC_URI:append:libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \ 51SRC_URI:append:libc-musl = " file://0001-Add-resolv_compat.h-for-musl-builds.patch;patchdir=.. \
51" 52"
52 53
53SRCREV = "1b362b9eb449fb5de3809aaea4a636ece30ee5b7" 54SRCREV = "f2ca37ef3510543172657b82493d1eceefa9a134"
54 55
55S = "${WORKDIR}/git/open-vm-tools" 56S = "${UNPACKDIR}/${BP}/open-vm-tools"
56 57
57DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps libtirpc" 58DEPENDS = "glib-2.0 glib-2.0-native util-linux libdnet procps libtirpc"
58 59
@@ -64,7 +65,7 @@ inherit autotools pkgconfig systemd update-rc.d
64SYSTEMD_SERVICE:${PN} = "vmtoolsd.service" 65SYSTEMD_SERVICE:${PN} = "vmtoolsd.service"
65 66
66EXTRA_OECONF = "--without-icu --disable-multimon --disable-docs \ 67EXTRA_OECONF = "--without-icu --disable-multimon --disable-docs \
67 --disable-tests --without-gtkmm --without-xerces --without-pam \ 68 --disable-tests --without-gtkmm --without-pam \
68 --disable-vgauth --disable-deploypkg --disable-containerinfo \ 69 --disable-vgauth --disable-deploypkg --disable-containerinfo \
69 --without-root-privileges --without-kernel-modules --with-tirpc \ 70 --without-root-privileges --without-kernel-modules --with-tirpc \
70 --with-udev-rules-dir=${nonarch_base_libdir}/udev/rules.d" 71 --with-udev-rules-dir=${nonarch_base_libdir}/udev/rules.d"
diff --git a/meta-networking/recipes-support/openipmi/openipmi_2.0.35.bb b/meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb
index c7c7573677..86b24c1795 100644
--- a/meta-networking/recipes-support/openipmi/openipmi_2.0.35.bb
+++ b/meta-networking/recipes-support/openipmi/openipmi_2.0.36.bb
@@ -32,9 +32,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/openipmi/OpenIPMI-${PV}.tar.gz \
32 file://ipmi.service \ 32 file://ipmi.service \
33 " 33 "
34 34
35S = "${WORKDIR}/OpenIPMI-${PV}" 35S = "${UNPACKDIR}/OpenIPMI-${PV}"
36 36
37SRC_URI[sha256sum] = "b059114f6299d73f04ff6e76a0857a0ab81aa362dee99644d256b223872437ad" 37SRC_URI[sha256sum] = "a0403148fa5f7bed930c958a4d1c558047e273763a408b3a0368edc137cc55d9"
38 38
39inherit autotools-brokensep pkgconfig perlnative update-rc.d systemd cpan-base python3targetconfig 39inherit autotools-brokensep pkgconfig perlnative update-rc.d systemd cpan-base python3targetconfig
40 40
diff --git a/meta-networking/recipes-support/openvpn/openvpn/0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch b/meta-networking/recipes-support/openvpn/openvpn/0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch
index 03b454d625..e1253db1ec 100644
--- a/meta-networking/recipes-support/openvpn/openvpn/0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch
+++ b/meta-networking/recipes-support/openvpn/openvpn/0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch
@@ -1,4 +1,4 @@
1From ea179d83b0aa62719d90748cd1fb260f40055f15 Mon Sep 17 00:00:00 2001 1From 9cc13bdcb71cd16d2873637c491e07c01de9a3ea Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 13 Jun 2022 22:44:28 +0800 3Date: Mon, 13 Jun 2022 22:44:28 +0800
4Subject: [PATCH] configure.ac: eliminate build path from openvpn --version 4Subject: [PATCH] configure.ac: eliminate build path from openvpn --version
@@ -31,10 +31,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
31 1 file changed, 1 insertion(+), 1 deletion(-) 31 1 file changed, 1 insertion(+), 1 deletion(-)
32 32
33diff --git a/configure.ac b/configure.ac 33diff --git a/configure.ac b/configure.ac
34index 2f5f6bc..eddcbc5 100644 34index df16c43..623ca65 100644
35--- a/configure.ac 35--- a/configure.ac
36+++ b/configure.ac 36+++ b/configure.ac
37@@ -1377,7 +1377,7 @@ if test "${enable_async_push}" = "yes"; then 37@@ -1463,7 +1463,7 @@ if test "${enable_async_push}" = "yes"; then
38 esac 38 esac
39 fi 39 fi
40 40
@@ -43,6 +43,3 @@ index 2f5f6bc..eddcbc5 100644
43 AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], [Configuration settings]) 43 AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], [Configuration settings])
44 44
45 TAP_WIN_COMPONENT_ID="PRODUCT_TAP_WIN_COMPONENT_ID" 45 TAP_WIN_COMPONENT_ID="PRODUCT_TAP_WIN_COMPONENT_ID"
46--
472.25.1
48
diff --git a/meta-networking/recipes-support/openvpn/openvpn/run-ptest b/meta-networking/recipes-support/openvpn/openvpn/run-ptest
new file mode 100644
index 0000000000..5b187d9086
--- /dev/null
+++ b/meta-networking/recipes-support/openvpn/openvpn/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2for x in `find ./ -name Makefile`;
3do
4 make -C `dirname ${x}` -k runtest-TESTS
5done
diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.6.10.bb b/meta-networking/recipes-support/openvpn/openvpn_2.6.14.bb
index ba53d40f47..67ea09fad5 100644
--- a/meta-networking/recipes-support/openvpn/openvpn_2.6.10.bb
+++ b/meta-networking/recipes-support/openvpn/openvpn_2.6.14.bb
@@ -3,18 +3,19 @@ HOMEPAGE = "https://openvpn.net/"
3SECTION = "net" 3SECTION = "net"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=89196bacc47ed37a5b242a535661a049" 5LIC_FILES_CHKSUM = "file://COPYING;md5=89196bacc47ed37a5b242a535661a049"
6DEPENDS = "lzo lz4 openssl iproute2 libcap-ng ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 6DEPENDS = "lzo lz4 openssl iproute2 libcap-ng ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} ${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)} "
7 7
8inherit autotools systemd update-rc.d pkgconfig 8inherit autotools systemd update-rc.d pkgconfig ptest
9 9
10SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \ 10SRC_URI = "http://swupdate.openvpn.org/community/releases/${BP}.tar.gz \
11 file://0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch \ 11 file://0001-configure.ac-eliminate-build-path-from-openvpn-versi.patch \
12 file://openvpn \ 12 file://openvpn \
13 file://run-ptest \
13 " 14 "
14 15
15UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads" 16UPSTREAM_CHECK_URI = "https://openvpn.net/community-downloads"
16 17
17SRC_URI[sha256sum] = "1993bbb7b9edb430626eaa24573f881fd3df642f427fcb824b1aed1fca1bcc9b" 18SRC_URI[sha256sum] = "9eb6a6618352f9e7b771a9d38ae1631b5edfeed6d40233e243e602ddf2195e7a"
18 19
19CVE_STATUS[CVE-2020-27569] = "not-applicable-config: Applies only Aviatrix OpenVPN client, not openvpn" 20CVE_STATUS[CVE-2020-27569] = "not-applicable-config: Applies only Aviatrix OpenVPN client, not openvpn"
20 21
@@ -42,6 +43,8 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
42PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" 43PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
43PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" 44PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
44 45
46RDEPENDS:${PN}-ptest:append = " make bash"
47
45do_install:append() { 48do_install:append() {
46 install -d ${D}/${sysconfdir}/init.d 49 install -d ${D}/${sysconfdir}/init.d
47 install -m 755 ${UNPACKDIR}/openvpn ${D}/${sysconfdir}/init.d 50 install -m 755 ${UNPACKDIR}/openvpn ${D}/${sysconfdir}/init.d
@@ -63,6 +66,47 @@ do_install:append() {
63 install -d -m 710 ${D}/${localstatedir}/lib/openvpn 66 install -d -m 710 ${D}/${localstatedir}/lib/openvpn
64} 67}
65 68
69do_compile_ptest () {
70 for x in `find ${B}/tests/unit_tests -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
71 dir=`dirname ${x}`
72 case $dir in
73 *example*)
74 echo "Skipping directory: $dir"
75 ;;
76 *)
77 oe_runmake -C ${dir} buildtest-TESTS
78 ;;
79 esac
80 done
81}
82
83do_install_ptest() {
84 for x in $(find ${B}/tests/unit_tests -name Makefile -exec grep -l buildtest-TESTS {} \;); do
85 dir=$(dirname ${x})
86
87 if [[ "$dir" == *example* ]]; then
88 continue
89 fi
90
91 target_dir="${D}/${PTEST_PATH}/unit_tests/$(basename ${dir})"
92 mkdir -p ${target_dir}
93 cp -f ${dir}/Makefile ${target_dir}/
94 sed -i "s/^Makefile:/MM:/g" ${target_dir}/Makefile
95 sed -i 's/^#TESTS = $(am__EXEEXT_4)/TESTS = $(am__EXEEXT_4)/' ${target_dir}/Makefile
96
97 for testfile in $(find ${dir} -name "*testdriver"); do
98 cp -rf ${testfile} ${target_dir}/
99 done
100 done
101 sed -i 's|find ./|find ${PTEST_PATH}|g' ${D}${PTEST_PATH}/run-ptest
102 sed -i 's|${top_builddir}/src/openvpn|${sbindir}|g' ${S}/tests/t_lpback.sh
103 cp -f ${S}/tests/t_lpback.sh ${D}/${PTEST_PATH}
104 cp -f ${B}/tests/Makefile ${D}/${PTEST_PATH}
105 sed -i "s/^Makefile:/MM:/g" ${D}/${PTEST_PATH}/Makefile
106 sed -i "s/^test_scripts = t_client.sh t_lpback.sh t_cltsrv.sh/test_scripts = t_lpback.sh/g" ${D}/${PTEST_PATH}/Makefile
107
108}
109
66PACKAGES =+ " ${PN}-sample " 110PACKAGES =+ " ${PN}-sample "
67 111
68RRECOMMENDS:${PN} = "kernel-module-tun" 112RRECOMMENDS:${PN} = "kernel-module-tun"
diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.3.bb
index ddcad46beb..bdd715aacf 100644
--- a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb
+++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.3.bb
@@ -10,15 +10,15 @@ HOMEPAGE = "http://pgpool.net"
10LICENSE = "BSD-2-Clause" 10LICENSE = "BSD-2-Clause"
11LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9" 11LIC_FILES_CHKSUM = "file://COPYING;md5=e4b38de086d73e0521de0bbdbaa4a1a9"
12 12
13SRC_URI = "http://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \ 13SRC_URI = "https://www.pgpool.net/mediawiki/images/pgpool-II-${PV}.tar.gz \
14 file://0001-Fix-build-error-when-build-this-file.patch \ 14 file://0001-Fix-build-error-when-build-this-file.patch \
15 file://define_SIGNAL_ARGS.patch \ 15 file://define_SIGNAL_ARGS.patch \
16 file://pgpool.sysconfig \ 16 file://pgpool.sysconfig \
17 file://pgpool.service \ 17 file://pgpool.service \
18 " 18 "
19SRC_URI[sha256sum] = "8e14b0558a15dae8767c8e1acee3f2f6c7c08ebfffda66a359367eaaa56c3936" 19SRC_URI[sha256sum] = "25ed340d7b7dc00c20e4ba763d3f9c07ba891b150d9d48af313a1351cafdd778"
20 20
21S = "${WORKDIR}/pgpool-II-${PV}" 21S = "${UNPACKDIR}/pgpool-II-${PV}"
22 22
23inherit autotools-brokensep systemd 23inherit autotools-brokensep systemd
24 24
@@ -48,3 +48,7 @@ do_install:append() {
48 install -D -m 0644 ${S}/src/sample/pool_hba.conf.sample ${D}${sysconfdir}/pgpool-II/pool_hba.conf 48 install -D -m 0644 ${S}/src/sample/pool_hba.conf.sample ${D}${sysconfdir}/pgpool-II/pool_hba.conf
49 install -Dm 0644 ${UNPACKDIR}/pgpool.service ${D}${systemd_system_unitdir}/pgpool.service 49 install -Dm 0644 ${UNPACKDIR}/pgpool.service ${D}${systemd_system_unitdir}/pgpool.service
50} 50}
51
52# Avoid build failure with gcc-15:
53# http://errors.yoctoproject.org/Errors/Details/853019/
54CFLAGS += "-std=gnu17"
diff --git a/meta-networking/recipes-support/phytool/phytool.bb b/meta-networking/recipes-support/phytool/phytool.bb
index b918e50c68..6471f46c28 100644
--- a/meta-networking/recipes-support/phytool/phytool.bb
+++ b/meta-networking/recipes-support/phytool/phytool.bb
@@ -6,7 +6,6 @@ PV = "2+git"
6SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c" 6SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c"
7SRC_URI = "git://github.com/wkz/phytool.git;branch=master;protocol=https" 7SRC_URI = "git://github.com/wkz/phytool.git;branch=master;protocol=https"
8 8
9S = "${WORKDIR}/git"
10 9
11# The Makefile has "$PREFIX/bin" hardcoded into it, hence not using $bindir here 10# The Makefile has "$PREFIX/bin" hardcoded into it, hence not using $bindir here
12do_install() { 11do_install() {
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch
index 9cd240189e..092f4431bf 100644
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch
+++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-overloadable-function-attribute-with-c.patch
@@ -20,18 +20,16 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 librdmacm/preload.c | 7 +++++-- 20 librdmacm/preload.c | 7 +++++--
21 1 file changed, 5 insertions(+), 2 deletions(-) 21 1 file changed, 5 insertions(+), 2 deletions(-)
22 22
23diff --git a/librdmacm/preload.c b/librdmacm/preload.c
24index d46beb1bb..e09b2aa85 100644
25--- a/librdmacm/preload.c 23--- a/librdmacm/preload.c
26+++ b/librdmacm/preload.c 24+++ b/librdmacm/preload.c
27@@ -792,8 +792,11 @@ ssize_t recv(int socket, void *buf, size_t len, int flags) 25@@ -792,8 +792,11 @@ ssize_t recv(int socket, void *buf, size
28 return (fd_fork_get(socket, &fd) == fd_rsocket) ? 26 return (fd_fork_get(socket, &fd) == fd_rsocket) ?
29 rrecv(fd, buf, len, flags) : real.recv(fd, buf, len, flags); 27 rrecv(fd, buf, len, flags) : real.recv(fd, buf, len, flags);
30 } 28 }
31- 29-
32-ssize_t recvfrom(int socket, void *buf, size_t len, int flags, 30-ssize_t recvfrom(int socket, void *buf, size_t len, int flags,
33+ssize_t 31+ssize_t
34+#ifdef __clang__ 32+#if defined(__clang__) && defined(__GLIBC__)
35+__attribute__((overloadable)) 33+__attribute__((overloadable))
36+#endif 34+#endif
37+recvfrom(int socket, void *buf, size_t len, int flags, 35+recvfrom(int socket, void *buf, size_t len, int flags,
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_51.0.bb b/meta-networking/recipes-support/rdma-core/rdma-core_51.0.bb
index 0c204c109f..2555c43a85 100644
--- a/meta-networking/recipes-support/rdma-core/rdma-core_51.0.bb
+++ b/meta-networking/recipes-support/rdma-core/rdma-core_51.0.bb
@@ -11,7 +11,6 @@ SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=master;protocol=http
11 file://0001-librdmacm-Use-overloadable-function-attribute-with-c.patch \ 11 file://0001-librdmacm-Use-overloadable-function-attribute-with-c.patch \
12" 12"
13SRCREV = "6cd09097ad2eebde9a7fa3d3bb09a2cea6e3c2d6" 13SRCREV = "6cd09097ad2eebde9a7fa3d3bb09a2cea6e3c2d6"
14S = "${WORKDIR}/git"
15 14
16#Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md 15#Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md
17LICENSE = "BSD-2-Clause | GPL-2.0-only" 16LICENSE = "BSD-2-Clause | GPL-2.0-only"
diff --git a/meta-networking/recipes-support/smcroute/smcroute_2.5.7.bb b/meta-networking/recipes-support/smcroute/smcroute_2.5.7.bb
index 950f6a2e21..bb12d7a907 100644
--- a/meta-networking/recipes-support/smcroute/smcroute_2.5.7.bb
+++ b/meta-networking/recipes-support/smcroute/smcroute_2.5.7.bb
@@ -8,6 +8,5 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
8SRCREV = "b315d06ddb0dad16a52fe91e5831b4030ce37010" 8SRCREV = "b315d06ddb0dad16a52fe91e5831b4030ce37010"
9SRC_URI = "git://github.com/troglobit/smcroute.git;branch=master;protocol=https" 9SRC_URI = "git://github.com/troglobit/smcroute.git;branch=master;protocol=https"
10 10
11S = "${WORKDIR}/git"
12 11
13inherit autotools pkgconfig 12inherit autotools pkgconfig
diff --git a/meta-networking/recipes-support/sngrep/sngrep_1.8.1.bb b/meta-networking/recipes-support/sngrep/sngrep_1.8.2.bb
index 50248078a2..12fe3ececa 100644
--- a/meta-networking/recipes-support/sngrep/sngrep_1.8.1.bb
+++ b/meta-networking/recipes-support/sngrep/sngrep_1.8.2.bb
@@ -16,9 +16,8 @@ DEPENDS = "\
16" 16"
17 17
18SRC_URI = "git://github.com/irontec/sngrep.git;protocol=https;branch=master" 18SRC_URI = "git://github.com/irontec/sngrep.git;protocol=https;branch=master"
19SRCREV = "373abb90804ba71f980c7120e62f90d3a5c81213" 19SRCREV = "dad1033640f249fa4994f976cf6ee96826c15702"
20 20
21S = "${WORKDIR}/git"
22 21
23inherit cmake pkgconfig 22inherit cmake pkgconfig
24 23
diff --git a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb
index 65f2f80ace..1a2d9dc9c4 100644
--- a/meta-networking/recipes-support/spice/libcacard_2.8.1.bb
+++ b/meta-networking/recipes-support/spice/libcacard_2.8.1.bb
@@ -8,7 +8,6 @@ SRCREV = "7b07684ea6698d4885ff2062350ad8798a04de42"
8 8
9SRC_URI = "git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master" 9SRC_URI = "git://gitlab.freedesktop.org/spice/libcacard.git;protocol=https;branch=master"
10 10
11S = "${WORKDIR}/git"
12 11
13inherit meson pkgconfig 12inherit meson pkgconfig
14 13
diff --git a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
index c8a3f7f532..3588d674f7 100644
--- a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
+++ b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb
@@ -12,7 +12,8 @@ SRCREV = "f04479c16f0969fb394ebe74b6eff74e560a42f0"
12 12
13SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice-gtk.git;protocol=https;branch=master" 13SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice-gtk.git;protocol=https;branch=master"
14 14
15S = "${WORKDIR}/git" 15CVE_STATUS[CVE-2012-4425] = "fixed-version: fixed since 0.15.3"
16
16 17
17DEPENDS = " \ 18DEPENDS = " \
18 ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)} \ 19 ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)} \
diff --git a/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb b/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb
index 3af973eed1..b13dd5d148 100644
--- a/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb
+++ b/meta-networking/recipes-support/spice/spice-guest-vdagent_0.22.1.bb
@@ -7,7 +7,6 @@ SRCREV = "aa08162f036840d3e33502dc0a836b03b9cec97c"
7 7
8SRC_URI = "git://gitlab.freedesktop.org/spice/linux/vd_agent.git;protocol=https;branch=master" 8SRC_URI = "git://gitlab.freedesktop.org/spice/linux/vd_agent.git;protocol=https;branch=master"
9 9
10S = "${WORKDIR}/git"
11 10
12ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" 11ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
13REQUIRED_DISTRO_FEATURES = "opengl x11" 12REQUIRED_DISTRO_FEATURES = "opengl x11"
diff --git a/meta-networking/recipes-support/spice/spice-protocol_0.14.4.bb b/meta-networking/recipes-support/spice/spice-protocol_0.14.4.bb
index 3c8458baac..7f08eebee7 100644
--- a/meta-networking/recipes-support/spice/spice-protocol_0.14.4.bb
+++ b/meta-networking/recipes-support/spice/spice-protocol_0.14.4.bb
@@ -12,7 +12,6 @@ SRCREV = "6f453a775d87087c6ba59fc180c1a1e466631a47"
12 12
13SRC_URI = "git://gitlab.freedesktop.org/spice/spice-protocol.git;protocol=https;branch=master" 13SRC_URI = "git://gitlab.freedesktop.org/spice/spice-protocol.git;protocol=https;branch=master"
14 14
15S = "${WORKDIR}/git"
16 15
17inherit meson pkgconfig 16inherit meson pkgconfig
18 17
diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb
index 419316a26e..c9418a1765 100644
--- a/meta-networking/recipes-support/spice/spice_git.bb
+++ b/meta-networking/recipes-support/spice/spice_git.bb
@@ -19,8 +19,9 @@ SRCREV = "0c2c1413a8b387ea597a95b6c867470a7c56c8ab"
19 19
20SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice;branch=master;protocol=https" 20SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice;branch=master;protocol=https"
21 21
22S = "${WORKDIR}/git"
23 22
23CVE_STATUS[CVE-2016-0749] = "fixed-version: patched since 0.13.2"
24CVE_STATUS[CVE-2016-2150] = "fixed-version: patched since 0.13.2"
24CVE_STATUS[CVE-2018-10893] = "fixed-version: patched already, caused by inaccurate CPE in the NVD database." 25CVE_STATUS[CVE-2018-10893] = "fixed-version: patched already, caused by inaccurate CPE in the NVD database."
25 26
26inherit meson gettext python3native python3-dir pkgconfig 27inherit meson gettext python3native python3-dir pkgconfig
@@ -28,7 +29,7 @@ inherit meson gettext python3native python3-dir pkgconfig
28DEPENDS = "spice-protocol jpeg pixman alsa-lib glib-2.0 gdk-pixbuf lz4 orc python3-pyparsing-native python3-six-native glib-2.0-native zlib" 29DEPENDS = "spice-protocol jpeg pixman alsa-lib glib-2.0 gdk-pixbuf lz4 orc python3-pyparsing-native python3-six-native glib-2.0-native zlib"
29DEPENDS:append:class-nativesdk = " nativesdk-openssl" 30DEPENDS:append:class-nativesdk = " nativesdk-openssl"
30 31
31export PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" 32export PYTHON = "${STAGING_BINDIR_NATIVE}/python3-native/python3"
32 33
33do_configure:prepend() { 34do_configure:prepend() {
34 echo ${PV} > ${S}/.tarball-version 35 echo ${PV} > ${S}/.tarball-version
diff --git a/meta-networking/recipes-support/spice/usbredir_0.14.0.bb b/meta-networking/recipes-support/spice/usbredir_0.14.0.bb
index 82f48ccdb8..81c7fdf0c8 100644
--- a/meta-networking/recipes-support/spice/usbredir_0.14.0.bb
+++ b/meta-networking/recipes-support/spice/usbredir_0.14.0.bb
@@ -11,7 +11,6 @@ SRCREV = "2d373432e604960c1dcc14fb97098febe4d64025"
11 11
12SRC_URI = "git://gitlab.freedesktop.org/spice/usbredir;branch=main;protocol=https" 12SRC_URI = "git://gitlab.freedesktop.org/spice/usbredir;branch=main;protocol=https"
13 13
14S = "${WORKDIR}/git"
15 14
16inherit meson pkgconfig 15inherit meson pkgconfig
17 16
diff --git a/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb b/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb
index 0531ffe640..9b1413df2e 100644
--- a/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb
+++ b/meta-networking/recipes-support/ssmping/ssmping_0.9.1.bb
@@ -4,10 +4,9 @@ SECTION = "net"
4LICENSE = "ISC" 4LICENSE = "ISC"
5LIC_FILES_CHKSUM = "file://asmping.c;beginline=2;endline=11;md5=1ca8d1a1ca931e5cfe604ebf20a78b71" 5LIC_FILES_CHKSUM = "file://asmping.c;beginline=2;endline=11;md5=1ca8d1a1ca931e5cfe604ebf20a78b71"
6 6
7SRC_URI = "http://www.venaas.no/multicast/ssmping/${BP}.tar.gz \ 7SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.gz;downloadfilename=${BP}.tar.gz \
8 file://0001-Makefile-tweak-install-dir.patch \ 8 file://0001-Makefile-tweak-install-dir.patch \
9" 9"
10SRC_URI[md5sum] = "ad8e3d13f6d72918f73be7e7975d7fad"
11SRC_URI[sha256sum] = "22103a37eaa28489169a0927bc01e0596c3485fc4d29fc8456c07fd2c70fca6d" 10SRC_URI[sha256sum] = "22103a37eaa28489169a0927bc01e0596c3485fc4d29fc8456c07fd2c70fca6d"
12 11
13CFLAGS += "-D_GNU_SOURCE " 12CFLAGS += "-D_GNU_SOURCE "
@@ -15,3 +14,7 @@ CFLAGS += "-D_GNU_SOURCE "
15do_install() { 14do_install() {
16 oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install 15 oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
17} 16}
17
18# http://errors.yoctoproject.org/Errors/Details/766895/
19# ssmping.c:55:51: error: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types]
20CFLAGS += "-Wno-error=incompatible-pointer-types"
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch b/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch
new file mode 100644
index 0000000000..920c1cd2c5
--- /dev/null
+++ b/meta-networking/recipes-support/ssmtp/ssmtp/0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch
@@ -0,0 +1,47 @@
1From 7d3db0f63b9fa4a0deca486eccbe60c3cfa00750 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Wed, 16 Apr 2025 18:28:24 +0900
4Subject: [PATCH] Fix incompatible-pointer-types error with gcc 15
5
6../ssmtp-2.64/ssmtp.c:1454:31: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
7 1454 | (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */
8 | ^~~~~~~~~~~~~~~~~~
9 | |
10 | void (*)(void)
11In file included from TOPDIR/tmp/work/core2-64-oe-linux/ssmtp/2.64/recipe-sysroot/usr/include/sys/param.h:28,
12 from ../ssmtp-2.64/ssmtp.c:18:
13TOPDIR/tmp/work/core2-64-oe-linux/ssmtp/2.64/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
14 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
15 | ~~~~~~~~~~~~~~~^~~~~~~~~
16../ssmtp-2.64/ssmtp.c:1393:6: note: 'handler' declared here
17 1393 | void handler(void)
18 | ^~~~~~~
19
20Upstream-Status: Inactive-Upstream [This package has been orphaned https://bugs.debian.org/925056]
21Signed-off-by: mark.yang <mark.yang@lge.com>
22---
23 ssmtp.c | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26diff --git a/ssmtp.c b/ssmtp.c
27index 4dedaf8..a938d14 100644
28--- a/ssmtp.c
29+++ b/ssmtp.c
30@@ -1390,7 +1390,7 @@ handler() -- A "normal" non-portable version of an alarm handler
31 like a socket. So we longjump instead, which is erronious on
32 a small number of machines and ill-defined in the language
33 */
34-void handler(void)
35+void handler(__attribute__((unused)) int sig)
36 {
37 extern jmp_buf TimeoutJmpBuf;
38
39@@ -1451,7 +1451,7 @@ int ssmtp(char *argv[])
40 from = from_format(uad, override_from);
41
42 /* Now to the delivery of the message */
43- (void)signal(SIGALRM, (void(*)())handler); /* Catch SIGALRM */
44+ (void)signal(SIGALRM, handler); /* Catch SIGALRM */
45 (void)alarm((unsigned) MAXWAIT); /* Set initial timer */
46 if(setjmp(TimeoutJmpBuf) != 0) {
47 /* Then the timer has gone off and we bail out */
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
index 499a79d1ed..8dc2d76477 100644
--- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
+++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb
@@ -9,6 +9,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \
9 file://use-DESTDIR.patch \ 9 file://use-DESTDIR.patch \
10 file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \ 10 file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \
11 file://0001-include-libgen.h-for-basename.patch \ 11 file://0001-include-libgen.h-for-basename.patch \
12 file://0001-Fix-incompatible-pointer-types-error-with-gcc-15.patch \
12 " 13 "
13 14
14SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" 15SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f"
diff --git a/meta-networking/recipes-support/strongswan/strongswan/0001-pki-Fix-signature-of-help-to-match-that-of-a-callbac.patch b/meta-networking/recipes-support/strongswan/strongswan/0001-pki-Fix-signature-of-help-to-match-that-of-a-callbac.patch
new file mode 100644
index 0000000000..92c848f095
--- /dev/null
+++ b/meta-networking/recipes-support/strongswan/strongswan/0001-pki-Fix-signature-of-help-to-match-that-of-a-callbac.patch
@@ -0,0 +1,25 @@
1From a7b5de569082398a14b7e571498e55d005903aaf Mon Sep 17 00:00:00 2001
2From: Tobias Brunner <tobias@strongswan.org>
3Date: Fri, 21 Feb 2025 17:18:35 +0100
4Subject: [PATCH] pki: Fix signature of help() to match that of a callback in
5 command_t
6
7Upstream-Status: Backport [a7b5de5 pki: Fix signature of help() to match that of a callback in command_t]
8Signed-off-by: mark.yang <mark.yang@lge.com>
9---
10 src/pki/command.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/pki/command.c b/src/pki/command.c
14index accec5fe5..6e6bf041e 100644
15--- a/src/pki/command.c
16+++ b/src/pki/command.c
17@@ -265,7 +265,7 @@ int command_usage(char *error)
18 /**
19 * Show usage information
20 */
21-static int help(int c, char *v[])
22+static int help()
23 {
24 return command_usage(NULL);
25 }
diff --git a/meta-networking/recipes-support/strongswan/strongswan/0002-callback-job-Replace-return_false-in-constructors-wi.patch b/meta-networking/recipes-support/strongswan/strongswan/0002-callback-job-Replace-return_false-in-constructors-wi.patch
new file mode 100644
index 0000000000..09451206ca
--- /dev/null
+++ b/meta-networking/recipes-support/strongswan/strongswan/0002-callback-job-Replace-return_false-in-constructors-wi.patch
@@ -0,0 +1,90 @@
1From d5d2568ff0e88d364dadf50b67bf17050763cf98 Mon Sep 17 00:00:00 2001
2From: Tobias Brunner <tobias@strongswan.org>
3Date: Fri, 21 Feb 2025 16:45:57 +0100
4Subject: [PATCH] callback-job: Replace return_false() in constructors with
5 dedicated function
6
7Besides being clearer, this fixes issues with GCC 15. The latter uses
8C23 by default, which changes the meaning of function declarations
9without parameters such as
10
11 bool return false();
12
13Instead of "this function takes an unknown number of arguments", this
14now equals (void), that is, "this function takes no arguments". So we
15run into incompatible pointer type warnings all over when using such
16functions. They could be cast to (void*) but this seems the cleaner
17solution for this use case.
18
19Upstream-Status: Backport [d5d2568 callback-job: Replace return_false() in constructors with dedicated function]
20Signed-off-by: mark.yang <mark.yang@lge.com>
21---
22 src/libstrongswan/processing/jobs/callback_job.c | 10 +++++++++-
23 src/libstrongswan/processing/jobs/callback_job.h | 11 ++++++++++-
24 src/libstrongswan/processing/scheduler.c | 3 ++-
25 3 files changed, 21 insertions(+), 3 deletions(-)
26
27diff --git a/src/libstrongswan/processing/jobs/callback_job.c b/src/libstrongswan/processing/jobs/callback_job.c
28index cb2a0aba5..3ab40b947 100644
29--- a/src/libstrongswan/processing/jobs/callback_job.c
30+++ b/src/libstrongswan/processing/jobs/callback_job.c
31@@ -1,5 +1,5 @@
32 /*
33- * Copyright (C) 2009-2012 Tobias Brunner
34+ * Copyright (C) 2009-2025 Tobias Brunner
35 * Copyright (C) 2007-2011 Martin Willi
36 *
37 * Copyright (C) secunet Security Networks AG
38@@ -131,3 +131,11 @@ callback_job_t *callback_job_create(callback_job_cb_t cb, void *data,
39 return callback_job_create_with_prio(cb, data, cleanup, cancel,
40 JOB_PRIO_MEDIUM);
41 }
42+
43+/*
44+ * Described in header
45+ */
46+bool callback_job_cancel_thread(void *data)
47+{
48+ return FALSE;
49+}
50diff --git a/src/libstrongswan/processing/jobs/callback_job.h b/src/libstrongswan/processing/jobs/callback_job.h
51index 0f1ae212d..fda868879 100644
52--- a/src/libstrongswan/processing/jobs/callback_job.h
53+++ b/src/libstrongswan/processing/jobs/callback_job.h
54@@ -1,5 +1,5 @@
55 /*
56- * Copyright (C) 2012 Tobias Brunner
57+ * Copyright (C) 2012-2025 Tobias Brunner
58 * Copyright (C) 2007-2011 Martin Willi
59 *
60 * Copyright (C) secunet Security Networks AG
61@@ -62,6 +62,15 @@ typedef void (*callback_job_cleanup_t)(void *data);
62 */
63 typedef bool (*callback_job_cancel_t)(void *data);
64
65+/**
66+ * Default implementation of callback_job_cancel_t that simply returns FALSE
67+ * to force cancellation of the thread by the processor.
68+ *
69+ * @param data ignored argument
70+ * @return always returns FALSE
71+ */
72+bool callback_job_cancel_thread(void *data);
73+
74 /**
75 * Class representing an callback Job.
76 *
77diff --git a/src/libstrongswan/processing/scheduler.c b/src/libstrongswan/processing/scheduler.c
78index c5e5dd83e..76d98ddff 100644
79--- a/src/libstrongswan/processing/scheduler.c
80+++ b/src/libstrongswan/processing/scheduler.c
81@@ -329,7 +329,8 @@ scheduler_t * scheduler_create()
82 this->heap = (event_t**)calloc(this->heap_size + 1, sizeof(event_t*));
83
84 job = callback_job_create_with_prio((callback_job_cb_t)schedule, this,
85- NULL, return_false, JOB_PRIO_CRITICAL);
86+ NULL, callback_job_cancel_thread,
87+ JOB_PRIO_CRITICAL);
88 lib->processor->queue_job(lib->processor, (job_t*)job);
89
90 return &this->public;
diff --git a/meta-networking/recipes-support/strongswan/strongswan/0003-Cast-uses-of-return_-nop-and-enumerator_create_empty.patch b/meta-networking/recipes-support/strongswan/strongswan/0003-Cast-uses-of-return_-nop-and-enumerator_create_empty.patch
new file mode 100644
index 0000000000..6c2a77105a
--- /dev/null
+++ b/meta-networking/recipes-support/strongswan/strongswan/0003-Cast-uses-of-return_-nop-and-enumerator_create_empty.patch
@@ -0,0 +1,118 @@
1From 11978ddd39e800b5f35f721d726e8a4cb7e4ec0f Mon Sep 17 00:00:00 2001
2From: Tobias Brunner <tobias@strongswan.org>
3Date: Fri, 21 Feb 2025 17:00:44 +0100
4Subject: [PATCH] Cast uses of return_*(), nop() and enumerator_create_empty()
5
6As described in the previous commit, GCC 15 uses C23 by default and that
7changes the meaning of such argument-less function declarations. So
8whenever we assign such a function to a pointer that expects a function
9with arguments it causes an incompatible pointer type warning. We
10could define dedicated functions/callbacks whenever necessary, but this
11seems like the simpler approach for now (especially since most uses of
12these functions have already been cast).
13
14Upstream-Status: Backport [11978dd Cast uses of return_*(), nop() and enumerator_create_empty()]
15Signed-off-by: mark.yang <mark.yang@lge.com>
16---
17 src/charon-nm/nm/nm_handler.c | 2 +-
18 src/libcharon/encoding/payloads/encrypted_payload.c | 2 +-
19 src/libcharon/plugins/android_dns/android_dns_handler.c | 2 +-
20 src/libcharon/plugins/ha/ha_attribute.c | 2 +-
21 src/libcharon/plugins/updown/updown_handler.c | 2 +-
22 src/libstrongswan/utils/identification.c | 6 +++---
23 6 files changed, 8 insertions(+), 8 deletions(-)
24
25diff --git a/src/charon-nm/nm/nm_handler.c b/src/charon-nm/nm/nm_handler.c
26index d7331ad72..39d0190ac 100644
27--- a/src/charon-nm/nm/nm_handler.c
28+++ b/src/charon-nm/nm/nm_handler.c
29@@ -195,7 +195,7 @@ nm_handler_t *nm_handler_create()
30 .public = {
31 .handler = {
32 .handle = _handle,
33- .release = nop,
34+ .release = (void*)nop,
35 .create_attribute_enumerator = _create_attribute_enumerator,
36 },
37 .create_enumerator = _create_enumerator,
38diff --git a/src/libcharon/encoding/payloads/encrypted_payload.c b/src/libcharon/encoding/payloads/encrypted_payload.c
39index 676d00b7a..4821c6108 100644
40--- a/src/libcharon/encoding/payloads/encrypted_payload.c
41+++ b/src/libcharon/encoding/payloads/encrypted_payload.c
42@@ -1023,7 +1023,7 @@ encrypted_fragment_payload_t *encrypted_fragment_payload_create()
43 .get_length = _frag_get_length,
44 .add_payload = _frag_add_payload,
45 .remove_payload = (void*)return_null,
46- .generate_payloads = nop,
47+ .generate_payloads = (void*)nop,
48 .set_transform = _frag_set_transform,
49 .get_transform = _frag_get_transform,
50 .encrypt = _frag_encrypt,
51diff --git a/src/libcharon/plugins/android_dns/android_dns_handler.c b/src/libcharon/plugins/android_dns/android_dns_handler.c
52index 78f4f702a..14d2ff99a 100644
53--- a/src/libcharon/plugins/android_dns/android_dns_handler.c
54+++ b/src/libcharon/plugins/android_dns/android_dns_handler.c
55@@ -191,7 +191,7 @@ METHOD(enumerator_t, enumerate_dns, bool,
56 VA_ARGS_VGET(args, type, data);
57 *type = INTERNAL_IP4_DNS;
58 *data = chunk_empty;
59- this->venumerate = return_false;
60+ this->venumerate = (void*)return_false;
61 return TRUE;
62 }
63
64diff --git a/src/libcharon/plugins/ha/ha_attribute.c b/src/libcharon/plugins/ha/ha_attribute.c
65index b865a4b82..103d1a937 100644
66--- a/src/libcharon/plugins/ha/ha_attribute.c
67+++ b/src/libcharon/plugins/ha/ha_attribute.c
68@@ -381,7 +381,7 @@ ha_attribute_t *ha_attribute_create(ha_kernel_t *kernel, ha_segments_t *segments
69 .provider = {
70 .acquire_address = _acquire_address,
71 .release_address = _release_address,
72- .create_attribute_enumerator = enumerator_create_empty,
73+ .create_attribute_enumerator = (void*)enumerator_create_empty,
74 },
75 .reserve = _reserve,
76 .destroy = _destroy,
77diff --git a/src/libcharon/plugins/updown/updown_handler.c b/src/libcharon/plugins/updown/updown_handler.c
78index 36eb15615..3707e1e65 100644
79--- a/src/libcharon/plugins/updown/updown_handler.c
80+++ b/src/libcharon/plugins/updown/updown_handler.c
81@@ -220,7 +220,7 @@ updown_handler_t *updown_handler_create()
82 .handler = {
83 .handle = _handle,
84 .release = _release,
85- .create_attribute_enumerator = enumerator_create_empty,
86+ .create_attribute_enumerator = (void*)enumerator_create_empty,
87 },
88 .create_dns_enumerator = _create_dns_enumerator,
89 .destroy = _destroy,
90diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
91index d31955b38..58a05052d 100644
92--- a/src/libstrongswan/utils/identification.c
93+++ b/src/libstrongswan/utils/identification.c
94@@ -1625,7 +1625,7 @@ static private_identification_t *identification_create(id_type_t type)
95 this->public.hash = _hash_binary;
96 this->public.equals = _equals_binary;
97 this->public.matches = _matches_any;
98- this->public.contains_wildcards = return_true;
99+ this->public.contains_wildcards = (void*)return_true;
100 break;
101 case ID_FQDN:
102 case ID_RFC822_ADDR:
103@@ -1660,13 +1660,13 @@ static private_identification_t *identification_create(id_type_t type)
104 this->public.hash = _hash_binary;
105 this->public.equals = _equals_binary;
106 this->public.matches = _matches_range;
107- this->public.contains_wildcards = return_false;
108+ this->public.contains_wildcards = (void*)return_false;
109 break;
110 default:
111 this->public.hash = _hash_binary;
112 this->public.equals = _equals_binary;
113 this->public.matches = _matches_binary;
114- this->public.contains_wildcards = return_false;
115+ this->public.contains_wildcards = (void*)return_false;
116 break;
117 }
118 return this;
diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb b/meta-networking/recipes-support/strongswan/strongswan_6.0.1.bb
index 2e2da8274b..771470f695 100644
--- a/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb
+++ b/meta-networking/recipes-support/strongswan/strongswan_6.0.1.bb
@@ -8,10 +8,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
8DEPENDS = "flex-native flex bison-native" 8DEPENDS = "flex-native flex bison-native"
9DEPENDS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', ' tpm2-tss', '', d)}" 9DEPENDS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', ' tpm2-tss', '', d)}"
10 10
11SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \ 11SRC_URI = " \
12 " 12 https://download.strongswan.org/strongswan-${PV}.tar.bz2 \
13 file://0001-pki-Fix-signature-of-help-to-match-that-of-a-callbac.patch \
14 file://0002-callback-job-Replace-return_false-in-constructors-wi.patch \
15 file://0003-Cast-uses-of-return_-nop-and-enumerator_create_empty.patch \
16 "
13 17
14SRC_URI[sha256sum] = "728027ddda4cb34c67c4cec97d3ddb8c274edfbabdaeecf7e74693b54fc33678" 18SRC_URI[sha256sum] = "212368cbc674fed31f3292210303fff06da8b90acad2d1387375ed855e6879c4"
15 19
16UPSTREAM_CHECK_REGEX = "strongswan-(?P<pver>\d+(\.\d+)+)\.tar" 20UPSTREAM_CHECK_REGEX = "strongswan-(?P<pver>\d+(\.\d+)+)\.tar"
17 21
@@ -22,24 +26,33 @@ EXTRA_OECONF = " \
22 26
23EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" 27EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
24 28
25PACKAGECONFIG ?= "curl gmp openssl sqlite3 swanctl curve25519\ 29PACKAGECONFIG ?= "curl openssl sqlite3 swanctl \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-charon', 'charon', d)} \ 30 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-charon', 'charon', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'tpm2', '', d)} \ 31 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'tpm2', '', d)} \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'tnc-imc imc-hcd imc-os imc-scanner imc-attestation', '', d)} \ 32 ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'tnc-imc imc-hcd imc-os imc-scanner imc-attestation', '', d)} \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'tnc-imv imv-hcd imv-os imv-scanner imv-attestation', '', d)} \ 33 ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'tnc-imv imv-hcd imv-os imv-scanner imv-attestation', '', d)} \
30" 34"
31 35
36PACKAGECONFIG[aes] = "--enable-aes,--disable-aes,,${PN}-plugin-aes"
32PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni,,${PN}-plugin-aesni" 37PACKAGECONFIG[aesni] = "--enable-aesni,--disable-aesni,,${PN}-plugin-aesni"
33PACKAGECONFIG[bfd] = "--enable-bfd-backtraces,--disable-bfd-backtraces,binutils" 38PACKAGECONFIG[bfd] = "--enable-bfd-backtraces,--disable-bfd-backtraces,binutils"
34PACKAGECONFIG[charon] = "--enable-charon,--disable-charon," 39PACKAGECONFIG[charon] = "--enable-charon,--disable-charon,"
35PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,${PN}-plugin-curl" 40PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl,${PN}-plugin-curl"
41PACKAGECONFIG[des] = "--enable-des,--disable-des,,${PN}-plugin-des"
36PACKAGECONFIG[eap-identity] = "--enable-eap-identity,--disable-eap-identity,,${PN}-plugin-eap-identity" 42PACKAGECONFIG[eap-identity] = "--enable-eap-identity,--disable-eap-identity,,${PN}-plugin-eap-identity"
37PACKAGECONFIG[eap-mschapv2] = "--enable-eap-mschapv2,--disable-eap-mschapv2,,${PN}-plugin-eap-mschapv2" 43PACKAGECONFIG[eap-mschapv2] = "--enable-eap-mschapv2,--disable-eap-mschapv2,,${PN}-plugin-eap-mschapv2"
44PACKAGECONFIG[fips-prf] = "--enable-fips-prf,--disable-fips-prf,,${PN}-plugin-fips-prf"
38PACKAGECONFIG[gmp] = "--enable-gmp,--disable-gmp,gmp,${PN}-plugin-gmp" 45PACKAGECONFIG[gmp] = "--enable-gmp,--disable-gmp,gmp,${PN}-plugin-gmp"
46PACKAGECONFIG[hmac] = "--enable-hmac,--disable-hmac,,${PN}-plugin-hmac"
39PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap,${PN}-plugin-ldap" 47PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap,${PN}-plugin-ldap"
48PACKAGECONFIG[md5] = "--enable-md5,--disable-md5,,${PN}-plugin-md5"
40PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5,${PN}-plugin-mysql" 49PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5,${PN}-plugin-mysql"
41PACKAGECONFIG[nm] = "--enable-nm,--disable-nm,networkmanager,${PN}-nm" 50PACKAGECONFIG[nm] = "--enable-nm,--disable-nm,networkmanager,${PN}-nm"
42PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl,${PN}-plugin-openssl" 51PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl,${PN}-plugin-openssl"
52PACKAGECONFIG[pkcs12] = "--enable-pkcs12,--disable-pkcs12,,${PN}-plugin-pkcs12"
53PACKAGECONFIG[rc2] = "--enable-rc2,--disable-rc2,,${PN}-plugin-rc2"
54PACKAGECONFIG[sha1] = "--enable-sha1,--disable-sha1,,${PN}-plugin-sha1"
55PACKAGECONFIG[sha2] = "--enable-sha2,--disable-sha2,,${PN}-plugin-sha2"
43PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4,${PN}-plugin-soup" 56PACKAGECONFIG[soup] = "--enable-soup,--disable-soup,libsoup-2.4,${PN}-plugin-soup"
44PACKAGECONFIG[sqlite3] = "--enable-sqlite,--disable-sqlite,sqlite3,${PN}-plugin-sqlite" 57PACKAGECONFIG[sqlite3] = "--enable-sqlite,--disable-sqlite,sqlite3,${PN}-plugin-sqlite"
45PACKAGECONFIG[stroke] = "--enable-stroke,--disable-stroke,,${PN}-plugin-stroke" 58PACKAGECONFIG[stroke] = "--enable-stroke,--disable-stroke,,${PN}-plugin-stroke"
@@ -144,34 +157,23 @@ PACKAGESPLITFUNCS:prepend = "split_strongswan_plugins "
144# Install some default plugins based on default strongSwan ./configure options 157# Install some default plugins based on default strongSwan ./configure options
145# See https://wiki.strongswan.org/projects/strongswan/wiki/Pluginlist 158# See https://wiki.strongswan.org/projects/strongswan/wiki/Pluginlist
146RDEPENDS:${PN} += "\ 159RDEPENDS:${PN} += "\
147 ${PN}-plugin-aes \
148 ${PN}-plugin-attr \ 160 ${PN}-plugin-attr \
149 ${PN}-plugin-cmac \ 161 ${PN}-plugin-cmac \
150 ${PN}-plugin-constraints \ 162 ${PN}-plugin-constraints \
151 ${PN}-plugin-des \
152 ${PN}-plugin-dnskey \ 163 ${PN}-plugin-dnskey \
153 ${PN}-plugin-drbg \ 164 ${PN}-plugin-drbg \
154 ${PN}-plugin-fips-prf \
155 ${PN}-plugin-gcm \
156 ${PN}-plugin-hmac \
157 ${PN}-plugin-kdf \ 165 ${PN}-plugin-kdf \
158 ${PN}-plugin-kernel-netlink \ 166 ${PN}-plugin-kernel-netlink \
159 ${PN}-plugin-md5 \
160 ${PN}-plugin-mgf1 \
161 ${PN}-plugin-nonce \ 167 ${PN}-plugin-nonce \
162 ${PN}-plugin-pem \ 168 ${PN}-plugin-pem \
163 ${PN}-plugin-pgp \ 169 ${PN}-plugin-pgp \
164 ${PN}-plugin-pkcs1 \ 170 ${PN}-plugin-pkcs1 \
165 ${PN}-plugin-pkcs7 \ 171 ${PN}-plugin-pkcs7 \
166 ${PN}-plugin-pkcs8 \ 172 ${PN}-plugin-pkcs8 \
167 ${PN}-plugin-pkcs12 \
168 ${PN}-plugin-pubkey \ 173 ${PN}-plugin-pubkey \
169 ${PN}-plugin-random \ 174 ${PN}-plugin-random \
170 ${PN}-plugin-rc2 \
171 ${PN}-plugin-resolve \ 175 ${PN}-plugin-resolve \
172 ${PN}-plugin-revocation \ 176 ${PN}-plugin-revocation \
173 ${PN}-plugin-sha1 \
174 ${PN}-plugin-sha2 \
175 ${PN}-plugin-socket-default \ 177 ${PN}-plugin-socket-default \
176 ${PN}-plugin-sshkey \ 178 ${PN}-plugin-sshkey \
177 ${PN}-plugin-updown \ 179 ${PN}-plugin-updown \
diff --git a/meta-networking/recipes-support/stunnel/stunnel/fix-openssl-no-des.patch b/meta-networking/recipes-support/stunnel/stunnel/fix-openssl-no-des.patch
index 82d3551019..3520bf429e 100644
--- a/meta-networking/recipes-support/stunnel/stunnel/fix-openssl-no-des.patch
+++ b/meta-networking/recipes-support/stunnel/stunnel/fix-openssl-no-des.patch
@@ -1,4 +1,4 @@
1From 7ff4eba20b5c4fc7365e5ee0dfb775ed29bdd5ce Mon Sep 17 00:00:00 2001 1From e08b9760d319d0334f2aad02d32d791c8ebd8564 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com> 2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 1 Nov 2017 09:23:41 -0400 3Date: Wed, 1 Nov 2017 09:23:41 -0400
4Subject: [PATCH] stunnel: fix compile error when openssl disable des support 4Subject: [PATCH] stunnel: fix compile error when openssl disable des support
@@ -17,10 +17,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
17 2 files changed, 5 insertions(+), 3 deletions(-) 17 2 files changed, 5 insertions(+), 3 deletions(-)
18 18
19diff --git a/src/common.h b/src/common.h 19diff --git a/src/common.h b/src/common.h
20index 2b4869f..180d31a 100644 20index c2229d0..5eaee8c 100644
21--- a/src/common.h 21--- a/src/common.h
22+++ b/src/common.h 22+++ b/src/common.h
23@@ -492,7 +492,9 @@ extern char *sys_errlist[]; 23@@ -497,7 +497,9 @@ extern char *sys_errlist[];
24 #ifndef OPENSSL_NO_MD4 24 #ifndef OPENSSL_NO_MD4
25 #include <openssl/md4.h> 25 #include <openssl/md4.h>
26 #endif /* !defined(OPENSSL_NO_MD4) */ 26 #endif /* !defined(OPENSSL_NO_MD4) */
@@ -31,19 +31,19 @@ index 2b4869f..180d31a 100644
31 #include <openssl/dh.h> 31 #include <openssl/dh.h>
32 #if OPENSSL_VERSION_NUMBER<0x10100000L 32 #if OPENSSL_VERSION_NUMBER<0x10100000L
33diff --git a/src/protocol.c b/src/protocol.c 33diff --git a/src/protocol.c b/src/protocol.c
34index cfe6d3b..3936aea 100644 34index c390a6f..7aca745 100644
35--- a/src/protocol.c 35--- a/src/protocol.c
36+++ b/src/protocol.c 36+++ b/src/protocol.c
37@@ -81,7 +81,7 @@ NOEXPORT void ldap_client_middle(CLI *); 37@@ -82,7 +82,7 @@ NOEXPORT void ldap_client_middle(CLI *);
38
39 NOEXPORT void connect_server_early(CLI *); 38 NOEXPORT void connect_server_early(CLI *);
39 NOEXPORT const char *connect_client_init(SERVICE_OPTIONS *);
40 NOEXPORT void connect_client_middle(CLI *); 40 NOEXPORT void connect_client_middle(CLI *);
41-#ifndef OPENSSL_NO_MD4 41-#ifndef OPENSSL_NO_MD4
42+#if !defined(OPENSSL_NO_MD4) && !defined(OPENSSL_NO_DES) 42+#if !defined(OPENSSL_NO_MD4) && !defined(OPENSSL_NO_DES)
43 NOEXPORT void ntlm(CLI *); 43 NOEXPORT void ntlm(CLI *);
44 NOEXPORT char *ntlm1(void); 44 NOEXPORT char *ntlm1(void);
45 NOEXPORT char *ntlm3(char *, char *, char *, char *); 45 NOEXPORT char *ntlm3(char *, char *, char *, char *);
46@@ -1331,7 +1331,7 @@ NOEXPORT void connect_client_middle(CLI *c) { 46@@ -1391,7 +1391,7 @@ NOEXPORT void connect_client_middle(CLI *c) {
47 fd_printf(c, c->remote_fd.fd, "Host: %s", c->opt->protocol_host); 47 fd_printf(c, c->remote_fd.fd, "Host: %s", c->opt->protocol_host);
48 if(c->opt->protocol_username && c->opt->protocol_password) { 48 if(c->opt->protocol_username && c->opt->protocol_password) {
49 if(!strcasecmp(c->opt->protocol_authentication, "ntlm")) { 49 if(!strcasecmp(c->opt->protocol_authentication, "ntlm")) {
@@ -52,7 +52,7 @@ index cfe6d3b..3936aea 100644
52 ntlm(c); 52 ntlm(c);
53 #else 53 #else
54 s_log(LOG_ERR, "NTLM authentication is not available"); 54 s_log(LOG_ERR, "NTLM authentication is not available");
55@@ -1374,7 +1374,7 @@ NOEXPORT void connect_client_middle(CLI *c) { 55@@ -1434,7 +1434,7 @@ NOEXPORT void connect_client_middle(CLI *c) {
56 str_free(line); 56 str_free(line);
57 } 57 }
58 58
@@ -61,6 +61,3 @@ index cfe6d3b..3936aea 100644
61 61
62 /* 62 /*
63 * NTLM code is based on the following documentation: 63 * NTLM code is based on the following documentation:
64--
652.34.1
66
diff --git a/meta-networking/recipes-support/stunnel/stunnel_5.72.bb b/meta-networking/recipes-support/stunnel/stunnel_5.75.bb
index 6d21027a16..e13872abcd 100644
--- a/meta-networking/recipes-support/stunnel/stunnel_5.72.bb
+++ b/meta-networking/recipes-support/stunnel/stunnel_5.75.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "SSL encryption wrapper between remote client and local (inetd-sta
3HOMEPAGE = "https://www.stunnel.org/" 3HOMEPAGE = "https://www.stunnel.org/"
4SECTION = "net" 4SECTION = "net"
5LICENSE = "GPL-2.0-or-later" 5LICENSE = "GPL-2.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING.md;md5=906ac034adaee9d093318e51b53453ca" 6LIC_FILES_CHKSUM = "file://COPYING.md;md5=1e4388407e163ad0cde171362f9a7b94"
7 7
8DEPENDS = "autoconf-archive libnsl2 openssl" 8DEPENDS = "autoconf-archive libnsl2 openssl"
9 9
@@ -11,7 +11,7 @@ SRC_URI = "https://stunnel.org/archive/5.x/${BP}.tar.gz \
11 file://fix-openssl-no-des.patch \ 11 file://fix-openssl-no-des.patch \
12" 12"
13 13
14SRC_URI[sha256sum] = "3d532941281ae353319735144e4adb9ae489a10b7e309c58a48157f08f42e949" 14SRC_URI[sha256sum] = "0c1ef0ed85240974dccb94fe74fb92d6383474c7c0d10e8796d1f781a3ba5683"
15 15
16inherit autotools bash-completion pkgconfig 16inherit autotools bash-completion pkgconfig
17 17
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump/run-ptest b/meta-networking/recipes-support/tcpdump/tcpdump/run-ptest
index 2bfb2267da..2bfb2267da 100755..100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump/run-ptest
+++ b/meta-networking/recipes-support/tcpdump/tcpdump/run-ptest
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.99.4.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb
index 803a9bb5f5..144a12560b 100644
--- a/meta-networking/recipes-support/tcpdump/tcpdump_4.99.4.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.99.5.bb
@@ -21,15 +21,17 @@ RDEPENDS:${PN}-ptest += " make perl \
21" 21"
22 22
23SRC_URI = " \ 23SRC_URI = " \
24 http://www.tcpdump.org/release/${BP}.tar.gz \ 24 http://www.tcpdump.org/release/${BP}.tar.xz \
25 file://add-ptest.patch \ 25 file://add-ptest.patch \
26 file://run-ptest \ 26 file://run-ptest \
27" 27"
28 28
29SRC_URI[sha256sum] = "0232231bb2f29d6bf2426e70a08a7e0c63a0d59a9b44863b7f5e2357a6e49fea" 29SRC_URI[sha256sum] = "d76395ab82d659d526291b013eee200201380930793531515abfc6e77b4f2ee5"
30 30
31UPSTREAM_CHECK_REGEX = "tcpdump-(?P<pver>\d+(\.\d+)+)\.tar" 31UPSTREAM_CHECK_REGEX = "tcpdump-(?P<pver>\d+(\.\d+)+)\.tar"
32 32
33CVE_PRODUCT = "tcpdump:tcpdump"
34
33inherit autotools-brokensep pkgconfig ptest 35inherit autotools-brokensep pkgconfig ptest
34 36
35PACKAGECONFIG ?= "openssl" 37PACKAGECONFIG ?= "openssl"
diff --git a/meta-networking/recipes-support/tcpdump/tcpslice_1.7.bb b/meta-networking/recipes-support/tcpdump/tcpslice_1.8.bb
index 93197dc3bc..3d61160bb0 100644
--- a/meta-networking/recipes-support/tcpdump/tcpslice_1.7.bb
+++ b/meta-networking/recipes-support/tcpdump/tcpslice_1.8.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://tcpslice.c;endline=20;md5=99519e2e5234d1662a4ce16baa6
8 8
9SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz \ 9SRC_URI = "http://www.tcpdump.org/release/${BP}.tar.gz \
10 " 10 "
11SRC_URI[sha256sum] = "e513f0710c4ab45ec627e5df6f7b80d12e488146e1bd500c92247e20ca608903" 11SRC_URI[sha256sum] = "082967d6bf793499d3d655cea2149e07c0da97287f1877a6eab88d17cb703d0d"
12 12
13UPSTREAM_CHECK_REGEX = "tcpslice-(?P<pver>\d+(\.\d+)+)\.tar" 13UPSTREAM_CHECK_REGEX = "tcpslice-(?P<pver>\d+(\.\d+)+)\.tar"
14 14
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-Fix-linker-error-for-TX_RING.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-Fix-linker-error-for-TX_RING.patch
new file mode 100644
index 0000000000..d8f0ab270c
--- /dev/null
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-Fix-linker-error-for-TX_RING.patch
@@ -0,0 +1,71 @@
1From 36e038d9e4047ae42a148f671f18971cc6a68558 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 10 Apr 2025 18:30:52 +0900
4Subject: [PATCH] Fix linker error for TX_RING
5
6Found similar issue in gcc 15 build environment.
7- See more details at: http://errors.yoctoproject.org/Errors/Details/851800/
8```
9TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket':
10/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put'
11TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf':
12/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init'
13TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket':
14/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put'
15TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf':
16/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init'
17TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket':
18/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:328:(.text+0x1be): undefined reference to `txring_put'
19TOPDIR/tmp/work/core2-64-oe-linux/tcpreplay/4.5.1/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/15.0.1/ld: ./common/libcommon.a(sendpacket.o): in function `sendpacket_open_pf':
20/usr/src/debug/tcpreplay/4.5.1/src/common/sendpacket.c:1088:(.text+0x7ea): undefined reference to `txring_init'
21```
22- The result of "nm -u txring.o" shows no symbols exist.
23
24- The config.h has HAVE_TX_RING defined but txring.c is not aware of it.
25 txring.c and txring.h include config.h at the beginning.
26
27- This resulted in a successful build in my build environment.
28
29It may
30Fixes #731
31Fixes #904
32
33Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/924]
34Signed-off-by: mark.yang <mark.yang@lge.com>
35---
36 src/common/txring.c | 3 +++
37 src/common/txring.h | 4 ++--
38 2 files changed, 5 insertions(+), 2 deletions(-)
39
40diff --git a/src/common/txring.c b/src/common/txring.c
41index d5768d75..f522893d 100644
42--- a/src/common/txring.c
43+++ b/src/common/txring.c
44@@ -31,6 +31,9 @@
45 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46 */
47
48+#include "defines.h"
49+#include "config.h"
50+
51 #ifdef HAVE_TX_RING
52
53 #include "txring.h"
54diff --git a/src/common/txring.h b/src/common/txring.h
55index 309da84c..3f14cac0 100644
56--- a/src/common/txring.h
57+++ b/src/common/txring.h
58@@ -33,11 +33,11 @@
59
60 #pragma once
61
62-#ifdef HAVE_TX_RING
63-
64 #include "defines.h"
65 #include "config.h"
66
67+#ifdef HAVE_TX_RING
68+
69 #if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
70 #include <net/ethernet.h> /* the L2 protocols */
71 #include <netpacket/packet.h>
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
deleted file mode 100644
index 08cb3b88fa..0000000000
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 42f7bbc1ce4913fe2c0bc76293c5445d31690f5d Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Thu, 7 Mar 2024 21:02:07 -0800
4Subject: [PATCH] configure.ac: do not run conftest in case of cross
5 compilation
6
7It'll give us nothing but error like below:
8
9 ./conftest: cannot execute binary file: Exec format error
10 ...
11 ./configure: line 23950: test: -eq: unary operator expected
12
13The version check only has effect on Apple systems. We'd better
14avoid error like above when cross compilation.
15
16Also, in case of cross compilation, instead of having the above
17Exec format error and resulting in unaligned_cv_fail to yes, set
18it directly to yes.
19
20Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/849]
21
22Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
23---
24 configure.ac | 4 ++--
25 1 file changed, 2 insertions(+), 2 deletions(-)
26
27diff --git a/configure.ac b/configure.ac
28index 387219de..15201601 100644
29--- a/configure.ac
30+++ b/configure.ac
31@@ -928,7 +928,7 @@ cat >conftest.c <<EOF
32 EOF
33 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
34 conftest.c $LIBS >/dev/null 2>&1
35-if test -x conftest ; then
36+if test -x conftest -a "$cross_compiling" != "yes"; then
37 full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
38 libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
39 pcap_version_ok=yes
40@@ -1709,7 +1709,7 @@ case "$host_os" in
41 EOF
42 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
43 conftest.c $LIBS >/dev/null 2>&1
44- if test ! -x conftest ; then
45+ if test ! -x conftest -o "$cross_compiling" = "yes" ; then
46 dnl failed to compile for some reason
47 unaligned_cv_fail=yes
48 else
49--
502.42.0
51
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch
deleted file mode 100644
index 709d2cccbc..0000000000
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch
+++ /dev/null
@@ -1,82 +0,0 @@
1From 5f8c78362b3b1e06f5adff2d4b140509c4799894 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 3 Sep 2023 12:31:59 +0200
4Subject: [PATCH] configure.ac: unify search dirs for pcap and add lib32
5
6* add lib32 because when building lib32-tcpreplay it's
7 impossible to set --with-libpcap so that it would find
8 both include files as well as the library in lib32 directory
9
10* maybe it would be beneficial to split --with-libpcap
11 into --with-libpcap-includedir --with-libpcap-libdir as this
12 already searches in the --with-libpcap value with and
13 without any "lib" prefix, but include files always expect
14 "include" dir there
15
16* most of this code was added in:
17 https://github.com/appneta/tcpreplay/commit/202b8e82f9fd3c84ce5804577caeb36a33baabe7#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810R570
18
19* then search for
20 ${host_cpu} lib/${host_cpu} (without -${host_os} suffix)
21 and ${build_arch}-${host_os} lib/${build_arch}-${host_os}
22 was added, but only for search of dynamic library in:
23 https://github.com/appneta/tcpreplay/commit/c3d5236563985a99f8bb02c3f1bd6950e3929047
24
25* ${build_arch}-${host_os} lib/${build_arch}-${host_os}
26 was later replaced with:
27 lib/${MULTIARCH} ${MULTIARCH}
28 and it was added to static library search as well
29
30 but for dynamic library it was searching in reversed order:
31 ${MULTIARCH} lib/${MULTIARCH}
32 https://github.com/appneta/tcpreplay/commit/ed9e3a818bde04813144014561e62f018c9eb85f
33
34 I don't think this reversed order was intentional, just unify all 4 cases
35 to use the same directories in the same order
36
37Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
38Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/819]
39---
40 configure.ac | 8 ++++----
41 1 file changed, 4 insertions(+), 4 deletions(-)
42
43diff --git a/configure.ac b/configure.ac
44index 387219de..26ba31a5 100644
45--- a/configure.ac
46+++ b/configure.ac
47@@ -671,7 +671,7 @@ AC_ARG_WITH(libpcap,
48 LPCAPINCDIR=${testdir}
49 if test $dynamic_link = yes; then
50 for ext in .dylib .so .tbd ; do
51- for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
52+ for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
53 sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
54 if test -n "${sharefile}"; then
55 LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
56@@ -690,7 +690,7 @@ AC_ARG_WITH(libpcap,
57 dnl If dynamic library not found, try static
58 dnl
59 for ext in ${libext} .a .A.tbd ; do
60- for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
61+ for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
62 staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
63 if test -n "${staticfile}"; then
64 LPCAPLIB="${staticfile}"
65@@ -771,7 +771,7 @@ AC_ARG_WITH(libpcap,
66 LPCAPINCDIR="${testdir}/include"
67 if test $dynamic_link = yes; then
68 for ext in .dylib .so .tbd; do
69- for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
70+ for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
71 sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
72 if test -n "${sharefile}"; then
73 LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
74@@ -790,7 +790,7 @@ AC_ARG_WITH(libpcap,
75 dnl If dynamic library not found, try static
76 dnl
77 for ext in ${libext} .a .A.tbd ; do
78- for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
79+ for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
80 staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
81 if test -n "${staticfile}"; then
82 LPCAPLIB="${staticfile}"
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-fix-incompatible-type-assignment-in-txring.c.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-fix-incompatible-type-assignment-in-txring.c.patch
new file mode 100644
index 0000000000..906c30e147
--- /dev/null
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-fix-incompatible-type-assignment-in-txring.c.patch
@@ -0,0 +1,31 @@
1From 5615e8f7bbf83f03acacd6d6ba9ff8dc6fdc91df Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 10 Apr 2025 18:49:51 +0900
4Subject: [PATCH] fix incompatible type assignment in txring.c
5
6* There is an incompatible type assignment error in txring.c.
7 txring.c:200:12: error: incompatible types when assigning to type 'txring_t' {aka 'struct txring_s'} from type 'txring_t *' {aka 'struct txring_s *'}
8 200 | *txp = (txring_t *)safe_malloc(sizeof(txring_t));
9 | ^
10
11 txp is allocated as txring_t *, so I fixed it.
12
13Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/924]
14Signed-off-by: mark.yang <mark.yang@lge.com>
15---
16 src/common/txring.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/common/txring.c b/src/common/txring.c
20index f522893d..b062dac2 100644
21--- a/src/common/txring.c
22+++ b/src/common/txring.c
23@@ -197,7 +197,7 @@ txring_init(int fd, unsigned int mtu)
24 txring_t *txp;
25
26 /* allocate memory for structure and fill it with different stuff*/
27- *txp = (txring_t *)safe_malloc(sizeof(txring_t));
28+ txp = (txring_t *)safe_malloc(sizeof(txring_t));
29 txp->treq = (struct tpacket_req *)safe_malloc(sizeof(struct tpacket_req));
30
31 txring_mkreq(txp->treq, mtu);
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.1.bb
index 26de40a65a..46e06a928e 100644
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.1.bb
@@ -9,11 +9,11 @@ LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8"
9 9
10SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ 10SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
11 file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \ 11 file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \
12 file://0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch \ 12 file://0001-Fix-linker-error-for-TX_RING.patch \
13 file://0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch \ 13 file://0002-fix-incompatible-type-assignment-in-txring.c.patch \
14" 14"
15 15
16SRC_URI[sha256sum] = "44f18fb6d3470ecaf77a51b901a119dae16da5be4d4140ffbb2785e37ad6d4bf" 16SRC_URI[sha256sum] = "2de79bfd67ec92ca9ae2ffb50456dd1d53ff40f3fa71b422c65e8062013c9e85"
17 17
18UPSTREAM_CHECK_URI = "https://github.com/appneta/tcpreplay/releases" 18UPSTREAM_CHECK_URI = "https://github.com/appneta/tcpreplay/releases"
19 19
diff --git a/meta-networking/recipes-support/traceroute/traceroute_2.1.5.bb b/meta-networking/recipes-support/traceroute/traceroute_2.1.6.bb
index 862cba91e9..b72c375400 100644
--- a/meta-networking/recipes-support/traceroute/traceroute_2.1.5.bb
+++ b/meta-networking/recipes-support/traceroute/traceroute_2.1.6.bb
@@ -17,7 +17,7 @@ UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/traceroute/files/tracerou
17 17
18SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/${BP}/${BP}.tar.gz \ 18SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/${BP}/${BP}.tar.gz \
19" 19"
20SRC_URI[sha256sum] = "9c6c260d96eaab51e3ce461b0a84fe87123ebc6dd6c9a59fab803f95b35a859e" 20SRC_URI[sha256sum] = "9ccef9cdb9d7a98ff7fbf93f79ebd0e48881664b525c4b232a0fcec7dcb9db5e"
21 21
22EXTRA_OEMAKE = "VPATH=${STAGING_LIBDIR}" 22EXTRA_OEMAKE = "VPATH=${STAGING_LIBDIR}"
23LTOEXTRA += "-flto-partition=none" 23LTOEXTRA += "-flto-partition=none"
diff --git a/meta-networking/recipes-support/udpcast/udpcast/0001-include-stddef.h-for-ptrdiff_t.patch b/meta-networking/recipes-support/udpcast/udpcast/0001-include-stddef.h-for-ptrdiff_t.patch
index e3d65db734..3255a3fad0 100644
--- a/meta-networking/recipes-support/udpcast/udpcast/0001-include-stddef.h-for-ptrdiff_t.patch
+++ b/meta-networking/recipes-support/udpcast/udpcast/0001-include-stddef.h-for-ptrdiff_t.patch
@@ -13,15 +13,17 @@ Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelin
13 1 file changed, 1 insertion(+) 13 1 file changed, 1 insertion(+)
14 14
15diff --git a/receivedata.c b/receivedata.c 15diff --git a/receivedata.c b/receivedata.c
16index 9a68f67..0aa797f 100644 16index a5ed7e8..b3b2640 100644
17--- a/receivedata.c 17--- a/receivedata.c
18+++ b/receivedata.c 18+++ b/receivedata.c
19@@ -1,4 +1,5 @@ 19@@ -1,6 +1,7 @@
20 #include "config.h"
21
20 #include <assert.h> 22 #include <assert.h>
21+#include <stddef.h> 23+#include <stddef.h>
22 #include <sys/types.h> 24 #include <sys/types.h>
23 #include <unistd.h> 25 #include <unistd.h>
24 #include <stdlib.h> 26 #include <stdlib.h>
25-- 27--
262.34.1 282.43.0
27 29
diff --git a/meta-networking/recipes-support/udpcast/udpcast_20230924.bb b/meta-networking/recipes-support/udpcast/udpcast_20250223.bb
index f93f9850a8..b3861ce7c5 100644
--- a/meta-networking/recipes-support/udpcast/udpcast_20230924.bb
+++ b/meta-networking/recipes-support/udpcast/udpcast_20250223.bb
@@ -13,10 +13,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e3cf524a29c8476be354bb329d36ff80"
13SRC_URI = "http://www.udpcast.linux.lu/download/${BP}.tar.gz \ 13SRC_URI = "http://www.udpcast.linux.lu/download/${BP}.tar.gz \
14 file://0001-include-stddef.h-for-ptrdiff_t.patch \ 14 file://0001-include-stddef.h-for-ptrdiff_t.patch \
15 " 15 "
16SRC_URI[sha256sum] = "17b5cd8b1e54f7e2e53357ac02ee86e4198bf704096987a03a3b5c402a0ecea1" 16SRC_URI[sha256sum] = "cefd7554c877e1bc76987d2b96b23f7699a2e5340c254454f61b6e0dae370aa7"
17 17
18# Installation of rateGovernor.h fails without brokensep 18# Installation of rateGovernor.h fails without brokensep
19inherit autotools-brokensep manpages 19inherit autotools-brokensep manpages
20 20
21PACKAGECONFIG[manpages] = ""
22
21# pod2man required to build manpages 23# pod2man required to build manpages
22DEPENDS += "perl-native" 24DEPENDS += "perl-native"
diff --git a/meta-networking/recipes-support/unbound/unbound/0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch b/meta-networking/recipes-support/unbound/unbound/0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch
new file mode 100644
index 0000000000..70a41f7e37
--- /dev/null
+++ b/meta-networking/recipes-support/unbound/unbound/0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch
@@ -0,0 +1,44 @@
1From 1c58ce07919c36e6a11eead67bd6d14cc22acaec Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Wed, 2 Apr 2025 15:25:42 +0900
4Subject: [PATCH] fix build with gcc-15 -Wbuiltin-declaration-mismatch error
5
6See more details: http://errors.yoctoproject.org/Errors/Details/850313
7../git/compat/malloc.c:9:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
8 9 | void *malloc ();
9 | ^~~~~~
10../git/compat/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>'
11 4 | #include "config.h"
12 +++ |+#include <stdlib.h>
13 5 | #undef malloc
14../git/compat/malloc.c: In function 'rpl_malloc_unbound':
15../git/compat/malloc.c:23:10: error: too many arguments to function 'malloc'; expected 0, have 1
16 23 | return malloc (n);
17 | ^~~~~~ ~
18../git/compat/malloc.c:9:7: note: declared here
19 9 | void *malloc ();
20 | ^~~~~~
21
22* Seeing that there is '#undef malloc', it appears they don't want to
23 use the malloc from stdlib.h.
24 Therefore, we need to correctly define the parameters for malloc.
25
26Upstream-Status: Submitted [https://github.com/NLnetLabs/unbound/pull/1262]
27Signed-off-by: mark.yang <mark.yang@lge.com>
28---
29 compat/malloc.c | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32diff --git a/compat/malloc.c b/compat/malloc.c
33index d8097b13e..af9dcf134 100644
34--- a/compat/malloc.c
35+++ b/compat/malloc.c
36@@ -6,7 +6,7 @@
37 #include <sys/types.h>
38
39 #ifndef USE_WINSOCK
40-void *malloc ();
41+void *malloc (size_t n);
42 #else
43 /* provide a prototype */
44 void *malloc (size_t n);
diff --git a/meta-networking/recipes-support/unbound/unbound/run-ptest b/meta-networking/recipes-support/unbound/unbound/run-ptest
new file mode 100644
index 0000000000..433a687c65
--- /dev/null
+++ b/meta-networking/recipes-support/unbound/unbound/run-ptest
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3cd tests || exit 1
4retVal=0
5./unittest
6./testbound -s
7for x in ./testdata/*.rpl; do
8 output="$(./testbound -p $x -o -vvvvv 2>&1)"
9 if test $? -eq 0; then
10 echo "$x :Pass"
11 else
12 echo "$output"
13 echo "$x :Fail"
14 retVal=1
15 fi
16done
17exit $retVal
diff --git a/meta-networking/recipes-support/unbound/unbound_1.20.0.bb b/meta-networking/recipes-support/unbound/unbound_1.22.0.bb
index fe0111f595..c35148b77e 100644
--- a/meta-networking/recipes-support/unbound/unbound_1.20.0.bb
+++ b/meta-networking/recipes-support/unbound/unbound_1.22.0.bb
@@ -9,18 +9,26 @@ SECTION = "net"
9LICENSE = "BSD-3-Clause" 9LICENSE = "BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" 10LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
11 11
12SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=branch-1.20.0" 12SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \
13SRCREV = "b9525c5fd47ba481a29b90109017d2253beb105d" 13 file://run-ptest \
14 file://0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch \
15 "
14 16
15inherit autotools pkgconfig systemd update-rc.d 17# 17 commits after 1.22.0 tag:
18# https://github.com/NLnetLabs/unbound/compare/release-1.22.0...7985d17b57d25be262de56c29a43ae4b61c1b896
19# to include fix for occasional build failure:
20# https://github.com/NLnetLabs/unbound/commit/46cfbf313d812a6e50614a691e162b171dc91d7b
21PV .= "+git"
22SRCREV = "7985d17b57d25be262de56c29a43ae4b61c1b896"
23
24inherit autotools pkgconfig systemd update-rc.d ptest
16 25
17DEPENDS = "openssl libtool-native bison-native expat" 26DEPENDS = "openssl libtool-native bison-native expat"
18RDEPENDS:${PN} = "bash openssl-bin daemonize" 27RDEPENDS:${PN} = "bash openssl-bin daemonize"
19 28
20S = "${WORKDIR}/git"
21 29
22EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \ 30EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \
23 --with-ssl=${STAGING_EXECPREFIXDIR} \ 31 --disable-rpath --with-ssl=${STAGING_EXECPREFIXDIR} \
24 --enable-largefile" 32 --enable-largefile"
25 33
26PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 34PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
@@ -32,6 +40,10 @@ do_configure:append() {
32 sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h 40 sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h
33} 41}
34 42
43do_compile:append() {
44 oe_runmake tests
45}
46
35do_install:append() { 47do_install:append() {
36 install -d ${D}${systemd_unitdir}/system 48 install -d ${D}${systemd_unitdir}/system
37 install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system 49 install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
@@ -40,6 +52,19 @@ do_install:append() {
40 install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound 52 install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
41} 53}
42 54
55do_install_ptest() {
56 install -d ${D}${PTEST_PATH}/tests
57 install -d ${D}${PTEST_PATH}/tests/testdata
58
59 install -m 0544 ${B}/unittest ${D}${PTEST_PATH}/tests/
60 install -m 0544 ${B}/testbound ${D}${PTEST_PATH}/tests/
61 install -m 0664 ${S}/testdata/test_signatures* ${D}${PTEST_PATH}/tests/
62 install -m 0664 ${S}/testdata/test_sigs* ${D}${PTEST_PATH}/tests/
63 install -m 0664 ${S}/testdata/test_ds* ${D}${PTEST_PATH}/tests/
64 install -m 0664 ${S}/testdata/test_nsec3_hash* ${D}${PTEST_PATH}/tests/
65 install -m 0644 ${S}/testdata/*.rpl ${D}/${PTEST_PATH}/tests/testdata/
66}
67
43SYSTEMD_SERVICE:${PN} = "${BPN}.service" 68SYSTEMD_SERVICE:${PN} = "${BPN}.service"
44 69
45INITSCRIPT_NAME = "unbound" 70INITSCRIPT_NAME = "unbound"
diff --git a/meta-networking/recipes-support/wavemon/wavemon_0.9.5.bb b/meta-networking/recipes-support/wavemon/wavemon_0.9.6.bb
index 9da43cf9f4..4857c0af4f 100644
--- a/meta-networking/recipes-support/wavemon/wavemon_0.9.5.bb
+++ b/meta-networking/recipes-support/wavemon/wavemon_0.9.6.bb
@@ -14,7 +14,7 @@ PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap"
14DEPENDS = "libnl ncurses" 14DEPENDS = "libnl ncurses"
15 15
16SRC_URI = "git://github.com/uoaerg/wavemon;branch=master;protocol=https" 16SRC_URI = "git://github.com/uoaerg/wavemon;branch=master;protocol=https"
17SRCREV = "a7c2f190e010db508ead31fa952478e2a1c13d64" 17SRCREV = "8ba6604027c0aa5131070e3fafdcda323d58a7ad"
18 18
19# Needs some help to find libnl3 headers. 19# Needs some help to find libnl3 headers.
20# Reorder -pthread flag on the command line. 20# Reorder -pthread flag on the command line.
@@ -22,7 +22,6 @@ EXTRA_OEMAKE = "\
22 CC='${CC}' CFLAGS='${CFLAGS} -pthread -I${STAGING_INCDIR}/libnl3' \ 22 CC='${CC}' CFLAGS='${CFLAGS} -pthread -I${STAGING_INCDIR}/libnl3' \
23" 23"
24 24
25S = "${WORKDIR}/git"
26 25
27# wavemon does not support using out-of-tree builds 26# wavemon does not support using out-of-tree builds
28inherit autotools-brokensep pkgconfig 27inherit autotools-brokensep pkgconfig
diff --git a/meta-networking/recipes-support/wireshark/wireshark_4.2.5.bb b/meta-networking/recipes-support/wireshark/wireshark_4.2.12.bb
index 7cbe3e6324..dc987e08ac 100644
--- a/meta-networking/recipes-support/wireshark/wireshark_4.2.5.bb
+++ b/meta-networking/recipes-support/wireshark/wireshark_4.2.12.bb
@@ -2,22 +2,22 @@ DESCRIPTION = "wireshark - a popular network protocol analyzer"
2HOMEPAGE = "http://www.wireshark.org" 2HOMEPAGE = "http://www.wireshark.org"
3SECTION = "net" 3SECTION = "net"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 5LIC_FILES_CHKSUM = "file://COPYING;md5=570a9b3749dd0463a1778803b12a6dce"
6 6
7DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares speexdsp" 7DEPENDS = "pcre2 expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares speexdsp"
8 8
9DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native " 9DEPENDS:append:class-target = " wireshark-native chrpath-replacement-native "
10 10
11SRC_URI = "https://1.eu.dl.wireshark.org/src/wireshark-${PV}.tar.xz \ 11SRC_URI = "https://1.eu.dl.wireshark.org/src/all-versions/wireshark-${PV}.tar.xz \
12 file://0001-wireshark-src-improve-reproducibility.patch \ 12 file://0001-wireshark-src-improve-reproducibility.patch \
13 file://0002-flex-Remove-line-directives.patch \ 13 file://0002-flex-Remove-line-directives.patch \
14 file://0004-lemon-Remove-line-directives.patch \ 14 file://0004-lemon-Remove-line-directives.patch \
15 file://0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch \ 15 file://0001-UseLemon.cmake-do-not-use-lemon-data-from-the-host.patch \
16 " 16 "
17 17
18UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" 18UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src/all-versions"
19 19
20SRC_URI[sha256sum] = "55e793ab87a9a73aac44336235c92cb76c52180c469b362ed3a54f26fbb1261f" 20SRC_URI[sha256sum] = "6ed51da5f6638aba609be8d1d64a7a85312749a49261146c391fea391a3e5f06"
21 21
22PE = "1" 22PE = "1"
23 23
@@ -42,13 +42,13 @@ PACKAGECONFIG[plugins] = "-DENABLE_PLUGINS=ON,-DENABLE_PLUGINS=OFF"
42PACKAGECONFIG[sbc] = "-DENABLE_SBC=ON,-DENABLE_SBC=OFF, sbc" 42PACKAGECONFIG[sbc] = "-DENABLE_SBC=ON,-DENABLE_SBC=OFF, sbc"
43PACKAGECONFIG[libssh] = "-DENABLE_LIBSSH=ON,-DENABLE_LIBSSH=OFF, libssh2" 43PACKAGECONFIG[libssh] = "-DENABLE_LIBSSH=ON,-DENABLE_LIBSSH=OFF, libssh2"
44PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4" 44PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4"
45PACKAGECONFIG[zstd] = "-DENABLE_STTD=ON,-DENABLE_ZSTD=OFF, zstd" 45PACKAGECONFIG[zstd] = "-DENABLE_ZSTD=ON,-DENABLE_ZSTD=OFF, zstd"
46PACKAGECONFIG[nghttp2] = "-DENABLE_NGHTTP2=ON,-DENABLE_NGHTTP2=OFF, nghttp2" 46PACKAGECONFIG[nghttp2] = "-DENABLE_NGHTTP2=ON,-DENABLE_NGHTTP2=OFF, nghttp2"
47 47
48# these next two options require addional layers 48# these next two options require addional layers
49PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg" 49PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON -DUSE_qt6=OFF, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg"
50 50
51inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} 51inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}
52 52
53EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \ 53EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \
54 -DBUILD_mmdbresolve=OFF \ 54 -DBUILD_mmdbresolve=OFF \
diff --git a/meta-networking/recipes-support/wpan-tools/wpan-tools_0.9.bb b/meta-networking/recipes-support/wpan-tools/wpan-tools_0.10.bb
index 6b83cbd522..2f5ebe53ae 100644
--- a/meta-networking/recipes-support/wpan-tools/wpan-tools_0.9.bb
+++ b/meta-networking/recipes-support/wpan-tools/wpan-tools_0.10.bb
@@ -4,13 +4,12 @@ DESCRIPTION = "This is a set of utils to manage the Linux WPAN stack via \
4netlink interface. This requires recent kernel with nl802154 interface." 4netlink interface. This requires recent kernel with nl802154 interface."
5 5
6LICENSE = "ISC" 6LICENSE = "ISC"
7LIC_FILES_CHKSUM = "file://COPYING;md5=4cfd939b1d7e6aba9fcefb7f6e2fd45d" 7LIC_FILES_CHKSUM = "file://COPYING;md5=f008711099e40902ad091ed6396f33ea"
8 8
9DEPENDS = "libnl" 9DEPENDS = "libnl"
10 10
11SRC_URI = "git://github.com/linux-wpan/wpan-tools;branch=master;protocol=https" 11SRC_URI = "git://github.com/linux-wpan/wpan-tools;branch=master;protocol=https"
12SRCREV = "a316ca2caa746d60817400e5bf646c2820f09273" 12SRCREV = "91b0f038aef2f62cb6a222d190b887fdfd6bc164"
13 13
14S = "${WORKDIR}/git"
15 14
16inherit autotools pkgconfig 15inherit autotools pkgconfig