uml-utilities: remove recipe
PATCH 1/4 uml-utilities: remove recipe
Upstream is dead. The newest tools tarball on SourceForge is uml_utilities_20040406 from 2004-04-08 [1], which is what this recipe tracks, and the project's last artifact of any kind is a 2.4 kernel patch from Nov 2004. The tarball still ships CVS metadata directories.
Keeping it building against a current toolchain has meant carrying six portability patches (~450 lines) for missing headers, stat64 -> stat and LDFLAGS handling, with a new one needed every couple of years.
Most of what it installs is no longer relevant to UML. The current kernel UML HOWTO [2] documents only the vector transports and does not mention uml_net or uml_switch at all. uml_net is also installed setuid root and execvp()s bare "ifconfig"/"route" off $PATH from that setuid context, which is not something we should be shipping.
tunctl is not lost: meta-networking has a standalone tunctl recipe, and uml-utilities only registered it through update-alternatives at the default priority anyway.
Nothing in any layer depends on it - the only reference was the meta-oe-extended packagegroup, for build coverage.
Debian has since moved to a later 20070815.4 snapshot from a different upstream tree, and even that was removed from testing in Nov 2025 with open RC bugs [3]. Should anyone want uml_mconsole, uml_moo/uml_mkcow or port-helper back, the right starting point is that snapshot rather than this one.
[1] https://sourceforge.net/projects/user-mode-linux/files/tools/1/
[2] https://docs.kernel.org/virt/uml/user_mode_linux_howto_v2.html
[3] https://tracker.debian.org/pkg/uml-utilities
--- .../packagegroups/packagegroup-meta-oe.bb | 1 - ...andard-headers-for-str-and-exit-APIs.patch | 64 --------- .../0001-cow.c-Replace-stat64-with-stat.patch | 34 ----- ...-system-header-files-for-fd_set-and-.patch | 43 ------ ...ppend-to-CFLAGS-instead-of-re-assign.patch | 122 ------------------ .../uml-utilities-20040406/fix-ldflags.patch | 106 --------------- .../uml-utilities-20040406/unstrip.patch | 86 ------------ .../uml-utilities/uml-utilities_20040406.bb | 33 ----- 8 files changed, 489 deletions(-) delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-cow.c-Replace-stat64-with-stat.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-include-required-system-header-files-for-fd_set-and-.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/fix-ldflags.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/unstrip.patch delete mode 100644 meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +0 -1
@@ -410,7 +410,6 @@ RDEPENDS:packagegroup-meta-oe-extended = "\ tmate \ tmux \ triggerhappy \ - uml-utilities \ upm \ vlock \ volume-key \
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch deleted +0 -64
64 lines not on this page · raw message
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-cow.c-Replace-stat64-with-stat.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From c4f85268da6c30b0aec3d9a0e951b2088887cff4 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 22 May 2023 18:35:37 -0700 -Subject: [PATCH] cow.c: Replace stat64 with stat - -LFS64 is deprecated in latest musl and this fails to build -therefore switch to using stat API which is same as stat64 these days - -Upstream-Status: Inappropriate [No upstream] -Signed-off-by: Khem Raj <[email protected]> ---- - moo/cow.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/moo/cow.c -+++ b/moo/cow.c -@@ -161,7 +161,7 @@ int write_cow_header(char *cow_file, int - int sectorsize, int alignment, long long *size) - { - struct cow_header_v3 *header; -- struct stat64 buf; -+ struct stat buf; - int err; - - err = cow_seek_file(fd, 0); -@@ -192,7 +192,7 @@ int write_cow_header(char *cow_file, int - backing_file)) - goto out_free; - -- err = stat64(header->backing_file, &buf); -+ err = stat(header->backing_file, &buf); - if(err < 0){ - cow_printf("Stat of backing file '%s' failed, errno = %d\n", - header->backing_file, errno);
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-include-required-system-header-files-for-fd_set-and-.patch deleted +0 -43
43 lines not on this page · raw message
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch deleted +0 -122
122 lines not on this page · raw message
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/fix-ldflags.patch deleted +0 -106
106 lines not on this page · raw message
meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/unstrip.patch deleted +0 -86
86 lines not on this page · raw message
meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb deleted +0 -33
@@ -1,33 +0,0 @@ -SECTION = "console/utils" -SUMMARY = "Utilities for User-Mode-Linux" -LICENSE = "GPL-2.0-only" -DEPENDS = "zlib ncurses readline" -LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" -SRC_URI = "http://downloads.sourceforge.net/project/user-mode-linux/tools/1/uml_utilities_${PV}.tar.bz2 \ - file://fix-ldflags.patch \ - file://unstrip.patch \ - file://0001-include-required-system-header-files-for-fd_set-and-.patch \ - file://0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch \ - file://0001-cow.c-Replace-stat64-with-stat.patch \ - file://0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch \ - " -SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41" - -UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/user-mode-linux/files/tools/1/" - -S = "${UNPACKDIR}/tools" - -inherit update-alternatives - -do_compile() { - oe_runmake LIB_DIR=${libdir}/uml -} - -do_install() { - oe_runmake install DESTDIR=${D} LIB_DIR=${libdir}/uml -} - -FILES:${PN} += "${libdir}/uml" - -ALTERNATIVE:${PN} = "tunctl" -ALTERNATIVE_LINK_NAME[tunctl] = "${bindir}/tunctl"
PATCH 2/4 tbb: Restrict libhwloc runtime dependency to target builds
hwloc is only a build dependency for class-target, but libhwloc was an unconditional RDEPENDS. native.bbclass rewrites runtime dependencies via native_filter(), which suffixes any unsuffixed dependency, so libhwloc became libhwloc-native for tbb-native and nativesdk-libhwloc for nativesdk-tbb. The hwloc recipe sets no BBCLASSEXTEND, so neither variant exists and nothing can provide them:
WARNING: Nothing RPROVIDES 'libhwloc-native' (but virtual:native:...tbb_2022.3.0.bb RDEPENDS on or otherwise requires it)
WARNING: Nothing RPROVIDES 'nativesdk-libhwloc' (but virtual:nativesdk:...tbb_2022.3.0.bb RDEPENDS on or otherwise requires it)
This cascaded to tbb-dev-native/tbb-native via the generic RDEPENDS:${PN}-staticdev in bitbake.conf, and from there to opencv-native through opencv's PACKAGECONFIG[tbb].
Gate the runtime dependency on class-target to match the existing DEPENDS gating. Target builds keep libhwloc unchanged.
--- meta-oe/recipes-support/tbb/tbb_2022.3.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/tbb/tbb_2022.3.0.bb +3 -1
@@ -30,7 +30,9 @@ EXTRA_OECMAKE += " \ -DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=OFF \ " -RDEPENDS:${PN} += "libhwloc" +# hwloc is only a build dependency for target builds, so libhwloc can only be +# a runtime dependency there too (hwloc has no native/nativesdk variants). +RDEPENDS:${PN}:append:class-target = " libhwloc" RDEPENDS:${PN}-ptest += "cmake libhwloc" # Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)
PATCH 3/4 python3-defusedxml: Add nativesdk to BBCLASSEXTEND
In reply to Khem Rajpython3-py-serializable is extended to nativesdk and RDEPENDS on python3-defusedxml, but defusedxml itself was only extended to native, so the nativesdk variant of the dependency did not exist:
WARNING: Nothing RPROVIDES 'nativesdk-python3-defusedxml' (but virtual:nativesdk:...python3-py-serializable_2.1.0.bb RDEPENDS on or otherwise requires it)
This also made nativesdk-python3-cyclonedx-python-lib unbuildable, since it RDEPENDS on python3-py-serializable.
nativesdk-python3-xml, the recipe's own runtime dependency, is provided by nativesdk-python3, so the nativesdk variant resolves cleanly.
--- meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb +1 -1
@@ -9,6 +9,6 @@ SRC_URI[sha256sum] = "1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51 inherit pypi setuptools3 -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" RDEPENDS:${PN} += "python3-xml"
PATCH 4/4 uutils-coreutils: Exclude from world unless it is the selected provider
In reply to Khem Rajuutils-coreutils sets PROVIDES/RPROVIDES = "coreutils" and is a drop-in replacement that cannot coexist with GNU coreutils; both ship the same update-alternatives links. meta-oe/conf/layer.conf already selects between them with PREFERRED_PROVIDER_coreutils{,-native,nativesdk-}, defaulting to GNU coreutils.
PREFERRED_PROVIDER only disambiguates providers reached through a dependency, not recipes built as explicit targets. Since uutils-coreutils was in world, 'bitbake world' and 'bitbake universe' pulled both recipes into the same task graph as targets, so bitbake reported:
NOTE: Multiple .bb files are due to be built which each provide coreutils:
NOTE: Multiple .bb files are due to be built which each provide coreutils-native:
NOTE: Multiple .bb files are due to be built which each provide nativesdk-coreutils:
Key EXCLUDE_FROM_WORLD off the selected provider so only the chosen implementation is built in world/universe. Building uutils-coreutils explicitly, or selecting it via PREFERRED_PROVIDER_coreutils, still works. This follows the existing conditional EXCLUDE_FROM_WORLD idiom used by mpv, sox and vlc.
--- .../uutils-coreutils/uutils-coreutils_0.9.0.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +7 -0
@@ -18,6 +18,13 @@ require ${BPN}-crates.inc PROVIDES = "coreutils" RPROVIDES:${PN} = "coreutils" +# This recipe is a drop-in replacement for coreutils and cannot coexist with it, +# so only build it in world/universe when it is the selected provider. Otherwise +# both recipes end up in the same task graph as explicit targets (PREFERRED_PROVIDER +# only disambiguates dependencies, not targets) and bitbake warns that multiple +# .bb files provide coreutils. +EXCLUDE_FROM_WORLD = "${@'0' if d.getVar('PREFERRED_PROVIDER_coreutils') == 'uutils-coreutils' else '1'}" + PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux systemd', d)}" PACKAGECONFIG[selinux] = "--features feat_selinux,,clang-native libselinux-native libselinux" PACKAGECONFIG[systemd] = "--features feat_systemd_logind,,systemd"