From patchwork Wed Sep 24 10:39:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Dylan_A=C3=AFssi?= X-Patchwork-Id: 24445 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9A771BDB1C for ; Wed, 24 Sep 2025 10:40:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 565AD6B5F3; Wed, 24 Sep 2025 12:40:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="eE+AAOeu"; dkim-atps=neutral Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0C09569367 for ; Wed, 24 Sep 2025 12:40:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1758710412; bh=Y4QQg6A1cgJXMWWMDrbzwT8mdi8x3bjgEgPetJEogdk=; h=From:To:Cc:Subject:Date:From; b=eE+AAOeuXYPH6R6HkAkCfvxQZhMB1tKBTvd6YS4p7976G2XzptUqYyxs59rWRVm1T XJdo0veMmMtdYHTyBm3E3ECRL88oRgme9eRV6AG/CBluaPSoolUJPKVhI4VPoNRsce ydA4mLTyJXCNRap6DpCNo4PgedSlujEDFcGBVNJYitYQPp+DnNqfx6vOIww42Jq8/U WuEc/rNF+06wekHzGEUbVFkyfBZgwxGIxmFX5GFMFDGND1h7L9512il8HLMl7MkYTi oRXBdzzZ4iXxZ6k2jjnnylPtghemJgnlkN8Mh4wpP0liMO1l32oVN+vDOkM1B/OQPv /paklfVACrAaA== Received: from xps13-9310.. (unknown [IPv6:2a01:e0a:f7:4c90:cb76:56:dcfc:bd07]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: daissi) by bali.collaboradmins.com (Postfix) with ESMTPSA id 79DEA17E12C1; Wed, 24 Sep 2025 12:40:12 +0200 (CEST) From: =?utf-8?q?Dylan_A=C3=AFssi?= To: libcamera-devel@lists.libcamera.org Cc: =?utf-8?q?Dylan_A=C3=AFssi?= Subject: [PATCH] meson: Add option to disable libunwind integration Date: Wed, 24 Sep 2025 12:39:42 +0200 Message-ID: <20250924103942.38558-1-dylan.aissi@collabora.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" While optional, libunwind integration is enabled when meson finds it without having a way to disable it. This is the case for Debian where libunwind is installed by build dependencies. Since we want to reduce dependencies on libunwind in Debian due to several issues with it (see https://bugs.debian.org/1093688), we need an option to control its activation. Signed-off-by: Dylan Aïssi Reviewed-by: Kieran Bingham Reviewed-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart --- meson_options.txt | 5 +++++ src/libcamera/base/meson.build | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 2104469e..32acb45b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -42,6 +42,11 @@ option('lc-compliance', value : 'auto', description : 'Compile the lc-compliance test application') +option('libunwind', + type : 'feature', + value : 'auto', + description : 'Enable libunwind provide backtraces to help debugging') + option('pipelines', type : 'array', value : ['auto'], diff --git a/src/libcamera/base/meson.build b/src/libcamera/base/meson.build index a742dfdf..bcf37f71 100644 --- a/src/libcamera/base/meson.build +++ b/src/libcamera/base/meson.build @@ -27,7 +27,7 @@ libcamera_base_internal_sources = files([ ]) libdw = dependency('libdw', required : false) -libunwind = dependency('libunwind', required : false) +libunwind = dependency('libunwind', required : get_option('libunwind')) if cc.has_header_symbol('execinfo.h', 'backtrace') config_h.set('HAVE_BACKTRACE', 1)