Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2220627/?format=api
{ "id": 2220627, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220627/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260407-generate-cyclonedx-br-v1-2-03c45ccba2ed@cherry.de/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.1/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260407-generate-cyclonedx-br-v1-2-03c45ccba2ed@cherry.de>", "date": "2026-04-07T17:37:08", "name": "[2/4] utils/generate-cyclonedx: better error message when host Python is built without ssl", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1f98d7dc47949d4f97aec553fadf8da69adf98b2", "submitter": { "id": 83602, "url": "http://patchwork.ozlabs.org/api/1.1/people/83602/?format=api", "name": "Quentin Schulz", "email": "foss+buildroot@0leil.net" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260407-generate-cyclonedx-br-v1-2-03c45ccba2ed@cherry.de/mbox/", "series": [ { "id": 499014, "url": "http://patchwork.ozlabs.org/api/1.1/series/499014/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=499014", "date": "2026-04-07T17:37:07", "name": "make utils/generate-cyclonedx runnable with Buildroot host packages", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499014/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220627/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220627/checks/", "tags": {}, "headers": { "Return-Path": "<buildroot-bounces@buildroot.org>", "X-Original-To": [ "incoming-buildroot@patchwork.ozlabs.org", "buildroot@buildroot.org" ], "Delivered-To": [ "patchwork-incoming-buildroot@legolas.ozlabs.org", "buildroot@buildroot.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=EUKZJksJ;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqtgT33LXz1xtJ\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Wed, 08 Apr 2026 03:37:25 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 0FD1140C25;\n\tTue, 7 Apr 2026 17:37:24 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id DW3LnBD8rzSX; Tue, 7 Apr 2026 17:37:22 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 3C67640C32;\n\tTue, 7 Apr 2026 17:37:22 +0000 (UTC)", "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists1.osuosl.org (Postfix) with ESMTP id 1FA882C7\n for <buildroot@buildroot.org>; Tue, 7 Apr 2026 17:37:19 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 10FE860642\n for <buildroot@buildroot.org>; Tue, 7 Apr 2026 17:37:19 +0000 (UTC)", "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 6X8Lwg2_8Yxw for <buildroot@buildroot.org>;\n Tue, 7 Apr 2026 17:37:18 +0000 (UTC)", "from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch\n [185.125.25.14])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 1F8C260DC6\n for <buildroot@buildroot.org>; Tue, 7 Apr 2026 17:37:17 +0000 (UTC)", "from smtp-3-0001.mail.infomaniak.ch (unknown\n [IPv6:2001:1600:4:17::246c])\n by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4fqtgH4fgWz8mB;\n Tue, 7 Apr 2026 19:37:15 +0200 (CEST)", "from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA\n id 4fqtgH0jdmz1hs; Tue, 7 Apr 2026 19:37:15 +0200 (CEST)" ], "X-Virus-Scanned": [ "amavis at osuosl.org", "amavis at osuosl.org" ], "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ", "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3C67640C32", "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1F8C260DC6" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1775583442;\n\tbh=Yry/kkUZi512H+ED7uALZvxRunyb7gT1xS0FcbB9E0o=;\n\th=Date:References:In-Reply-To:To:Cc:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From:Reply-To:From;\n\tb=EUKZJksJR+2InmMvzZBxj5mpkhT4LSJ2iUWDdGCMbvN9x2ihPxVbxWnuYgxHYRUlZ\n\t 31Ux0YBJCatnwPjFAhwFHyd92KFny0fovcIHkd+OV+GWOjLD+w2Tx9JQWYlSb5zXPm\n\t mSmvbam9PMw3DHcv9VAY24Z/i6bK3HhCgwP++gaPxCWmhxhGvqyerjyViFSlNaPLrD\n\t lbWqR3YICPE8WJc8g6k90vjCFRZQrf/NBff2lpaJQ6Q+9FOzV45sgAQ09Cdg9yaFvF\n\t 7/1VUy8ouQLRMDfQxKJVNuBSo4oYUVPajsqnxQmHgrvMOXG7Jt8VVFCprLuUeD9q1f\n\t 32quPJ7KZI+WQ==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=185.125.25.14;\n helo=smtp-190e.mail.infomaniak.ch; envelope-from=foss+buildroot@0leil.net;\n receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp3.osuosl.org 1F8C260DC6", "Date": "Tue, 07 Apr 2026 19:37:08 +0200", "MIME-Version": "1.0", "Message-Id": "<20260407-generate-cyclonedx-br-v1-2-03c45ccba2ed@cherry.de>", "References": "<20260407-generate-cyclonedx-br-v1-0-03c45ccba2ed@cherry.de>", "In-Reply-To": "<20260407-generate-cyclonedx-br-v1-0-03c45ccba2ed@cherry.de>", "To": "buildroot@buildroot.org", "Cc": "Thomas Perale <thomas.perale@mind.be>, Martin Bark <martin@barkynet.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Quentin Schulz <quentin.schulz@cherry.de>", "X-Mailer": "b4 0.15-dev-47773", "X-Infomaniak-Routing": "alpha", "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=0leil.net; s=20231125; t=1775583435;\n bh=lQ2TgqAul7QHXgCy9/+A6Ob+iGNdKvufhgvB1Z3dDUM=;\n h=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n b=aXLj/0nBXdeu+3F/0GZp9C9RgwPmrR/ZUs6AwpxgYr2udJmLqfve9U7a0STs4f85N\n 3XwV1k/U4b+Dshl7PY/2AuXLcQH+b5Z0bjajgvUNZuV6QKh4xNijxO8+m2+HBcBvTl\n DJhvGP4i82uQHltso2xSqwih5+5u7LOMIYBv/FegT6p2f2vXcLI4momOC4L7CCuyYu\n yDJiVp05MndAT1av7sPuRIL/KYa6iZQ5NTKNvd6biT7ivX3UFyOdy1Ip0rFVBnGLJK\n B9+zlwK4UOD36ILtZ5JHgd9FtZptTQIW6227Gi/aJUlivQnX4rSAuBT3SVPH7TjPcQ\n JiYTZzqNcyuSQ==", "X-Mailman-Original-Authentication-Results": [ "smtp3.osuosl.org;\n dmarc=pass (p=reject dis=none)\n header.from=0leil.net", "smtp3.osuosl.org;\n dkim=pass (2048-bit key) header.d=0leil.net header.i=@0leil.net\n header.a=rsa-sha256 header.s=20231125 header.b=aXLj/0nB" ], "Subject": "[Buildroot] [PATCH 2/4] utils/generate-cyclonedx: better error\n message when host Python is built without ssl", "X-BeenThere": "buildroot@buildroot.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.buildroot.org>", "List-Unsubscribe": "<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>", "List-Archive": "<http://lists.buildroot.org/pipermail/buildroot/>", "List-Post": "<mailto:buildroot@buildroot.org>", "List-Help": "<mailto:buildroot-request@buildroot.org?subject=help>", "List-Subscribe": "<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>", "From": "Quentin Schulz via buildroot <buildroot@buildroot.org>", "Reply-To": "Quentin Schulz <foss+buildroot@0leil.net>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@buildroot.org", "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>" }, "content": "From: Quentin Schulz <quentin.schulz@cherry.de>\n\nurllib will eventually complain that it does not know what https is:\nTraceback (most recent call last):\n File \"/buildroot/utils/generate-cyclonedx\", line 53, in <module>\n urllib.request.urlretrieve(SPDX_SCHEMA_URL, SPDX_SCHEMA_PATH)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 212, in urlretrieve\n with contextlib.closing(urlopen(url, data)) as fp:\n ~~~~~~~^^^^^^^^^^^\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 187, in urlopen\n return opener.open(url, data, timeout)\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 487, in open\n response = self._open(req, data)\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 509, in _open\n return self._call_chain(self.handle_open, 'unknown',\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n 'unknown_open', req)\n ^^^^^^^^^^^^^^^^^^^^\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 464, in _call_chain\n result = func(*args)\n File \"/buildroot/build/host/lib/python3.14/urllib/request.py\", line 1397, in unknown_open\n raise URLError('unknown url type: %s' % type)\nurllib.error.URLError: <urlopen error unknown url type: https>\n\nIt's quite confusing really but what it means is that host Python was\nbuilt without ssl support.\n\nThis adds an additional check importing _ssl and if the module is not\nfound, tell the user what to do. This still doesn't make Buildroot's\nhost Python3 fully usable for utils/generate-cyclonedx as it'll then\nfail when trying to validate certificates, this will be handled in the\nnext few commits.\n\nNote that ssl Python library is always built in CPython, but itself\nimports the _ssl module which is the one that may be disabled with\npy_cv_module__ssl=n/a (which is what happens when\nBR2_PACKAGE_HOST_PYTHON3_SSL is not enabled), hence why _ssl is checked\nand not ssl.\n\nSigned-off-by: Quentin Schulz <quentin.schulz@cherry.de>\n---\n utils/generate-cyclonedx | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/utils/generate-cyclonedx b/utils/generate-cyclonedx\nindex d17aa805b7..045bf14caa 100755\n--- a/utils/generate-cyclonedx\n+++ b/utils/generate-cyclonedx\n@@ -9,6 +9,7 @@\n \n \n import argparse\n+import importlib.util\n import json\n import os\n from pathlib import Path\n@@ -42,6 +43,11 @@ VULN_WITH_PEDIGREE = set()\n SPDX_LICENSES = []\n \n if not SPDX_SCHEMA_PATH.exists():\n+ if not importlib.util.find_spec(\"_ssl\"):\n+ print(f\"ssl module required for downloading {SPDX_SCHEMA_URL}. Try enabling BR2_PACKAGE_HOST_PYTHON3_SSL.\",\n+ file=sys.stderr)\n+ exit(1)\n+\n # Download the CycloneDX SPDX schema JSON, and cache it locally\n cyclonedxpath.mkdir(parents=True, exist_ok=True)\n urllib.request.urlretrieve(SPDX_SCHEMA_URL, SPDX_SCHEMA_PATH)\n", "prefixes": [ "2/4" ] }