From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WEaWDKIx92Sd9AAAauVa8A:P1 (envelope-from ) for ; Tue, 05 Sep 2023 15:48:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WEaWDKIx92Sd9AAAauVa8A (envelope-from ) for ; Tue, 05 Sep 2023 15:48:18 +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 BBC1039D19 for ; Tue, 5 Sep 2023 15:48:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="CGH/mGi+"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693921697; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=C0mufWbZVE6KFtau2iR6GmDp9gJqFKmkSiU90WPYE/c=; b=hXzWruKH/vri1yc9XxpVbEw/wib9te/tUb4/tRpHyyMY6I/o9XB3J9XAVOlyx719fgx06p dGHo0Oh6SIR0dqhFP+Z2tAW6FyqrVGjDO00BduOgRJniOPx4FiU3vR0t+8d/Q5fd4c0hvC ZGC8zGFmMLit4QjlljrOda/xoT8bGvsFbm3Ik3+haG1LbH0fi5wwcKZ2d7I7PaK9uiL4BX P/FlTJ8uF4JC+/Q5SDjCuUlO9ohu7OFQrVmorAkqSAfrlJBTuPVja38Mn7k4l1DqXutZE2 x0DmOwPLgxViMaLqNNFq7MjlBOCpd1wH3r7h4Wb6GPqrB9H32vUgtWQPTRlUwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="CGH/mGi+"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693921697; a=rsa-sha256; cv=none; b=nh0mKazQitqMpvC51ip86akh4PDv2qHk5rtwTaY+k2tWm5ceEbwJ6cvEeLrYEuJ1a+isly 0bV413uqG4TgA1EzC7YlxBEjeeSKzboi23A5iypp6pt4TAdVdcLQRy41CixbZlatHGOoQv xxR+lmyCPKjwF5LpzMcLClVF7/7xNDOAMgyf+/vtnXTcn/EwQtHb4kQZQtRQgs1KeZ9iS/ n+P/2CAoA5zmt7f8U6brHciw9H5s21FTXuAvzmRLH/EQr9B/9qJvkuhDDLuQxW53ZyVWkm YIvu+2ICT7CkiM/k13PKW32BX6l6w0OV4dibjfpFXLq9fcSuxdUFzQO5wP8VoQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdWPU-0006y2-0s; Tue, 05 Sep 2023 09:48:04 -0400 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 ) id 1qdWPR-0006xs-Nl for guix-patches@gnu.org; Tue, 05 Sep 2023 09:48:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdWPR-0000ar-Fr for guix-patches@gnu.org; Tue, 05 Sep 2023 09:48:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdWPR-0006Wt-Oe for guix-patches@gnu.org; Tue, 05 Sep 2023 09:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65106] [PATCH] gnu: Add tracy. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Sep 2023 13:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: dan Cc: 65106@debbugs.gnu.org Received: via spool by 65106-submit@debbugs.gnu.org id=B65106.169392163124922 (code B ref 65106); Tue, 05 Sep 2023 13:48:01 +0000 Received: (at 65106) by debbugs.gnu.org; 5 Sep 2023 13:47:11 +0000 Received: from localhost ([127.0.0.1]:55219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdWOd-0006Tt-8c for submit@debbugs.gnu.org; Tue, 05 Sep 2023 09:47:11 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:53339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdWOa-0006Tf-DI for 65106@debbugs.gnu.org; Tue, 05 Sep 2023 09:47:09 -0400 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-76ef935abaeso157399485a.2 for <65106@debbugs.gnu.org>; Tue, 05 Sep 2023 06:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693921622; x=1694526422; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=C0mufWbZVE6KFtau2iR6GmDp9gJqFKmkSiU90WPYE/c=; b=CGH/mGi+cPAYXU3gCWIJrjI73/jO7Vor8eIbZJWlzPEnUKeB49vPXykQIUfgoi6iwr nCD3UxfjqVWFpVa+150TgW6tEMwtev7cG3lm35lUMTWr48zZOeXF0qyfSooas1p8EYIh Y41ovj+AOXvM3nvzIeYAr8ny4t6VoDOZafcMpeqH1zdjvhe9q6U6fSH4h+WmRQ6haTQl 4ow59KbeBgMcYRkM9Zt8YTQBPmPU9hae6Ke0XIpHfFfH0apLUVM9YTjiq1g2R8W2r/JL zX0xgqWwxmPvDIP/jWd3b3+8A56WzGqI36e0EdHanovg8gmBLdNedTdKaU9LtVkvRXRx 8Wxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693921622; x=1694526422; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=C0mufWbZVE6KFtau2iR6GmDp9gJqFKmkSiU90WPYE/c=; b=gPKem/E4U+VmCuBzrUxMw8hIwc3w4SchMjvZo0FRU+jZTjm5uep0RsRW44SISL574y b3LNiFTh/WVkrNHl2RFkLY4UcYIOK8UHwkOlQtyjMHDDIOm+1kXm8xsz+yiGHMw3wOQP UFLx1zSDJFh0f1DQjf2Jln+g7fkG8fWY89aY+bI2huDnL4U4AiY+n1it7Bd0tb2ROzug zWCVQDkL3irKSHkLfl6rkJl1qoXCy6i0/bfwoVPuqcD8CMNcVr1yc7fWlTwovSki7pEc z9u8ku6F/YmsldlXONdakJ9jUrSKLKrDRxzJgJJoYwt98/5/0WV+H1Ya0xNRGuEy9Ll3 XdQg== X-Gm-Message-State: AOJu0YwSZOB+PmIh8MsLnI5gnhXgmlec6CY0m4Sij7bP3HX/4yXRb0rM xQfuuMuiMsldSPb57zeN1otn01xipEG4qw== X-Google-Smtp-Source: AGHT+IErHrWL6vTM24xR1ju1ssIuGtEsL6hjNponpFcn7PawQ4REYv9fn7+s8wrxNPG8QuR6TtDaSA== X-Received: by 2002:a0c:8cc1:0:b0:64f:4c95:89ad with SMTP id q1-20020a0c8cc1000000b0064f4c9589admr13484279qvb.9.1693921621937; Tue, 05 Sep 2023 06:47:01 -0700 (PDT) Received: from hurd (dsl-153-125.b2b2c.ca. [66.158.153.125]) by smtp.gmail.com with ESMTPSA id a4-20020a0ce344000000b0064f4ac061b0sm4463827qvm.12.2023.09.05.06.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 06:47:01 -0700 (PDT) From: Maxim Cournoyer References: <20230806054011.16970-1-i@dan.games> Date: Tue, 05 Sep 2023 09:46:59 -0400 In-Reply-To: <20230806054011.16970-1-i@dan.games> (dan's message of "Sun, 6 Aug 2023 13:40:10 +0800") Message-ID: <87zg20ka0c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: BBC1039D19 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 2.77 X-Spam-Score: 2.77 X-TUID: SbTD6gAq87xM Hello! dan writes: > --- > gnu/packages/profiling.scm | 48 +++++++++++++++++++++++++++++++++++++- > 1 file changed, 47 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm > index 8a1c609669..799b333162 100644 > --- a/gnu/packages/profiling.scm > +++ b/gnu/packages/profiling.scm > @@ -2,6 +2,7 @@ > ;;; Copyright =C2=A9 2017 Dave Love > ;;; Copyright =C2=A9 2018, 2019, 2020 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2022 Ludovic Court=C3=A8s > +;;; Copyright =C2=A9 2023 dan > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -21,6 +22,7 @@ > (define-module (gnu packages profiling) > #:use-module (guix packages) > #:use-module (guix gexp) > + #:use-module (guix git-download) > #:use-module ((guix licenses) #:prefix license:) ; avoid zlib, expat c= lashes > #:use-module (guix download) > #:use-module (guix utils) > @@ -31,17 +33,20 @@ (define-module (gnu packages profiling) > #:use-module (gnu packages bison) > #:use-module (gnu packages compression) > #:use-module (gnu packages documentation) > + #:use-module (gnu packages engineering) > #:use-module (gnu packages fabric-management) > #:use-module (gnu packages flex) > + #:use-module (gnu packages fontutils) > #:use-module (gnu packages gawk) > #:use-module (gnu packages gcc) > + #:use-module (gnu packages gl) > #:use-module (gnu packages glib) > #:use-module (gnu packages libunwind) > #:use-module (gnu packages linux) > #:use-module (gnu packages mpi) > #:use-module (gnu packages ncurses) > #:use-module (gnu packages perl) > - #:use-module (gnu packages perl) > + #:use-module (gnu packages pkg-config) > #:use-module (gnu packages python) > #:use-module (gnu packages qt)) >=20=20 > @@ -389,3 +394,44 @@ (define (make-scorep mpi) > (license license:cpl1.0))) >=20=20 > (define-public scorep-openmpi (make-scorep openmpi)) > + > +(define-public tracy > + (package > + (name "tracy") > + (version "0.9.1") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/wolfpld/tracy.git") > + (commit (string-append "v" version)))) > + (sha256 > + (base32 > + "1znw1r1c4vrb9vrsr08gcwynpjda8xxmb3923yykpymw2hsm0n9b")) > + (file-name (git-file-name "tracy" version)))) > + (build-system gnu-build-system) > + (arguments > + (list #:tests? #f ;no test for the profiler > + #:make-flags #~(list "LEGACY=3D1" Why is LEGACY needed? A comment should say so. > + (string-append "CC=3D" > + #$(cc-for-target))) > + #:phases #~(modify-phases %standard-phases > + (replace 'configure > + (lambda _ > + (chdir "profiler/build/unix"))) > + (replace 'install > + (lambda _ > + (let ((out (string-append #$output "/bin/tra= cy")) > + (bin (string-append #$output "/bin"))) > + (mkdir-p bin) > + (copy-file "Tracy-release" out) You can simplify this by using the 'install-file' procedure, which is in scope here (it comes from (guix build utils)). 'Tracy-release' is a weird name for a binary; is this how it's packaged on other system? I'd have expected 'tracy' or similar. > + (wrap-program out > + `("LD_LIBRARY_PATH" ":" =3D > + (,(string-append #$mesa "/lib"))) Since this is also unusual in Guix (usually RUNPATH is baked in the Elf by the ld-wrapper script and it just works), it deserves an explanatory comment too. --=20 Thanks, Maxim