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 <l.anderweit@phytec.de>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Leonard Anderweit
2025-11-10 11:34:41 +01:00
committed by Anuj Mittal
parent 6eb226f7c5
commit 855498c938
2 changed files with 33 additions and 0 deletions
@@ -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"
@@ -0,0 +1,32 @@
From e0e5959d91f53bdc7825f8bf07b2d8c74e0f56cf Mon Sep 17 00:00:00 2001
From: Martin Pitt <mpitt@redhat.com>
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 <l.anderweit@phytec.de>
---
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 < $< > $@.tmp && mv $@.tmp $@
CLEANFILES += src/common/fail.html.c
EXTRA_DIST += src/common/fail.html
--
2.25.1