Patch Detail
Show a patch.
GET /api/patches/25335/?format=api
{ "id": 25335, "url": "https://patchwork.libcamera.org/api/patches/25335/?format=api", "web_url": "https://patchwork.libcamera.org/patch/25335/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20251202135817.1607250-2-barnabas.pocze@ideasonboard.com>", "date": "2025-12-02T13:58:16", "name": "[RFC,v1,2/3] libcamera: device_enumerator_udev: Disable copy/move", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "308cf9844dae0a3479a07d3a3d409e83ace71b83", "submitter": { "id": 216, "url": "https://patchwork.libcamera.org/api/people/216/?format=api", "name": "Barnabás Pőcze", "email": "barnabas.pocze@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/25335/mbox/", "series": [ { "id": 5632, "url": "https://patchwork.libcamera.org/api/series/5632/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5632", "date": "2025-12-02T13:58:15", "name": "[RFC,v1,1/3] libcamera: device_enumerator_udev: Add `override`", "version": 1, "mbox": "https://patchwork.libcamera.org/series/5632/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/25335/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/25335/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id EF5EBC3260\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 2 Dec 2025 13:58:26 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 39C6760D24;\n\tTue, 2 Dec 2025 14:58:25 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BD5E960C7C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 2 Dec 2025 14:58:21 +0100 (CET)", "from pb-laptop.local (185.182.214.104.nat.pool.zt.hu\n\t[185.182.214.104])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id A8DC216A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 2 Dec 2025 14:56:07 +0100 (CET)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"Kvot+B48\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1764683767;\n\tbh=sGC7fQpMh63mykn6Z0VQeS5+xQrRB/fJuVWnDLabkIo=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=Kvot+B48e6nmXVxG9+PzyXZiFqn65xoS0KEpQBAGcOCWJzEiq+1jwMbBT/dYCmwfO\n\tI8bRRM7NE/UYpKTrFayfYHYyOIhP0GG8X+gjiDAZOBt7LQBCp+laTkZS31FIpxEmqK\n\tCATmvHsdCNgjSK9Cpu4eZpUXN1S3k8xEcUX9ASOg=", "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[RFC PATCH v1 2/3] libcamera: device_enumerator_udev: Disable\n\tcopy/move", "Date": "Tue, 2 Dec 2025 14:58:16 +0100", "Message-ID": "<20251202135817.1607250-2-barnabas.pocze@ideasonboard.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20251202135817.1607250-1-barnabas.pocze@ideasonboard.com>", "References": "<20251202135817.1607250-1-barnabas.pocze@ideasonboard.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The the default implementations generated by the compiler are not appropriate.\nSo disable them.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n include/libcamera/internal/device_enumerator_udev.h | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/include/libcamera/internal/device_enumerator_udev.h b/include/libcamera/internal/device_enumerator_udev.h\nindex fb0005921a..c2f7154b6b 100644\n--- a/include/libcamera/internal/device_enumerator_udev.h\n+++ b/include/libcamera/internal/device_enumerator_udev.h\n@@ -14,6 +14,8 @@\n #include <string>\n #include <sys/types.h>\n \n+#include <libcamera/base/class.h>\n+\n #include \"libcamera/internal/device_enumerator.h\"\n \n struct udev;\n@@ -54,6 +56,8 @@ private:\n \t\tDependencyMap deps_;\n \t};\n \n+\tLIBCAMERA_DISABLE_COPY_AND_MOVE(DeviceEnumeratorUdev)\n+\n \tint addUdevDevice(struct udev_device *dev);\n \tint populateMediaDevice(MediaDevice *media, DependencyMap *deps);\n \tstd::string lookupDeviceNode(dev_t devnum);\n", "prefixes": [ "RFC", "v1", "2/3" ] }