From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53324@debbugs.gnu.org Cc: Olivier Dion X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164244724321445 (code B ref -1); Mon, 17 Jan 2022 19:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2022 19:20:43 +0000 Received: from localhost ([127.0.0.1]:48026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XYY-0005Zp-MW for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:20:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:41734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XYS-0005Zc-5q for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:20:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9XYL-0003ym-V9 for guix-patches@gnu.org; Mon, 17 Jan 2022 14:20:32 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:33093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9XYJ-0002Tn-FF for guix-patches@gnu.org; Mon, 17 Jan 2022 14:20:29 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20HJKAft013652 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 17 Jan 2022 14:20:18 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20HJKAft013652 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1642447218; bh=HYLhrxOEJ1nvAS5TlrYeN+Fd2T07oRxFOFxPVuMjdH8=; h=From:To:Cc:Subject:Date:From; b=qQeW8BfTegvcPU0P9wS9PfAs6vN4djP914nCJbtvvaoQm67uGAU9lcwHWUSA1fXHK DTtTZBpfr+LuawLSvI97/Y1Riv0PKiaLIYUGB5BiQ7eWibyy45xFkS3cx5QIth08Vs DxPifgeAnpVasXy5iiPed+T41boKJbiz+0WvRb8g= From: Olivier Dion Date: Mon, 17 Jan 2022 14:20:09 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 17 Jan 2022 19:20:10 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/instrumentation.scm: (uftrace): New variable. --- gnu/packages/instrumentation.scm | 68 +++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 86b80d65ec..9aafc28181 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -23,11 +23,16 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) + #:use-module (gnu packages engineering) #:use-module (gnu packages flex) #:use-module (gnu packages glib) + #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages lua) #:use-module (gnu packages man) + #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) @@ -43,7 +48,8 @@ (define-module (gnu packages instrumentation) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) - #:use-module (guix packages)) + #:use-module (guix packages) + #:use-module (guix utils)) (define-public babeltrace (package @@ -238,3 +244,63 @@ (define-public lttng-tools line for tracing control, a @code{lttng-ctl} library for tracing control and a @code{lttng-relayd} for network streaming.") (license (list license:gpl2 license:lgpl2.1)))) + +(define-public uftrace + (package + (name "uftrace") + (version "0.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/namhyung/uftrace") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gk0hv3rnf5czvazz1prg21rf9qlniz42g5b389n8a29hqj4q6xr")))) + (build-system gnu-build-system) + (arguments `(#:make-flags + (list + (string-append "CC=" ,(cc-for-target))) + ;; runtest hang at some point -- probably dues to + ;; failed socket connection -- but we want to keep the + ;; unit tests. Change the target to "test" when fixed. + #:test-target "unittest" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "SHELL" (which "sh")) + (invoke "./configure" + (string-append "--prefix=" + (assoc-ref outputs "out"))))) + + (add-after 'unpack 'patch-python-shebangs + (lambda _ + (let ([python (which "python3")]) + (for-each (lambda (path) + (substitute* path + (("/usr/bin/env python") python))) + (cons "misc/gen-autoargs.py" + (find-files "tests" "\\.py$"))))))))) + ;; NOTE! User should add python-3 and luajit to their profile if they + ;; want to do scripting. + (propagated-inputs + (list + capstone + elfutils + libunwind + ncurses)) + (native-inputs + (list + luajit + pandoc + pkg-config + python-3)) + (home-page "https://github.com/namhyung/uftrace") + (synopsis "Function graph tracer for C/C++/Rust") + (description "uftrace is a tool for tracing and analyzing the execution of +programs written in C/C++. It is heavily inspired by the ftrace framework of +the Linux kernel, while supporting userspace programs. It supports various +kind of commands and filters to help analysis of the program execution and +performance. It provides the command @command{uftrace}.") + (license license:gpl2))) -- 2.34.0 From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164244807731455 (code B ref 53324); Mon, 17 Jan 2022 19:35:02 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 19:34:37 +0000 Received: from localhost ([127.0.0.1]:48065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xm1-0008BF-02 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:34:37 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:49346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xlz-0008B6-8X for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 14:34:35 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by laurent.telenet-ops.be with bizsmtp id jvaZ2600E3J72EA01vaZdl; Mon, 17 Jan 2022 20:34:34 +0100 Message-ID: From: Maxime Devos Date: Mon, 17 Jan 2022 20:34:33 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-eebdTF39qaSMtcSVKSL9" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642448074; bh=MRbH5CzKW9SpUJz9lQhmNLjv4IoewxUOwt7OfcZluYw=; h=Subject:From:To:Date:In-Reply-To:References; b=KKd+H4fHkEaTUNNkxccklSgmhOj+PxAIerMir55TMkXsTmLD2lDpD8ojg8hNZiJC/ dJS31tC5hdJWsQRAMWTNGlUiElZsjA1jIxiQlm+QCMbZPKNPMyZZOaQDG3QznQ9y14 tTN24809/ymdGmtid7zpFfAhQuqgXImEaDUooM3Z8vyxFETWFdTMT++7buD17WoZSs zOtnb3CJQ1ETaPXL4eXkWy/Pa62MhOWu3ZiwSP8dZSNz39YhH9GRbGKHj23cxELhbe wW5GFGzoQVTzeW1lA0gxzEq6r8taUQg9xfVnzRIpPG3lzsqpNT1vCgumloZQuuMXJy cH5MLGEjhK4wg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-eebdTF39qaSMtcSVKSL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Olivier Dion via Guix-patches via schreef op ma 17-01-2022 om 14:20 [- 0500]: > +=C2=A0=C2=A0=C2=A0 ;; NOTE!=C2=A0 User should add python-3 and luajit to= their profile if they > +=C2=A0=C2=A0=C2=A0 ;; want to do scripting. This information seems more suite for =E2=80=98description=E2=80=99 > +=C2=A0=C2=A0=C2=A0 (propagated-inputs > +=C2=A0=C2=A0=C2=A0=C2=A0 (list > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 capstone > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 elfutils > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 libunwind > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ncurses)) Do these need to be propagated, or can the propagation be avoided with sufficient application of 'substitute*'? Propagation can cause profile collisions which can be difficult to resolve. > + ncurses)) If 'ncurses' is used (and depropagated), you probably need to add the search paths of ncurses (TERMINFO_DIRS) to make sure Guix knows to set TERMINFO_DIRS. Greetings, Maxime. --=-eebdTF39qaSMtcSVKSL9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeXEyRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lxhAQDpdINPrkmxEgoAzmmFafWWjjtm 81RkMeGQ86PTGXeS6gD+JKuBdgB+BW6dLmIMN8VFuYtKCWmrqoybDxqg0jJyYQI= =aFDD -----END PGP SIGNATURE----- --=-eebdTF39qaSMtcSVKSL9-- From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 19:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164244838531920 (code B ref 53324); Mon, 17 Jan 2022 19:40:01 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 19:39:45 +0000 Received: from localhost ([127.0.0.1]:48075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xqz-0008Im-1f for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:39:45 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:34542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xqu-0008Ia-8e for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 14:39:43 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by albert.telenet-ops.be with bizsmtp id jvfe260083J72EA06vfevd; Mon, 17 Jan 2022 20:39:38 +0100 Message-ID: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> From: Maxime Devos Date: Mon, 17 Jan 2022 20:39:37 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-lMILVuNVNDa4BpccaMS+" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642448378; bh=40BLkQLl6+mmyMvaR2FUP9V/RU1AGQyk81PdITSueXU=; h=Subject:From:To:Date:In-Reply-To:References; b=C9sLOt+uSkONZCtORzr0YFKECHQvkbU0uElV9oAvs9DKGhuKVKidsvpGXL8COl6IG J+htk9E42YBGU1A5SCHe53swy9C3fOcSwhIQ8i329K4rWkJsbLvsaUaYw4dNo7PidQ y4BMczfAoQbHjkiCiHhbv2vXntkuokOi57DaFU0fymutaZMpZp3CbrU1c8dPJ1uDTD n5P0UM/0Dl+EJuydUgaE74H/JWOVHvsF8VRAcCNdlWOd/RooedG0NKqvSFK/W+TQOY FPYyjtFffujqxXDjBdo6Tg+1q7Y28gD2cv6siJ9AdbtLot7VoL+ZAbVVpGVDGLFZ2h qx5nZOJRYlGmA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-lMILVuNVNDa4BpccaMS+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 T2xpdmllciBEaW9uIHZpYSBHdWl4LXBhdGNoZXMgdmlhIHNjaHJlZWYgb3AgbWEgMTctMDEtMjAy MiBvbSAxNDoyMCBbLQowNTAwXToKPiArICAgICAgICAgICAgICAgICAgICAgICAoaW52b2tlICIu L2NvbmZpZ3VyZSIgWy4uLl0KCkxvb2tpbmcgYXQgdGhlIGNvbmZpZ3VyZSBzY3JpcHQsIGZvciBj cm9zcy1jb21waWxhdGlvbiwgeW91IG5lZWQgdG8gc2V0Ci0tYXJjaCBhbmQgLS1jcm9zcy1jb21w aWxlLgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCj4gK8KgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChsZXQgKFtweXRob24gKHdoaWNoICJweXRob24z IildKQoKR3VpeCBkb2Vzbid0IHVzZSBbIHNxdWFyZSBicmFja2V0cyBdLgoKPiArwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChmb3ItZWFjaCAobGFtYmRh IChwYXRoKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKHN1YnN0aXR1dGUqIHBhdGgKPiArwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoCAoKCIvdXNyL2Jpbi9lbnYgcHl0aG9uIikgcHl0aG9uKSkpCj4gK8KgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgIChjb25zICJtaXNjL2dlbi1hdXRvYXJncy5weSIKCklmIHlvdSB1c2UgJ3B5dGhvbi13cmFw cGVyJyBpbnN0ZWFkIG9mICdweXRob24zJywgdGhlbiB0aGUKJ3BhdGNoLXNoZWJhbmdzJyBwaGFz ZSBzaG91bGQgdGFrZSBjYXJlIG9mIHRoaXMgYXV0b21hdGljYWxseS4KCgo= --=-lMILVuNVNDa4BpccaMS+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeXF+RccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7o4XAP9wOOY+obsRRm3cDBoEfl7dZIof cGgZio2QgXEck8VRhwEAgN7p0vC3vr3WG49ykk7fkTpSW9IXNaLIAtck66okdAg= =gz9J -----END PGP SIGNATURE----- --=-lMILVuNVNDa4BpccaMS+-- From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164245337416412 (code B ref 53324); Mon, 17 Jan 2022 21:03:01 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 21:02:54 +0000 Received: from localhost ([127.0.0.1]:48232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Z9S-0004Ge-ET for submit@debbugs.gnu.org; Mon, 17 Jan 2022 16:02:54 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:59258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Z9P-0004Fu-OZ for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 16:02:53 -0500 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20HL2eDp008051 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jan 2022 16:02:45 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20HL2eDp008051 From: Olivier Dion In-Reply-To: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> References: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> Date: Mon, 17 Jan 2022 16:02:40 -0500 Message-ID: <87h7a2vzwv.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 17 Jan 2022 21:02:40 +0000 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mon, 17 Jan 2022, Maxime Devos wrote: > Olivier Dion via Guix-patches via schreef op ma 17-01-2022 om 14:20 [- > 0500]: >> + (invoke "./configure" [...] > > Looking at the configure script, for cross-compilation, you need to set > --arch and --cross-compile. >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ([pyth= on (which "python3")]) Thanks for the quick review! I'm in the process of adding cross compilation (currently building for aarch64). In the mean time, would you have an idea on how to fix __FILE__ for the build? uftrace uses it for logging and it ends up expanding to `/tmp/guix-build*/source/*`. I tried to change the `srcdir` in the various Makefile without much success. --=20 Olivier Dion Polymtl From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH v2] gnu: Add uftrace. References: In-Reply-To: Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53324@debbugs.gnu.org Cc: Olivier Dion Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164245473127246 (code B ref 53324); Mon, 17 Jan 2022 21:26:01 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 21:25:31 +0000 Received: from localhost ([127.0.0.1]:48291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ZVL-00075O-96 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 16:25:31 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:56194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ZVH-000755-F3 for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 16:25:29 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20HLPCA2031873 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 17 Jan 2022 16:25:20 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20HLPCA2031873 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1642454721; bh=PAZLSEFM0EfjSYA27RUza92AicSq2SWtIw71sC7IJhU=; h=From:To:Cc:Subject:Date:From; b=MpSpDJLiQMK1FTEwJlrwz63w509hpSug0s0FSPoLY1G8Z7M8v2RhX8TGP7VXHIPlj nx8u9y7cFw850xWGpUL2BgD1UXY1Il+4His397bIzEPSz0DKzilJoCVHfiP8hC/WHw 3yx8/Dduyz2OOlLCtEGJcF7Yi7F5cC3e+PGVS66I= From: Olivier Dion Date: Mon, 17 Jan 2022 16:25:11 -0500 Message-Id: <444ae3feb5c1de399608abb52ba9238a61019098.1642454641.git.olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 17 Jan 2022 21:25:12 +0000 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/instrumentation.scm: (uftrace): New variable. --- gnu/packages/instrumentation.scm | 72 +++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 86b80d65ec..29c15d1deb 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -23,11 +23,16 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) + #:use-module (gnu packages engineering) #:use-module (gnu packages flex) #:use-module (gnu packages glib) + #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages lua) #:use-module (gnu packages man) + #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) @@ -43,7 +48,8 @@ (define-module (gnu packages instrumentation) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) - #:use-module (guix packages)) + #:use-module (guix packages) + #:use-module (guix utils)) (define-public babeltrace (package @@ -238,3 +244,67 @@ (define-public lttng-tools line for tracing control, a @code{lttng-ctl} library for tracing control and a @code{lttng-relayd} for network streaming.") (license (list license:gpl2 license:lgpl2.1)))) + +(define-public uftrace + (package + (name "uftrace") + (version "0.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/namhyung/uftrace") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gk0hv3rnf5czvazz1prg21rf9qlniz42g5b389n8a29hqj4q6xr")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list + (string-append "CC=" ,(cc-for-target))) + ;; runtest hang at some point -- probably dues to + ;; failed socket connection -- but we want to keep the + ;; unit tests. Change the target to "test" when fixed. + #:test-target "unittest" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs target #:allow-other-keys) + (let ((arch ,(system->linux-architecture + (or (%current-target-system) + (%current-system))))) + (setenv "ARCH" + (cond + ((string=? arch "arm64") "aarch64") + (else arch))) + (when target + (setenv "CROSS_COMPILE" (string-append target "-")))) + (setenv "SHELL" (which "sh")) + (invoke "./configure" + (string-append "--prefix=" + (assoc-ref outputs "out")))))))) + (native-search-paths + (list (search-path-specification + (variable "TERMINFO_DIRS") + (files '("share/terminfo"))))) + (inputs + (list + capstone + elfutils + libunwind + ncurses)) + (native-inputs + (list + luajit + pandoc + pkg-config + python-wrapper)) + (home-page "https://github.com/namhyung/uftrace") + (synopsis "Function graph tracer for C/C++/Rust") + (description "uftrace is a tool for tracing and analyzing the execution of +programs written in C/C++. It is heavily inspired by the ftrace framework of +the Linux kernel, while supporting userspace programs. It supports various +kind of commands and filters to help analysis of the program execution and +performance. It provides the command @command{uftrace}. User that want to do +scripting need to install python-3 or luajit in their profile.") + (license license:gpl2))) -- 2.34.0 From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 21:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164245546028444 (code B ref 53324); Mon, 17 Jan 2022 21:38:01 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 21:37:40 +0000 Received: from localhost ([127.0.0.1]:48318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Zh5-0007Oh-N2 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 16:37:39 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:49828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Zh2-0007OV-Mv for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 16:37:38 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by andre.telenet-ops.be with bizsmtp id jxda260033J72EA01xdaN4; Mon, 17 Jan 2022 22:37:34 +0100 Message-ID: <233bfd5965974c3f33639d28e67210f2462e028b.camel@telenet.be> From: Maxime Devos Date: Mon, 17 Jan 2022 22:37:29 +0100 In-Reply-To: <87h7a2vzwv.fsf@laura> References: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> <87h7a2vzwv.fsf@laura> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-vEnbmX25mbfS66p+6fSr" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642455455; bh=S/u2pmoU2Rxw8oMrf9DJAdJ/T/yHhIxqfRqfuMAj+lg=; h=Subject:From:To:Date:In-Reply-To:References; b=JRQljKOwgtFOwxoXlM/MzyOn/1xr46Siz3tuib6L+qdY2tIZVXltBlJsI0Sv8tj3x bZLIWlhyT1qmB7srDhZBxpp54MxDcl5RqadRlzgYPb2cZ6sFZT/rJODOggMgKKz6Ca qSKXs7a3hWJyjQ4xjX61bCY0PGWlRwfjOwQEQQ0SHbIE7ia/rJMdV1Wg4K4TqstXLZ JWT1oU7YGvx+ssqwaV3boPoxfOC6ta1LdD2Q5oJ7G/boW9D59hnybSq14CPACVFQN+ +RfEq8SVvKcLw52iMnWCRkDkQ3Esb0wGzAEvNWkFesnDQ18UoFnulo3fB0F1DxUBIz ftBGs8z5VCNZg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-vEnbmX25mbfS66p+6fSr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Olivier Dion schreef op ma 17-01-2022 om 16:02 [-0500]: > On Mon, 17 Jan 2022, Maxime Devos wrote: > > Olivier Dion via Guix-patches via schreef op ma 17-01-2022 om 14:20 [- > > 0500]: > > > + (invoke "./configure" [...] > >=20 > > Looking at the configure script, for cross-compilation, you need to set > > --arch and --cross-compile. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > >=20 > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ([p= ython (which "python3")]) >=20 > Thanks for the quick review! I'm in the process of adding cross > compilation (currently building for aarch64). >=20 > In the mean time, would you have an idea on how to fix __FILE__ for the > build? uftrace uses it for logging and it ends up expanding to > `/tmp/guix-build*/source/*`. I tried to change the `srcdir` in the > various Makefile without much success. >=20 Maybe uftrace supports out-of-tree builds? Also, does uftrace try to read /tmp/guix-build*, or does only the file name appear in backtraces? If the latter, it is presumably not much of a problem. If it is, maybe out-of-tree builds could help. Automake supports out-of-tree builds, but I don't know if uftrace's build system does. The review was only a partial review, I didn't actually build uftrace. Greetings, Maxime. --=-vEnbmX25mbfS66p+6fSr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeXhmRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n7+AQD5ZjVGNsWc+yMlDEpeVSb19M+z eXcbkWEwW5bMzE7pBAD9FTt3kTYJ+utNMv+jnJykcUtUaAUDfUAGgiYrd+D/uAY= =Ib6q -----END PGP SIGNATURE----- --=-vEnbmX25mbfS66p+6fSr-- From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 21:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164245654230414 (code B ref 53324); Mon, 17 Jan 2022 21:56:01 +0000 Received: (at 53324) by debbugs.gnu.org; 17 Jan 2022 21:55:42 +0000 Received: from localhost ([127.0.0.1]:48370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ZyY-0007uU-Ea for submit@debbugs.gnu.org; Mon, 17 Jan 2022 16:55:42 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:40345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ZyW-0007uF-GR for 53324@debbugs.gnu.org; Mon, 17 Jan 2022 16:55:41 -0500 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20HLtTsG030305 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jan 2022 16:55:34 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20HLtTsG030305 From: Olivier Dion In-Reply-To: <233bfd5965974c3f33639d28e67210f2462e028b.camel@telenet.be> References: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> <87h7a2vzwv.fsf@laura> <233bfd5965974c3f33639d28e67210f2462e028b.camel@telenet.be> Date: Mon, 17 Jan 2022 16:55:29 -0500 Message-ID: <87ee56vxgu.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 17 Jan 2022 21:55:29 +0000 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mon, 17 Jan 2022, Maxime Devos wrote: > Olivier Dion schreef op ma 17-01-2022 om 16:02 [-0500]: >> On Mon, 17 Jan 2022, Maxime Devos wrote: >> >> In the mean time, would you have an idea on how to fix __FILE__ for >> the build? uftrace uses it for logging and it ends up expanding to >> `/tmp/guix-build*/source/*`. I tried to change the `srcdir` in the >> various Makefile without much success. >> > > Maybe uftrace supports out-of-tree builds? Also, does uftrace try to > read /tmp/guix-build*, or does only the file name appear in > backtraces? If the latter, it is presumably not much of a problem. > If it is, maybe out-of-tree builds could help. Automake supports > out-of-tree builds, but I don't know if uftrace's build system does. It does support out-of-tree build juste like autotool. The configure script however does `readlink -f $(dirname $0)` for its `srcdir`. For example, even if I build at `/tmp/uftrace` where the configure script is at /home/old/documents/polymtl/bmi/uftrace, I will get -------------------------------------------------------------------------------- `uftrace:/home/old/documents/polymtl/bmi/uftrace/cmds/record.c:1571:find_in_path` -------------------------------------------------------------------------------- at runtime. -- Olivier Dion Polymtl From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jan 2022 07:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164249270517715 (code B ref 53324); Tue, 18 Jan 2022 07:59:02 +0000 Received: (at 53324) by debbugs.gnu.org; 18 Jan 2022 07:58:25 +0000 Received: from localhost ([127.0.0.1]:48840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9jNo-0004bb-EO for submit@debbugs.gnu.org; Tue, 18 Jan 2022 02:58:24 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:34788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9jNj-0004bN-IY for 53324@debbugs.gnu.org; Tue, 18 Jan 2022 02:58:23 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id k7yH260034UW6Th017yHFo; Tue, 18 Jan 2022 08:58:17 +0100 Message-ID: <45af4f5ba42d220a527290b07d860d621b224fec.camel@telenet.be> From: Maxime Devos Date: Tue, 18 Jan 2022 07:58:04 +0000 In-Reply-To: <87ee56vxgu.fsf@laura> References: <6856160952d91ecf9887db79e7e0fbb1ca06daba.camel@telenet.be> <87h7a2vzwv.fsf@laura> <233bfd5965974c3f33639d28e67210f2462e028b.camel@telenet.be> <87ee56vxgu.fsf@laura> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Ha2mV3+ZjutK1lfUKPsi" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642492697; bh=tQN5I9GdohP6bmBy5xbBw6eGGqsXDNAzTGxV1ApEzXs=; h=Subject:From:To:Date:In-Reply-To:References; b=NBMuRjKj4b0g2psd0azyeUNpDm4CU4kIslFRL1HHgLFc5NvHYkQBIEwhRlBPzY5B2 xHne3eycuZXBvCFcyRLRd3tL/XNLr8oAhhu1w1jaWDMNCd29fpqha5JkiGA64JcicT kHLBKw3H38lApWizitV4D4DAxsPDCoK9ItleGWO93lWMBet79edOkTRX2Gf9C5TmPu pDbWogKjLxwyeQSxuwyPXGiCYq+H3U2yg12Lx3+Y/DJKeixUtVYnebV+SgXA+ZJAWm 91QHBrT98Q5S6se+AdpyxCwp6MinTPy4cKuvjxir88byCSBJUE3pebxQ7s+f/yhymI 9PREkl1OxOObQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-Ha2mV3+ZjutK1lfUKPsi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Olivier Dion schreef op ma 17-01-2022 om 16:55 [-0500]: > It does support out-of-tree build juste like autotool.=C2=A0 The configur= e > script however does `readlink -f $(dirname $0)` for its `srcdir`. >=20 > For example, even if I build at `/tmp/uftrace` where the configure > script is at /home/old/documents/polymtl/bmi/uftrace, I will get > -------------------------------------------------------------------------= ------- > `uftrace:/home/old/documents/polymtl/bmi/uftrace/cmds/record.c:1571:find_= in_path` > -------------------------------------------------------------------------= ------- > at runtime. That seems to be `srcdir` working as expected, because /home/old/documents/polymtl/bmi/uftrace is the directory with the source code, so I'm not sure what =E2=80=98however=E2=80=99 is doi= ng in =E2=80=98The configure script however does `readlink -f $(dirname $0)` for = its `srcdir`.=E2=80=99. Greetings, Maxime. --=-Ha2mV3+ZjutK1lfUKPsi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeZzDBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hQMAQDRTjskC4HFh2Sz3sZLrZcb8jMI 6GJKUXGV/cNU1ZT4iAD/Tgmy1blkGVMXhM2Xcsnm+gGrPkNl2O+RUalZR1EutAo= =zIrP -----END PGP SIGNATURE----- --=-Ha2mV3+ZjutK1lfUKPsi-- From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164268785318846 (code B ref 53324); Thu, 20 Jan 2022 14:11:01 +0000 Received: (at 53324) by debbugs.gnu.org; 20 Jan 2022 14:10:53 +0000 Received: from localhost ([127.0.0.1]:56912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAY9N-0004tu-3m for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:10:53 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:49962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAY9L-0004ti-Ej for 53324@debbugs.gnu.org; Thu, 20 Jan 2022 09:10:52 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 87F454FD; Thu, 20 Jan 2022 15:10:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C_O6MGrG-VvN; Thu, 20 Jan 2022 15:10:44 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 44FEF63; Thu, 20 Jan 2022 15:10:44 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Thu, 20 Jan 2022 15:10:43 +0100 In-Reply-To: (Maxime Devos's message of "Mon, 17 Jan 2022 20:34:33 +0100") Message-ID: <87y23a7b18.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 87F454FD X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.56)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, Maxime Devos skribis: > Olivier Dion via Guix-patches via schreef op ma 17-01-2022 om 14:20 [- [...] >> + ncurses)) > > If 'ncurses' is used (and depropagated), you probably need to add the > search paths of ncurses (TERMINFO_DIRS) to make sure Guix knows to set > TERMINFO_DIRS. IMO we shouldn=E2=80=99t do that: =E2=80=98TERMINFO_DIRS=E2=80=99 =E2=80=9C= belongs=E2=80=9D to ncurses, and we do not add it to each and every program that depends on ncurses. I understand that not adding =E2=80=98TERMINFO_DIRS=E2=80=99 in uftrace can= be annoying due to , but so far consensus has been to keep search path specs where they belong. Thoughts? Ludo=E2=80=99. From unknown Sat Sep 20 13:00:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Olivier Dion Subject: bug#53324: closed (Re: bug#53324: [PATCH] gnu: Add uftrace.) Message-ID: References: <87tudy7a8t.fsf_-_@gnu.org> X-Gnu-PR-Message: they-closed 53324 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 53324@debbugs.gnu.org Date: Thu, 20 Jan 2022 14:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1642688882-29382-1" This is a multi-part message in MIME format... ------------=_1642688882-29382-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53324: [PATCH] gnu: Add uftrace. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53324@debbugs.gnu.org. --=20 53324: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53324 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642688882-29382-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53324-done) by debbugs.gnu.org; 20 Jan 2022 14:27:56 +0000 Received: from localhost ([127.0.0.1]:56982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYPs-0007da-AP for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:27:56 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:50230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYPq-0007dM-1v for 53324-done@debbugs.gnu.org; Thu, 20 Jan 2022 09:27:54 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6E27E40E; Thu, 20 Jan 2022 15:27:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iO3V2DZ0dJlx; Thu, 20 Jan 2022 15:27:46 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 799073EB; Thu, 20 Jan 2022 15:27:46 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Olivier Dion Subject: Re: bug#53324: [PATCH] gnu: Add uftrace. References: <444ae3feb5c1de399608abb52ba9238a61019098.1642454641.git.olivier.dion@polymtl.ca> Date: Thu, 20 Jan 2022 15:27:46 +0100 In-Reply-To: <444ae3feb5c1de399608abb52ba9238a61019098.1642454641.git.olivier.dion@polymtl.ca> (Olivier Dion's message of "Mon, 17 Jan 2022 16:25:11 -0500") Message-ID: <87tudy7a8t.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 6E27E40E X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; R_MIXED_CHARSET(0.56)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53324-done Cc: 53324-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Olivier Dion skribis: > * gnu/packages/instrumentation.scm: (uftrace): New variable. Applied with the following tweaks. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 29c15d1deb..a58a474a38 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -283,22 +283,16 @@ (define-public uftrace (invoke "./configure" (string-append "--prefix=" (assoc-ref outputs "out")))))))) - (native-search-paths - (list (search-path-specification - (variable "TERMINFO_DIRS") - (files '("share/terminfo"))))) (inputs - (list - capstone - elfutils - libunwind - ncurses)) + (list capstone + elfutils + libunwind + ncurses)) (native-inputs - (list - luajit - pandoc - pkg-config - python-wrapper)) + (list luajit + pandoc + pkg-config + python-wrapper)) (home-page "https://github.com/namhyung/uftrace") (synopsis "Function graph tracer for C/C++/Rust") (description "uftrace is a tool for tracing and analyzing the execution of --=-=-=-- ------------=_1642688882-29382-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jan 2022 19:20:43 +0000 Received: from localhost ([127.0.0.1]:48026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XYY-0005Zp-MW for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:20:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:41734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XYS-0005Zc-5q for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:20:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9XYL-0003ym-V9 for guix-patches@gnu.org; Mon, 17 Jan 2022 14:20:32 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:33093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9XYJ-0002Tn-FF for guix-patches@gnu.org; Mon, 17 Jan 2022 14:20:29 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20HJKAft013652 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 17 Jan 2022 14:20:18 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20HJKAft013652 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1642447218; bh=HYLhrxOEJ1nvAS5TlrYeN+Fd2T07oRxFOFxPVuMjdH8=; h=From:To:Cc:Subject:Date:From; b=qQeW8BfTegvcPU0P9wS9PfAs6vN4djP914nCJbtvvaoQm67uGAU9lcwHWUSA1fXHK DTtTZBpfr+LuawLSvI97/Y1Riv0PKiaLIYUGB5BiQ7eWibyy45xFkS3cx5QIth08Vs DxPifgeAnpVasXy5iiPed+T41boKJbiz+0WvRb8g= From: Olivier Dion To: guix-patches@gnu.org Subject: [PATCH] gnu: Add uftrace. Date: Mon, 17 Jan 2022 14:20:09 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 17 Jan 2022 19:20:10 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Olivier Dion X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/instrumentation.scm: (uftrace): New variable. --- gnu/packages/instrumentation.scm | 68 +++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 86b80d65ec..9aafc28181 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -23,11 +23,16 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) + #:use-module (gnu packages engineering) #:use-module (gnu packages flex) #:use-module (gnu packages glib) + #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages lua) #:use-module (gnu packages man) + #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) @@ -43,7 +48,8 @@ (define-module (gnu packages instrumentation) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) - #:use-module (guix packages)) + #:use-module (guix packages) + #:use-module (guix utils)) (define-public babeltrace (package @@ -238,3 +244,63 @@ (define-public lttng-tools line for tracing control, a @code{lttng-ctl} library for tracing control and a @code{lttng-relayd} for network streaming.") (license (list license:gpl2 license:lgpl2.1)))) + +(define-public uftrace + (package + (name "uftrace") + (version "0.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/namhyung/uftrace") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gk0hv3rnf5czvazz1prg21rf9qlniz42g5b389n8a29hqj4q6xr")))) + (build-system gnu-build-system) + (arguments `(#:make-flags + (list + (string-append "CC=" ,(cc-for-target))) + ;; runtest hang at some point -- probably dues to + ;; failed socket connection -- but we want to keep the + ;; unit tests. Change the target to "test" when fixed. + #:test-target "unittest" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "SHELL" (which "sh")) + (invoke "./configure" + (string-append "--prefix=" + (assoc-ref outputs "out"))))) + + (add-after 'unpack 'patch-python-shebangs + (lambda _ + (let ([python (which "python3")]) + (for-each (lambda (path) + (substitute* path + (("/usr/bin/env python") python))) + (cons "misc/gen-autoargs.py" + (find-files "tests" "\\.py$"))))))))) + ;; NOTE! User should add python-3 and luajit to their profile if they + ;; want to do scripting. + (propagated-inputs + (list + capstone + elfutils + libunwind + ncurses)) + (native-inputs + (list + luajit + pandoc + pkg-config + python-3)) + (home-page "https://github.com/namhyung/uftrace") + (synopsis "Function graph tracer for C/C++/Rust") + (description "uftrace is a tool for tracing and analyzing the execution of +programs written in C/C++. It is heavily inspired by the ftrace framework of +the Linux kernel, while supporting userspace programs. It supports various +kind of commands and filters to help analysis of the program execution and +performance. It provides the command @command{uftrace}.") + (license license:gpl2))) -- 2.34.0 ------------=_1642688882-29382-1-- From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 53324-done@debbugs.gnu.org Received: via spool by 53324-done@debbugs.gnu.org id=D53324.16426892466291 (code D ref 53324); Thu, 20 Jan 2022 14:35:02 +0000 Received: (at 53324-done) by debbugs.gnu.org; 20 Jan 2022 14:34:06 +0000 Received: from localhost ([127.0.0.1]:56991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYVq-0001dO-5O for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:34:06 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:40641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYVo-0001cm-SV for 53324-done@debbugs.gnu.org; Thu, 20 Jan 2022 09:34:05 -0500 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20KEXsip022206 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jan 2022 09:33:58 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20KEXsip022206 From: Olivier Dion In-Reply-To: <87tudy7a8t.fsf_-_@gnu.org> References: <444ae3feb5c1de399608abb52ba9238a61019098.1642454641.git.olivier.dion@polymtl.ca> <87tudy7a8t.fsf_-_@gnu.org> Date: Thu, 20 Jan 2022 09:33:53 -0500 Message-ID: <87tudyv5m6.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Thu, 20 Jan 2022 14:33:54 +0000 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Thu, 20 Jan 2022, Ludovic Court=C3=A8s wrote: > Hi, > > Olivier Dion skribis: > >> * gnu/packages/instrumentation.scm: (uftrace): New variable. > > Applied with the following tweaks. > > Thanks! Great, thank you! --=20 Olivier Dion Polymtl From unknown Sat Sep 20 13:00:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53324] [PATCH] gnu: Add uftrace. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Olivier Dion , 53324@debbugs.gnu.org Received: via spool by 53324-submit@debbugs.gnu.org id=B53324.164269741131541 (code B ref 53324); Thu, 20 Jan 2022 16:51:02 +0000 Received: (at 53324) by debbugs.gnu.org; 20 Jan 2022 16:50:11 +0000 Received: from localhost ([127.0.0.1]:59051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAadX-0008Ce-F4 for submit@debbugs.gnu.org; Thu, 20 Jan 2022 11:50:11 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:40846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAadV-0008CU-Dz for 53324@debbugs.gnu.org; Thu, 20 Jan 2022 11:50:10 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id l4q72600P4UW6Th014q7ux; Thu, 20 Jan 2022 17:50:08 +0100 Message-ID: From: Maxime Devos Date: Thu, 20 Jan 2022 16:50:07 +0000 In-Reply-To: <87y23a7b18.fsf_-_@gnu.org> References: <87y23a7b18.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-uHb4nUc8KrPldND0/emL" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642697408; bh=RpWHNO6VAp141aTZdUXlhIiem0LhJMEa6AKniqhc+fY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=j2eOq95cnBTsIXjEXa/2pspa2fWEfxQGBFi6yhiGTHTmaf5z84/yrNqyG8VXg0o5k kH7HD2QR4ueoBZz61Iucfsgj0Lz0vgupFqto+O0BV9v6fgg2Gx5CCb/a2VzCW8Mw96 I29usDp1Aqqw83af2UE7ag2Zdk3fYEc3bN86NISwWWpVT3Zq6SNjgB8DIWDaM74CNm iqGWOoBP3qMZhpcc8HiA9w8Uj6fpZbOx72NB4y+j2q21fXBeAOAM6bdzcBJyNQBFou ThN7wWesGavBmD5Cxj5f/sR++yO89HtLb3frnZaOQ2ae8YJwAaRHklHsJiIIqIchTN kZodnB0Hk/Pfg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-uHb4nUc8KrPldND0/emL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op do 20-01-2022 om 15:10 [+0100]: > > If 'ncurses' is used (and depropagated), you probably need to add > > the > > search paths of ncurses (TERMINFO_DIRS) to make sure Guix knows to > > set > > TERMINFO_DIRS. >=20 > IMO we shouldn=E2=80=99t do that: =E2=80=98TERMINFO_DIRS=E2=80=99 =E2=80= =9Cbelongs=E2=80=9D to ncurses, and > we > do not add it to each and every program that depends on ncurses. >=20 > I understand that not adding =E2=80=98TERMINFO_DIRS=E2=80=99 in uftrace c= an be > annoying > due to , but so far consensus has > been to keep search path specs where they belong. Did you mean to refer to here (=E2=80=98Search paths of dependencies are not honored=E2=80=99)? We do add SSL_CERT_DIR to guix even though guix it is only used through guile+openssl (though we seem to forget to add it to many other packages). We sometimes add XDG_DATA_DIRS and XDG_CONFIG_DIRS to =E2=80=98leaf=E2=80=99 packages even though it is (usually) only used by so= me glib- related things. So aside from perhaps 22138, I don't see a problem here. As long as 22138 isn't addressed, how else could Guix determine that some leaf package needs TERMINFO_DIRS to be set? Greetings, Maxime. --=-uHb4nUc8KrPldND0/emL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYemSvxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iyPAQDElkQeTT6Oqj/G8LRmf0cscb2J pYy98nt/xbbEeiQXWAD+Mi8alWUZGa7rIF/LKOIFf8GA51FQuHOR1YKibbagVA4= =TfeD -----END PGP SIGNATURE----- --=-uHb4nUc8KrPldND0/emL--