From patchwork Mon Sep 26 13:33:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 42949 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AD41327BBF1; Mon, 26 Sep 2022 15:12:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 075A127BBE9 for ; Mon, 26 Sep 2022 15:12:13 +0100 (BST) Received: from localhost ([::1]:54448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocoqB-0004uq-Tg for patchwork@mira.cbaines.net; Mon, 26 Sep 2022 10:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocoFI-0005r9-A1 for guix-patches@gnu.org; Mon, 26 Sep 2022 09:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocoFI-0004li-1Z for guix-patches@gnu.org; Mon, 26 Sep 2022 09:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocoFH-0005oc-SW for guix-patches@gnu.org; Mon, 26 Sep 2022 09:34:03 -0400 Subject: bug#58045: [PATCH] gnu: Add libpatch. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 26 Sep 2022 13:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion Cc: 58045-done@debbugs.gnu.org Mail-Followup-To: 58045@debbugs.gnu.org, othacehe@gnu.org, olivier.dion@polymtl.ca Received: via spool by 58045-done@debbugs.gnu.org id=D58045.166419924122325 (code D ref 58045); Mon, 26 Sep 2022 13:34:03 +0000 Received: (at 58045-done) by debbugs.gnu.org; 26 Sep 2022 13:34:01 +0000 Received: from localhost ([127.0.0.1]:49695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocoFE-0005nx-Pj for submit@debbugs.gnu.org; Mon, 26 Sep 2022 09:34:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocoFA-0005nW-1g for 58045-done@debbugs.gnu.org; Mon, 26 Sep 2022 09:33:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocoF4-0004k7-Da; Mon, 26 Sep 2022 09:33:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=9fEW+FvHP8fXCCMrynIEr8oRM9M4xKcMnierl5p9z00=; b=XgYqbveOC2oF0laLA+ta sBj3bBGHKhKti0213BejlgeYDU8y9U8mBlGqj9Kj6ONiUvrF8VcHFvAu7BbTKmb2o69akXA5Pqtn0 ijMxByVw5TzodQsvLlIn9dcEYDO6jXYzD2iHegcy2Ks7yiOJ9814U1Hz1ENz1S0SPPVEIuC2gUOfa cxfzf/VTh+LxtJ/B0bNAv6v9SjjPTKm23c0Qs3pIhg5kAnkoZEY9PHjhzvJ8KMjyxcT0zNOSDMc0x Jgq0uofgYFCSgvg/UqjIWp36g+f5Z6lXR0fIe0uh1+2Tp0Uh9c5SCo86Y0ZI7/70ZIB8odEbIF64h TjxqQNqMB6KMEw==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775]:51508 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocoF3-0004xv-Pr; Mon, 26 Sep 2022 09:33:50 -0400 From: Mathieu Othacehe References: <3400e6a50d528e085834f77e7159607f22d9b8b9.1664037413.git.olivier.dion@polymtl.ca> Date: Mon, 26 Sep 2022 15:33:46 +0200 In-Reply-To: <3400e6a50d528e085834f77e7159607f22d9b8b9.1664037413.git.olivier.dion@polymtl.ca> (Olivier Dion's message of "Sat, 24 Sep 2022 12:38:15 -0400") Message-ID: <87zgemqmyt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches > * gnu/packages/instrumentation.scm (libpatch): New variable. Applied with the following diff: --8<---------------cut here---------------start------------->8--- --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index b611f2b141..3d6b6fab38 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -233,28 +233,25 @@ (define-public libpatch (or (%current-target-system) (%current-system)))))))) + ;;; Add lttng-ust to the inputs if you want tracepoints within libpatch + ;;; for debugging. (inputs (list capstone elfutils - ;; Uncomment the following if you want tracepoints within libpatch - ;; for debugging. - ;; - ;; lttng-ust libunwind liburcu)) (native-inputs (list coreutils ;; test-ftrace.scm (list coreutils "debug") + (list guile-3.0 "debug") + (list gnu-make "debug") + ;; For eu-nm in test-ftrace.scm. (list elfutils "bin") - ;; Put Guile in your profile if you want to use the bindings. + guile-3.0 - ;; test-ftrace.scm - (list guile-3.0 "debug") gnu-make - ;; test-ftrace.scm - (list gnu-make "debug") pkg-config ;; zlib is required by libdw. This can be removed if zlib is put ;; as a propagated-input of elfutils.