From b9b7e17eae46c6e3e561f3675870be94eea69332 Mon Sep 17 00:00:00 2001 From: Tanguy Raufflet Date: Mon, 13 Apr 2026 13:47:00 +0200 Subject: cockpit-machines: remove autotools inheritance The commit [1] from openembedded-core, removes the possibility to use autotools bbclass when the configure script is missing. Because the cockpit-machines release tarball always ships pre-built assets in dist/, there is no need to use autotools to build the package. This commit fixes the following build error: ERROR: cockpit-machines-346-r0 do_configure: no configure script found at ./configure [1]: autotools: require that a configure script exists SHA: 6d327a39befae44a88a812bdf4acde800dcee57b Signed-off-by: Tanguy Raufflet Signed-off-by: Bruce Ashfield --- .../cockpit-machines/cockpit-machines_346.bb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/recipes-extended/cockpit-machines/cockpit-machines_346.bb b/recipes-extended/cockpit-machines/cockpit-machines_346.bb index 8aaac4c5..d23c39b2 100644 --- a/recipes-extended/cockpit-machines/cockpit-machines_346.bb +++ b/recipes-extended/cockpit-machines/cockpit-machines_346.bb @@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "c9d80357da2bf3ecda9698f0dc6fcb46675b3b76da9150a22178071fe9 S = "${UNPACKDIR}/${PN}" -inherit autotools-brokensep features_check gettext +inherit features_check # systemd, which cockpit is dependent, is not compatible with musl lib COMPATIBLE_HOST:libc-musl = "null" @@ -24,10 +24,20 @@ RDEPENDS:${PN} += "cockpit libvirt-dbus pciutils virt-manager-install" REQUIRED_DISTRO_FEATURES = "systemd pam" -# Default installation path of cockpit-machines is /usr/local/ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install() { + install -d ${D}${datadir}/cockpit/machines + cp -r ${S}/dist/* ${D}${datadir}/cockpit/machines/ + + install -d ${D}${datadir}/metainfo + install -m 0644 ${S}/org.cockpit_project.machines.metainfo.xml ${D}${datadir}/metainfo/ +} + FILES:${PN} = "\ - ${prefix}/local/ \ - ${datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml \ + ${datadir}/cockpit/machines/ \ + ${datadir}/metainfo/org.cockpit_project.machines.metainfo.xml \ " SKIP_RECIPE[cockpit-machines] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'webserver', '', 'Depends on meta-webserver which is not included', d)}" -- cgit v1.2.3-54-g00ecf