{"id":24158,"url":"https://patchwork.libcamera.org/api/patches/24158/?format=json","web_url":"https://patchwork.libcamera.org/patch/24158/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250818144531.6406-2-laurent.pinchart@ideasonboard.com>","date":"2025-08-18T14:45:31","name":"[2/2] meson: Use dependency('dl')","commit_ref":"392e9044b1f6f91b3fff465c7cdbc475b323a920","pull_url":null,"state":"accepted","archived":false,"hash":"ab28b03154ffb5dfb19a8da8fe4813c5022353a3","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/24158/mbox/","series":[{"id":5392,"url":"https://patchwork.libcamera.org/api/series/5392/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5392","date":"2025-08-18T14:45:30","name":"[1/2] meson: Bump minimum version to v1.0.1","version":1,"mbox":"https://patchwork.libcamera.org/series/5392/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/24158/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/24158/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 4F1EBBEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 18 Aug 2025 14:46:02 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D50856925F;\n\tMon, 18 Aug 2025 16:46:01 +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 B2DA869268\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Aug 2025 16:45:57 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 2371B11EB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 18 Aug 2025 16:45:00 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"fX5HVMIF\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1755528300;\n\tbh=tRzLk8+adOUc7v+1rgQfy3CwxpeFf6Dzqtepez5N1CE=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=fX5HVMIFCgGLqs/51bCa0l8gwrR8xkSp0QdTpTPIwRVC8iDQsNsppFdIUEPFRetIv\n\t1a0YU+PndjYja04hqp/914FU/FdBm7nbpFirlb6B5OeEzcvwgv2L/EQm08kzQJbVm9\n\tuUHPfe+gitkMSS775Egwa9UUFWPD5Wpg1vMOAr2k=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH 2/2] meson: Use dependency('dl')","Date":"Mon, 18 Aug 2025 17:45:31 +0300","Message-ID":"<20250818144531.6406-2-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.49.1","In-Reply-To":"<20250818144531.6406-1-laurent.pinchart@ideasonboard.com>","References":"<20250818144531.6406-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","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":"Support for locating libdl through dependency('dl') was broken before\nmeson v0.62.0. Now that we require a newer version, drop the hack and\nuse the dependency() function.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/meson.build | 8 +-------\n 1 file changed, 1 insertion(+), 7 deletions(-)","diff":"diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build\nindex de1eb99b28fd..b3ca27f217da 100644\n--- a/src/libcamera/meson.build\n+++ b/src/libcamera/meson.build\n@@ -76,13 +76,7 @@ subdir('proxy')\n subdir('sensor')\n subdir('software_isp')\n \n-null_dep = dependency('', required : false)\n-\n-# TODO: Use dependency('dl') when updating to meson 0.62.0 or newer.\n-libdl = null_dep\n-if not cc.has_function('dlopen')\n-    libdl = cc.find_library('dl')\n-endif\n+libdl = dependency('dl')\n libudev = dependency('libudev', required : get_option('udev'))\n libyaml = dependency('yaml-0.1', default_options : [\n     'default_library=static',\n","prefixes":["2/2"]}