Re: [meta-virtualization][PATCH] cockpit-machines: remove autotools inheritance

Bruce Ashfield <[email protected]> Mon, 13 Apr 2026 14:06:29 +0000
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
I had these recipes skipped in my upgrade paths, since I didn't have
meta-webserver in bblayers.

I've confirmed the breakage and merged both patches to master.

Bruce

In message: [meta-virtualization][PATCH] cockpit-machines: remove autotools inheritance
on 13/04/2026 Tanguy Raufflet via lists.yoctoproject.org wrote:

> 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 <[email protected]>
> ---
>  .../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)}"
> -- 
> 2.53.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9694): https://lists.yoctoproject.org/g/meta-virtualization/message/9694
> Mute This Topic: https://lists.yoctoproject.org/mt/118802978/1050810
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>