From unknown Fri Jun 20 05:35:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65106 <65106@debbugs.gnu.org> To: bug#65106 <65106@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add tracy. Reply-To: bug#65106 <65106@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:35:45 +0000 retitle 65106 [PATCH] gnu: Add tracy. reassign 65106 guix-patches submitter 65106 dan severity 65106 normal tag 65106 moreinfo patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 01:41:24 2023 Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 05:41:24 +0000 Received: from localhost ([127.0.0.1]:58531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWW3-0003g1-MX for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:41:24 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWW0-0003fm-Up for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:41:22 -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 1qSWVu-0007y5-BH for guix-patches@gnu.org; Sun, 06 Aug 2023 01:41:14 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSWVr-0002Ag-7n for guix-patches@gnu.org; Sun, 06 Aug 2023 01:41:13 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8023A32002E8 for ; Sun, 6 Aug 2023 01:41:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 06 Aug 2023 01:41:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1691300467; x=1691386867; bh=lT HdEoXpD4/jonNeEFV6MryEnGdtVETtUFN/IgEoh4k=; b=oYPKXqF4na6CXEsK8m LmiuNcKUbPL14TUmsfdZ19B7HwCuIHZu7QkAyX4ryxdOiG9g1iGvXQ4cduWlpnUj B9jLualIPzj15b9iLBF1X9coYi7OE+OWmVxlIzhvN/XC+lLH8fHrLUFQ7VJjDqOP U1/wZlHhWDTuhcdtri+kiepKlp+etSBPnqbIqJ/I2gtzRLN2d2on/qNk/vjqUTlD yAAe9XCRJ10Jb5XxgmLDrghv8I5APa+HIF2i34W6LAvD902M3uEctSO9sYSOuvM0 wOY6xvni0FAqS48tHxj8B1+qL0sd94OFDuO0gs6QCXfoJBskkzqj4M6xUHGgLT1I MXBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691300467; x=1691386867; bh=lTHdEoXpD4/jo nNeEFV6MryEnGdtVETtUFN/IgEoh4k=; b=w9uyUzo6qbBVCgXynTEc1V8Xq9oEs /zCm5XChYqMrkBvjmTw6yjVtPS5Tx5zQXEwOAzudY/mEYIcE+ztLSWY56LC94i13 gYL0jmnyjkAbOVi4ZRhzEXoc7y+zW3bn505ojhSznthWvC5RVuRJHZT1pdj8RDNk YlBtaKp7GVEq4PHvVN3wggR6M7KCXtBYsY4wCHwLUDedbE3C+iWotwTMiw9YkGsn NDXkiWWKUYGagN3p77noFNiUhcugILlqcfS4Y+ZzfCpwtQs57pUmiLuybeWukjbg CZ6DVkNRv9hEtM1FY5xCUpSXRDgOE4euqmPeXa/IxA0ZlwRZUktccl9wQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkeejgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpedttddutdejvdegvdetfeeiieevleffteehfffgveeuieetleelveefvdduveejgf enucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 6 Aug 2023 01:41:05 -0400 (EDT) From: dan To: guix-patches@gnu.org Subject: [PATCH] gnu: Add tracy. Date: Sun, 6 Aug 2023 13:40:10 +0800 Message-ID: <20230806054011.16970-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.25; envelope-from=i@dan.games; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit 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.4 (/) --- 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 © 2017 Dave Love ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2022 Ludovic Courtès +;;; Copyright © 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 clashes #: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)) @@ -389,3 +394,44 @@ (define (make-scorep mpi) (license license:cpl1.0))) (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=1" + (string-append "CC=" + #$(cc-for-target))) + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (chdir "profiler/build/unix"))) + (replace 'install + (lambda _ + (let ((out (string-append #$output "/bin/tracy")) + (bin (string-append #$output "/bin"))) + (mkdir-p bin) + (copy-file "Tracy-release" out) + (wrap-program out + `("LD_LIBRARY_PATH" ":" = + (,(string-append #$mesa "/lib")))))))))) + (inputs (list capstone dbus freetype glfw)) + (native-inputs (list pkg-config)) + (home-page "https://github.com/wolfpld/tracy") + (synopsis "Frame profiler") + (description + "A real time, nanosecond resolution, remote telemetry, hybrid frame and +sampling profiler for games and other applications.") + (license license:bsd-3))) base-commit: c4b9f726e3a1889b92a4b14a2af1c25f10798469 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 09:47:11 2023 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 To: dan Subject: Re: bug#65106: [PATCH] gnu: Add tracy. 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65106 Cc: 65106@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: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 14 17:29:24 2023 Received: (at control) by debbugs.gnu.org; 14 Sep 2023 21:29:24 +0000 Received: from localhost ([127.0.0.1]:41338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgtts-0008BJ-6d for submit@debbugs.gnu.org; Thu, 14 Sep 2023 17:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgttq-0008B4-2j for control@debbugs.gnu.org; Thu, 14 Sep 2023 17:29:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgtte-0000fl-LU for control@debbugs.gnu.org; Thu, 14 Sep 2023 17:29:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=G3rKyRm4tDfq+cG5Tu9Lc/xt41SE0ptei/RcRxRbqn8=; b=NA8P71/nE5L7/z 1iWBmKprI5sBLI+aUJX0lJ/k0iRLhTEgVch14PtCZ74Ka2qWab8rw5O73lkoG/SwCmQstNngm2lFp 6dd+uacaPFipVMqvBZziJCAPLt9jegAXP3xUgknCEszytZGaFQ+/brkhKY0VdcfEy57uKoEFxhaTh TAOlSrxNDUcKGkquCR/0hjlbajVTgO7gu2XkGThx/szNzJLzSq+YExw1PkoHCnfpmTBtB9mXVxLd4 XzZpt0zJQIP3ppFuZeweVqsOMxv6nDPys2g3sGX3b5qZp9rXpAOJl/mjmWUxPywuzsOlsSkqH4WXw MRaYDP8DgxbAz7JGLEDg==; Date: Thu, 14 Sep 2023 23:29:08 +0200 Message-Id: <87il8c4f6j.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #65106 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) tags 65106 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 13:14:59 2023 Received: (at 65106) by debbugs.gnu.org; 24 Sep 2023 17:14:59 +0000 Received: from localhost ([127.0.0.1]:43555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkSh8-0007k1-JK for submit@debbugs.gnu.org; Sun, 24 Sep 2023 13:14:58 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:59227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkSh6-0007jf-Qr for 65106@debbugs.gnu.org; Sun, 24 Sep 2023 13:14:57 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3551132009CB; Sun, 24 Sep 2023 13:14:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 24 Sep 2023 13:14:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1695575678; x=1695662078; bh=x8YO/ZS8GFh3ECVFYK8d9+QRd7TEp36QgfC 3dNVq8P0=; b=I4UjMlobh5ogDvb4eFA+8lK7UQGmI4laniUbzPtRqQlNaa9S266 crIS2V3/4phYhqalg2y5FVBsSjd1XSBlriaA73JjSiyG8cr0ARPYerp3WKLTBkP7 Ey+QSVruHRVkigsyJBArCGHRbA/F4C89FUP+bytIh1uMAmnW/RK+mLXqtetNt3V1 FzmNA2+RmKoF+qfYrfSMR9atFg1XbCW0VXqcVaCXP7bARlMrklCHQWVwOAcy8baS Lws/DaSCBJe3Q5fVOOSFe/UIlVMxiHFLFFIo/A5Z+VhbHR3uiMRr5Q2OkakQdqYp 31NDkf88JpWZjGHOPuCfF2AIZpqZ3sF5I1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1695575678; x=1695662078; bh=x8YO/ZS8GFh3ECVFYK8d9+QRd7TEp36QgfC 3dNVq8P0=; b=l/OeroUnNCMZzlvKV9vh6E1nRWFAbzFM4sYhak0Mp1Iuq4HboOV Aqk8107HtxhtxY3Bwcql6VVvHEhCfvuJPIzW5TsDm6b80I/5oMdHTpaUNml7n8Ze cMYX4RawKKKuV5anLdkgk0LIG3LGltq6nyjvTMTm1X1aVrw3K4cT/EkFRe5pNmNC AnzGNIdYg15g3hjZsNNT3lF4Y4OpSTR5YsesSDstM3izcF1CReNsqGat+iopjujz UxyDjCALnQBC/+HGF6dTheSnT7oXQW20Jn82BT0j6hCxeCkMQJ9M37Gszk0zTWn7 9zNmlGk6nKksoJJsoNsR02LEcYlT0yGR+wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelvddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhggtgfgse htkeertdertdejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggft rfgrthhtvghrnhepheehhfeiteevueeltdduteehhefgleeuieegkeejudeiveevueetue ehffdtveejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Sep 2023 13:14:36 -0400 (EDT) From: dan To: 65106@debbugs.gnu.org Subject: [PATCH v2 1/2] gnu: Add tracy-wayland. Date: Mon, 25 Sep 2023 01:13:59 +0800 Message-ID: <20230924171400.7496-2-i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230924171400.7496-1-i@dan.games> References: <20230924171400.7496-1-i@dan.games> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65106 Cc: maxim.cournoyer@gmail.com 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 (-) * gnu/packages/profiling.scm (tracy-wayland): New variable. --- gnu/packages/profiling.scm | 53 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index 8a1c609669..af79488c30 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017 Dave Love ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2022 Ludovic Courtès +;;; Copyright © 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 clashes #:use-module (guix download) #:use-module (guix utils) @@ -31,19 +33,24 @@ (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 freedesktop) #: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)) + #:use-module (gnu packages qt) + #:use-module (gnu packages xdisorg)) ;; Fixme: Separate out lib and fix resulting cycle errors; separate libpfm ;; output(?); build libmsr and add that component. @@ -389,3 +396,45 @@ (define (make-scorep mpi) (license license:cpl1.0))) (define-public scorep-openmpi (make-scorep openmpi)) + +(define-public tracy-wayland + (package + (name "tracy-wayland") + (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 (string-append "CC=" + #$(cc-for-target))) + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (chdir "profiler/build/unix"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (tracy (string-append #$output "/bin/tracy"))) + (mkdir-p bin) + (copy-file "Tracy-release" tracy))))))) + (inputs (list capstone + dbus + freetype + libxkbcommon + mesa + wayland)) + (native-inputs (list pkg-config)) + (home-page "https://github.com/wolfpld/tracy") + (synopsis "Frame profiler") + (description + "A real time, nanosecond resolution, remote telemetry, hybrid frame and +sampling profiler for games and other applications.") + (license license:bsd-3))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 13:15:04 2023 Received: (at 65106) by debbugs.gnu.org; 24 Sep 2023 17:15:04 +0000 Received: from localhost ([127.0.0.1]:43560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkShE-0007kx-1f for submit@debbugs.gnu.org; Sun, 24 Sep 2023 13:15:04 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:57299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkSh4-0007jb-Ob for 65106@debbugs.gnu.org; Sun, 24 Sep 2023 13:14:58 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id E357432009CF; Sun, 24 Sep 2023 13:14:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 24 Sep 2023 13:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1695575675; x=1695662075; bh=FOCRhdasyZ dLCq8CgtlsbiY8g/lyJ6YBj99rNwzG9MI=; b=cB4Zajm1Mojk13R4zpddKH4lTR eLZER+MURyjfL0VMs3hyjb1iKd/OhzZo9QwUPCiLWgpcfrDzLx/jxmTcdKjrcoEe 4RlOlL1RMBcKVVEYlE7Uz8PQd6cLrNaOgJfuZs+w9/D7yz0/rmo5WhfawQFJcsAJ NqBzmVblzaj9xgVu0kasR+yq61JCe1U8WjUYpdAfQRWIAwwrj+8jXVqeKW9eEJNk HmDOmK3zjqAHC+Q5WvFHcV6B9MuSew8IaxwfOguTjmA4N4nkT6R+ow/aruHNCtTz 8bSQnUINdTqrusknwobumHbg5bnh4JPxcaALFjZFBkluFnn28nmWP2WBB46Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695575675; x=1695662075; bh=FOCRhdasyZdLC q8CgtlsbiY8g/lyJ6YBj99rNwzG9MI=; b=MimwdasytrqOsklctkm1U6aVA7ZfJ 05i4edGrKnl5xf5cicJDKlWkZUbdlwYSnPI0TbPHqcKCA7BA8Q1JALuUhS4d5NAL pB+A/sLIckg1MeaxLVcUKZsdj3h+UBSBMZ8WBLW5iAz4EdUTJwnp9BOaHPg8LHae aDSNUGpt+EFtDrxcx4ICQ0tFj7EymcI6khIBioQKt9JUv55/KOCBpUiUCVr/Le/n V/bsRQZfIMciXUNB5X3AkEk5rrEUW94yJ0yeecqn8rNRynT15XH5WwKAIorA0+t+ ZVmAJStRck7e6Shjid2Aa9Dsq+NhKcnjOQQEOynzWreYvumtdKVKbffrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelvddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekre dtredttdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrght thgvrhhnpeevfffgvdejkefhkeejvdeltdeugfeiveejgeehudfftdevgeeujefhueefge evveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehi segurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Sep 2023 13:14:33 -0400 (EDT) From: dan To: 65106@debbugs.gnu.org Subject: [PATCH v2 0/2] gnu: Add tracy and tracy-wayland. Date: Mon, 25 Sep 2023 01:13:58 +0800 Message-ID: <20230924171400.7496-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65106 Cc: maxim.cournoyer@gmail.com 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 (-) This patch series add two versions of tracy, one for x11 and the other for wayland. Note that the output binary name is "Tracy-release" by default, and changing the name in the makefile breaks the build process. Seems like other things rely on the name. dan (2): gnu: Add tracy-wayland. gnu: Add tracy. gnu/packages/profiling.scm | 81 +++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 2 deletions(-) base-commit: e134686cead6db62ea8b941b2ed7c0bd660804da -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 24 13:15:04 2023 Received: (at 65106) by debbugs.gnu.org; 24 Sep 2023 17:15:04 +0000 Received: from localhost ([127.0.0.1]:43562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkShE-0007kz-Dd for submit@debbugs.gnu.org; Sun, 24 Sep 2023 13:15:04 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:41629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkSh9-0007ji-BW for 65106@debbugs.gnu.org; Sun, 24 Sep 2023 13:14:59 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B35EC32009DB; Sun, 24 Sep 2023 13:14:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 24 Sep 2023 13:14:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1695575681; x= 1695662081; bh=HLxxBZybq4ABe0/Yeb4s6bODg8U/6eUarFCDfdxjPbo=; b=O sJG0WU5ZXVbHxIH6DcKPGpHIt1W+rK2LRxJzIbd7O8W1L+sFTjzEHahY5a2NlUer WVPg6Z9iqAist/hq8rFZ99ZOZGmAHt0K9zSKRBsbuDZYRr1qcNKqvzp9KHZ0Qptx Auepy8IjZ5+gPDPuFcBRAqbqJ0WqFZ/ox56yUJrNQ6a+61xE/by2+8vRn92eEm/Z cDs0WIqqSBEkJmnH/geIZ0eJZaTJmNlGSCPvKsnWmJCDwybEVba7bksaL2m0FsS/ V3lMmXOuFLJBQSdnfR05MLsiYvFtF+csg6o1e5scIDdcWz74H+ZqszUyzczFaYs4 bpmUNO3oePgPOlFSdWROA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1695575681; x= 1695662081; bh=HLxxBZybq4ABe0/Yeb4s6bODg8U/6eUarFCDfdxjPbo=; b=T jBcRrRC2DBCqHm0ccgkYYmVi96hLvHQRWuDqWcC0/iDWVF2SL8VJRWjDXjQCRth7 L68cEqo5YVxLXHQzOjZSFreK2pj39P9Ip/B66XalQmdacgNTgtxFuUvSqKQ7rO9E YVb/3NMTgGWOEQEe3YV3sIEysSJb9aFxohP+YRxDbxmv6Ws97d1ESlkWHBeWBtJX dLDGUbDV3xh7wRndf4qUSJUOl2g5c0AmkmSC2D0Svb1dx+IqoR1LdpBtioIvd9UL 9UOHQ4Pdh6dbBssU1uYBntXBjyI1HGymcg5akvPgCd6A6xYA1jOePwvFpYMCIXL/ vmGGG2oM+GUGRAYTNaoAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelvddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffr rghtthgvrhhnpedtgeekheeggeettdevtedufedtfffhuddtvedtueeugfegtdettddute dtgedtleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Sep 2023 13:14:39 -0400 (EDT) From: dan To: 65106@debbugs.gnu.org Subject: [PATCH v2 2/2] gnu: Add tracy. Date: Mon, 25 Sep 2023 01:14:00 +0800 Message-ID: <20230924171400.7496-3-i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230924171400.7496-1-i@dan.games> References: <20230924171400.7496-1-i@dan.games> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65106 Cc: maxim.cournoyer@gmail.com 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 (-) * gnu/packages/profiling.scm (tracy): New variable. --- gnu/packages/profiling.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index af79488c30..5f5b4b07d0 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -438,3 +438,31 @@ (define-public tracy-wayland "A real time, nanosecond resolution, remote telemetry, hybrid frame and sampling profiler for games and other applications.") (license license:bsd-3))) + +(define-public tracy + (package + (inherit tracy-wayland) + (name "tracy") + (inputs (modify-inputs (package-inputs tracy-wayland) + (delete "libxkbcommon" "wayland") + (prepend glfw))) + (arguments + (substitute-keyword-arguments (package-arguments tracy-wayland) + ((#:make-flags flags + #~'()) + #~(append #$flags + ;; The LEGACY flag indicate we want to build tracy with glfw + (list "LEGACY=1"))) + ((#:phases phases) + #~(modify-phases #$phases + ;; Tracy depends on glfw to load libGL.so, but glfw doesn't have + ;; mesa in its rpath. Thus, we need to manually modify tracy's + ;; LD_LIBRARY_PATH. + (add-after 'install 'wrap-program + (lambda _ + (let ((out (string-append #$output "/bin/tracy")) + (mesa (string-append #$(this-package-input "mesa") + "/lib"))) + (wrap-program out + `("LD_LIBRARY_PATH" ":" = + (,mesa)))))))))))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 26 11:23:05 2023 Received: (at 65106-done) by debbugs.gnu.org; 26 Sep 2023 15:23:05 +0000 Received: from localhost ([127.0.0.1]:49574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql9tw-00083c-9G for submit@debbugs.gnu.org; Tue, 26 Sep 2023 11:23:04 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:62733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ql9tr-000830-SI for 65106-done@debbugs.gnu.org; Tue, 26 Sep 2023 11:23:02 -0400 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-77063481352so488162585a.1 for <65106-done@debbugs.gnu.org>; Tue, 26 Sep 2023 08:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695741761; x=1696346561; 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=MDCTaAtuaS98luoLxDyFX8Wm5TUpJnpqCkIaqO8j3zw=; b=CkxtGx0XYRuxRu0XTxYZCtvOvzdXOnXRrHskAyYJQSqWsq+M/z4jnyn+09UBdm4767 efgC8lKthROR8KBtvvtwEMYgCo3WoRXnyQlez/MMfTeVwh9ujH/TkSXzGkDeU0E52m6C r/hYiR2wL8sW1CPL6RJhpMqwVo5ZUs4JY/9bUJjbeSojFMOlcio3US3gfdSd2TMNxy4b MSE8dZpe8E3rQmDPN/+qi8KuxKdYAVQOeAlKxJUI9qWmkuLrVo5LnVUpdAJbzZnOjMUP zopBqRiDP4+iyQnpFbzgyGNuLrENVu9vW7fiPEoooyGQoTfo9c96M8EFVN78yvPAhxg1 LDBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695741761; x=1696346561; 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=MDCTaAtuaS98luoLxDyFX8Wm5TUpJnpqCkIaqO8j3zw=; b=otKx1jqm9QboqLXWtMso8Q95CdqS4LvIyLrp/7fuWCqdRV+YvxrPNa/qT1ym8LZyFe Xn8fFwVUcpKyrYDt6znm1S+3HqPq2An18ZUPSJgx8lrtae6tRPJeNfS0WRaRUZe32Jj+ lhX4FMW/0Xn9lAxMb03nK8tqg1aDTTeGFt0EK4aPMKvr4UBfdqwyg2YyKkqnZFhLWK/R WQpY+VDwnVx1kb7UMKg0istL/sD57TdrTXeRut34XVHxUsgOuLKr90alKQNTlv8fKcqJ A+nte1xXoyfj/c+ekDc5/p8FJU16HwsqtPIj4PUvydl9LfJVgQtW0/kxLLecAlTDV5Ac vhbw== X-Gm-Message-State: AOJu0Ywyx84W38gPN9kh+bO6zn0/pd1qFG9xczTT5gzDy980PspIH5yM aPxxe2uF30jXu5JkC3akWgZ8Do/HYiI= X-Google-Smtp-Source: AGHT+IFm8gYwumzyJskZ1z/uX+t0wrMJ+ezGC+Y6baiwGIMMEvQViBrPHxvdd2qlEWGzgcwpBCx6Dw== X-Received: by 2002:a05:620a:4443:b0:767:e994:ff03 with SMTP id w3-20020a05620a444300b00767e994ff03mr3683386qkp.15.1695741760591; Tue, 26 Sep 2023 08:22:40 -0700 (PDT) Received: from hurd (dsl-10-130-229.b2b2c.ca. [72.10.130.229]) by smtp.gmail.com with ESMTPSA id br30-20020a05620a461e00b0076f124abe4dsm4419997qkb.77.2023.09.26.08.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 08:22:40 -0700 (PDT) From: Maxim Cournoyer To: dan Subject: Re: [PATCH v2 1/2] gnu: Add tracy-wayland. References: <20230924171400.7496-1-i@dan.games> <20230924171400.7496-2-i@dan.games> Date: Tue, 26 Sep 2023 11:22:39 -0400 In-Reply-To: <20230924171400.7496-2-i@dan.games> (dan's message of "Mon, 25 Sep 2023 01:13:59 +0800") Message-ID: <87o7hp0xj4.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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65106-done Cc: 65106-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: -1.0 (-) Hello! dan writes: > * gnu/packages/profiling.scm (tracy-wayland): New variable. > --- > gnu/packages/profiling.scm | 53 ++++++++++++++++++++++++++++++++++++-- > 1 file changed, 51 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm > index 8a1c609669..af79488c30 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,19 +33,24 @@ (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 freedesktop) > #: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)) > + #:use-module (gnu packages qt) > + #:use-module (gnu packages xdisorg)) >=20=20 > ;; Fixme: Separate out lib and fix resulting cycle errors; separate libp= fm > ;; output(?); build libmsr and add that component. > @@ -389,3 +396,45 @@ (define (make-scorep mpi) > (license license:cpl1.0))) >=20=20 > (define-public scorep-openmpi (make-scorep openmpi)) > + > +(define-public tracy-wayland > + (package > + (name "tracy-wayland") > + (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 (string-append "CC=3D" > + #$(cc-for-target))) > + #:phases #~(modify-phases %standard-phases > + (replace 'configure > + (lambda _ > + (chdir "profiler/build/unix"))) > + (replace 'install > + (lambda _ > + (let ((bin (string-append #$output "/bin")) > + (tracy (string-append #$output "/bin/t= racy"))) > + (mkdir-p bin) > + (copy-file "Tracy-release" tracy))))))) > + (inputs (list capstone > + dbus > + freetype > + libxkbcommon > + mesa > + wayland)) > + (native-inputs (list pkg-config)) > + (home-page "https://github.com/wolfpld/tracy") > + (synopsis "Frame profiler") > + (description > + "A real time, nanosecond resolution, remote telemetry, hybrid frame= and > +sampling profiler for games and other applications.") > + (license license:bsd-3))) Looking at this package more closely, I found it was bundling imgui and zstd, so I tried unbundling both, and was successful for zstd: --8<---------------cut here---------------start------------->8--- modified gnu/packages/profiling.scm @@ -402,35 +402,61 @@ (define-public tracy-wayland (package (name "tracy-wayland") (version "0.9.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/wolfpld/tracy") - (commit (string-append "v" version)))) - (sha256 - (base32 - "1znw1r1c4vrb9vrsr08gcwynpjda8xxmb3923yykpymw2hsm0n9b")) - (file-name (git-file-name "tracy" version)))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wolfpld/tracy") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1znw1r1c4vrb9vrsr08gcwynpjda8xxmb3923yykpymw2hsm0n9b")) + (file-name (git-file-name "tracy" version)) + (modules '((guix build utils))) + (snippet + '(begin + ;; XXX: Sadly, the ImGui loaders appear to have been customized= by + ;; the project and the build fails when using the 'imgui' Guix + ;; package due to a missing GL_TEXTURE_WRAP_S definition, so ke= ep + ;; the bundled copy. + + ;; Unbundle Zstd. + (delete-file-recursively "zstd") + ;; Adjust the include directives. + (substitute* (find-files "server" "\\.(c|h)pp$") + (("#include \".*zstd/(zstd|zdict).h\"" _ header) + (format #f "#include \"~a.h\"" header))) + ;; De-register source files from Visual Code project. + (substitute* "profiler/build/win32/Tracy.vcxproj" + ((".*Include=3D\"..\\\\..\\\\..\\\\zstd\\\\.*") "")))))) + ;; Note: There is also CMake and Meson support, but only to build the + ;; tracy library, not the profiler command. (build-system gnu-build-system) (arguments - (list #:tests? #f ;no test for the profiler - #:make-flags #~(list (string-append "CC=3D" #$(cc-for-target))) - #:phases #~(modify-phases %standard-phases - (replace 'configure - (lambda _ - (chdir "profiler/build/unix"))) - (replace 'install - (lambda _ - (let ((bin (string-append #$output "/bin")) - (tracy (string-append #$output "/bin/tra= cy"))) - (mkdir-p bin) - (copy-file "Tracy-release" tracy))))))) + (list + #:tests? #f ;no test for the profiler + #:make-flags + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "CFLAGS=3D-lzstd")) + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'chdir + (lambda _ + (chdir "profiler/build/unix"))) + (delete 'configure) ;the profiler has no configure scr= ipt + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (tracy (string-append #$output "/bin/tracy"))) + (mkdir-p bin) + (copy-file "Tracy-release" tracy))))))) (inputs (list capstone dbus freetype libxkbcommon mesa - wayland)) + wayland + `(,zstd "lib"))) (native-inputs (list pkg-config)) (home-page "https://github.com/wolfpld/tracy") (synopsis "Frame profiler") --8<---------------cut here---------------end--------------->8--- For the X11 variant working around packaging problems in glfw (dlopen) with LD_LIBRARY_PATH, I've fixed these in glfw (by patching the so names in its source with their absolute paths) and removed the workaround: --8<---------------cut here---------------start------------->8--- @@ -443,29 +469,13 @@ (define-public tracy (package (inherit tracy-wayland) (name "tracy") - (inputs (modify-inputs (package-inputs tracy-wayland) - (delete "libxkbcommon" "wayland") - (prepend glfw))) (arguments (substitute-keyword-arguments (package-arguments tracy-wayland) - ((#:make-flags flags - #~'()) + ((#:make-flags flags #~'()) #~(append #$flags - ;; The LEGACY flag indicate we want to build tracy with = glfw - (list "LEGACY=3D1"))) - ((#:phases phases) - #~(modify-phases #$phases - ;; Tracy depends on glfw to load libGL.so, but glfw doesn't ha= ve - ;; mesa in its rpath. Thus, we need to manually modify tracy's - ;; LD_LIBRARY_PATH. - (add-after 'install 'wrap-program - (lambda _ - (let ((out (string-append #$output "/bin/tracy")) - (mesa (string-append #$(this-package-input "mesa") - "/lib"))) - (wrap-program out - `("LD_LIBRARY_PATH" ":" =3D - (,mesa)))))))))) + ;; The LEGACY flag indicate we want to build tracy with = glfw. + (list "LEGACY=3D1"))))) (inputs (modify-inputs (package-inputs tracy-wayland) - (append bash-minimal))) + (delete "libxkbcommon" "wayland") + (prepend glfw))) (synopsis "Frame profiler (X11 version)"))) --8<---------------cut here---------------end--------------->8--- It at least still runs for me, though I'm not sure how to use it (it seems to require the target application to be built with libtracy and act as a server?). Closing, thank you for contributing to Guix! -- Thanks, Maxim From unknown Fri Jun 20 05:35:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 25 Oct 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator