cockpit: upgrade 352 -> 364
PATCH 1/4 cockpit: upgrade 352 -> 364
Upstream changes (release notes):
* 353: Networking - suggest prefix length and gateway address; bug fixes.
* 354: Convert documentation to AsciiDoc; work around Firefox 146/147 bug; bug fixes.
* 355: ws - remove obsolete pam_cockpit_cert module; shell - add StartTransientUnit as a sudo alternative.
* 356: systemd - allow editing timers created by Cockpit; convert license headers to SPDX format.
* 357: lib - use browser context menu on shift; bridge - support Python 3.14 on old kernels.
* 358: Networking - add Wi-Fi support; Cockpit Client updated to GTK 4.
* 359: Bug fixes and translation updates.
* 360: ws - CVE-2026-4631 (be more explicit when handling hostnames on cli); ws - support loading a custom login page.
* 361: Remove all "Mount" actions in Anaconda mode; dependency updates.
* 362: Fix arbitrary code execution via specially crafted logs page link (CVE-2026-4802); bug fixes.
* 363: Translation updates.
* 364: Bug fixes and translation updates.
cockpit 356 converted all license headers to SPDX format, moving the LGPL-2.1 text from COPYING to LICENSES/LGPL-2.1.txt. Update LIC_FILES_CHKSUM path accordingly (md5 is unchanged).
Refresh 0001-Warn-not-error-if-xsltproc-is-not-found.patch: the configure.ac context shifted (-61 lines); same MSG_ERROR → MSG_WARN change preserved.
---
.../cockpit/{cockpit_352.bb => cockpit_364.bb} | 4 ++--
.../0001-Warn-not-error-if-xsltproc-is-not-found.patch | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
rename meta-webserver/recipes-webadmin/cockpit/{cockpit_352.bb => cockpit_364.bb} (97%)meta-webserver/recipes-webadmin/cockpit/cockpit_364.bb renamed from meta-webserver/recipes-webadmin/cockpit/cockpit_352.bb +2 -2
@@ -2,14 +2,14 @@ SUMMARY = "Admin interface for Linux machines" DESCRIPTION = "Cockpit makes it easy to administer your GNU/Linux servers via a web browser" LICENSE = "LGPL-2.1-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" +LIC_FILES_CHKSUM = "file://LICENSES/LGPL-2.1.txt;md5=4fbd65380cdd255951079008b364516c" SRC_URI += " \ https://github.com/cockpit-project/cockpit/releases/download/${PV}/cockpit-${PV}.tar.xz \ file://0001-Warn-not-error-if-xsltproc-is-not-found.patch \ file://cockpit.pam \ " -SRC_URI[sha256sum] = "72098a51f85c4a63f2e276af119920a5faca978b57652df562b409b5941b5146" +SRC_URI[sha256sum] = "514cea072e1ef137323ab92bdb07a66bbb5106ecd584e7a046294cf0170cb690" inherit gettext pkgconfig autotools systemd features_check python3targetconfig
meta-webserver/recipes-webadmin/cockpit/files/0001-Warn-not-error-if-xsltproc-is-not-found.patch +4 -2
@@ -3,6 +3,8 @@ From: Khem Raj <[email protected]> Date: Wed, 7 Sep 2022 11:12:28 -0700 Subject: [PATCH] Warn not error if xsltproc is not found +Refreshed for cockpit 364 (context shifted; same intent preserved). + Upstream-Status: Inappropriate [oe-core specific] Signed-off-by: Khem Raj <[email protected]>
@@ -11,10 +13,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 6896c19..2a1fb52 100644 +index 0d12145..36cb2c4 100644 --- a/configure.ac +++ b/configure.ac -@@ -182,7 +182,7 @@ AC_SUBST([systemdunitdir], [$systemdunitdir]) +@@ -121,7 +121,7 @@ AC_SUBST([systemdunitdir], [$systemdunitdir]) # package as xgettext, and we find them by PATH, so just check for the one. AC_PATH_PROG([XGETTEXT], [xgettext], [no]) if test "$XGETTEXT" = "no"; then
PATCH 2/4 netdata: upgrade 1.47.5 -> 2.10.4
Major version jump (1.x → 2.x series). Key upstream changes:
* 2.x dropped the legacy Netdata Cloud Agent-Cloud-Link (ACLK) and merged cloud-connectivity into the main binary; ENABLE_ACLK and ENABLE_CLOUD cmake options removed. OpenSSL and libcurl are now mandatory build dependencies (no longer optional via PACKAGECONFIG).
* Improved database engine, new collectors (systemd-units, OTel, scripts plugin), and expanded Go plugin with SNMP overhaul.
* 2.10.x stabilization: fix ZFS-related crashes, eBPF shared-memory pool leak, SNMP counter wrapping, database engine memory safety.
* 2.10.4: larger patch for stability, memory safety, and crash resilience across database engine, streaming, and collectors; backports new macOS hardware sensor collectors.
Recipe changes:
* Add curl and openssl to mandatory DEPENDS (both now REQUIRED by cmake); remove PACKAGECONFIG[openssl] and PACKAGECONFIG[cloud].
* Remove webui_v0/v1/v2 PACKAGECONFIG entries and associated do_install block (the webui architecture changed in 2.x).
* Remove -DENABLE_ACLK=OFF from EXTRA_OECMAKE (option no longer exists); keep -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=OFF.
* Refresh 0002-Do-not-hardcode-systemd-unit-directories.patch for 2.10.4 (the BUILD_FOR_PACKAGING/systemd service install blocks shifted ~1119 lines; same substitution preserved).
* 2.x vendors its own libsensors copy which needs flex/bison to generate its config lexer/parser at build time; add flex-native and bison-native to DEPENDS.
* Protobuf detection now runs unconditionally (used by several 2.x exporters/collectors even with the remote-write exporter disabled); add protobuf and protobuf-native to DEPENDS and point cmake at the native protoc via Protobuf_PROTOC_EXECUTABLE.
* Disable several 2.x features that reach out to the network at configure time and cannot work in an offline build:
- ENABLE_PLUGIN_OTEL / ENABLE_PLUGIN_OTEL_SIGNAL_VIEWER (pull in Rust/Corrosion via CMake FetchContent)
- ENABLE_PLUGIN_SCRIPTS (requires Go, same as ENABLE_PLUGIN_GO)
- ENABLE_ML (FetchContent-downloads dlib)
- ENABLE_LIBBACKTRACE (ExternalProject-downloads libbacktrace)
- ENABLE_DASHBOARD, now exposed as PACKAGECONFIG[dashboard] and off by default (the local agent dashboard isn't shipped in the release tarball; enabling it makes cmake fetch it from app.netdata.cloud at configure time)
* BUILD_FOR_PACKAGING=ON now also installs sysusers.d/tmpfiles.d snippets under ${nonarch_libdir}; remove them in do_install since user creation is handled by useradd.bbclass and tmpfiles by our own netdata-volatiles.conf, avoiding an "installed but not shipped" QA failure from duplicate/unmanaged files.
* Fix three new-in-2.x reproducibility leaks that embed host build paths into the packages (buildpaths QA, an error in oe-core's default ERROR_QA):
- Add 0003-Do-not-record-the-configure-command-line-in-the-binar.patch:
2.x bakes the full cmake invocation into config.h for "netdata -W buildinfo"; the collected flags include --sysroot= and -ffile-prefix-map= and so leak ${WORKDIR} into the binary.
- Add 0004-libsensors-do-not-emit-line-directives-in-generated-s.patch:
pass bison -l / flex -L so the generated conf-parse.[ch] and conf-lex.c do not carry absolute #line paths (these live in file contents, so -ffile-prefix-map cannot rewrite them).
- Remove the shipped build-info-cmake-cache.gz in do_install: it is a gzipped CMakeCache.txt kept only for buildinfo reporting and is full of host paths.
Verified with buildpaths promoted back to ERROR_QA: netdata builds and packages with no buildpaths diagnostics and no /home path remains anywhere under the package tree.
---
...ot-hardcode-systemd-unit-directories.patch | 20 +++---
...-configure-command-line-in-the-binar.patch | 31 ++++++++
...-emit-line-directives-in-generated-s.patch | 40 +++++++++++
.../{netdata_1.47.5.bb => netdata_2.10.4.bb} | 71 +++++++++++--------
4 files changed, 124 insertions(+), 38 deletions(-)
create mode 100644 meta-webserver/recipes-webadmin/netdata/netdata/0003-Do-not-record-the-configure-command-line-in-the-binar.patch
create mode 100644 meta-webserver/recipes-webadmin/netdata/netdata/0004-libsensors-do-not-emit-line-directives-in-generated-s.patch
rename meta-webserver/recipes-webadmin/netdata/{netdata_1.47.5.bb => netdata_2.10.4.bb} (68%)meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch +11 -9
@@ -3,26 +3,28 @@ From: Enguerrand de Ribaucourt <[email protected]> Date: Tue, 1 Oct 2024 17:01:33 +0200 Subject: [PATCH] Do not hardcode systemd unit directories +Refreshed for netdata v2.10.4 (context shifted; same intent preserved). + Upstream-Status: Inappropriate [oe-core specific] Signed-off-by: Enguerrand de Ribaucourt <[email protected]> --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -Index: netdata-v1.47.3/CMakeLists.txt -=================================================================== ---- netdata-v1.47.3.orig/CMakeLists.txt -+++ netdata-v1.47.3/CMakeLists.txt -@@ -2531,7 +2531,7 @@ if(BUILD_FOR_PACKAGING) +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d6dafd9..530298e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3642,7 +3642,7 @@ if(BUILD_FOR_PACKAGING) install(FILES ${CMAKE_BINARY_DIR}/system/systemd/netdata.service COMPONENT netdata - DESTINATION lib/systemd/system) + DESTINATION $ENV{systemd_system_unitdir}) - install(DIRECTORY - COMPONENT netdata - DESTINATION usr/lib/systemd/[email protected]) -@@ -2620,11 +2620,11 @@ if(NOT OS_WINDOWS) + install(FILES + ${CMAKE_BINARY_DIR}/system/systemd/sysusers/netdata.conf + COMPONENT user +@@ -3739,11 +3739,11 @@ if(NOT OS_WINDOWS) install(FILES ${CMAKE_BINARY_DIR}/system/systemd/netdata-updater.service COMPONENT netdata
meta-webserver/recipes-webadmin/netdata/netdata/0003-Do-not-record-the-configure-command-line-in-the-binar.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 29 Jul 2026 20:00:00 +0000 +Subject: [PATCH] Do not record the configure command line in the binary + +The CONFIGURE_COMMAND string is baked into config.h and reported by +"netdata -W buildinfo". In a cross build the collected flags contain +--sysroot=, -ffile-prefix-map= and similar arguments that carry absolute +host build paths, so the resulting binary embeds the build directory. +That makes the build unreproducible and trips OE's buildpaths QA check. + +The string is purely informational, so report it as unavailable rather +than leaking the build environment into the shipped binary. + +Upstream-Status: Inappropriate [embedded specific] +Signed-off-by: Khem Raj <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3397,7 +3397,7 @@ + "-DCMAKE_SHARED_LINKER_FLAGS='${CMAKE_SHARED_LINKER_FLAGS}'" + ) + +-string(JOIN " " CONFIGURE_COMMAND "cmake" ${CONFIGURE_OPTIONS}) ++set(CONFIGURE_COMMAND "unavailable (stripped for reproducible builds)") + + if (NOT NETDATA_USER) + set(NETDATA_USER "netdata")
meta-webserver/recipes-webadmin/netdata/netdata/0004-libsensors-do-not-emit-line-directives-in-generated-s.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 29 Jul 2026 20:10:00 +0000 +Subject: [PATCH] libsensors: do not emit #line directives in generated sources + +bison and flex embed the absolute path of both the input grammar and the +generated output into #line directives. Those paths live in the file +contents rather than in debug info, so -ffile-prefix-map cannot rewrite +them, and the generated conf-parse.[ch]/conf-lex.c shipped in the debug +source package end up referencing the host build directory. That makes +the build unreproducible and trips OE's buildpaths QA check. + +Pass -l (bison) and -L (flex) to suppress the #line directives. The only +effect is that compiler diagnostics for the generated parser point at the +generated file instead of the grammar, which is an acceptable trade for a +vendored parser that is not being developed here. + +Upstream-Status: Inappropriate [embedded specific] +Signed-off-by: Khem Raj <[email protected]> +--- + src/collectors/debugfs.plugin/libsensors/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/src/collectors/debugfs.plugin/libsensors/CMakeLists.txt ++++ b/src/collectors/debugfs.plugin/libsensors/CMakeLists.txt +@@ -16,12 +16,12 @@ + + # Generate Bison parser + bison_target(LibsensorsParser vendored/lib/conf-parse.y ${CMAKE_CURRENT_BINARY_DIR}/conf-parse.c +- COMPILE_FLAGS "-p sensors_yy --defines=${CMAKE_CURRENT_BINARY_DIR}/conf-parse.h" ++ COMPILE_FLAGS "-p sensors_yy -l --defines=${CMAKE_CURRENT_BINARY_DIR}/conf-parse.h" + ) + + # Generate Flex scanner + flex_target(LibsensorsLexer vendored/lib/conf-lex.l ${CMAKE_CURRENT_BINARY_DIR}/conf-lex.c +- COMPILE_FLAGS "-Psensors_yy -Cfe -8" ++ COMPILE_FLAGS "-Psensors_yy -Cfe -8 -L" + ) + + # Add dependency to ensure correct build order
meta-webserver/recipes-webadmin/netdata/netdata_2.10.4.bb renamed from meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb +42 -29
110 lines not on this page · raw message
PATCH 3/4 webmin: upgrade 2.641 -> 2.653
In reply to Khem RajUpstream changes:
* 2.650: new Systemd Services, GRUB 2, and Kea DHCP modules; WebSocket proxy support in Servers Index; Alpine Linux support; Let's Encrypt IP-based certificate support; editable SSH public keys in Users and Groups.
* 2.651: Certbot certificate request/renewal fixes; fix live activation of Linux bond interfaces.
* 2.652: global per-user ACL to block URL downloads from non-public IPs; fix hex HTML entity recognition; fix session checks with HMAC session keys; fix Usermin switching to use one-time login URLs.
* 2.653: fix missing xmlrpc-lib.pl; fix partially installed Debian package listing; Authentic theme improvements.
Recipe changes:
* Drop init-exclude.patch: both hunks (init/index.cgi commented-out runlevel loop and init/init-lib.pl exclude= support) are now incorporated in upstream webmin 2.653.
* Refresh net-generic.patch: upstream added alpine-linux to the os_support line in net/module.info; refresh the patch context.
* Refresh net-lib.pl.patch: context shifted by 4 lines with fuzz 1; refreshed against 2.653 (same fallback to debian-linux-lib.pl).
* Remove webmin-openrc-init from do_install: webmin 2.653 ships a new webmin-openrc-init script that references /sbin/openrc-run, which is not available on systemd-based distros; remove the file to avoid an unresolvable RDEPENDS QA failure.
---
.../webmin/files/net-generic.patch | 24 +++++++++++++------
.../webmin/files/net-lib.pl.patch | 8 ++++---
.../{webmin_2.641.bb => webmin_2.653.bb} | 4 ++--
3 files changed, 24 insertions(+), 12 deletions(-)
rename meta-webserver/recipes-webadmin/webmin/{webmin_2.641.bb => webmin_2.653.bb} (98%)meta-webserver/recipes-webadmin/webmin/files/net-generic.patch +17 -7
@@ -1,20 +1,30 @@ Add support for configuring network interfaces on a generic linux system +Refreshed for webmin 2.653 (upstream added alpine-linux to os_support). + Upstream-Status: Inappropriate [config] Signed-off-by: Paul Eggleton <[email protected]> +--- + net/generic-linux-lib.pl | 2 ++ + net/module.info | 2 +- + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/net/generic-linux-lib.pl b/net/generic-linux-lib.pl +new file mode 100644 +--- /dev/null ++++ b/net/generic-linux-lib.pl +@@ -0,0 +1,2 @@ ++do 'linux-lib.pl'; ++ +diff --git a/net/module.info b/net/module.info --- a/net/module.info +++ b/net/module.info @@ -1,6 +1,6 @@ name=Networking category=net --os_support=solaris coherent-linux redhat-linux/5.0-* mandrake-linux united-linux suse-linux/6.0-* open-linux unixware turbo-linux/4.0 freebsd/3.2-* openbsd debian-linux/2.2-* cobalt-linux/2.2-* msc-linux gentoo-linux macos/1.5-* trustix-linux slackware-linux/8.0-* openmamba-linux cygwin windows pardus-linux -+os_support=generic-linux solaris coherent-linux redhat-linux/5.0-* mandrake-linux united-linux suse-linux/6.0-* open-linux unixware turbo-linux/4.0 freebsd/3.2-* openbsd debian-linux/2.2-* cobalt-linux/2.2-* msc-linux gentoo-linux macos/1.5-* trustix-linux slackware-linux/8.0-* openmamba-linux cygwin windows pardus-linux +-os_support=solaris coherent-linux redhat-linux/5.0-* mandrake-linux united-linux suse-linux/6.0-* open-linux unixware turbo-linux/4.0 freebsd/3.2-* openbsd debian-linux/2.2-* cobalt-linux/2.2-* msc-linux gentoo-linux alpine-linux macos/1.5-* trustix-linux slackware-linux/8.0-* openmamba-linux cygwin windows pardus-linux ++os_support=generic-linux solaris coherent-linux redhat-linux/5.0-* mandrake-linux united-linux suse-linux/6.0-* open-linux unixware turbo-linux/4.0 freebsd/3.2-* openbsd debian-linux/2.2-* cobalt-linux/2.2-* msc-linux gentoo-linux alpine-linux macos/1.5-* trustix-linux slackware-linux/8.0-* openmamba-linux cygwin windows pardus-linux desc=Network Configuration longdesc=Configure boot time and active interfaces, DNS, routing and /etc/hosts. readonly=1 ---- /dev/null -+++ b/net/generic-linux-lib.pl -@@ -0,0 +1,2 @@ -+do 'linux-lib.pl'; -+
meta-webserver/recipes-webadmin/webmin/files/net-lib.pl.patch +5 -3
@@ -3,15 +3,17 @@ Upstream-Status: Inappropriate [config] XXX: need to work out a better fix. Signed-off-by: Dexuan Cui <[email protected]> +--- + net/net-lib.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/net-lib.pl +++ b/net/net-lib.pl -@@ -38,7 +38,7 @@ elsif ($gconfig{'os_type'} eq 'debian-li - $net_mode = "netplan"; +@@ -42,7 +42,7 @@ elsif ($auto_net_mode eq "dhcpcd") { + $net_mode = "dhcpcd"; } else { - do "$gconfig{'os_type'}-lib.pl"; + do "debian-linux-lib.pl"; $net_mode = $gconfig{'os_type'}; } -
meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb renamed from meta-webserver/recipes-webadmin/webmin/webmin_2.641.bb +2 -2
@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=0a6446108c96d0819d21e40b48109507" SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://setup.sh \ - file://init-exclude.patch \ file://net-generic.patch \ file://remove-startup-option.patch \ file://disable-version-check.patch \
@@ -19,7 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://mysql-config-fix.patch \ file://webmin.service \ " -SRC_URI[sha256sum] = "220015eaff2b666b9bbdf2ce2bc676de72d33e5cc5f35b800b0fa14934bdb95a" +SRC_URI[sha256sum] = "9acc680d3d45cee876f36fc8810ce68bb6e44a0365e245a4298a180e0d016696" UPSTREAM_CHECK_URI = "http://www.webmin.com/download.html" UPSTREAM_CHECK_REGEX = "webmin-(?P<pver>\d+(\.\d+)+).tar.gz"
@@ -91,6 +90,7 @@ do_install() { | tar --no-same-owner -xpf - -C ${D}${libexecdir}/webmin rm -f ${D}${libexecdir}/webmin/webmin-init + rm -f ${D}${libexecdir}/webmin/webmin-openrc-init rm -f ${D}${libexecdir}/webmin/ajaxterm/ajaxterm/configure.initd.gentoo rm -rf ${D}${libexecdir}/webmin/patches
PATCH 4/4 apache-websocket: update to latest master (0ee34c7 -> 18ad4ae)
In reply to Khem RajAdvance the pinned SRCREV to the current tip of jchampio's master. The latest tagged release is still 0.1.2 (already reflected in PV), and the 23 new commits are entirely test-infrastructure work: porting the test suite from Python 2 to Python 3/asyncio/websockets and adding coverage for the module APIs. None of them touch the module sources that get built and installed, so the shipped mod_websocket.so is functionally unchanged; this simply keeps the git-tracking recipe on the current tip.
--- meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-webserver/recipes-httpd/apache-mod/apache-websocket_git.bb +1 -1
@@ -13,7 +13,7 @@ RDEPENDS:${PN} += "apache2" # fork contains patches from the modules ML and fixes CVE compliance issues SRC_URI = "git://github.com/jchampio/apache-websocket.git;branch=master;protocol=https" -SRCREV = "0ee34c77fc78ff08fd548706300b80a7bc7874e4" +SRCREV = "18ad4ae2fc99381b8d75785f492a479f789b322b" PV = "0.1.2+git"