From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eGNaBjqzMWMjewAAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 16:12:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UAA7BjqzMWN7JAEAauVa8A (envelope-from ) for ; Mon, 26 Sep 2022 16:12:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CE1D51EC83 for ; Mon, 26 Sep 2022 16:12:09 +0200 (CEST) Received: from localhost ([::1]:54448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocoq8-0004uq-St for larch@yhetil.org; Mon, 26 Sep 2022 10:12:08 -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 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664201529; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=9fEW+FvHP8fXCCMrynIEr8oRM9M4xKcMnierl5p9z00=; b=DgzHPw4dtTYhvv8jAUYvCDyQzg0jwtX/rgZ3Tv8Izx0ZhnXNFZG47Za/Til0qMRz1GHQSj Nd20EUPTtCkMHy2iltsm2MCdY1HY1PN9v8u5sh/HqLzs1clJ6vp83OZTS1q11Ldd18uLx5 sHR0TWgfTalgpFS+Ql31Vn7oI40YYso1Q96PnrfO9bjhamL51S4zv32XY614owY9Gb+4v7 ptIweBQA5TYfE5kpoTuRuwmU6utwdOGFRwQx4D7UVLWqY5vMYhKbjm37PkP4xjfOWB5Kj+ fP1NfXU7c2EhM5cbUmE3+JHcjpKQ9FDYZN53Ong0MQ54mZEAq89U3hGkCWrCqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664201529; a=rsa-sha256; cv=none; b=fxAS195b2/ri30oKjDFaFNjKIK4i+NAQ7WSaUVx8un6NQ4AV3lx4aNMYjgR9+teHO4KAuj wjYTSxRKdlFCKOBs8UV3UXuR+XHhHFAuSqrzc7yZQoFQWyItOq1HjOv17SpjtNw780vNRY KUi8ZsSr24+mKI/YcDiLqOMyBKSd+/e1iMdyDNLYp6P3/Zj9Q+6MpLg+r3RU2WamxSlkKP fXoAElADACm8G/O2DE9tyeZxA89tt79Q0XcLLtueEqpGvtkuO4ALKlZO1GsTa2aulaXQ1Z tu4bR9yiUGjlLYP4KetlgM7swkWVWTWgoTq60AYEeZFb/px7moOK2qtwDZtrdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XgYqbveO; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XgYqbveO; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CE1D51EC83 X-Spam-Score: -2.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2R73ZNjYx0Lz > * gnu/packages/instrumentation.scm (libpatch): New variable. Applied with the following diff: --8<---------------cut here---------------start------------->8--- 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. --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu