X-Loop: help-debbugs@HIDDEN Subject: [bug#75777] [PATCH 0/2] Update sysdig and falcosecurity-libs. Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: sharlatanus@HIDDEN, guix-patches@HIDDEN Resent-Date: Thu, 23 Jan 2025 07:29:01 +0000 Resent-Message-ID: <handler.75777.B.17376173338417 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 75777 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75777 <at> debbugs.gnu.org Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Sharlatan Hellseher <sharlatanus@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN X-Debbugs-Original-Xcc: Sharlatan Hellseher <sharlatanus@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17376173338417 (code B ref -1); Thu, 23 Jan 2025 07:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2025 07:28:53 +0000 Received: from localhost ([127.0.0.1]:38883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tare0-0002Bg-LC for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:28:52 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55096) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tardx-0002B5-N1 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:28:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tardr-0004QH-V9 for guix-patches@HIDDEN; Thu, 23 Jan 2025 02:28:43 -0500 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tardq-0007Xr-Gs for guix-patches@HIDDEN; Thu, 23 Jan 2025 02:28:43 -0500 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2efded08c79so947629a91.0 for <guix-patches@HIDDEN>; Wed, 22 Jan 2025 23:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737617319; x=1738222119; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7HbP+cYx5qQh90stY131I+er4kk/uaC1w8B6PGA2+9k=; b=lYK67GjNeqB5bn39wnEx7pHYilUfmo2brBUq0+yVcox+p4ps8i5lZSf4q0lvVKZ3qF vymn1x/+nwfxJahAHjQa4NHQSQwyCl8Oy/L6AfqECg0av+wAOReCFaB5jzXtOdgTx1pb edASOy+ahOVXcKGzT/4hu1GKlNfh2aqjTz7WKOlt7YTSSwpke6d3NLqKFrh+IMg4qPnu 5DgKXfjbekwFqtKPSg3f9YZSxvSzcboOX3WYfv0cfhO0gTDr029vB7bCAakGWHDFf/x/ lKFlcuk44AhcEu24RM+eTW+JSMIo1Ne8n1DFBbeU9h17WbSfnEGrUG8lrwYdaRTZO9/v LV3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737617319; x=1738222119; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7HbP+cYx5qQh90stY131I+er4kk/uaC1w8B6PGA2+9k=; b=eQSkX9YKH6/roXBJ0UwceVN77a1CfFfHZVNcLEigB+n/gGj+vW+F70nyJCQwypXjcP vZIe8qrgxakJn3HriMB1hHLBc3FfFq+T5KCH1fmzLBSs3ShAaW1bdMzHv0msLnaNwuK7 XNr5bzEKO3QVuwNyLiVhd4USXN12I1OV3tWgjFih5A30F1aAYrFdY8iyZvMntuGaGN/v YYrKfa/5U3FsH36dDbGg09L85p3TeQ4aXWpuHz1iTzrpWiLe9hSNv9/F6jzbTaMNpgAZ AEz5CEWrbvrC2KvbkvbiB/vqEGYIGgs5p7UpvtwUAWDRTIMup5PgzBNVWQuySO/46TQd yvcA== X-Gm-Message-State: AOJu0YxeeSw9g07IwWsZKLsIV87XT0EMZ9mb0eXx9p6m3BVLIbHOX9nh X6tQuvHLuT1YjavrUJI/uY7UFhWFX5LSlUfM0J0P5zCWkdrexINdPJLASg== X-Gm-Gg: ASbGnctUNzNwmUSrhLx0Ick0hxh5KqvusEjfy3qxJMGrvD/RGnR2Q3YZyCttP+txKhS zBkKQwkOlmBnK4oxHTm5XA4TvjEeoffPVhxjBp2JNU2f4OWXKb1TK1FdedfqGsddUn651YaUaKb 7wGa0pWJ8RAuhDCpExZCaaj5ZfB0+nMCpNdvGSBCHms5Ug58Yr++W1pqUJACSa8y70Px1zgfkfy YFC6ZJF64Ku9mHgPBBQS9xZbpER3tyYg7Czt0I/O7aSBTPwuLVqS/icolI8ZIzFrYGpEBL44evz HqJ4zDOjZti0KsJs/QRBIDI= X-Google-Smtp-Source: AGHT+IG4bKWp7Aq7o74MOtbJetV1QWilhRWqngLkgzfc+563L16hmPGHgmwS9Dda+pioqtP20PaFVw== X-Received: by 2002:a17:90b:2c84:b0:2ee:9a82:5a93 with SMTP id 98e67ed59e1d1-2f782c94021mr41828124a91.14.1737617318903; Wed, 22 Jan 2025 23:28:38 -0800 (PST) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f7e6a65966sm3152210a91.1.2025.01.22.23.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 23:28:38 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Date: Thu, 23 Jan 2025 16:28:24 +0900 Message-ID: <cover.1737617271.git.maxim.cournoyer@HIDDEN> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=maxim.cournoyer@HIDDEN; helo=mail-pj1-x102d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Maxim Cournoyer (2): gnu: falcosecurity-libs: Update to 0.20.0. gnu: sysdig: Update to 0.40.0-alpha2. gnu/local.mk | 9 +- gnu/packages/admin.scm | 77 +++-- gnu/packages/linux.scm | 33 +-- .../falcosecurity-libs-install-pman.patch | 14 - .../falcosecurity-libs-libscap-pc.patch | 16 - ...lcosecurity-libs-libsinsp-pkg-config.patch | 155 ---------- .../falcosecurity-libs-pkg-config.patch | 23 -- .../falcosecurity-libs-shared-build.patch | 280 ++++++++++++++++++ ...alcosecurity-libs-shared-library-fix.patch | 50 ---- .../sysdig-falcosecurity-libs-0.20.patch | 52 ++++ .../sysdig-shared-falcosecurity-libs.patch | 34 +-- 11 files changed, 401 insertions(+), 342 deletions(-) delete mode 100644 gnu/packages/patches/falcosecurity-libs-install-pman.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-libscap-pc.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-pkg-config.patch create mode 100644 gnu/packages/patches/falcosecurity-libs-shared-build.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-shared-library-fix.patch create mode 100644 gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch base-commit: 4241a5a4688e8a118b2f66423abd3ef8baae98fc -- 2.47.1
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Subject: bug#75777: Acknowledgement ([PATCH 0/2] Update sysdig and falcosecurity-libs.) Message-ID: <handler.75777.B.17376173338417.ack <at> debbugs.gnu.org> References: <cover.1737617271.git.maxim.cournoyer@HIDDEN> X-Gnu-PR-Message: ack 75777 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75777 <at> debbugs.gnu.org Date: Thu, 23 Jan 2025 07:29:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to Sharlatan Hellseher <sharlatanus@HIDDEN> (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 75777 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 75777: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75777 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#75777] [PATCH 1/2] gnu: falcosecurity-libs: Update to 0.20.0. Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: leo@HIDDEN, w@HIDDEN, guix-patches@HIDDEN Resent-Date: Thu, 23 Jan 2025 07:34:02 +0000 Resent-Message-ID: <handler.75777.B75777.17376176339580 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75777 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75777 <at> debbugs.gnu.org Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Leo Famulari <leo@HIDDEN>, Wilko Meyer <w@HIDDEN> X-Debbugs-Original-Xcc: Leo Famulari <leo@HIDDEN>, Wilko Meyer <w@HIDDEN> Received: via spool by 75777-submit <at> debbugs.gnu.org id=B75777.17376176339580 (code B ref 75777); Thu, 23 Jan 2025 07:34:02 +0000 Received: (at 75777) by debbugs.gnu.org; 23 Jan 2025 07:33:53 +0000 Received: from localhost ([127.0.0.1]:38912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tarik-0002UL-S9 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:33:53 -0500 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:58557) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tarif-0002Tw-Vy for 75777 <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:33:44 -0500 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-218c8aca5f1so12448255ad.0 for <75777 <at> debbugs.gnu.org>; Wed, 22 Jan 2025 23:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737617615; x=1738222415; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=73F6rM2JaV9hok1SA2W3GGxB6rQFsAwxkvTDfBao68o=; b=O/lsvIa1wyWi/VSBbIeiZGQ+Wxa4NdD2sVmvQPB+PX3aoNOHgPx45U0mx8eKW66hwr MdwIsw7eReeYQ0a8/wxzy+5sAU5sz8H0woZldWOE03KC0gYL6vzLPJ+vKbRdjJ7FpIqX NdPXa2qh6l/jeSKNL0gHbrA/lag6/vocofcEcZB8LjtDSuslwgOUGNoYjO/eMPHH/aG6 nAfd/K7BR2R0OI4pmeIE2HpDzfYi0LbCT80GIPFCXqTCPtl7QhYIe5f6hfE1a20GAIgb PLa4+rCPCnk3wtfgkCnUABsozoqCZ3UIRuScIS+t2E4+gqn6oysqFCG1B5VxSfp6jkmO cQZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737617615; x=1738222415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=73F6rM2JaV9hok1SA2W3GGxB6rQFsAwxkvTDfBao68o=; b=o7OfQGqc+SorMuQGPLs0jB5k2/bgYw5h0xP5cAsq5cVLH2hw2Fg8JWK6xmAPErcXpg O0RCQndKqIvCHGiyhiqCK2eQX4pWWrxrsvx542DWZ2c8mdq57cZV4AW+Rt4duYZKIIG4 2xkpQrTfA8+pOhBcyVlwXLkTkcqUBWnS8LDaLqrotD4JaoLf6IsTUUG2t9pPXauTI94H t4cLq/TplqNyH0TDfa5xuCMXZ0ZWm3kOj74pcNGh5A1ZUq5LnVZJb1UAKywyV2xoaFTl iAT5xQcQE0ojfI2/bGX9c4tfR3W+8rbIOl6H3kGbwl2mKLhPrD6U25X6qldBAIo0H+Sl KoWg== X-Gm-Message-State: AOJu0YwyCiQ+HTS75STm+CSjQ4FiNkqQNMMS4qmEb7hM/xlEqYTB7Xo3 vRvasUA2ICGyHensnSUFv0KG9dx8tty9ekr73nnrHDXtiw3NiYd/jyOHwg== X-Gm-Gg: ASbGncsUyRK5tM4pAKXOrVSF08sCuMk9WS6lLx/FMKICrUa6ehITqn7Gxo2Ch3OczxC RxlVklUSxWG7ZCAJ8sxxAbeeq4AxaQTTyI/uDUyM0sIQz8b9iyLInmuu+qTLp80aF2B/xU6CMV1 mAI1fpTfZx+VdacUSuG8UT/7eic9iByhQIhY9UKrYXUWbs82XRFilWR4nJ6ul7ybIbNLIlIR7zg Q2IKe7WkbkbcVl8iR6eJhhjXQRB+511ZEJ47tewp4aQIbJpL34/Q51LOW9Bwn0iJKev57V6TDRU ZilOrQiRFA8l1vrnRFVIwg8= X-Google-Smtp-Source: AGHT+IGrp+zx/OSSpThKeagxeMcEFG0CIZB+wNn17CdB/YnfGKjIWpYniJFYAxpUwahdLf63EiBzlg== X-Received: by 2002:a05:6a20:3b9d:b0:1e1:90bd:21a0 with SMTP id adf61e73a8af0-1eb215de72dmr25346466637.42.1737617614900; Wed, 22 Jan 2025 23:33:34 -0800 (PST) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd30d1fdsm12165749a12.60.2025.01.22.23.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 23:33:34 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Date: Thu, 23 Jan 2025 16:33:18 +0900 Message-ID: <53bcfd848e1b02cfd4d07b5529290f2001312b54.1737617441.git.maxim.cournoyer@HIDDEN> X-Mailer: git-send-email 2.47.1 In-Reply-To: <cover.1737617441.git.maxim.cournoyer@HIDDEN> References: <cover.1737617441.git.maxim.cournoyer@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/linux.scm (falcosecurity-libs): Update to 0.20.0. [source]: Update patches and combine into a single one. [native-inputs]: Replace clang (13) with clang-14. [inputs]: Move libbpf and libelf to... [propagated-inputs]: ... here. * gnu/packages/patches/falcosecurity-libs-shared-build.patch: New file. * gnu/packages/patches/falcosecurity-libs-install-pman.patch * gnu/packages/patches/falcosecurity-libs-libscap-pc.patch * gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch * gnu/packages/patches/falcosecurity-libs-pkg-config.patch: Delete files. * gnu/local.mk (dist_patch_DATA): Update accordingly. Change-Id: I58b5d207da27ab4f52556e5c804d8e545e7e3974 --- gnu/local.mk | 8 +- gnu/packages/linux.scm | 33 +-- .../falcosecurity-libs-install-pman.patch | 14 - .../falcosecurity-libs-libscap-pc.patch | 16 - ...lcosecurity-libs-libsinsp-pkg-config.patch | 155 ---------- .../falcosecurity-libs-pkg-config.patch | 23 -- .../falcosecurity-libs-shared-build.patch | 280 ++++++++++++++++++ ...alcosecurity-libs-shared-library-fix.patch | 50 ---- 8 files changed, 297 insertions(+), 282 deletions(-) delete mode 100644 gnu/packages/patches/falcosecurity-libs-install-pman.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-libscap-pc.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-pkg-config.patch create mode 100644 gnu/packages/patches/falcosecurity-libs-shared-build.patch delete mode 100644 gnu/packages/patches/falcosecurity-libs-shared-library-fix.patch diff --git a/gnu/local.mk b/gnu/local.mk index 5091f93eb8..de2e42cd79 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -19,7 +19,7 @@ # Copyright © 2018 Amirouche Boubekki <amirouche@HIDDEN> # Copyright © 2018, 2019, 2020, 2021, 2022, 2024 Oleg Pykhalov <go.wigust@HIDDEN> # Copyright © 2018 Stefan Stefanović <stefanx2ovic@HIDDEN> -# Copyright © 2018, 2020, 2021, 2022, 2023, 2024 Maxim Cournoyer <maxim.cournoyer@HIDDEN> +# Copyright © 2018, 2020-2025 Maxim Cournoyer <maxim.cournoyer@HIDDEN> # Copyright © 2019, 2020, 2021, 2022, 2024 Guillaume Le Vaillant <glv@HIDDEN> # Copyright © 2019, 2020 John Soo <jsoo1@HIDDEN> # Copyright © 2019 Jonathan Brielmaier <jonathan.brielmaier@HIDDEN> @@ -1252,11 +1252,7 @@ dist_patch_DATA = \ %D%/packages/patches/fail2ban-python310-server-action.patch \ %D%/packages/patches/fail2ban-python310-server-actions.patch \ %D%/packages/patches/fail2ban-python310-server-jails.patch \ - %D%/packages/patches/falcosecurity-libs-install-pman.patch \ - %D%/packages/patches/falcosecurity-libs-libscap-pc.patch \ - %D%/packages/patches/falcosecurity-libs-pkg-config.patch \ - %D%/packages/patches/falcosecurity-libs-shared-library-fix.patch \ - %D%/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch \ + %D%/packages/patches/falcosecurity-libs-shared-build.patch \ %D%/packages/patches/farstream-gupnp.patch \ %D%/packages/patches/farstream-make.patch \ %D%/packages/patches/fastcap-mulGlobal.patch \ diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 172797f97d..46be9f3a37 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -34,7 +34,7 @@ ;;; Copyright © 2018 Vasile Dumitrascu <va511e@HIDDEN> ;;; Copyright © 2019 Tim Gesthuizen <tim.gesthuizen@HIDDEN> ;;; Copyright © 2019 mikadoZero <mikadozero@HIDDEN> -;;; Copyright © 2019, 2020, 2021, 2022, 2023, 2024 Maxim Cournoyer <maxim.cournoyer@HIDDEN> +;;; Copyright © 2019-2025 Maxim Cournoyer <maxim.cournoyer@HIDDEN> ;;; Copyright © 2019 Stefan Stefanović <stefanx2ovic@HIDDEN> ;;; Copyright © 2019-2022 Brice Waegeneire <brice@HIDDEN> ;;; Copyright © 2019 Kei Kebreau <kkebreau@HIDDEN> @@ -9884,7 +9884,7 @@ (define-public fakechroot (define-public falcosecurity-libs (package (name "falcosecurity-libs") - (version "0.16.0") + (version "0.20.0") (source (origin (method git-fetch) (uri (git-reference @@ -9893,14 +9893,10 @@ (define-public falcosecurity-libs (file-name (git-file-name name version)) (sha256 (base32 - "1vzymzkfipb3bnjjd9m8ykzj0l94fm8mnpcxfm8mpxz3jbd8xnv9")) + "041ir9wk44v7isidwl7fzxrjvs85j637wcr7xirasd8ysxa0r4qv")) (patches (search-patches - "falcosecurity-libs-pkg-config.patch" - "falcosecurity-libs-install-pman.patch" - "falcosecurity-libs-libscap-pc.patch" - "falcosecurity-libs-shared-library-fix.patch" - "falcosecurity-libs-libsinsp-pkg-config.patch")))) + "falcosecurity-libs-shared-build.patch")))) (build-system cmake-build-system) (arguments (list @@ -9928,21 +9924,22 @@ (define-public falcosecurity-libs (lambda _ (delete-file-recursively (string-append #$output "/src"))))))) - (native-inputs (list bpftool - clang - googletest - pkg-config - valijson)) ;header-only library + (native-inputs + (list bpftool + clang-14 ;avoid stack limit exceeded build error + googletest + pkg-config + valijson)) ;header-only library (inputs - (list elfutils - libbpf - libelf)) + (list elfutils)) (propagated-inputs - ;; The following inputs are in the 'Requires' field of libscap.pc and - ;; libsinp.pc. + ;; The following inputs are in the 'Requires' field of libscap.pc, + ;; libsinp.pc or libpman.pc. (list c-ares grpc jsoncpp + libbpf + libelf openssl protobuf uthash ;included in libscap headers diff --git a/gnu/packages/patches/falcosecurity-libs-install-pman.patch b/gnu/packages/patches/falcosecurity-libs-install-pman.patch deleted file mode 100644 index 38dcc0c4b8..0000000000 --- a/gnu/packages/patches/falcosecurity-libs-install-pman.patch +++ /dev/null @@ -1,14 +0,0 @@ -Install the pman library and its header. -Upstream status: https://github.com/falcosecurity/libs/pull/1842 - -diff --git a/userspace/libpman/CMakeLists.txt b/userspace/libpman/CMakeLists.txt -index da92e9f27..4b57365fe 100644 ---- a/userspace/libpman/CMakeLists.txt -+++ b/userspace/libpman/CMakeLists.txt -@@ -58,3 +58,6 @@ endif() - if(USE_BUNDLED_LIBBPF) - add_dependencies(pman libbpf) - endif() -+ -+install(TARGETS pman LIBRARY ARCHIVE FRAMEWORK) -+install(FILES include/libpman.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) diff --git a/gnu/packages/patches/falcosecurity-libs-libscap-pc.patch b/gnu/packages/patches/falcosecurity-libs-libscap-pc.patch deleted file mode 100644 index ff650942ff..0000000000 --- a/gnu/packages/patches/falcosecurity-libs-libscap-pc.patch +++ /dev/null @@ -1,16 +0,0 @@ -libscap: Guard against install_lib_link_libraries-NOTFOUND. -Upstream status: https://github.com/falcosecurity/libs/pull/1842 - -diff --git a/cmake/modules/libscap.cmake b/cmake/modules/libscap.cmake -index 81ad2d28d..8b6b4197e 100644 ---- a/cmake/modules/libscap.cmake -+++ b/cmake/modules/libscap.cmake -@@ -95,7 +95,7 @@ foreach(libscap_install_lib ${LIBSCAP_INSTALL_LIBS}) - list(APPEND libscap_link_libraries ${libscap_install_lib}) - get_target_property(install_lib_link_libraries ${libscap_install_lib} LINK_LIBRARIES) - foreach (install_lib_link_library ${install_lib_link_libraries}) -- if (NOT ${install_lib_link_library} IN_LIST libscap_subdir_targets) -+ if (${install_lib_link_library} AND (NOT ${install_lib_link_library} IN_LIST libscap_subdir_targets)) - if(${install_lib_link_library} MATCHES "/") - # We have a path. Convert it to -L<dir> + -l<lib>. - get_filename_component(scap_lib_dir ${install_lib_link_library} DIRECTORY) diff --git a/gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch b/gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch deleted file mode 100644 index b2d38e42e0..0000000000 --- a/gnu/packages/patches/falcosecurity-libs-libsinsp-pkg-config.patch +++ /dev/null @@ -1,155 +0,0 @@ -libsinsp: Refine pkg-config file generation. -Upstream status: https://github.com/falcosecurity/libs/pull/1842 - -diff --git a/userspace/libscap/libscap.pc.in b/userspace/libscap/libscap.pc.in -index c5948489f..829bcd19b 100644 ---- a/userspace/libscap/libscap.pc.in -+++ b/userspace/libscap/libscap.pc.in -@@ -1,4 +1,4 @@ --prefix=${pcfiledir}/../.. -+prefix=@CMAKE_INSTALL_PREFIX@ - libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ - includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ - -@@ -6,5 +6,6 @@ Name: libscap - Description: lib for System CAPture - Version: @FALCOSECURITY_LIBS_VERSION@ - --Libs: -L${libdir} @LIBSCAP_LINK_LIBDIRS_FLAGS@ @LIBSCAP_LINK_LIBRARIES_FLAGS@ -+Requires: zlib -+Libs: -L${libdir} -L{libdir}/@LIBS_PACKAGE_NAME@/libscap @LIBSCAP_LINK_LIBDIRS_FLAGS@ @LIBSCAP_LINK_LIBRARIES_FLAGS@ - Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libscap -I${includedir}/@LIBS_PACKAGE_NAME@/driver -I${includedir}/@LIBS_PACKAGE_NAME@ -I@UTHASH_INCLUDE@ -diff --git a/userspace/libsinsp/CMakeLists.txt b/userspace/libsinsp/CMakeLists.txt -index 6104603e8..832f86067 100644 ---- a/userspace/libsinsp/CMakeLists.txt -+++ b/userspace/libsinsp/CMakeLists.txt -@@ -169,13 +169,9 @@ target_link_libraries(sinsp - "${RE2_LIB}" - ) - --set(SINSP_PKGCONFIG_LIBRARIES -- scap -- "${ZLIB_LIB}" -- "${CURL_LIBRARIES}" -- "${JSONCPP_LIB}" -- "${RE2_LIB}" --) -+set(SINSP_PKGCONFIG_LIBRARIES) -+set(SINSP_PKGCONFIG_REQUIRES jsoncpp) -+set(SINSP_PKGCONFIG_REQUIRES_PRIVATE libcurl re2) - - if(NOT EMSCRIPTEN) - target_link_libraries(sinsp -@@ -184,7 +180,8 @@ if(NOT EMSCRIPTEN) - PRIVATE - "${TBB_LIB}" - ) -- list(APPEND SINSP_PKGCONFIG_LIBRARIES "${CARES_LIB}") -+ list(APPEND SINSP_PKGCONFIG_REQUIRES libcares) -+ list(APPEND SINSP_PKGCONFIG_REQUIRES_PRIVATE tbb) - endif() - - if(USE_BUNDLED_VALIJSON) -@@ -248,14 +245,12 @@ if(NOT WIN32) - "${PROTOBUF_LIB}" - "${CARES_LIB}" - ) -- list(APPEND SINSP_PKGCONFIG_LIBRARIES -- "${GRPC_LIBRARIES}" -- "${GRPCPP_LIB}" -- "${GRPC_LIB}" -- "${GPR_LIB}" -- "${PROTOBUF_LIB}" -- "${CARES_LIB}" -- ) -+ list(APPEND SINSP_PKGCONFIG_REQUIRES -+ gpr -+ grpc -+ grpc++ -+ protobuf -+ libcares) - - if(NOT MUSL_OPTIMIZED_BUILD) - target_link_libraries(sinsp INTERFACE rt anl) -@@ -269,7 +264,7 @@ if(NOT WIN32) - endif() # NOT APPLE - - target_link_libraries(sinsp INTERFACE "${OPENSSL_LIBRARIES}") -- list(APPEND SINSP_PKGCONFIG_LIBRARIES "${OPENSSL_LIBRARIES}") -+ list(APPEND SINSP_PKGCONFIG_REQUIRES libcrypto libssl) - - target_link_libraries(sinsp INTERFACE dl pthread) - list(APPEND SINSP_PKGCONFIG_LIBRARIES dl pthread) -@@ -306,41 +301,17 @@ if(NOT DEFINED SINSP_AGENT_CGROUP_MEM_PATH_ENV_VAR) - endif() - add_definitions(-DSINSP_AGENT_CGROUP_MEM_PATH_ENV_VAR="${SINSP_AGENT_CGROUP_MEM_PATH_ENV_VAR}") - --# Build our pkg-config "Libs:" flags. For now, loop over SINSP_PKGCONFIG_LIBRARIES. If --# we ever start using pkg_search_module or pkg_check_modules in cmake/modules --# we could add each module to our "Requires:" line instead. We might need to --# expand this to use some of the techniques in --# https://github.com/curl/curl/blob/curl-7_84_0/CMakeLists.txt#L1539 --set(SINSP_PKG_CONFIG_LIBS) --set(SINSP_PKG_CONFIG_LIBDIRS "") --foreach(sinsp_lib ${SINSP_PKGCONFIG_LIBRARIES}) -- if(${sinsp_lib} MATCHES "^-") -- # We have a flag. Pass it through unchanged. -- list(APPEND SINSP_PKG_CONFIG_LIBS ${sinsp_lib}) -- elseif(${sinsp_lib} MATCHES "/") -- # We have a path. Convert it to -L<dir> + -l<lib>. -- get_filename_component(sinsp_lib_dir ${sinsp_lib} DIRECTORY) -- list(APPEND SINSP_PKG_CONFIG_LIBDIRS -L${sinsp_lib_dir}) -- get_filename_component(sinsp_lib_base ${sinsp_lib} NAME_WE) -- string(REGEX REPLACE "^lib" "" sinsp_lib_base ${sinsp_lib_base}) -- list(APPEND SINSP_PKG_CONFIG_LIBS -l${sinsp_lib_base}) -- elseif(${sinsp_lib} STREQUAL "scap") -- # We require libscap.pc, so skip it. -- else() -- # Assume we have a plain library name. Prefix it with "-l". -- list(APPEND SINSP_PKG_CONFIG_LIBS -l${sinsp_lib}) -- endif() --endforeach() -+list(REMOVE_DUPLICATES SINSP_PKGCONFIG_LIBRARIES) -+list(REMOVE_DUPLICATES SINSP_PKGCONFIG_REQUIRES) -+list(REMOVE_DUPLICATES SINSP_PKGCONFIG_REQUIRES_PRIVATE) - --# Build our pkg-config "Cflags:" flags. --set(SINSP_PKG_CONFIG_INCLUDES "") --foreach(sinsp_include_directory ${LIBSINSP_INCLUDE_DIRS}) -- list(APPEND SINSP_PKG_CONFIG_INCLUDES -I${sinsp_include_directory}) -+set(SINSP_LINK_FLAGS) -+foreach(sinsp_link_library ${SINSP_PKGCONFIG_LIBRARIES}) -+ list(APPEND SINSP_LINK_FLAGS "-l${sinsp_link_library}") - endforeach() - --string(REPLACE ";" " " SINSP_PKG_CONFIG_LIBS "${SINSP_PKG_CONFIG_LIBS}") --list(REMOVE_DUPLICATES SINSP_PKG_CONFIG_LIBDIRS) --string(REPLACE ";" " " SINSP_PKG_CONFIG_LIBDIRS "${SINSP_PKG_CONFIG_LIBDIRS}") --list(REMOVE_DUPLICATES SINSP_PKG_CONFIG_INCLUDES) --string(REPLACE ";" " " SINSP_PKG_CONFIG_INCLUDES "${SINSP_PKG_CONFIG_INCLUDES}") -+string(REPLACE ";" " " LIBSINSP_LINK_FLAGS "${SINSP_LINK_FLAGS}") -+string(REPLACE ";" " " LIBSINSP_REQUIRES "${SINSP_PKGCONFIG_REQUIRES}") -+string(REPLACE ";" " " LIBSINSP_REQUIRES_PRIVATE "${SINSP_PKGCONFIG_REQUIRES_PRIVATE}") -+ - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libsinsp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libsinsp.pc @ONLY) -diff --git a/userspace/libsinsp/libsinsp.pc.in b/userspace/libsinsp/libsinsp.pc.in -index 9292e73ce..f20da76b3 100644 ---- a/userspace/libsinsp/libsinsp.pc.in -+++ b/userspace/libsinsp/libsinsp.pc.in -@@ -1,4 +1,4 @@ --prefix=${pcfiledir}/../.. -+prefix=@CMAKE_INSTALL_PREFIX@ - libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ - includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ - -@@ -6,6 +6,7 @@ Name: libsinsp - Description: lib for System INSPection - Version: @FALCOSECURITY_LIBS_VERSION@ - --Requires: libscap --Libs: -L${libdir} -lsinsp @SINSP_PKG_CONFIG_LIBDIRS@ @SINSP_PKG_CONFIG_LIBS@ --Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp -I${includedir}/@LIBS_PACKAGE_NAME@/driver -I${includedir}/@LIBS_PACKAGE_NAME@ @SINSP_PKG_CONFIG_INCLUDES@ -+Requires: libscap @LIBSINSP_REQUIRES@ -+Requires.private: @LIBSINSP_REQUIRES_PRIVATE@ -+Libs: -L${libdir} -lsinsp @LIBSINSP_LINK_FLAGS@ -+Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp -I${includedir}/@LIBS_PACKAGE_NAME@/driver -I${includedir}/@LIBS_PACKAGE_NAME@ diff --git a/gnu/packages/patches/falcosecurity-libs-pkg-config.patch b/gnu/packages/patches/falcosecurity-libs-pkg-config.patch deleted file mode 100644 index f686cec3f7..0000000000 --- a/gnu/packages/patches/falcosecurity-libs-pkg-config.patch +++ /dev/null @@ -1,23 +0,0 @@ -userspace: Extend CFLAGS of libscap.pc and libsinsp.pc. -Upstream status: https://github.com/falcosecurity/libs/pull/1842 - -diff --git a/userspace/libscap/libscap.pc.in b/userspace/libscap/libscap.pc.in -index 40b6e96ed..c5948489f 100644 ---- a/userspace/libscap/libscap.pc.in -+++ b/userspace/libscap/libscap.pc.in -@@ -7,4 +7,4 @@ Description: lib for System CAPture - Version: @FALCOSECURITY_LIBS_VERSION@ - - Libs: -L${libdir} @LIBSCAP_LINK_LIBDIRS_FLAGS@ @LIBSCAP_LINK_LIBRARIES_FLAGS@ --Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libscap -+Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libscap -I${includedir}/@LIBS_PACKAGE_NAME@/driver -I${includedir}/@LIBS_PACKAGE_NAME@ -I@UTHASH_INCLUDE@ -diff --git a/userspace/libsinsp/libsinsp.pc.in b/userspace/libsinsp/libsinsp.pc.in -index c1cc4a1e2..9292e73ce 100644 ---- a/userspace/libsinsp/libsinsp.pc.in -+++ b/userspace/libsinsp/libsinsp.pc.in -@@ -8,4 +8,4 @@ Version: @FALCOSECURITY_LIBS_VERSION@ - - Requires: libscap - Libs: -L${libdir} -lsinsp @SINSP_PKG_CONFIG_LIBDIRS@ @SINSP_PKG_CONFIG_LIBS@ --Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp @SINSP_PKG_CONFIG_INCLUDES@ -+Cflags: -I${includedir}/@LIBS_PACKAGE_NAME@/libsinsp -I${includedir}/@LIBS_PACKAGE_NAME@/driver -I${includedir}/@LIBS_PACKAGE_NAME@ @SINSP_PKG_CONFIG_INCLUDES@ diff --git a/gnu/packages/patches/falcosecurity-libs-shared-build.patch b/gnu/packages/patches/falcosecurity-libs-shared-build.patch new file mode 100644 index 0000000000..08d547272c --- /dev/null +++ b/gnu/packages/patches/falcosecurity-libs-shared-build.patch @@ -0,0 +1,280 @@ +Upstream-status: https://github.com/falcosecurity/libs/pull/1842 + +diff --git a/cmake/modules/BuildPkgConfigDependencies.cmake b/cmake/modules/BuildPkgConfigDependencies.cmake +index a597f18ac..2129bffac 100644 +--- a/cmake/modules/BuildPkgConfigDependencies.cmake ++++ b/cmake/modules/BuildPkgConfigDependencies.cmake +@@ -3,6 +3,7 @@ + # libsinsp.pc (which requires libscap.pc and pulls them in that way) + function(add_pkgconfig_library LIBDIRS_VAR LIBS_VAR lib ignored) + ++ message(DEBUG "[add_pkgconfig_library] processing lib \"${lib}\"") + # if it's not a target, it doesn't have dependencies we know or care about + if(NOT TARGET ${lib}) + return() +@@ -14,14 +15,25 @@ function(add_pkgconfig_library LIBDIRS_VAR LIBS_VAR lib ignored) + return() + endif() + ++ message(DEBUG "[add_pkgconfig_library] LINK_LIBRARIES property: \"${PKGCONFIG_LIBRARIES}\"") ++ + get_property( + target_type + TARGET ${lib} + PROPERTY TYPE + ) ++ message(DEBUG "[add_pkgconfig_library] ignored list: \"${ignored}\"") + foreach(dep ${PKGCONFIG_LIBRARIES}) +- # ignore dependencies in the list ${ignored} +- if(${dep} IN_LIST "${ignored}") ++ # XXX: We use a (very) loose match as we are potentially ++ # comparing absolute library file names (dep) to pkg-config ++ # library names to be ignored. The only alternative I can ++ # think of would be to maintain a map associating pkg-config ++ # names to their library file name. ++ get_filename_component(dep_base ${dep} NAME_WE) ++ string(REGEX REPLACE "^lib" "" dep_name ${dep_base}) ++ message(DEBUG "[add_pkgconfig_library] processing dep ${dep}") ++ if("${ignored}" MATCHES "${dep_name}") ++ message(DEBUG "[add_pkgconfig_library] \"${dep}\" ignored") + continue() + endif() + +diff --git a/cmake/modules/libscap.cmake b/cmake/modules/libscap.cmake +index 346ac51b1..045a4564c 100644 +--- a/cmake/modules/libscap.cmake ++++ b/cmake/modules/libscap.cmake +@@ -93,7 +93,11 @@ if(NOT HAVE_LIBSCAP) + + set(libscap_link_flags) + set(libscap_link_libdirs "") +- add_pkgconfig_dependency(libscap_link_libdirs libscap_link_flags scap "") ++ add_pkgconfig_dependency(libscap_link_libdirs libscap_link_flags scap ++ # Avoid using these in libscap.pc Libs field, as they are ++ # already listed in Requires. lbpf is transitively required ++ # via libpman.pc. ++ "jsoncpp;libelf;libpman;protobuf;zlib") + + string(REPLACE ";" " " LIBSCAP_LINK_LIBRARIES_FLAGS "${libscap_link_flags}") + string(REPLACE ";" " " LIBSCAP_LINK_LIBDIRS_FLAGS "${libscap_link_libdirs}") +diff --git a/driver/CMakeLists.txt b/driver/CMakeLists.txt +index 94f37ee2a..fc844da7b 100644 +--- a/driver/CMakeLists.txt ++++ b/driver/CMakeLists.txt +@@ -158,6 +158,11 @@ set(DRIVER_SOURCES + ppm_consumer.h + capture_macro.h + socketcall_to_syscall.h ++ syscall_compat_loongarch64.h ++ syscall_compat_ppc64le.h ++ syscall_compat_riscv64.h ++ syscall_compat_s390x.h ++ syscall_compat_x86_64.h + syscall_ia32_64_map.c + ) + +diff --git a/test/libscap/CMakeLists.txt b/test/libscap/CMakeLists.txt +index ebac7e968..eeb99ca2f 100644 +--- a/test/libscap/CMakeLists.txt ++++ b/test/libscap/CMakeLists.txt +@@ -39,7 +39,13 @@ set(LIBSCAP_TESTS_INCLUDE + # Needed by gtest + find_package(Threads) + +-set(LIBSCAP_TESTS_LIBRARIES "${GTEST_LIB}" "${GTEST_MAIN_LIB}" "${CMAKE_THREAD_LIBS_INIT}" scap) ++set(LIBSCAP_TESTS_LIBRARIES ++ "${GTEST_LIB}" ++ "${GTEST_MAIN_LIB}" ++ "${CMAKE_THREAD_LIBS_INIT}" ++ "${PROTOBUF_LIB}" ++ scap ++) + + set(LIBSCAP_TESTS_DEPENDENCIES gtest scap) + +diff --git a/userspace/libpman/CMakeLists.txt b/userspace/libpman/CMakeLists.txt +index b5d982b0d..72b7ec2c1 100644 +--- a/userspace/libpman/CMakeLists.txt ++++ b/userspace/libpman/CMakeLists.txt +@@ -53,3 +53,11 @@ install( + COMPONENT "scap" + OPTIONAL + ) ++ ++install(FILES include/libpman.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) ++configure_file( ++ ${CMAKE_CURRENT_SOURCE_DIR}/libpman.pc.in ++ ${PROJECT_BINARY_DIR}/libpman.pc @ONLY) ++ ++install(FILES ${PROJECT_BINARY_DIR}/libpman.pc ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +diff --git a/userspace/libpman/libpman.pc.in b/userspace/libpman/libpman.pc.in +new file mode 100644 +index 000000000..e5373e87d +--- /dev/null ++++ b/userspace/libpman/libpman.pc.in +@@ -0,0 +1,11 @@ ++prefix=@CMAKE_INSTALL_PREFIX@ ++libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ ++includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ ++ ++Name: libpman ++Description: Utility library for BPF probes ++Version: @FALCOSECURITY_LIBS_VERSION@ ++ ++Requires: libbpf zlib ++Libs: -L${libdir} -lpman -lscap_event_schema -lscap_platform ++Cflags: -I${includedir} +diff --git a/userspace/libscap/CMakeLists.txt b/userspace/libscap/CMakeLists.txt +index 20ac14cdf..c92cf9021 100644 +--- a/userspace/libscap/CMakeLists.txt ++++ b/userspace/libscap/CMakeLists.txt +@@ -90,8 +90,7 @@ target_include_directories( + + target_link_libraries(scap PRIVATE scap_error "${ZLIB_LIB}") + +-add_library( +- scap_event_schema STATIC ++add_library(scap_event_schema + scap_event.c + ppm_sc_names.c + scap_print_event.c +diff --git a/userspace/libscap/libscap.pc.in b/userspace/libscap/libscap.pc.in +index 520020691..e5876b03c 100644 +--- a/userspace/libscap/libscap.pc.in ++++ b/userspace/libscap/libscap.pc.in +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@CMAKE_INSTALL_PREFIX@ + libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ + includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@LIBS_PACKAGE_NAME@ + +@@ -6,5 +6,10 @@ Name: libscap + Description: lib for System CAPture + Version: @FALCOSECURITY_LIBS_VERSION@ + ++# Note: jsoncpp and protobuf are required by scap_engine_gvisor, which ++# currently lacks its own pkg-config file. Similarly, libelf is ++# required by scap_engine_bpf. ++Requires: jsoncpp libelf libpman protobuf ++Requires.private: zlib + Libs: -L${libdir} @LIBSCAP_LINK_LIBDIRS_FLAGS@ @LIBSCAP_LINK_LIBRARIES_FLAGS@ +-Cflags: -I${includedir} ++Cflags: -I${includedir} -I${includedir}/libscap -I${includedir}/driver -I@UTHASH_INCLUDE@ +diff --git a/userspace/libscap/linux/CMakeLists.txt b/userspace/libscap/linux/CMakeLists.txt +index 435c8546c..4047d5430 100644 +--- a/userspace/libscap/linux/CMakeLists.txt ++++ b/userspace/libscap/linux/CMakeLists.txt +@@ -12,8 +12,7 @@ + # or implied. See the License for the specific language governing permissions and limitations under + # the License. + # +-add_library( +- scap_platform STATIC ++add_library(scap_platform + scap_linux_platform.c + scap_linux_hostinfo_platform.c + scap_procs.c +diff --git a/userspace/libsinsp/CMakeLists.txt b/userspace/libsinsp/CMakeLists.txt +index f58b00962..2f963d448 100644 +--- a/userspace/libsinsp/CMakeLists.txt ++++ b/userspace/libsinsp/CMakeLists.txt +@@ -177,12 +177,17 @@ target_link_libraries( + PRIVATE "${CURL_LIBRARIES}" "${JSONCPP_LIB}" "${RE2_LIB}" + ) + ++set(SINSP_PKGCONFIG_REQUIRES jsoncpp) ++set(SINSP_PKGCONFIG_REQUIRES_PRIVATE libcurl re2) ++ + if(NOT EMSCRIPTEN) + target_link_libraries( + sinsp + INTERFACE "${CARES_LIB}" + PRIVATE "${TBB_LIB}" + ) ++ list(APPEND SINSP_PKGCONFIG_REQUIRES libcares) ++ list(APPEND SINSP_PKGCONFIG_REQUIRES_PRIVATE tbb) + endif() + + if(USE_BUNDLED_VALIJSON) +@@ -275,6 +280,12 @@ if(NOT WIN32) + ) + + target_link_libraries(sinsp PRIVATE cri_v1alpha2 cri_v1 containerd_interface) ++ list(APPEND SINSP_PKGCONFIG_REQUIRES ++ gpr ++ grpc ++ grpc++ ++ protobuf ++ libcares) + + if(NOT MUSL_OPTIMIZED_BUILD) + find_library(LIB_ANL anl) +@@ -290,6 +301,8 @@ if(NOT WIN32) + endif() # NOT MINIMAL_BUILD + endif() # NOT APPLE + ++ list(APPEND SINSP_PKGCONFIG_REQUIRES libcrypto libssl) ++ + target_link_libraries(sinsp INTERFACE dl pthread) + + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") +@@ -329,7 +342,8 @@ add_definitions(-DSINSP_AGENT_CGROUP_MEM_PATH_ENV_VAR="${SINSP_AGENT_CGROUP_MEM_ + # https://github.com/curl/curl/blob/curl-7_84_0/CMakeLists.txt#L1539 + set(SINSP_PKG_CONFIG_LIBS) + set(SINSP_PKG_CONFIG_LIBDIRS "") +-add_pkgconfig_dependency(SINSP_PKG_CONFIG_LIBDIRS SINSP_PKG_CONFIG_LIBS sinsp scap) ++add_pkgconfig_dependency(SINSP_PKG_CONFIG_LIBDIRS SINSP_PKG_CONFIG_LIBS sinsp ++ "scap;${SINSP_PKGCONFIG_REQUIRES};${SINSP_PKGCONFIG_REQUIRES_PRIVATE}") + + # Build our pkg-config "Cflags:" flags. + set(SINSP_PKG_CONFIG_INCLUDES "") +@@ -337,6 +351,8 @@ foreach(sinsp_include_directory ${LIBSINSP_INCLUDE_DIRS}) + list(APPEND SINSP_PKG_CONFIG_INCLUDES -I${sinsp_include_directory}) + endforeach() + ++string(REPLACE ";" " " LIBSINSP_REQUIRES "${SINSP_PKGCONFIG_REQUIRES}") ++string(REPLACE ";" " " LIBSINSP_REQUIRES_PRIVATE "${SINSP_PKGCONFIG_REQUIRES_PRIVATE}") + string(REPLACE ";" " " SINSP_PKG_CONFIG_LIBS "${SINSP_PKG_CONFIG_LIBS}") + list(REMOVE_DUPLICATES SINSP_PKG_CONFIG_LIBDIRS) + string(REPLACE ";" " " SINSP_PKG_CONFIG_LIBDIRS "${SINSP_PKG_CONFIG_LIBDIRS}") +diff --git a/userspace/libsinsp/libsinsp.pc.in b/userspace/libsinsp/libsinsp.pc.in +index 38e8e4e0d..9ab103ee1 100644 +--- a/userspace/libsinsp/libsinsp.pc.in ++++ b/userspace/libsinsp/libsinsp.pc.in +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@CMAKE_INSTALL_PREFIX@ + libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ + includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@LIBS_PACKAGE_NAME@ + +@@ -6,6 +6,7 @@ Name: libsinsp + Description: lib for System INSPection + Version: @FALCOSECURITY_LIBS_VERSION@ + +-Requires: libscap +-Libs: -L${libdir} -lsinsp @SINSP_PKG_CONFIG_LIBDIRS@ @SINSP_PKG_CONFIG_LIBS@ +-Cflags: -I${includedir} @SINSP_PKG_CONFIG_INCLUDES@ ++Requires: libscap @LIBSINSP_REQUIRES@ ++Requires.private: @LIBSINSP_REQUIRES_PRIVATE@ ++Libs: -L${libdir} @SINSP_PKG_CONFIG_LIBDIRS@ @SINSP_PKG_CONFIG_LIBS@ ++Cflags: -I${includedir} -I${includedir}/libsinsp -I${includedir}/driver @SINSP_PKG_CONFIG_INCLUDES@ +diff --git a/userspace/libsinsp/test/CMakeLists.txt b/userspace/libsinsp/test/CMakeLists.txt +index fb8c46754..be6420672 100644 +--- a/userspace/libsinsp/test/CMakeLists.txt ++++ b/userspace/libsinsp/test/CMakeLists.txt +@@ -191,7 +191,13 @@ target_include_directories( + ) + + target_link_libraries( +- unit-test-libsinsp sinsp "${GTEST_LIB}" "${GTEST_MAIN_LIB}" "${TBB_LIB}" "${JSONCPP_LIB}" ++ unit-test-libsinsp ++ sinsp ++ "${GRPCPP_LIB}" ++ "${GTEST_LIB}" ++ "${GTEST_MAIN_LIB}" ++ "${TBB_LIB}" ++ "${JSONCPP_LIB}" + ) + + # Add some additional include directories associated with `ADDITIONAL_SINSP_TESTS_SUITE` diff --git a/gnu/packages/patches/falcosecurity-libs-shared-library-fix.patch b/gnu/packages/patches/falcosecurity-libs-shared-library-fix.patch deleted file mode 100644 index 3334a89516..0000000000 --- a/gnu/packages/patches/falcosecurity-libs-shared-library-fix.patch +++ /dev/null @@ -1,50 +0,0 @@ -Fix shared library build. -Upstream status: https://github.com/falcosecurity/libs/pull/1842 - -diff --git a/driver/CMakeLists.txt b/driver/CMakeLists.txt -index 80229cc03..70c9ba65b 100644 ---- a/driver/CMakeLists.txt -+++ b/driver/CMakeLists.txt -@@ -152,6 +152,11 @@ set(DRIVER_SOURCES - ppm_consumer.h - capture_macro.h - socketcall_to_syscall.h -+ syscall_compat_loongarch64.h -+ syscall_compat_ppc64le.h -+ syscall_compat_riscv64.h -+ syscall_compat_s390x.h -+ syscall_compat_x86_64.h - syscall_ia32_64_map.c - ) - -diff --git a/test/libscap/CMakeLists.txt b/test/libscap/CMakeLists.txt -index e88603ebd..fa26ba7ee 100644 ---- a/test/libscap/CMakeLists.txt -+++ b/test/libscap/CMakeLists.txt -@@ -45,6 +45,7 @@ set(LIBSCAP_TESTS_LIBRARIES - "${GTEST_LIB}" - "${GTEST_MAIN_LIB}" - "${CMAKE_THREAD_LIBS_INIT}" -+ "${PROTOBUF_LIB}" - scap - ) - -diff --git a/userspace/libscap/engine/gvisor/CMakeLists.txt b/userspace/libscap/engine/gvisor/CMakeLists.txt -index 6dfbafb14..875847b5d 100644 ---- a/userspace/libscap/engine/gvisor/CMakeLists.txt -+++ b/userspace/libscap/engine/gvisor/CMakeLists.txt -@@ -76,6 +76,14 @@ if (BUILD_SHARED_LIBS) - add_dependencies(scap_engine_gvisor_o uthash) - add_dependencies(scap scap_engine_gvisor_o) - target_sources(scap PRIVATE $<TARGET_OBJECTS:scap_engine_gvisor_o>) -+ -+ target_include_directories(scap_engine_gvisor_o -+ PRIVATE -+ ${CMAKE_BINARY_DIR} -+ ${CMAKE_CURRENT_BINARY_DIR} -+ ${CMAKE_SOURCE_DIR} -+ ${CMAKE_SOURCE_DIR}/userspace -+ ) - else() - add_library(scap_engine_gvisor - ${scap_engine_gvisor_sources} -- 2.47.1
X-Loop: help-debbugs@HIDDEN Subject: [bug#75777] [PATCH 2/2] gnu: sysdig: Update to 0.40.0-alpha2. Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: sharlatanus@HIDDEN, guix-patches@HIDDEN Resent-Date: Thu, 23 Jan 2025 07:34:02 +0000 Resent-Message-ID: <handler.75777.B75777.17376176349586 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75777 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75777 <at> debbugs.gnu.org Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Sharlatan Hellseher <sharlatanus@HIDDEN> X-Debbugs-Original-Xcc: Sharlatan Hellseher <sharlatanus@HIDDEN> Received: via spool by 75777-submit <at> debbugs.gnu.org id=B75777.17376176349586 (code B ref 75777); Thu, 23 Jan 2025 07:34:02 +0000 Received: (at 75777) by debbugs.gnu.org; 23 Jan 2025 07:33:54 +0000 Received: from localhost ([127.0.0.1]:38914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tarir-0002UT-F5 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:33:54 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:48217) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tarii-0002U1-3a for 75777 <at> debbugs.gnu.org; Thu, 23 Jan 2025 02:33:45 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-216281bc30fso12840475ad.0 for <75777 <at> debbugs.gnu.org>; Wed, 22 Jan 2025 23:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737617617; x=1738222417; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/+D4ZOlV93fbj4+tHy8HAJlffT6d+LHUKZMoaIUymu4=; b=HchHmWXYrD9y9tBJs/Xq8iyPNwL2KUGVWYKJgIPK0TgPC8BoZEgb7T8jaBf7M2uza3 lxR50thOmsSgR5fZHL+c2/o6Rpyse+g8OGb4OJsylUs/i1nCq0K6oFX8GBlWpP+/a371 V3sj4TWiCERJ9mCKbdSBtDY3afj1Mr/WnR0inBjulz3NBeN4oJwuLWdf9MlT38cg0IgG IIWv59XvFZtQuO31BGrjlkRMnO01hhWZvMgJKuFh9SShbE/ZDTcfRyPVhGyZVSQEknr3 vapfa43LDm8i6lUfo0vbVV8T387WI6rPOR1G2mt/FkMyEByOoL5D+ikzmRA8aXgfWj5P Yviw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737617617; x=1738222417; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/+D4ZOlV93fbj4+tHy8HAJlffT6d+LHUKZMoaIUymu4=; b=WZze+imcWqg27pfltWyxzmQRHMojXjMqFDlesGDpQ+w+2KYJOuvt9LlYZ/OsvltJ5l bDUJgaAL6WR8s6gGffdFm4e4iQkDU/ykrWV/B4hq9Eo3qWjgNEMgi7jQPfgdgjNGkDsN uUIL2jQ7J1/mOq43x9VJA1eUfTlT9YOucR3LTbbP9DcO+CijAV+bvwO7u3m924kC+op7 W4Gj+5kbqsCdnltFk5jxJgB/I91mE0bIyne1Smc5ZpgwJrvRJA/sGOHhNuzUuBkdVvgi PNquNO0MHym3l+dy7DUJ7vqKvfwQXgeJ/zO7OlyqMluf3GyZiQRQJ+l+4qilqxhcBzbF 48XA== X-Gm-Message-State: AOJu0YzYlN+e8ShRpS7f4EoT+Gv78DcPmgEX48tqLlwwdFIfDcCs0lXi 5iJAPJ99y9HfjbHW0evFi7f/YXRx4pXO6WBdsoT0jg5nke2KQl7YSPK3UA== X-Gm-Gg: ASbGncvS89aVNTOf03z4FHuiiN7eiJoNf4+gWHMLJYtgqNIhTDcukOTWQiDpnt61MMK w3abCTBsnYaRpik1ctzsAlW5Cf5UTmguqLuX/UIFLHY/u6sQImxdLHsn8e2X/WSJeBdJdtLSPON +C7rKTA63Nqx5M39h++fqqugBYnC2731IJi5DNzAGD6o1j/dtKGSpj+fK8hj29IEa0axcTkLFma aEasQKB35fB0q4/X3zY6MpzJtZJBnvzbW8NSGDIRbZOyP0qZVDDYN1hMIqXymDu68vHMPTwp4Nf /mv3yI7D3g0p5+RtK3o/6ac= X-Google-Smtp-Source: AGHT+IGY3XfwOP6qGdm4bR1bV19JUJmc8t6pDZ/lg9dos94RFb5qI8s3rmepk/esTr09r6ktFAkmWw== X-Received: by 2002:a05:6a20:841b:b0:1e1:af74:a236 with SMTP id adf61e73a8af0-1eb214de89emr37353212637.21.1737617616946; Wed, 22 Jan 2025 23:33:36 -0800 (PST) Received: from localhost.localdomain ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd30d1fdsm12165749a12.60.2025.01.22.23.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 23:33:36 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Date: Thu, 23 Jan 2025 16:33:19 +0900 Message-ID: <74ab6338a45e112933ce4148b1e4fc83153a9116.1737617441.git.maxim.cournoyer@HIDDEN> X-Mailer: git-send-email 2.47.1 In-Reply-To: <cover.1737617441.git.maxim.cournoyer@HIDDEN> References: <cover.1737617441.git.maxim.cournoyer@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) (Also add the missing 2024 copyright year). * gnu/packages/admin.scm (sysdig): Update to 0.40.0-alpha2. * gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch: Rebase patch. * gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: I2fc91baf52aebf283615a8989e841687c6033602 --- gnu/local.mk | 1 + gnu/packages/admin.scm | 77 +++++++++---------- .../sysdig-falcosecurity-libs-0.20.patch | 54 +++++++++++++ .../sysdig-shared-falcosecurity-libs.patch | 34 ++++---- 4 files changed, 106 insertions(+), 60 deletions(-) create mode 100644 gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch diff --git a/gnu/local.mk b/gnu/local.mk index de2e42cd79..f93b61a346 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2238,6 +2238,7 @@ dist_patch_DATA = \ %D%/packages/patches/slim-display.patch \ %D%/packages/patches/slurm-23-salloc-fallback-shell.patch \ %D%/packages/patches/stex-copy-from-immutable-store.patch \ + %D%/packages/patches/sysdig-falcosecurity-libs-0.20.patch \ %D%/packages/patches/sysdig-shared-falcosecurity-libs.patch \ %D%/packages/patches/syslinux-gcc10.patch \ %D%/packages/patches/syslinux-strip-gnu-property.patch \ diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 89879bf486..a789c5c47b 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike@HIDDEN> ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@HIDDEN> ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@HIDDEN> -;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@HIDDEN> +;;; Copyright © 2021-2025 Maxim Cournoyer <maxim.cournoyer@HIDDEN> ;;; Copyright © 2021, 2023, 2024 Zheng Junjie <873216071@HIDDEN> ;;; Copyright © 2021 Stefan Reichör <stefan@HIDDEN> ;;; Copyright © 2021 qblade <qblade@HIDDEN> @@ -5990,44 +5990,41 @@ (define-public seatd (license license:expat))) (define-public sysdig - ;; Use the latest commit for now, as the latest 0.36.1 release does not yet - ;; support the falcosecurity-libs 0.16 API. - (let ((commit "598ad292b659425e475e5814d9e92c3c29188480") - (revision "0")) - (package - (name "sysdig") - (version (git-version "0.36.1" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/draios/sysdig") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0yyins3rb286dfibadfwwp2gwmdj7fsz3pdkpdvx05yvdqfkqds7")) - (patches - (search-patches "sysdig-shared-falcosecurity-libs.patch")))) - (build-system cmake-build-system) - (arguments - (list #:tests? #f ;no test suite - #:configure-flags - #~(list "-DUSE_BUNDLED_DEPS=OFF" - ;; Already built and part of falcosecurity-libs, but - ;; needed for the 'HAS_MODERN_BPF' define. - "-DBUILD_SYSDIG_MODERN_BPF=ON" - #$(string-append "-DSYSDIG_VERSION=" version)))) - (native-inputs (list pkg-config)) - (inputs - (list falcosecurity-libs - luajit - ncurses - nlohmann-json - yaml-cpp - zlib)) - (home-page "https://github.com/draios/sysdig") - (synopsis "System exploration and troubleshooting tool") - (description "Sysdig is a simple tool for deep system visibility, with + (package + (name "sysdig") + (version "0.40.0-alpha2") ;for the 0.20 patch to apply + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/draios/sysdig") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "071xbyp9ykjb6wh9n7c8qw3iq0r8wz58xkf1r8p3x84mn674ibm6")) + (patches + (search-patches "sysdig-shared-falcosecurity-libs.patch" + "sysdig-falcosecurity-libs-0.20.patch")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;no test suite + #:configure-flags + #~(list "-DUSE_BUNDLED_DEPS=OFF" + ;; Already built and part of falcosecurity-libs, but + ;; needed for the 'HAS_MODERN_BPF' define. + "-DBUILD_SYSDIG_MODERN_BPF=ON" + #$(string-append "-DSYSDIG_VERSION=" version)))) + (native-inputs (list pkg-config)) + (inputs + (list falcosecurity-libs + luajit + ncurses + nlohmann-json + yaml-cpp + zlib)) + (home-page "https://github.com/draios/sysdig") + (synopsis "System exploration and troubleshooting tool") + (description "Sysdig is a simple tool for deep system visibility, with native support for containers. It combines features of multiple system administration tools such as the @command{strace}, @command{tcpdump}, @command{htop}, @command{iftop} and @command{lsof} into a single interface. @@ -6045,7 +6042,7 @@ (define-public sysdig alias sysdig=sudo sysdig --modern-bpf alias cysdig=sudo csysdig --modern-bpf ") ;XXX no @example Texinfo support - (license license:asl2.0)))) + (license license:asl2.0))) (define-public fail2ban (package diff --git a/gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch b/gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch new file mode 100644 index 0000000000..cba7b4afe1 --- /dev/null +++ b/gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch @@ -0,0 +1,54 @@ +Upstream-status: Merged but not yet released. + +diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake +index 64d387477..c4db6037a 100644 +--- a/cmake/modules/falcosecurity-libs.cmake ++++ b/cmake/modules/falcosecurity-libs.cmake +@@ -22,7 +22,7 @@ option(USE_BUNDLED_FALCOSECURITY_LIBS + + if(NOT USE_BUNDLED_FALCOSECURITY_LIBS) + find_package(PkgConfig REQUIRED) +- pkg_check_modules(LIBSINSP REQUIRED IMPORTED_TARGET libsinsp) ++ pkg_check_modules(LIBSINSP REQUIRED IMPORTED_TARGET libsinsp>=0.20.0) + message(STATUS "Found libsinsp: + include: ${LIBSINSP_INCLUDE_DIRS} + lib: ${LIBSINSP_LIBRARIES} +@@ -47,8 +47,8 @@ else() + # In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable - + # ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..` + if(NOT FALCOSECURITY_LIBS_VERSION) +- set(FALCOSECURITY_LIBS_VERSION "0.19.0") +- set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=77c38b45c8b29c4da4f8ce49da68278b347a403ff1075307ff0cf540596303ac") ++ set(FALCOSECURITY_LIBS_VERSION "0.20.0") ++ set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=4ae6ddb42a1012bacd88c63abdaa7bd27ca0143c4721338a22c45597e63bc99d") + endif() + + # cd /path/to/build && cmake /path/to/source +diff --git a/userspace/chisel/chisel_api.cpp b/userspace/chisel/chisel_api.cpp +index 04fcb60be..53c02e3f5 100644 +--- a/userspace/chisel/chisel_api.cpp ++++ b/userspace/chisel/chisel_api.cpp +@@ -842,10 +842,10 @@ int lua_cbacks::get_thread_table_int(lua_State *ls, bool include_fds, bool bareb + lua_pushnumber(ls, (uint32_t)tinfo.m_fdlimit); + lua_settable(ls, -3); + lua_pushliteral(ls, "uid"); +- lua_pushnumber(ls, (uint32_t)tinfo.m_user.uid()); ++ lua_pushnumber(ls, (uint32_t)tinfo.m_uid); + lua_settable(ls, -3); + lua_pushliteral(ls, "gid"); +- lua_pushnumber(ls, (uint32_t)tinfo.m_group.gid()); ++ lua_pushnumber(ls, (uint32_t)tinfo.m_gid); + lua_settable(ls, -3); + lua_pushliteral(ls, "nchilds"); + lua_pushnumber(ls, (uint32_t)tinfo.get_num_not_leader_threads()); +@@ -872,8 +872,9 @@ int lua_cbacks::get_thread_table_int(lua_State *ls, bool include_fds, bool bareb + // + // Extract the user name + // ++ auto user = tinfo.get_user(); + lua_pushliteral(ls, "username"); +- lua_pushstring(ls, tinfo.m_user.name().c_str()); ++ lua_pushstring(ls, user->name); + lua_settable(ls, -3); + + // diff --git a/gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch b/gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch index 5d0fd4d1fb..1fa331ad0d 100644 --- a/gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch +++ b/gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch @@ -1,14 +1,16 @@ Upstream status: https://github.com/draios/sysdig/pull/2093 diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake -index 7cee8a3c4..dd59c1b32 100644 +index 61782da69..14b13ce24 100644 --- a/cmake/modules/falcosecurity-libs.cmake +++ b/cmake/modules/falcosecurity-libs.cmake -@@ -16,6 +16,19 @@ +@@ -16,6 +16,21 @@ # limitations under the License. # -+option(USE_BUNDLED_FALCOSECURITY_LIBS "Enable building of the bundled falcosecurity libraries" ${USE_BUNDLED_DEPS}) ++option(USE_BUNDLED_FALCOSECURITY_LIBS ++ "Enable building of the bundled falcosecurity libraries" ++ ${USE_BUNDLED_DEPS}) + +if(NOT USE_BUNDLED_FALCOSECURITY_LIBS) + find_package(PkgConfig REQUIRED) @@ -25,18 +27,10 @@ index 7cee8a3c4..dd59c1b32 100644 set(FALCOSECURITY_LIBS_CMAKE_WORKING_DIR "${CMAKE_BINARY_DIR}/falcosecurity-libs-repo") diff --git a/userspace/sysdig/CMakeLists.txt b/userspace/sysdig/CMakeLists.txt -index 60f8072ad..0cb179ccc 100644 +index c1602d543..cd2e08f4c 100644 --- a/userspace/sysdig/CMakeLists.txt +++ b/userspace/sysdig/CMakeLists.txt -@@ -20,7 +20,6 @@ if(NOT WIN32) - include(ncurses) - endif() # NOT WIN32 - --include(zlib) - include(luajit) - - include_directories("${PROJECT_BINARY_DIR}/userspace/sinspui") -@@ -84,6 +83,12 @@ if(USE_BUNDLED_DEPS) +@@ -84,6 +84,12 @@ if(USE_BUNDLED_DEPS) add_dependencies(csysdig luajit) endif() @@ -49,16 +43,16 @@ index 60f8072ad..0cb179ccc 100644 target_include_directories( sysdig PUBLIC -@@ -108,7 +113,7 @@ if(NOT WIN32) +@@ -106,7 +112,7 @@ if(NOT WIN32) include_directories(${PROJECT_BINARY_DIR}/driver/src) target_link_libraries(sysdig - sinsp + "${SINSP_LIB}" "${LUAJIT_LIB}" - "${YAMLCPP_LIB}") + yaml-cpp) -@@ -117,7 +122,7 @@ if(NOT WIN32) +@@ -115,7 +121,7 @@ if(NOT WIN32) endif() target_link_libraries(csysdig @@ -66,19 +60,19 @@ index 60f8072ad..0cb179ccc 100644 + "${SINSP_LIB}" "${LUAJIT_LIB}" "${CURSES_LIBRARIES}" - "${YAMLCPP_LIB}") -@@ -140,12 +145,12 @@ else() + yaml-cpp) +@@ -138,12 +144,12 @@ else() add_definitions(-DNOCURSESUI) target_link_libraries(sysdig - sinsp + "${SINSP_LIB}" "${LUAJIT_LIB}" - "${YAMLCPP_LIB}") + yaml-cpp) target_link_libraries(csysdig - sinsp + "${SINSP_LIB}" "${LUAJIT_LIB}" - "${YAMLCPP_LIB}") + yaml-cpp) -- 2.47.1
Received: (at control) by debbugs.gnu.org; 13 Feb 2025 02:21:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 21:21:02 2025 Received: from localhost ([127.0.0.1]:39114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tiOqb-0002f5-OY for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 21:21:02 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:44412) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1tiOqZ-0002eo-2J for control <at> debbugs.gnu.org; Wed, 12 Feb 2025 21:20:59 -0500 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2fc1843495eso41267a91.1 for <control <at> debbugs.gnu.org>; Wed, 12 Feb 2025 18:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739413252; x=1740018052; darn=debbugs.gnu.org; h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=OWGs8D776+7spYOMKSpzY5ZhsNFntIe6iyZERi2M3yE=; b=P7wBc9YmW7sM4Nmyr2AAT/K/+BQbzXpUkD704oNbdAhQRRX3Sqz6stIbrDTxCUwBHK tcS6n1TarepaNF4YxxlpkpOMARuqMIXs4eetvJLmeoalx3yLKxGPuPHDfJEmzEYr/8ua k5VGI+1Pmf3zLA3rqquhC0UFXjBnDm+QzLb+NH0TdglSokkWKBG9cVE2wQ0T6qJV843B CKYlxH39NUIrpEl7eyWqkghM1ZPw3FZB6lIE3ydMu0OCoRe+Bfr6465hjfF+0p2r+lG4 f460kBtlAffcpOgk8BN07Gw6KdzWhH/G1XlUIJPAma06IfYrl+wNw18uy+Aji32YCve7 Tlsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739413252; x=1740018052; h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OWGs8D776+7spYOMKSpzY5ZhsNFntIe6iyZERi2M3yE=; b=q8TYt/wi1eo2RImygHgZcVgI4/J4OtA1xSubG2Z84t4uHxqhvooq0Y/TGlpO2PSGqy c9chtqtW/3YlP1OaPeBk1/Qo9eQfhElY/qFFLc3ZcHWeq0pAVgM8MgrToHwDrC2AOcte cod5Kn8Kyjq2jcXyZlGuwtZNCBjye4h3aZS7Cjw1HtET1koKLsNF/8HFDEIgNT4VknRi x00gnnFt17GnK8SoXdeGENcuUjB80Y73XiA2eIbX1NkP1pKK8BOwM/PsP+1cCFytlLg4 NRJs869fw9ZwNTfj77dh+SkksBYIIkX48GRe7GYhxxsZKv7HsYvznL9UyYlXZLAIutEu C18g== X-Gm-Message-State: AOJu0YxGkPkOV6fcmfGXaPo3gJ8CgoLdqynzLp+X3Da2RIS7GH7fAtEZ kdvd/YUrKCZ9hB/6yvbMOik3hwptmNSr82uFdbpX+way3idG8h75qEjcbQ== X-Gm-Gg: ASbGncugO3frpvc4++fzf+rq0hIVememh0+WCA2YTzWFBfQw4e3jsIlUYiCyDm729VO kFSF3JiiMb0WwVSSxf2f357OO4EmUZFxUXoq3irbg9WfpM9l2jzhTzVA+2BDcDFLqXd8ikhAVdB y8XjMiR1d2pXlkVHvO7ixV1n68p9SFlDBrvDnXbGxxDcOL5LSzXatcD/s6paBrKDbjj5UxccKwR 9p6jWru5ZlcCFbsVYFa8fqgtc68rQBqfqr75TSjyl5+3bga0/68R254dQcM9MQBU/Ha1uP3g3k4 ot2ODOSxFhhZ X-Google-Smtp-Source: AGHT+IF7tFKZtR6V6jAT6uqeelMISu1eZGjFgkZSP120OFazH7TiVvBdHSVpSMqps3irAkMOdjwzFw== X-Received: by 2002:a17:90b:1b45:b0:2fa:15ab:4df1 with SMTP id 98e67ed59e1d1-2fbf8c4fa79mr7030586a91.8.1739413252055; Wed, 12 Feb 2025 18:20:52 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fbf9aaf626sm2160848a91.40.2025.02.12.18.20.49 for <control <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 18:20:51 -0800 (PST) Date: Thu, 13 Feb 2025 11:20:38 +0900 Message-Id: <87cyfmoaa1.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Subject: control message for bug #75777 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) close 75777 quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.