cockpit: fix build error
PATCH 1/2 cockpit: fix build error
Fix a build error caused by a missing build directory. This is already fixed in cockpit 344 and newer so backport the fix.
Signed-off-by Leonard Anderweit <[email protected]>
--- .../recipes-webadmin/cockpit/cockpit_304.bb | 1 + ...sing-src-common-directory-in-build-t.patch | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 meta-webserver/recipes-webadmin/cockpit/files/0001-build-Create-missing-src-common-directory-in-build-t.patch
meta-webserver/recipes-webadmin/cockpit/cockpit_304.bb +1 -0
@@ -7,6 +7,7 @@ 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-build-Create-missing-src-common-directory-in-build-t.patch \ file://cockpit.pam \ " SRC_URI[sha256sum] = "a87d090c930e2058bb3e970ca7f2bafe678687966b5c0b8b42a802977e391ce9"
meta-webserver/recipes-webadmin/cockpit/files/0001-build-Create-missing-src-common-directory-in-build-t.patch new file +32 -0
@@ -0,0 +1,32 @@ +From e0e5959d91f53bdc7825f8bf07b2d8c74e0f56cf Mon Sep 17 00:00:00 2001 +From: Martin Pitt <[email protected]> +Date: Fri, 25 Jul 2025 07:00:52 +0200 +Subject: [PATCH] build: Create missing src/common/ directory in build tree + +This caused a build failure with parallel builds when using a separate +build tree. Thanks to Nicolas LANTZ for the fix! + +Fixes #21918 + +Upstream-Status: Backport [https://github.com/cockpit-project/cockpit/commit/2038da3237abf8ae181ada05db1cde834876b03d] + +Signed-off-by: Leonard Anderweit <[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 e7d1ca04f3f7..0da5b74e9f25 100644 +--- a/src/common/Makefile-common.am ++++ b/src/common/Makefile-common.am +@@ -102,6 +102,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 +-- +2.25.1 +
Signature · 1 line
2.25.1
PATCH 2/2 cockpit: remove deprecated packages
From: Paul Le Guen de Kerneizon <[email protected]>
This commit removes from the recipe the following deprecated packages:
- cockpit-docker: cockpit project no longer supports Docker since version 228
[1]
- cockpit-machines: cockpit-machines is now provided in a dedicated repository [2], and code base has been removed since version 242 [3]
[1]: https://cockpit-project.org/blog/cockpit-228.html
[2]: https://github.com/cockpit-project/cockpit-machines
[3]: https://cockpit-project.org/blog/cockpit-242.html
Signed-off-by Paul Le Guen de Kerneizon <[email protected]>
Signed-off-by Khem Raj <[email protected]>
(cherry picked from commit a495fd2a54614ab238e4e87355cc850c68d56fd1)
Signed-off-by Leonard Anderweit <[email protected]>
--- meta-webserver/recipes-webadmin/cockpit/cockpit_304.bb | 10 ---------- 1 file changed, 10 deletions(-)
meta-webserver/recipes-webadmin/cockpit/cockpit_304.bb +0 -10
@@ -60,10 +60,8 @@ PACKAGES =+ " \ ${PN}-sosreport \ ${PN}-storaged \ ${PN}-networkmanager \ - ${PN}-machines \ ${PN}-selinux \ ${PN}-playground \ - ${PN}-docker \ ${PN}-dashboard \ ${PN}-packagekit \ ${PN}-apps \
@@ -103,19 +101,11 @@ FILES:${PN}-networkmanager = " \ " RDEPENDS:${PN}-networkmanager = "networkmanager" -FILES:${PN}-machines = " \ - ${datadir}/cockpit/machines \ - ${datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml \ -" FILES:${PN}-selinux = " \ ${datadir}/cockpit/selinux \ ${datadir}/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml \ " FILES:${PN}-playground = "${datadir}/cockpit/playground" -FILES:${PN}-docker = " \ - ${datadir}/cockpit/docker \ - ${datadir}/metainfo/org.cockpit-project.cockpit-docker.metainfo.xml \ -" FILES:${PN}-dashboard = "${datadir}/cockpit/dashboard" ALLOW_EMPTY:${PN}-dashboard = "1"
Signature · 1 line
2.25.1