From patchwork Tue Jul 28 07:21:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93709 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BF02C54F52 for ; Tue, 28 Jul 2026 07:21:22 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6386.1785223275672137173 for ; Tue, 28 Jul 2026 00:21:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=XbAoQyv3; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-848479c9bd5so2732393b3a.3 for ; Tue, 28 Jul 2026 00:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785223275; x=1785828075; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=vYC8UQUQ5qVXrw4BMijFr5/rZBmE7d0IuTvpiIRHEyI=; b=XbAoQyv3b2axr8c1x4bc0MyDi0aSs4v4uR3NFsY3qIBgER5iNB/jTotr2zFIcRFyBy 0N8haGQcp1YkHVDjEbKQvGCROy7o4oL7XmABgjZN9gOPwdozRKSS56F4pkCmfG4eVjX6 S8zv+Tgli0lzW29HuG88BcPTjmopmCGLaNB+ibiaP+4mCyVLH9Zo/CyuL1BOULX6kYNS 9JkFBL7JUEwcTk2ubeKkSh2N5xY9KfbgITQG8v2lMxf5efM8oKXP3HXsVMXxxuvvMJWf 5rLNxJmm1V6e8DYbV41fqcdX/lwvon2YCNbv7ICXmw0en1l/W/Hr12Rv062TIJBArPXo Ytxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785223275; x=1785828075; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vYC8UQUQ5qVXrw4BMijFr5/rZBmE7d0IuTvpiIRHEyI=; b=kMPdKbz6Ba1AVlpyqSxwPvsl0q+hPpeyj6+X/A91lk4S04KE2PixOkhPBSpnPqnm1i ZY9ZQExqzWShpBBtMHzVQ7w5lVQ/y789FuemkWVYVUPzFMupPz9hyqEYjxQ6XOhsaaSI Fh3yG3L+1khsr58TSsSqn1e6pxUfG0G5eQ55ijNdR5O5ufMs1fCt6hchTdFcD1/SW5Od QA+vSzzjy0nf8mhxoyX7VPyv3bJqg24dF/qhJiwUAQ6kqTDkVK0OnTb5k3Z036ZtEi4C 4gdnMIxEsZauCvzYT7xDy2skYYJdBBRVNOdRaFQgZbdxWTn7JgpH1df0Eq8Spvd47Ian UYLQ== X-Gm-Message-State: AOJu0Yy17md6OjPwwL0YzpdnLAthKPmLggwk3dnIX56+0FJ0SVDRhGub RwYECJdis2ZKcUwyrWdzG0TUZoGHoDYRQoXjf/CV0CCBNgZ7BIqSgEuJ1r5B4lfK X-Gm-Gg: AR+sD13Osh8knGRI6c1Cpyxp40krZ/upmrtczWzbrnLXZDKe16ZTjKKhSr4dw8WtjHO YISZlYwKdWseTOu1L/xYPqFpCvNYtq9HnNR0A8ITzT1w6/ovFIMAoXd5JcsHuYTCUTz4QUh49u8 snbR6Lrihu4L1Os9wPnzqFZND3cQbw9vivnwxNjW5+5ZOZZ49vgZGCPfZceiraLkCOJOCyzL8Wy Lwc84Qoy3LcMS38hRmNRMRrEFg0MIY54320klwb4nH6watoGluDTxTLvk9F5kfO6JVqy3YfI9AZ f84TnWf1XwBTeY7oehn9STsUvtqW9s9HoNJIPU3BalWH2o/XRJDrAlpIcKnDRhigC4tRc7CgrM5 6NQbKxv6GppZQWG4OHo2pE1vAU+/fbywMPR9kjHYxcRQ/9TJEQeP09tq/sP+jMohCfLbyEPvZlG g4UigBYMLUyDp03DnIjJjlRfYT2WoC7thWIBsXvB5wCJRXbEJ967QEAk3h289IG8ZY3HkMPOaHe HQ8IfKITTYqF41BTuUTXgbYm5XRHDr69eioAfPlZ110rTxPpAIkTLGUi8aacxWcUcYjnaHvEJnW sbb4ZlS6qN6PZxXoDRY= X-Received: by 2002:a05:6a21:6e91:b0:3bf:6c07:b2f0 with SMTP id adf61e73a8af0-3c8ba6132f8mr1632986637.51.1785223274558; Tue, 28 Jul 2026 00:21:14 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc5a04b2sm37245911eec.28.2026.07.28.00.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 00:21:13 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 1/4] uml-utilities: remove recipe Date: Tue, 28 Jul 2026 00:21:08 -0700 Message-ID: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Jul 2026 07:21:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128503 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 Signed-off-by: Khem Raj --- .../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 diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 824ef445f1..66d48f25f3 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -410,7 +410,6 @@ RDEPENDS:packagegroup-meta-oe-extended = "\ tmate \ tmux \ triggerhappy \ - uml-utilities \ upm \ vlock \ volume-key \ diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch deleted file mode 100644 index 9fce51a593..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch +++ /dev/null @@ -1,64 +0,0 @@ -From a1c4716ceaed6333f8be01b5d4d971e64babcdd7 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Fri, 2 Sep 2022 18:57:42 -0700 -Subject: [PATCH] Add missing standard headers for str* and exit APIs - -Upstream-Status: Pending - -Signed-off-by: Khem Raj ---- - jail/jail_uml | Bin 19120 -> 19120 bytes - jail/jail_uml.c | 1 + - port-helper/port-helper.c | 1 + - uml_router/port.c | 1 + - uml_router/uml_switch.c | 1 + - watchdog/uml_watchdog.c | 1 + - 6 files changed, 5 insertions(+) - ---- a/jail/jail_uml.c -+++ b/jail/jail_uml.c -@@ -1,5 +1,6 @@ - #include - #include -+#include /* for exit */ - #include - - static void Usage(void) ---- a/port-helper/port-helper.c -+++ b/port-helper/port-helper.c -@@ -12,6 +12,7 @@ for read and write, and the console is f - - #include - #include -+#include /* memset */ - #include - #include - #include ---- a/uml_router/port.c -+++ b/uml_router/port.c -@@ -1,5 +1,6 @@ - #include - #include -+#include /* memcmp */ - #include - #include - #include ---- a/uml_router/uml_switch.c -+++ b/uml_router/uml_switch.c -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include /* strcmp */ - #include - #include - #include ---- a/watchdog/uml_watchdog.c -+++ b/watchdog/uml_watchdog.c -@@ -1,5 +1,6 @@ - #include - #include -+#include /* strcmp */ - #include - #include - #include diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-cow.c-Replace-stat64-with-stat.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-cow.c-Replace-stat64-with-stat.patch deleted file mode 100644 index 348d7ce104..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-cow.c-Replace-stat64-with-stat.patch +++ /dev/null @@ -1,34 +0,0 @@ -From c4f85268da6c30b0aec3d9a0e951b2088887cff4 Mon Sep 17 00:00:00 2001 -From: Khem Raj -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 ---- - 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); diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-include-required-system-header-files-for-fd_set-and-.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-include-required-system-header-files-for-fd_set-and-.patch deleted file mode 100644 index 02aca7da45..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-include-required-system-header-files-for-fd_set-and-.patch +++ /dev/null @@ -1,43 +0,0 @@ -From a8d85949a068ee6cd9a2f923cd039047993f239e Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Mon, 3 Apr 2017 17:11:32 -0700 -Subject: [PATCH] include required system header files for fd_set and makedev - -fd_set comes from sys/select.h -makedev macro is defined in sys/sysmacros.h - -Signed-off-by: Khem Raj ---- -Upstream-Status: Pending - - uml_net/ethertap.c | 1 + - uml_net/host.c | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/uml_net/ethertap.c b/uml_net/ethertap.c -index ddd41f2..57f7119 100644 ---- a/uml_net/ethertap.c -+++ b/uml_net/ethertap.c -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - #include - #include - #include "host.h" -diff --git a/uml_net/host.c b/uml_net/host.c -index 65c20df..fc04cd4 100644 ---- a/uml_net/host.c -+++ b/uml_net/host.c -@@ -10,6 +10,7 @@ - #include - #include - #include -+#include - #include "output.h" - #include "host.h" - --- -2.12.2 - diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch deleted file mode 100644 index 1962e84c7e..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch +++ /dev/null @@ -1,122 +0,0 @@ -From ac72fffe639d564f59ec1e1eafde83980acef1b5 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Tue, 23 May 2023 14:40:31 -0700 -Subject: [PATCH] makefiles: Append to CFLAGS instead of re-assign - -This helps in inserting yocto provided CFLAGS from build environment - -Upstream-Status: Inappropriate [No upstream] -Signed-off-by: Khem Raj ---- - jailtest/Makefile | 2 +- - mconsole/Makefile | 2 +- - moo/Makefile | 2 +- - port-helper/Makefile | 2 +- - tunctl/Makefile | 2 +- - uml_net/Makefile | 2 +- - uml_router/Makefile | 2 +- - watchdog/Makefile | 2 +- - 8 files changed, 8 insertions(+), 8 deletions(-) - -diff --git a/jailtest/Makefile b/jailtest/Makefile -index 610ca1a..025fca9 100644 ---- a/jailtest/Makefile -+++ b/jailtest/Makefile -@@ -1,6 +1,6 @@ - OBJS = jailtest.o - BIN = jailtest --CFLAGS = -g -Wall -+CFLAGS += -g -Wall - - BIN_DIR ?= /usr/bin - -diff --git a/mconsole/Makefile b/mconsole/Makefile -index 9818d8a..74a2560 100644 ---- a/mconsole/Makefile -+++ b/mconsole/Makefile -@@ -1,6 +1,6 @@ - BIN = uml_mconsole - OBJS = $(BIN).o --CFLAGS = -g -Wall -+CFLAGS += -g -Wall - - BIN_DIR ?= /usr/bin - -diff --git a/moo/Makefile b/moo/Makefile -index 6cdb591..60d300d 100644 ---- a/moo/Makefile -+++ b/moo/Makefile -@@ -3,7 +3,7 @@ BIN = uml_moo uml_mkcow - uml_moo_OBJS = uml_moo.o cow.o - uml_mkcow_OBJS = uml_mkcow.o cow.o - --CFLAGS = -g -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -+CFLAGS += -g -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE - - BIN_DIR ?= /usr/bin - -diff --git a/port-helper/Makefile b/port-helper/Makefile -index 8e33bdf..8b695f3 100644 ---- a/port-helper/Makefile -+++ b/port-helper/Makefile -@@ -1,6 +1,6 @@ - OBJS = port-helper.o - BIN = port-helper --CFLAGS = -g -Wall -+CFLAGS += -g -Wall - - LIB_DIR ?= /usr/lib/uml - -diff --git a/tunctl/Makefile b/tunctl/Makefile -index 743bfea..a39ad2b 100644 ---- a/tunctl/Makefile -+++ b/tunctl/Makefile -@@ -1,6 +1,6 @@ - OBJS = tunctl.o - BIN = tunctl --CFLAGS = -g -Wall -+CFLAGS += -g -Wall - - BIN_DIR ?= /usr/bin - -diff --git a/uml_net/Makefile b/uml_net/Makefile -index 36efec6..2e1ad0e 100644 ---- a/uml_net/Makefile -+++ b/uml_net/Makefile -@@ -1,7 +1,7 @@ - TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP) - - BIN = uml_net --CFLAGS = -g -Wall $(TUNTAP) -+CFLAGS += -g -Wall $(TUNTAP) - - BIN_DIR ?= /usr/bin - -diff --git a/uml_router/Makefile b/uml_router/Makefile -index b7b5401..e399ea5 100644 ---- a/uml_router/Makefile -+++ b/uml_router/Makefile -@@ -2,7 +2,7 @@ TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP) - - OBJS = hash.o port.o uml_switch.o - BIN = uml_switch --CFLAGS = -g -Wall $(TUNTAP) -+CFLAGS += -g -Wall $(TUNTAP) - - BIN_DIR ?= /usr/bin - -diff --git a/watchdog/Makefile b/watchdog/Makefile -index c26fd9f..5178cc6 100644 ---- a/watchdog/Makefile -+++ b/watchdog/Makefile -@@ -1,6 +1,6 @@ - BIN = uml_watchdog - OBJS = $(BIN).o --CFLAGS = -g -Wall -+CFLAGS += -g -Wall - - BIN_DIR ?= /usr/bin - --- -2.40.1 - diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/fix-ldflags.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/fix-ldflags.patch deleted file mode 100644 index a66d7d5906..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/fix-ldflags.patch +++ /dev/null @@ -1,106 +0,0 @@ -Upstream-Status: Pending - - -# -# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher -# - ---- tools/mconsole/Makefile~fix-ldflags 2003-02-08 05:10:08.000000000 +0100 -+++ tools/mconsole/Makefile 2004-04-01 15:37:37.000000000 +0200 -@@ -7,7 +7,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -lreadline -lncurses -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) -lreadline -lncurses - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/jailtest/Makefile tools/jailtest/Makefile ---- tools.orig/jailtest/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/jailtest/Makefile 2017-04-03 16:00:04.857449005 +0200 -@@ -7,7 +7,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/moo/Makefile tools/moo/Makefile ---- tools.orig/moo/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/moo/Makefile 2017-04-03 15:59:56.466449432 +0200 -@@ -10,10 +10,10 @@ - all : $(BIN) - - uml_moo : $(uml_moo_OBJS) -- $(CC) $(CFLAGS) -o $@ $($@_OBJS) -+ $(CC) $(CFLAGS) -o $@ $($@_OBJS) $(LDFLAGS) - - uml_mkcow : $(uml_mkcow_OBJS) -- $(CC) $(CFLAGS) -o $@ $($@_OBJS) -+ $(CC) $(CFLAGS) -o $@ $($@_OBJS) $(LDFLAGS) - - $(uml_moo_OBJS) $(uml_mkcow_OBJS) : cow.h cow_sys.h - -diff -uNr tools.orig/port-helper/Makefile tools/port-helper/Makefile ---- tools.orig/port-helper/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/port-helper/Makefile 2017-04-03 15:59:41.251450208 +0200 -@@ -7,7 +7,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/tunctl/Makefile tools/tunctl/Makefile ---- tools.orig/tunctl/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/tunctl/Makefile 2017-04-03 16:00:01.091449197 +0200 -@@ -7,7 +7,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/uml_net/Makefile tools/uml_net/Makefile ---- tools.orig/uml_net/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/uml_net/Makefile 2017-04-03 16:00:12.449448618 +0200 -@@ -14,7 +14,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/uml_router/Makefile tools/uml_router/Makefile ---- tools.orig/uml_router/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/uml_router/Makefile 2017-04-03 16:00:46.796446867 +0200 -@@ -13,7 +13,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ -diff -uNr tools.orig/watchdog/Makefile tools/watchdog/Makefile ---- tools.orig/watchdog/Makefile 2017-04-03 15:56:02.068461380 +0200 -+++ tools/watchdog/Makefile 2017-04-03 15:59:45.216450006 +0200 -@@ -7,7 +7,7 @@ - all : $(BIN) - - $(BIN) : $(OBJS) -- $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -+ $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LDFLAGS) - - clean : - rm -f $(BIN) $(OBJS) *~ diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/unstrip.patch b/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/unstrip.patch deleted file mode 100644 index b6fce00986..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities-20040406/unstrip.patch +++ /dev/null @@ -1,86 +0,0 @@ -Upstream-Status: Pending - -Dont strip during install let the packaging handle it - -Signed-off-by: Khem Raj - -Index: tools/jailtest/Makefile -=================================================================== ---- tools.orig/jailtest/Makefile 2003-02-07 20:10:27.000000000 -0800 -+++ tools/jailtest/Makefile 2012-09-05 12:13:56.061615854 -0700 -@@ -14,4 +14,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/mconsole/Makefile -=================================================================== ---- tools.orig/mconsole/Makefile 2012-09-05 12:05:09.869607043 -0700 -+++ tools/mconsole/Makefile 2012-09-05 12:14:07.725607469 -0700 -@@ -14,4 +14,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/moo/Makefile -=================================================================== ---- tools.orig/moo/Makefile 2003-06-26 09:27:00.000000000 -0700 -+++ tools/moo/Makefile 2012-09-05 12:14:20.981604580 -0700 -@@ -22,4 +22,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/port-helper/Makefile -=================================================================== ---- tools.orig/port-helper/Makefile 2003-02-07 20:05:31.000000000 -0800 -+++ tools/port-helper/Makefile 2012-09-05 12:14:39.429609678 -0700 -@@ -14,4 +14,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(LIB_DIR) -- install -s $(BIN) $(DESTDIR)$(LIB_DIR) -+ install $(BIN) $(DESTDIR)$(LIB_DIR) -Index: tools/tunctl/Makefile -=================================================================== ---- tools.orig/tunctl/Makefile 2003-02-07 20:05:04.000000000 -0800 -+++ tools/tunctl/Makefile 2012-09-05 12:14:49.985606470 -0700 -@@ -14,4 +14,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/uml_net/Makefile -=================================================================== ---- tools.orig/uml_net/Makefile 2003-02-07 20:04:55.000000000 -0800 -+++ tools/uml_net/Makefile 2012-09-05 12:15:00.961607290 -0700 -@@ -21,4 +21,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s -m 04755 $(BIN) $(DESTDIR)$(BIN_DIR) -+ install -m 04755 $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/uml_router/Makefile -=================================================================== ---- tools.orig/uml_router/Makefile 2003-02-07 20:04:39.000000000 -0800 -+++ tools/uml_router/Makefile 2012-09-05 12:15:10.649607571 -0700 -@@ -20,4 +20,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) -Index: tools/watchdog/Makefile -=================================================================== ---- tools.orig/watchdog/Makefile 2003-02-07 20:04:25.000000000 -0800 -+++ tools/watchdog/Makefile 2012-09-05 12:15:35.561612203 -0700 -@@ -14,4 +14,4 @@ - - install : $(BIN) - install -d $(DESTDIR)$(BIN_DIR) -- install -s $(BIN) $(DESTDIR)$(BIN_DIR) -+ install $(BIN) $(DESTDIR)$(BIN_DIR) diff --git a/meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb b/meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb deleted file mode 100644 index 0e189b558f..0000000000 --- a/meta-oe/recipes-extended/uml-utilities/uml-utilities_20040406.bb +++ /dev/null @@ -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" From patchwork Tue Jul 28 07:21:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32262C54F53 for ; Tue, 28 Jul 2026 07:21:22 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6534.1785223276351298174 for ; Tue, 28 Jul 2026 00:21:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Bxv1G2ZO; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3811f512167so3311420a91.3 for ; Tue, 28 Jul 2026 00:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785223276; x=1785828076; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SlJVV/EHn0zwLzRExHQUdUf0AbWKrjdGkbBWnaF8EU8=; b=Bxv1G2ZOFlrM2Rk59viLfGXpKmfOdAUWVLP8IMUe/fE1RF2qbm/GF5E5361902XmxZ Z5WVmCR3p3tjY8X4PN39tixTm+6Azeb+budPamgz7nA971C6na+y04gZfSriBjIMa648 kvAqJiN0v9N6UVI2FYthpXzIBBxknvp0bm9mcjeqq+299lNX3rerJNP3iUYPUpdn4Avu 6JVGUTWdvtzqKg2Dluz8ftrtcjG+AeLkYZLgvIlWwFlVunVL5r8yJUe1dmVsj7Sy8OPq jF83FlF9xD8JoeW3WYiwdoGI8hUncwAjFApxDvU35AELONbUK/BjqxSE2KP78VJc3Yx4 r3og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785223276; x=1785828076; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=SlJVV/EHn0zwLzRExHQUdUf0AbWKrjdGkbBWnaF8EU8=; b=TLy+alm1W8IOayzJR8pMA+KN5iSoAX47PO/9VXRxSq6plMJg8zkqsFZs1vWODL8R5Q Le4H4X5YTb0G6JG2LXMY1Im0UWl3i2LhZ4sE5EDwzQj8HXuXzsL5AuC6xT1DuICdRK7F vwoQBtTxlKomPWRdfMi4T3uZU5ofCu+LOFdKPaQ2B9y8/BnMZNDEhPPE3Vn5/QopotqT dK5N3eSGMhj7ZGjRE0VwHR9sOb962hXozqKgUwFJjLARu24Qj1tKkCzUFpjyURSjtgy4 ScrTTed8fSsxIM1o7YMET8t6YQvcF3o1ZoznCkZ2GRGHVVXjeXkz2lMAFeVEDG5D1ZSW Fbhg== X-Gm-Message-State: AOJu0YycJkJDTRvgsAFOT/yJrk1yTqZogFt0jxPII962yHY1/c51egdc wiHVM8+CPd77YgI8S9gGSjsvJEb7u3CCJAab6WcJ/sJUdqIj63NDeYB9vysO3eny X-Gm-Gg: AR+sD13eS0tN7VRiIKxuxan0IKi0V6/qhE+hBdq0eD/kxIODBsCnNsZhehpIDGoSCjl cV35PtuFiNrAgPdwvL4nOuVQdfZ0WAWJ3G3ZDMM1nghVE+ENVgpcrmcHC02zE/hhI1FgNmnWEBE Uzc3wrPQFyO1v80liS/n2wO0WzBy+ZqHDdUT4urqMIpX0aJPf1mrZwA1pBQFRfrZl/G6mRXQfvP 3zblFkjVrvwYnylaoQYOrRhwarSbcS9TjZpYNlbCymYRkXzzUS+puIhEjd+1izaC4TlFEXpKl5N Tegi07vcYscnPH56IQ9/caRD1LaqTuo+ju8KmQBFg61A6I396U2mCQmua2dmNK+J/TmianYV5il b6z4BCHQQkY+Owr5jJ4Oag4HrIaEf+T8Upxfjp8Mfrp2Mc3fPeSK783/ujpYgGCdBXfdEUQO5yO tG9GknWQYJX+5lEm48lDOfWv4FMMj9fdjkcmLw+SeEb7afAkmjiAjsh2j3fOQMbN/1+brnSNae5 64cLYYsVCebH7kseb/iQYnsYM0FvXl9zpZ+/eQcbb/6QyHTvspjbd5yVWma0V0GJCTxUbW8n/CW AJwltBtIRp1O4PwYgCU= X-Received: by 2002:a17:90b:3dc3:b0:38e:6d4c:14e6 with SMTP id 98e67ed59e1d1-38f6a3086dcmr1297372a91.3.1785223275592; Tue, 28 Jul 2026 00:21:15 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc5a04b2sm37245911eec.28.2026.07.28.00.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 00:21:15 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 2/4] tbb: Restrict libhwloc runtime dependency to target builds Date: Tue, 28 Jul 2026 00:21:09 -0700 Message-ID: <20260728072111.3266991-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> References: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Jul 2026 07:21:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128504 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. Signed-off-by: Khem Raj --- meta-oe/recipes-support/tbb/tbb_2022.3.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/tbb/tbb_2022.3.0.bb b/meta-oe/recipes-support/tbb/tbb_2022.3.0.bb index e09aa5d96a..0dca19535b 100644 --- a/meta-oe/recipes-support/tbb/tbb_2022.3.0.bb +++ b/meta-oe/recipes-support/tbb/tbb_2022.3.0.bb @@ -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) From patchwork Tue Jul 28 07:21:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 274C2C54F4C for ; Tue, 28 Jul 2026 07:21:22 +0000 (UTC) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6387.1785223277586917444 for ; Tue, 28 Jul 2026 00:21:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=fWnTRmku; spf=pass (domain: gmail.com, ip: 209.85.214.179, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2cad8076b01so44074425ad.2 for ; Tue, 28 Jul 2026 00:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785223277; x=1785828077; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f+Hls9sESD1rd3ykIlL6tWZAdmEo/5PbktQJ2Nfh5Ps=; b=fWnTRmkucpYnUNBo9wWsBtD8bIOHa0kGBkfzx/AvYOM4Pmpu5sEAG9uoaBsby+WGHi O5vcmEhV0+B4NxFpYobd6jT3J1fKuey9pTMIUXmsTQmlrspGCaXGL6bZWa8PFBXnWpnb OYHDN0ibLUbz4urxi80csCz8dESNNABDr8rhixtw7CfI5wcnD+ngb7ZNq/jhW6+H7BUR 3hexUCm4S6CAZxaUoYJx9ELLCEEamaBr+yYWF134oJvQJLpoHJUbKW/VGiQOV8q4iM+A PbSomCMt5+ZSmyCpHcwEGoOo3TPH5bE/uTUVijzKoC4yQVDniU3DnF16DX0HeIlhHDoq iJQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785223277; x=1785828077; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=f+Hls9sESD1rd3ykIlL6tWZAdmEo/5PbktQJ2Nfh5Ps=; b=LW7NkhrcjKgbxUxAHRSJgzLYm41br0DDt8NLRniR1ErBDnmtrNs+uZKkHQOGumaPFH 1Dm4yMvRqzW9xgIs6JeUXp5eMlyt46VVWMEALxV94FTQxrQWjh7EL10t+YMxSBlmAUd5 ZpWLzZ42sZh1y0tr43prYJoHr9iSmIaOuGG2RBE6N0kpeVNMsmyXJHx7A8AFWj9fm2tZ z2wETRbglGBz3G/axt3VrTehtnp6GLvT6Nbz4S9zt0emXZiHHE/fJgWW05qyEVxvjStu 2ZIG7TXZk26XFLRq9z0KsT8gVRbpUQI+F6tdcUttP1TaqFtb3kNnC/rC0jRw+OPHJDxx Lk+A== X-Gm-Message-State: AOJu0YxjNORhIuERb6CYXxXIPxr25bgky6HeG/9wChTUP8/z+xBdGSZy 5nkDu7uGK2qIAKu1gWc8gaZW+qWfr1oUHpZLXnuz+RfW7tqReyq/0A67RTbzprwi X-Gm-Gg: AR+sD11i5uqetoF4F6SRUu6noJOb649LblW4WrI0N66CoJiWYiPOdEfrwSkT0karfKo uSVGUx0pwtgeTflcqpfCU2y72z+aAecEqU+17aEGN0dJywBTaMIXfnrYjARyJdOBt2JfQG0JSCI YPQm7n/b0Rxu7dLL3ahuNL8nQ3HCQvAzVVjrZjLhHkp80q4d4E+ern8/ZYGvv7rf3MzUubPRV/x 1eU3pQNXGka4DPsOmQZ3ZmeEQ+w4aqfFkDg932F6u2I6/WdhDXApKd0euklR7HPRNcatc0Og4zh I6BIE8PfyD+8r8qwKdKRJ9O4oZjn8fIyHCmt1/8fMcdaLLQWOyTWDFLmHsjrWbF5IPv7LGsOBoj 04bsicr6zeAXS197CxzpdIAz1yEaKYsGN6m49mHJ0dUZo+wH0v3Wgwid4wK0p6M0/ajnXepkpeW TUR83tPgZeuEafbzBMEIm44LOpsIAjCKm5ygJRQlx+X2FvhPOyYSTIOSdr01BsUa+2y58Xa//p/ RZM53or64we4TlwXz/DPCsIQ5uBHxS9+KzDBD+cMLWzcelQPbIU/z6/s4aUTPPbdAZKvKmf7Ykr vIkZV+u5FlXw5nxDQOcXKgINdg24vA== X-Received: by 2002:a05:6a21:3393:b0:3bd:3591:2457 with SMTP id adf61e73a8af0-3c8aaf80599mr1936332637.4.1785223276737; Tue, 28 Jul 2026 00:21:16 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc5a04b2sm37245911eec.28.2026.07.28.00.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 00:21:16 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 3/4] python3-defusedxml: Add nativesdk to BBCLASSEXTEND Date: Tue, 28 Jul 2026 00:21:10 -0700 Message-ID: <20260728072111.3266991-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> References: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Jul 2026 07:21:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128505 python3-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. Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb b/meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb index 8ec6680d8f..614a606b20 100644 --- a/meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb +++ b/meta-python/recipes-devtools/python/python3-defusedxml_0.7.1.bb @@ -9,6 +9,6 @@ SRC_URI[sha256sum] = "1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51 inherit pypi setuptools3 -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" RDEPENDS:${PN} += "python3-xml" From patchwork Tue Jul 28 07:21:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 93708 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D31AC53219 for ; Tue, 28 Jul 2026 07:21:22 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6537.1785223279380104442 for ; Tue, 28 Jul 2026 00:21:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=s9Cf+677; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3811f512167so3311469a91.3 for ; Tue, 28 Jul 2026 00:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785223279; x=1785828079; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=T7R9i9njfDdwJzlWO1z5tPMWnKphz3iqm6UJQI2a+0o=; b=s9Cf+677oNYyFVkayeNq4Lj1MdJ3mFjpvzeZRgl/5xJH2fDbX79zmc0KvEF+H8qZma 36W74eGgbFjN3LFVZ0kw8EJ+ZrGHk8IVJst7TGGZmtPgS2enmJnGTZMTAM0tXrRFDwCU MTbrjJEZBWIlpIkFPbGM5I2UYIwPa+pI+0DFjNZkOtKXOR11XkvKelgC//wEAjBdnqOH TT8w23ivBLto9VydMwr5uyaSlCOIlWDU2T0QhOnLjPUclepuP0GCm2vTxqmpjh16WHY2 /oJESYE48LGc//UNeFkDAfLhaU6UM/93WVrvhg1pAQ83JLugEpJwuzVHnJsRbx6nWMwf 8V7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785223279; x=1785828079; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=T7R9i9njfDdwJzlWO1z5tPMWnKphz3iqm6UJQI2a+0o=; b=h2BAYSFA91H8qZbwWdJ3Ald7MuEuqXtPe2NJB4npgHuHSGO4k99saQqLjkJIrmTGzu MLHzQq0NNtw/agAcxq5r8uePDXp6qcmhj/dj/09K/scnF5IWo48SzdvpRGXZjkA7VDAT bNdCW+CCiB1/hn/TfBewwnA+z8eEmFg4QCrfo0olCYt7Hl8Sg1b+xtnSq6ImxenRjcSs 3QGE8FNpHlTMu+hBp/k+u8xMTzrVIvdj/Ng/5xggSZviT+DIdny2oWnbDSBpPHWYuOEh Y3wYvVSdE8ybgG4zFoPxwe9Ar9ufWcG/XXWKkfoiIvYZKfbqVTKEBblduZD9AMDpg+8K Pcrw== X-Gm-Message-State: AOJu0YxkxHQjRCid+ml7zc2MnMie2eM/EXz6qEg26ymfutYLSabHf5E1 NiOT4nFwp9YyxTpyqfU46ZXWeZaJXkOV7VOJIyJCGoZhUQh1pFhsV+MTa/vt192Z X-Gm-Gg: AR+sD13zsv2ffjH1X8CcrQnH0OjtPwSBw/PI1/iA41dipNf7dpDgpyHZbgwstiBzrTh f79BdrqFuNSLWgOARn7NrdjWUvsdLQgMNi05MY8swMM2g1zonhwmbYuZTvnoWQ8ZbK5HZU3SMjS jnVtVeqKNMbWgZ2xHBcVI6d87yVrsAy45FNV4MEZXwltv++NYpwNDT16QLQJU8VI93A6Aj5iP24 DLEZqfZ9Z7iqcnyslz7K9VJJYZNHglLl6nIFv/6wkDIqGQBBgNgJL4CMjavpqJemxbjcHYqsx65 8s9h+D0NcPolY2Lxco4glepNhKk1k+wsG5SLUbjXF7VMLPQ7f6ehZQVK1zIa0DKjZ0EdWmqnm3w mUu2tqXQwT1FXugmbOd0sxbpSQKdTXyATXDdRiMZLETH5eh4614o4vc0X4PJXGRJwfD8EosFH9q sHUw/810FK8hEzWelpCdtCqIOn4UDKWMozhgg9vN0QdAnhnziFROJ6/pK4n4X28H/lVrSu7DT2T GNaxQiA1yUkCNbiR4em79Mo0nM6IjSffqkGWz9QvVx/MMEKW+XTLNzuqegMP+XYFykQVwthEYoU nEFI01HDVRXwouyLuS7hVP3OZkdlAqGdoQMe/83eExvfEcNCbFhgYa/gpRPucNJVJM2q7jXQAbk 3fA== X-Received: by 2002:a17:90a:d60f:b0:38e:712a:bb38 with SMTP id 98e67ed59e1d1-38f6a425a2fmr1431848a91.24.1785223277789; Tue, 28 Jul 2026 00:21:17 -0700 (PDT) Received: from apollo.localdomain ([208.95.233.74]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc5a04b2sm37245911eec.28.2026.07.28.00.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 00:21:17 -0700 (PDT) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 4/4] uutils-coreutils: Exclude from world unless it is the selected provider Date: Tue, 28 Jul 2026 00:21:11 -0700 Message-ID: <20260728072111.3266991-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> References: <20260728072111.3266991-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Jul 2026 07:21:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/128506 uutils-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. Signed-off-by: Khem Raj --- .../uutils-coreutils/uutils-coreutils_0.9.0.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb index 2c7d3a3200..9d16342e5c 100644 --- a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +++ b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb @@ -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"