cockpit: upgrade to 349 and fix some issues
cover cockpit: upgrade to 349 and fix some issues
This series includes the Cockpit package upgrade to the latest available version, 349.
Additionally, the recipe was cleared of old-bridge PACKAGECONFIG leftovers, and coreutils was added as a runtime dependency to make sure cockpit-certificate-helper works correctly.
The changes were tested with core-image-minimal.
Daniel Semkowicz (3):
cockpit: Remove old-bridge leftovers
cockpit: Add runtime dependency on GNU Coreutils
cockpit: Upgrade to 349
.../{cockpit_337.bb => cockpit_349.bb} | 15 ++++----
...am-Create-src-common-directory-befor.patch | 34 -------------------
2 files changed, 6 insertions(+), 43 deletions(-)
rename meta-webserver/recipes-webadmin/cockpit/{cockpit_337.bb => cockpit_349.bb} (90%)
delete mode 100644 meta-webserver/recipes-webadmin/cockpit/files/0001-Makefile-common.am-Create-src-common-directory-befor.patchPATCH 1/3 cockpit: Remove old-bridge leftovers
The old-bridge package config option was removed from the recipe, but the usage of this option was left in some places.
Remove any reference to old-bridge. Only the Python bridge is currently supported by Cockpit.
--- meta-webserver/recipes-webadmin/cockpit/cockpit_337.bb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
meta-webserver/recipes-webadmin/cockpit/cockpit_337.bb +3 -5
@@ -12,11 +12,9 @@ SRC_URI += " \ " SRC_URI[sha256sum] = "df51ef5920fae69e1b435f657376aa93772c0c1720b954a3bac10ebba26bfedf" -inherit gettext pkgconfig autotools systemd features_check -inherit ${@bb.utils.contains('PACKAGECONFIG', 'old-bridge', '', 'python3targetconfig', d)} +inherit gettext pkgconfig autotools systemd features_check python3targetconfig -DEPENDS += "glib-2.0-native intltool-native gnutls virtual/gettext json-glib krb5 libpam systemd python3-setuptools-native" -DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'old-bridge', '', 'python3-pip-native', d)}" +DEPENDS += "glib-2.0-native intltool-native gnutls virtual/gettext json-glib krb5 libpam systemd python3-pip-native python3-setuptools-native" COMPATIBLE_HOST:libc-musl = "null"
@@ -112,7 +110,7 @@ FILES:${PN}-bridge = " \ ${libexecdir}/cockpit-askpass \ ${PYTHON_SITEPACKAGES_DIR} \ " -RDEPENDS:${PN}-bridge = "${@bb.utils.contains('PACKAGECONFIG', 'old-bridge', '', 'python3', d)}" +RDEPENDS:${PN}-bridge = "python3" FILES:${PN}-desktop = "${libexecdir}/cockpit-desktop" RDEPENDS:${PN}-desktop += "bash"
PATCH 2/3 cockpit: Add runtime dependency on GNU Coreutils
In reply to Daniel SemkowiczThe BusyBox version of mv does not have the -Z flag for setting SELinux security context. This results in failure
when the cockpit-certificate-helper script is executed.
Depend the package on GNU Coreutils to make sure that the proper version of mv is installed.
--- meta-webserver/recipes-webadmin/cockpit/cockpit_337.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-webserver/recipes-webadmin/cockpit/cockpit_337.bb +2 -2
@@ -172,8 +172,8 @@ FILES:${PN} += " \ ${nonarch_libdir}/firewalld \ " RDEPENDS:${PN} += "${PN}-bridge" -# Needs bash for /usr/libexec/cockpit-certificate-helper -RDEPENDS:${PN} += "bash" +# Needs bash and mv for /usr/libexec/cockpit-certificate-helper +RDEPENDS:${PN} += "bash coreutils" do_install:append() { pkgdatadir=${datadir}/cockpit
PATCH 3/3 cockpit: Upgrade to 349
In reply to Daniel SemkowiczRemove the patch with the fix that is already present in the new version.
---
.../{cockpit_337.bb => cockpit_349.bb} | 3 +-
...am-Create-src-common-directory-befor.patch | 34 -------------------
2 files changed, 1 insertion(+), 36 deletions(-)
rename meta-webserver/recipes-webadmin/cockpit/{cockpit_337.bb => cockpit_349.bb} (97%)
delete mode 100644 meta-webserver/recipes-webadmin/cockpit/files/0001-Makefile-common.am-Create-src-common-directory-befor.patchmeta-webserver/recipes-webadmin/cockpit/cockpit_349.bb renamed from meta-webserver/recipes-webadmin/cockpit/cockpit_337.bb +1 -2
@@ -7,10 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;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://0001-Makefile-common.am-Create-src-common-directory-befor.patch \ file://cockpit.pam \ " -SRC_URI[sha256sum] = "df51ef5920fae69e1b435f657376aa93772c0c1720b954a3bac10ebba26bfedf" +SRC_URI[sha256sum] = "2fa8eef40968135fb6df866a415eba8d4d5adbf4d44f293f28d4f3c841b301bb" inherit gettext pkgconfig autotools systemd features_check python3targetconfig
meta-webserver/recipes-webadmin/cockpit/files/0001-Makefile-common.am-Create-src-common-directory-befor.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From fb3b427bcbc17257ac8c38438a82435b2bd36e38 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 9 May 2025 16:17:05 -0700 -Subject: [PATCH] Makefile-common.am: Create src/common directory before - generating fail-html.c - -During parallel builds, its possible that <build>/src/common directory is -not yet created and this codepath to generate fail-html.c is executed and -it will end in build failures - -Fixes - make[1]: Entering directory 'build/tmp/work/riscv64-yoe-linux/cockpit/337/build' - ../cockpit-337/tools/escape-to-c cockpit_webresponse_fail_html_text < ../cockpit-337/src/common/fail.html > src/common/fail-html.c.tmp && mv src/common/fail-html.c.tmp src/common/fail-html.c - /bin/bash: src/common/fail-html.c.tmp: No such file or directory - make[1]: *** [Makefile:6044: src/common/fail-html.c] Error 1 - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - src/common/Makefile-common.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/common/Makefile-common.am b/src/common/Makefile-common.am -index ec4b30d..1d55576 100644 ---- a/src/common/Makefile-common.am -+++ b/src/common/Makefile-common.am -@@ -94,6 +94,7 @@ libcockpit_common_a_SOURCES = \ - # libcockpit-common.a static-links an HTML template to use on failures - nodist_libcockpit_common_a_SOURCES = src/common/fail-html.c - src/common/fail-html.c: src/common/fail.html -+ $(MKDIR_P) $(dir $@) - $(AM_V_GEN) $(top_srcdir)/tools/escape-to-c cockpit_webresponse_fail_html_text < $< > [email protected] && mv [email protected] $@ - CLEANFILES += src/common/fail-html.c - EXTRA_DIST += src/common/fail.html