Patch Detail
Show a patch.
GET /api/patches/17528/?format=api
{ "id": 17528, "url": "https://patchwork.libcamera.org/api/patches/17528/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17528/", "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": "<20221005105621.9658-1-laurent.pinchart@ideasonboard.com>", "date": "2022-10-05T10:56:21", "name": "[libcamera-devel] test: threads: Fix link failure due to missing dependency", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "f7dfc15ea5e084c0827f302f1824a25d36227f92", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17528/mbox/", "series": [ { "id": 3532, "url": "https://patchwork.libcamera.org/api/series/3532/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3532", "date": "2022-10-05T10:56:21", "name": "[libcamera-devel] test: threads: Fix link failure due to missing dependency", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3532/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17528/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17528/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 957D8C327C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 5 Oct 2022 10:56:27 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0FF10621F8;\n\tWed, 5 Oct 2022 12:56:26 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8098B621BC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 5 Oct 2022 12:56:24 +0200 (CEST)", "from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0017E997;\n\tWed, 5 Oct 2022 12:56:23 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664967386;\n\tbh=ua5riu3ilu4tB+opcUOnpEmJh1fyFwkYD80l5SiXopw=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=Nfgd/ff8RjySx5utNo6OlM/xpY6bHfD3ewTK/AEe262nOGCZTM6/cOPg9hkEwPH9i\n\tuIvi3ysBN6ji7mEpzbGhBZ0txIzITi8Ck4iCvzp9rRsj6EGiY05L7UJI0rjGzweYlz\n\tuqnWI1fAgacpeNFKqiDMJEDZZxQDCq2PkP/ZE+bCVJwYb2BlvSHycdAuAd4Geg0WK4\n\tQ0tnZ8/UUTXRn2LfIFh9wV860vYNDCvM4vH31bBhijsmggzG0sr+JiOr1fhsnimFbX\n\toTlhyusmY3RS2JKwAKYXTkrq7INARMgUWNeWs9d5qZU6R5ybR+XDcVNJCntNtOfkCB\n\t7GOrYTFqfx0Ig==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1664967384;\n\tbh=ua5riu3ilu4tB+opcUOnpEmJh1fyFwkYD80l5SiXopw=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=QscEJNWsdh+rKLtGWSuG9jkWaJp5dELdBN9cDkHrioZVNYBys4IXnMMjd+VzQV6ga\n\toeUkc40+uyDabefYGIWQjg8I+PtX/Kbb59npC48SR1sVMrhcBBKje6pfDzv/9SYNSX\n\tzgIzebQjuHMsDyc/UULgINhjj58sVqsp47Zq0cvE=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"QscEJNWs\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 5 Oct 2022 13:56:21 +0300", "Message-Id": "<20221005105621.9658-1-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.35.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] test: threads: Fix link failure due to\n\tmissing dependency", "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>", "From": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Commit 036d26d6677e (\"test: threads: Test thread cleanup upon abnormal\ntermination\") added calls to functions provided by the pthread library\nin the threads test, but didn't add the corresponding dependency. This\ncaused a link breakage on some platforms:\n\n/usr/bin/ld: test/threads.p/threads.cpp.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.4'\n/usr/bin/ld: /lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line\ncollect2: error: ld returned 1 exit status\n\nFix it by adding the missing dependency.\n\nFixes: 036d26d6677e (\"test: threads: Test thread cleanup upon abnormal termination\")\nReported-by: Naushir Patuck <naush@raspberrypi.com>\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/base/meson.build | 2 +-\n src/libcamera/meson.build | 1 +\n test/meson.build | 23 +++++++++++++++++++----\n 3 files changed, 21 insertions(+), 5 deletions(-)\n\n\nbase-commit: 12f4708e35cde15ff9607d59eb053ece1b2bd081", "diff": "diff --git a/src/libcamera/base/meson.build b/src/libcamera/base/meson.build\nindex 3b9d74efe935..7a75914ab2a8 100644\n--- a/src/libcamera/base/meson.build\n+++ b/src/libcamera/base/meson.build\n@@ -38,9 +38,9 @@ if libunwind.found()\n endif\n \n libcamera_base_deps = [\n- dependency('threads'),\n libatomic,\n libdw,\n+ libthreads,\n libunwind,\n ]\n \ndiff --git a/src/libcamera/meson.build b/src/libcamera/meson.build\nindex 63b47b177fd2..7fcbb2ddc9e7 100644\n--- a/src/libcamera/meson.build\n+++ b/src/libcamera/meson.build\n@@ -58,6 +58,7 @@ includes = [\n ]\n \n libatomic = cc.find_library('atomic', required : false)\n+libthreads = dependency('threads')\n \n subdir('base')\n subdir('ipa')\ndiff --git a/test/meson.build b/test/meson.build\nindex 6cc778415dc8..9bf7bf34e796 100644\n--- a/test/meson.build\n+++ b/test/meson.build\n@@ -51,7 +51,7 @@ internal_tests = [\n ['pixel-format', 'pixel-format.cpp'],\n ['shared-fd', 'shared-fd.cpp'],\n ['signal-threads', 'signal-threads.cpp'],\n- ['threads', 'threads.cpp'],\n+ ['threads', 'threads.cpp', [libthreads]],\n ['timer', 'timer.cpp'],\n ['timer-thread', 'timer-thread.cpp'],\n ['unique-fd', 'unique-fd.cpp'],\n@@ -65,8 +65,13 @@ internal_non_parallel_tests = [\n ]\n \n foreach t : public_tests\n+ deps = [libcamera_public]\n+ if t.length() > 2\n+ deps += t[2]\n+ endif\n+\n exe = executable(t[0], t[1],\n- dependencies : libcamera_public,\n+ dependencies : deps,\n link_with : test_libraries,\n include_directories : test_includes_public)\n \n@@ -74,8 +79,13 @@ foreach t : public_tests\n endforeach\n \n foreach t : internal_tests\n+ deps = [libcamera_private]\n+ if t.length() > 2\n+ deps += t[2]\n+ endif\n+\n exe = executable(t[0], t[1],\n- dependencies : libcamera_private,\n+ dependencies : deps,\n link_with : test_libraries,\n include_directories : test_includes_internal)\n \n@@ -83,8 +93,13 @@ foreach t : internal_tests\n endforeach\n \n foreach t : internal_non_parallel_tests\n+ deps = [libcamera_private]\n+ if t.length() > 2\n+ deps += t[2]\n+ endif\n+\n exe = executable(t[0], t[1],\n- dependencies : libcamera_private,\n+ dependencies : deps,\n link_with : test_libraries,\n include_directories : test_includes_internal)\n \n", "prefixes": [ "libcamera-devel" ] }