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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81943E73145 for ; Mon, 2 Feb 2026 08:34:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4E4F2607A2; Mon, 2 Feb 2026 08:34:00 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id eQSi-zxtbHg0; Mon, 2 Feb 2026 08:33:59 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 69554607A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1770021239; bh=vHjLWMShB46bSvAg9LunExFibMhCiHtpPHvHiCmOy/s=; h=From:To:Cc:In-Reply-To:References:Date:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GciABnVmXJpw+KGC4LjvVyeYdyf4THM+CD9oiYAeUUBdZQ9AQYae07nENm+1CI3+2 5DjRULr08Y/JFqS8CortiPZXjJsdybrjKkzp377BP4BrlTMG8yj69h5ucscYGP/ne/ RtUDW46+YNf5iOlnTt4UtJa0hX1Zx+GIUfNnC0RczERR4fFhbRZFAeqzMKLbPh1HQ0 +oE93iRM/9seqykOoh3j6CSyCK1gtt1uCxegeEy5fdFdb+4Leg9SatE6O+LIIgpOBv 9MfhKKaf6PNvyruUdpjxbWW62fdzYujFA38SyAU7Z/AugFBBrz/JgFRvcqCRQQ1Li/ nKlVLIBMIej8Q== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 69554607A5; Mon, 2 Feb 2026 08:33:59 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists1.osuosl.org (Postfix) with ESMTP id BF026149 for ; Mon, 2 Feb 2026 08:33:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id AA2AC4093B for ; Mon, 2 Feb 2026 08:33:57 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id LSeaI5sIO2Z6 for ; Mon, 2 Feb 2026 08:33:56 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=34.202.193.197; helo=sendmail.purelymail.com; envelope-from=peter@korsgaard.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 8F3324092A DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8F3324092A Received: from sendmail.purelymail.com (sendmail.purelymail.com [34.202.193.197]) by smtp4.osuosl.org (Postfix) with ESMTPS id 8F3324092A for ; Mon, 2 Feb 2026 08:33:56 +0000 (UTC) Feedback-ID: 21632:4007:null:purelymail X-Pm-Original-To: buildroot@buildroot.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1811804189; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 02 Feb 2026 08:33:55 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.98.2) (envelope-from ) id 1vmpNZ-00000005okB-3SAv; Mon, 02 Feb 2026 09:33:53 +0100 From: Peter Korsgaard To: Thomas Perale via buildroot Cc: Thomas Perale In-Reply-To: <20260126130414.59175-4-thomas.perale@mind.be> (Thomas Perale via buildroot's message of "Mon, 26 Jan 2026 14:04:14 +0100") References: <20260126130414.59175-1-thomas.perale@mind.be> <20260126130414.59175-4-thomas.perale@mind.be> Date: Mon, 02 Feb 2026 09:33:53 +0100 Message-ID: <878qdb7de6.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: a=rsa-sha256; b=dst13BQl1e+qADel6L7m2OipjI7qRgHoKLn6QfpqSt1MuDHVZf5iRhLzmtoX04Hyk6Nu6UaOeZjzN5XMAG2EXNAc4E9Y8YGoSVp2r0NBxt0DjzFgx2BP5sUImweyl7YPrADi1iZ5Hf2tBa2R7s81EdsUHNLf80fn4lk0LT6vdN+qcjCTI8L/ZD12coMqPZPFNCz1VbTkt6NROddiau+TXjrmkL+MhRpnUKqFuHAGIOxHgGuLPA0Lzl7StDQoU6ipmhtq9JUayQwFOEttrcU8H5H8vL+bq8KWZdNzZtlYmedeM+vHniprMMIUD9PhzPndYQOCKl+h1xQn51yZxN8r6w==; s=purelymail2; d=purelymail.com; v=1; bh=0BmtnVAWHMqWr909hUxtkYllWxZwEsyBNpQg6JDHBAQ=; h=Feedback-ID:Received:Received:From:To:Subject:Date; X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=purelymail.com header.i=@purelymail.com header.a=rsa-sha256 header.s=purelymail2 header.b=dst13BQl Subject: Re: [Buildroot] [PATCH v2 4/4] utils/generate-cyclonedx: fix dependencies w/o virtual X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Thomas" == Thomas Perale via buildroot writes: > Since its introduction in [1], by default the `generate-cyclonedx` > script doesn't include buildroot's virtual packages in its 'components' > list, unless using the `--virtual` argument. > References to virtual packages present in the 'show-info' output are > filtered out in the resulting dependencies. > This patch fix the default CycloneDX dependencies generation > without virtual packages to reference the packages that provide the > virtual package instead of just dropping the virtual package itself. > If we use the package `lbase64` that depends on the virtual package > `luainterpreter` as an example. The 'dependency' entry looks like the > following: > ``` > { > "ref": "lbase64", > "dependsOn": [ > "host-skeleton", > "skeleton-init-common", > "skeleton-init-sysv", > "toolchain-external-bootlin" > ] > } > ``` > The `luainterpreter` dependency is missing. > After applying this patch, package that provides the `luainterpreter` is > present: > ``` > { > "ref": "lbase64", > "dependsOn": [ > "host-skeleton", > "lua", > "skeleton-custom", > "skeleton-init-sysv" > ] > } > ``` > In the case of a virtual package provided by multiple packages all those > packages will be listed. This happens when generating an SBOM on the > entire Buildroot packages. > [1] dbab39e2d9 support/scripts/generate-cyclonedx.py: add script to generate CycloneDX-style SBOM > Signed-off-by: Thomas Perale > --- > v1 -> v2: use set to avoid duplication of dependencies Committed, thanks. Maybe we should start adding some tests to generate-cyclonedx? -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot