Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226515/?format=api
{ "id": 2226515, "url": "http://patchwork.ozlabs.org/api/patches/2226515/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260422143243.214664-1-mooz@blockos.org/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260422143243.214664-1-mooz@blockos.org>", "list_archive_url": null, "date": "2026-04-22T14:32:17", "name": "[1/1] package/python-portalocker: new package", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b1f23d2d136e536baae978f80be4a4306813a16b", "submitter": { "id": 92650, "url": "http://patchwork.ozlabs.org/api/people/92650/?format=api", "name": "Vincent Cruz", "email": "mooz@blockos.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260422143243.214664-1-mooz@blockos.org/mbox/", "series": [ { "id": 501021, "url": "http://patchwork.ozlabs.org/api/series/501021/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=501021", "date": "2026-04-22T14:32:17", "name": "[1/1] package/python-portalocker: new package", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501021/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226515/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226515/checks/", "tags": {}, "related": [], "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=r07nETnO;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\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 4g11sq1Ft8z1y2d\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Thu, 23 Apr 2026 00:33:03 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 13291605DC;\n\tWed, 22 Apr 2026 14:33:01 +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 NktunY6T_WDb; Wed, 22 Apr 2026 14:32:57 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 352BE60C2B;\n\tWed, 22 Apr 2026 14:32:57 +0000 (UTC)", "from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n by lists1.osuosl.org (Postfix) with ESMTP id 05E4024D\n for <buildroot@buildroot.org>; Wed, 22 Apr 2026 14:32:56 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id EB596426E5\n for <buildroot@buildroot.org>; Wed, 22 Apr 2026 14:32:55 +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 Wf1AF11UHElY for <buildroot@buildroot.org>;\n Wed, 22 Apr 2026 14:32:52 +0000 (UTC)", "from smtpout2.mo534.mail-out.ovh.net\n (smtpout2.mo534.mail-out.ovh.net [51.210.94.141])\n by smtp4.osuosl.org (Postfix) with ESMTPS id AD6BB42676\n for <buildroot@buildroot.org>; Wed, 22 Apr 2026 14:32:49 +0000 (UTC)", "from director6.derp.mail-out.ovh.net\n (director6.derp.mail-out.ovh.net [51.255.22.22])\n by mo534.mail-out.ovh.net (Postfix) with ESMTPS id 4g11sV715Tz5xMj;\n Wed, 22 Apr 2026 14:32:46 +0000 (UTC)", "from director6.derp.mail-out.ovh.net\n (director6.derp.mail-out.ovh.net. [127.0.0.1])\n by director6.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP\n for <mooz@blockos.org>; Wed, 22 Apr 2026 14:32:46 +0000 (UTC)", "from mta3.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.109.231.30])\n by director6.derp.mail-out.ovh.net (Postfix) with ESMTPS id\n 4g11sV5PkMz7tpL; Wed, 22 Apr 2026 14:32:46 +0000 (UTC)", "from blockos.org (unknown [10.1.6.7])\n (Authenticated sender: mooz@blockos.org)\n by mta3.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id\n 33B0E941627;\n Wed, 22 Apr 2026 14:32:46 +0000 (UTC)" ], "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 smtp3.osuosl.org 352BE60C2B", "OpenDKIM Filter v2.11.0 smtp4.osuosl.org AD6BB42676" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776868377;\n\tbh=VsunE+ipsLZEowGZNBOmV9TbZ6nzcdY0h6LOQKcI5sk=;\n\th=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:Cc:From;\n\tb=r07nETnOu08UmROnclroghoQcHmfklJImLd8z/+YQZC7h8B6hfFiY/O2Bpx6HI9Zw\n\t egKP05cH5d2FHYb4vMyMtId77+CdbkGz3ebgZTSUEL1TJDgf5JAze9KGo9C2LPfMaV\n\t Cno7NuI59QDjV86VXHsBEBb4/DDuSR4GyQeTvijZyk1mxFmrVO1+fzQJETDGYxmahm\n\t MKB+PHNe+YQKHcNLZLuBC+SKCjxIBqtCv7VGcl90DSiKwH+dJk7BUOvFVHpBFmzx/G\n\t lwEjN5tN9QvSv2lfwdCTzSlQk0fES6Q5zCv2xDBS+IstgiKocJ6mAVz5PuNJ+iTF88\n\t ZwBrtE+FYWHSQ==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=51.210.94.141;\n helo=smtpout2.mo534.mail-out.ovh.net; envelope-from=mooz@blockos.org;\n receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org AD6BB42676", "X-OVh-ClientIp": "213.36.7.12", "From": "Vincent Cruz <mooz@blockos.org>", "To": "buildroot@buildroot.org", "Date": "Wed, 22 Apr 2026 16:32:17 +0200", "Message-ID": "<20260422143243.214664-1-mooz@blockos.org>", "X-Mailer": "git-send-email 2.51.0", "MIME-Version": "1.0", "x-ovh-tracer-id": "15856611340027808674", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "\n dmFkZTFrjFaw/IBtjd1rL8hkx5YJpPWlQhBsL7tuqhExoyWNTIYsxQcMyfVnOe8bY1VppSCHnJrz3V2e6wQEKnUTA8Xkwh/+WOL/RoFDnarQjlm7TZQ27eimESUKfS3UlYLvqJvbo8+qYvrkodlS6mO11W57+cknnXlIvYdzJqAqjAgh/AfdsOF1SvaV0MhMHcZ0L7q6dYoXN5Lk5yyuWqYuhSD1p0Ql91RATrSGQMRIdIyNoC/aBzYK9d4MjxEvKsOXG92eiNGl5ohRjmnnUApTb6Y/InmOEsk++QrEeXLI63WnXa1arZDB5eMEMAAbbcJb5iszwWS2wymFNytGKoTHxNVxDzomzZZOlAc08nBs0OVa7shjL3BGb1tSViihm962yWNOLAQ3DHuPFg8CCP8Kwr0GyPGvECQRiXlH81oYECq9uEMiYir3GQ/d50K0R/O1KKO14dzJWePqBfzofupcgW2ZTQCCgbWst3P1nTnkiTxHX9zrWRKWkQM8ULTUiid5ACgKkDx9YLJeFg+kFK4x2M5rrCh2RwOQWVXFuDQH1+gPLBpOEDX3gs6LTenanzjIGOmK/Xu+WGtPPkf3UxIzmZPKwxf027C3nMjwEQBAvfnIDSfGJRbUzvDoOkXMYjeri5n+7Ki/AwZP8fXhcR3yDytgzi1pr1nU7b2sv8WMC8Fjtg", "X-Mailman-Original-Authentication-Results": [ "smtp4.osuosl.org;\n dmarc=none (p=none dis=none)\n header.from=blockos.org", "garm.ovh; auth=pass\n (GARM-103G00520313f65-a730-40a6-aac9-ace412c85d99,\n 9CEE4CE7D23EE3C4032A23CBFEEA5276D7BBA8CC) smtp.auth=mooz@blockos.org" ], "Subject": "[Buildroot] [PATCH 1/1] package/python-portalocker: new package", "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>", "Cc": "James Hilliard <james.hilliard1@gmail.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Vincent Cruz <mooz@blockos.org>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@buildroot.org", "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>" }, "content": "Cross-platform file locking library.\n\nhttps://github.com/wolph/portalocker\n\nSigned-off-by: Vincent Cruz <mooz@blockos.org>\n---\nTested with Buildroot gitlab CI:\n https://gitlab.com/v_cz/buildroot/-/pipelines/2471767381\n\n DEVELOPERS | 1 +\n package/Config.in | 1 +\n package/python-portalocker/Config.in | 6 +++\n .../python-portalocker.hash | 5 ++\n .../python-portalocker/python-portalocker.mk | 15 ++++++\n .../package/sample_python_portalocker.py | 51 +++++++++++++++++++\n .../tests/package/test_python_portalocker.py | 24 +++++++++\n 7 files changed, 103 insertions(+)\n create mode 100644 package/python-portalocker/Config.in\n create mode 100644 package/python-portalocker/python-portalocker.hash\n create mode 100644 package/python-portalocker/python-portalocker.mk\n create mode 100644 support/testing/tests/package/sample_python_portalocker.py\n create mode 100644 support/testing/tests/package/test_python_portalocker.py", "diff": "diff --git a/DEVELOPERS b/DEVELOPERS\nindex eba91f10a6..2534140617 100644\n--- a/DEVELOPERS\n+++ b/DEVELOPERS\n@@ -3363,6 +3363,7 @@ N:\tVictor Huesca <victor.huesca@bootlin.com>\n F:\tsupport/testing/tests/core/test_root_password.py\n \n N:\tVincent Cruz <mooz@blockos.org>\n+F:\tpackage/python-portalocker/\n F:\tpackage/python-transitions/\n \n N:\tVincent Jardin <vjardin@free.fr>\ndiff --git a/package/Config.in b/package/Config.in\nindex d0f148699b..504c84eb43 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1281,6 +1281,7 @@ menu \"External python modules\"\n \tsource \"package/python-platformdirs/Config.in\"\n \tsource \"package/python-pluggy/Config.in\"\n \tsource \"package/python-ply/Config.in\"\n+\tsource \"package/python-portalocker/Config.in\"\n \tsource \"package/python-portend/Config.in\"\n \tsource \"package/python-posix-ipc/Config.in\"\n \tsource \"package/python-priority/Config.in\"\ndiff --git a/package/python-portalocker/Config.in b/package/python-portalocker/Config.in\nnew file mode 100644\nindex 0000000000..6225a659d2\n--- /dev/null\n+++ b/package/python-portalocker/Config.in\n@@ -0,0 +1,6 @@\n+config BR2_PACKAGE_PYTHON_PORTALOCKER\n+\tbool \"python-portalocker\"\n+\thelp\n+\t Cross-platform file locking library.\n+\n+\t https://github.com/wolph/portalocker\ndiff --git a/package/python-portalocker/python-portalocker.hash b/package/python-portalocker/python-portalocker.hash\nnew file mode 100644\nindex 0000000000..c6be94b8e3\n--- /dev/null\n+++ b/package/python-portalocker/python-portalocker.hash\n@@ -0,0 +1,5 @@\n+# From https://pypi.org/pypi/portalocker/3.2.0/json\n+sha256 1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac portalocker-3.2.0.tar.gz\n+# Locally computed\n+sha256 a50570fa3b3102a42d7babb0569238b0b3c0aedce0063c8e4d65060dfd3f7293 portalocker-3.2.0/LICENSE\n+sha256 1a6cc9434cfd4a373630949c8807ab6c30f4783ad2024151eea755f0766ecc03 portalocker-3.2.0/PKG-INFO\ndiff --git a/package/python-portalocker/python-portalocker.mk b/package/python-portalocker/python-portalocker.mk\nnew file mode 100644\nindex 0000000000..6e1076334b\n--- /dev/null\n+++ b/package/python-portalocker/python-portalocker.mk\n@@ -0,0 +1,15 @@\n+################################################################################\n+#\n+# python-portalocker\n+#\n+################################################################################\n+\n+PYTHON_PORTALOCKER_VERSION = 3.2.0\n+PYTHON_PORTALOCKER_SOURCE = portalocker-$(PYTHON_PORTALOCKER_VERSION).tar.gz\n+PYTHON_PORTALOCKER_SITE = https://files.pythonhosted.org/packages/source/p/portalocker\n+PYTHON_PORTALOCKER_SETUP_TYPE = setuptools\n+PYTHON_PORTALOCKER_LICENSE = BSD-3-Clause\n+PYTHON_PORTALOCKER_LICENSE_FILES = LICENSE\n+PYTHON_PORTALOCKER_DEPENDENCIES = host-python-setuptools-scm\n+\n+$(eval $(python-package))\ndiff --git a/support/testing/tests/package/sample_python_portalocker.py b/support/testing/tests/package/sample_python_portalocker.py\nnew file mode 100644\nindex 0000000000..f5268a8fe0\n--- /dev/null\n+++ b/support/testing/tests/package/sample_python_portalocker.py\n@@ -0,0 +1,51 @@\n+import os\n+import multiprocessing\n+import time\n+from pathlib import Path\n+from portalocker import utils, LockFlags\n+\n+flags = LockFlags.EXCLUSIVE | LockFlags.NON_BLOCKING\n+\n+def worker(filename, result):\n+ try:\n+ lock = utils.Lock(filename, fail_when_locked=True, flags=flags)\n+ lock.acquire()\n+ result.put((True, 'ok'))\n+ lock.release()\n+ except Exception as e:\n+ result.put((False, str(e)))\n+\n+\n+def run(filename):\n+ queue: multiprocessing.Queue[tuple[bool, str]] = (\n+ multiprocessing.Queue()\n+ )\n+\n+ proc = multiprocessing.Process(\n+ target=worker, args=(str(lock.filename), queue)\n+ )\n+\n+ proc.start()\n+ try:\n+ result, msg = queue.get(timeout=1)\n+ print(f\"{result} {msg}\")\n+ finally:\n+ proc.join(timeout=1)\n+ \n+ if proc.is_alive():\n+ proc.terminate()\n+\n+\n+if __name__ == '__main__':\n+ filename = Path('/tmp/foo')\n+\n+ lock = utils.Lock(filename, fail_when_locked=True, flags=flags)\n+ assert(lock.filename == str(filename))\n+\n+ lock.acquire()\n+ time.sleep(0.1)\n+ run(filename) # should fail\n+ lock.release()\n+\n+ time.sleep(0.1)\n+ run(filename) # success\ndiff --git a/support/testing/tests/package/test_python_portalocker.py b/support/testing/tests/package/test_python_portalocker.py\nnew file mode 100644\nindex 0000000000..58f27c0f79\n--- /dev/null\n+++ b/support/testing/tests/package/test_python_portalocker.py\n@@ -0,0 +1,24 @@\n+import os\n+from tests.package.test_python import TestPythonPackageBase\n+\n+\n+class TestPythonPortalocker(TestPythonPackageBase):\n+ __test__ = True\n+ config = TestPythonPackageBase.config + \\\n+ \"\"\"\n+ BR2_PACKAGE_PYTHON3=y\n+ BR2_PACKAGE_PYTHON_PORTALOCKER=y\n+ \"\"\"\n+ sample_scripts = [\"tests/package/sample_python_portalocker.py\"]\n+\n+ def test_run(self):\n+ self.login()\n+ self.check_sample_scripts_exist()\n+\n+ cmd = self.interpreter + \" \" + os.path.basename(self.sample_scripts[0])\n+ output, exit_code = self.emulator.run(cmd, timeout=15)\n+ self.assertEqual(exit_code, 0)\n+ self.assertEqual(output, [\n+ 'False [Errno 11] Resource temporarily unavailable',\n+ 'True ok',\n+ ])\n", "prefixes": [ "1/1" ] }