From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8GUbAjTB/GJTeQAAbAwnHQ (envelope-from ) for ; Wed, 17 Aug 2022 12:21:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +NQrAjTB/GKxCwEA9RJhRA (envelope-from ) for ; Wed, 17 Aug 2022 12:21:40 +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 9E9F61F093 for ; Wed, 17 Aug 2022 12:21:39 +0200 (CEST) Received: from localhost ([::1]:36866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOGB8-0004wx-GL for larch@yhetil.org; Wed, 17 Aug 2022 06:21:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOGAG-0004vy-Fo for guix-devel@gnu.org; Wed, 17 Aug 2022 06:20:44 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOGAE-0005o4-OM for guix-devel@gnu.org; Wed, 17 Aug 2022 06:20:44 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j7so15680303wrh.3 for ; Wed, 17 Aug 2022 03:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc; bh=YvPLk1MWdWR7o3KjrdnJaB3OwShfQkS+IriOMKmWaMw=; b=e8Ynrq6shWI6xG6rKG/KlMwlAkL6FDuDd1v55ZShb+sRY0NrBDJ8Jm39EgLWd0Xivj oToAcLYvb5M1wZ0bDxhawI2d0UZf/XdXYxWOJT4qtlahcEz916Cte0rJbnbv0//aKtqF wAoDj4ttDZIHrVKV7Jt8Ur8JCBObIEK0zyZ+VcxVZ63npErkkU3euqYlFrMTrLtUXtOP 58ZsrTaX69PSVjL/k4PmhGc/lGIrQ1yU//7BXMJZlGqFrwLRDbxnJfJHHqNqC0+p7evH stGwIbbmfano+WcyHtzElPgn9HIweZhWtPi732447DxGE4QG4DDWaKzTnztWBuxEREGU U56A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc; bh=YvPLk1MWdWR7o3KjrdnJaB3OwShfQkS+IriOMKmWaMw=; b=En7i0/jDX5c6akQ0nN1Qw5jht3z1taiSgmXzUQHMxe8bMgSvp1Km2/EI8C189AbGPd XTa9PhnJRdLgA+JVJC1Z44lX0Xi+eHFKf3p7bDZbSwMmT4g/BJXkXOEE0KbDKD0E721I CdIleUNF8sRaprk6bNp+hZZakDJxH7oMYmy4zyNCWQ0/Ab2JDyd5g889FboEucMItsMl 7KynicE7Jh3IAivV/M5L4cHNrat4iMb0TSy4BsvELzCnnzSXtxfAyiHj9cLMTSlQAzsp T6bKTpsg0Je79qHc9A24m+WLcvWNMSTz1Kd7mIkm1riQLxeHHRB91nmsdWP2/zQB8SfD fWXw== X-Gm-Message-State: ACgBeo3f12Hk2hbYieC0uFIAfb81CEzcba2Sbs20hoZs29sTnFrXMcbQ FZR42ns5u9FjBuaFAGVlld8y7/XjBC0= X-Google-Smtp-Source: AA6agR5tDbU629vtXjUn0IEsSU9JXedtBhcai2KUQ+miHNkvz2Yl5/9w8YlsQpZMeR27+joZFMgnnw== X-Received: by 2002:a5d:47cc:0:b0:225:1db9:2d82 with SMTP id o12-20020a5d47cc000000b002251db92d82mr3333819wrc.534.1660731641422; Wed, 17 Aug 2022 03:20:41 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c5-20020a05600c4a0500b003a3170a7af9sm135312wmp.4.2022.08.17.03.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 03:20:40 -0700 (PDT) From: zimoun To: Maxim Cournoyer , guix-devel Subject: Re: Enabling tracing on a phase to debug? In-Reply-To: <87a69aup81.fsf@gmail.com> References: <87a69aup81.fsf@gmail.com> Date: Wed, 17 Aug 2022 12:17:30 +0200 Message-ID: <86edxftbr9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660731699; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YvPLk1MWdWR7o3KjrdnJaB3OwShfQkS+IriOMKmWaMw=; b=EKZ3Lu+pUCapSLu0MWJoFer57ipGFmeDBgB5c4f3tBo86/G8ZwVLIPYEwrP2tkOWLXA36h /X6PzFZVwvfT/J7w8Mz1fmG8BE6w1bGNDHeFEEAZsnRaY80rtz1n469MNujrTG1jeMA12j i4YKq9+c6AXm2w8vSe4oH1l/rxdEEzrBa9ZCODCifj23Z9+F1+J1wyAECoQEndoGd87aVH dutEUR0HndmLj3C+nt21QtsHCZ2t06HE7Wj+NJoBJHVF3FHsL/Rl184mSYDFxx6wq+cHxF p1nIZrdex2jNdyUThGaMt3Mi+f7OtzweUCIHWGlC1C6QPOEPcXt652TGULIBtA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660731699; a=rsa-sha256; cv=none; b=Y6ZybLjJO+O1m58vv2d9N+genGK0KuCzr04MVW7dzelU0l5msLV2RgNIe+Y4y3wbiFOqfd f+tVygh9lHs2HkS6nj/pazbwrpYqwvr9HdVoF6qBid4mTKpZX9Duw2i07SQDyKJBouHmeK kJlc1mApMkNTwJvmndg9PviyDgPItJQrEMwFQIa/AQtIfYAL3kdCIStTamlp9zKPWzZJ65 z1ysOzr5e8+tGtn37SfqHa2RsEeW+ebbXroQQxQY+iBvL8jHI+JbfO0Gzuhyzuo5PvFwu5 Q9lw1cuvBRTS9Qb7bze4I51trVaJ6KdTQk3OUDzyXn/vO0YM/GEIzdIrj32fsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e8Ynrq6s; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e8Ynrq6s; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9E9F61F093 X-Spam-Score: -6.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: i/1DdX1IM1Ah Hi Maxim, On Fri, 15 Jul 2022 at 15:53, Maxim Cournoyer w= rote: > I was toying with the idea to programatically enable tracing the > execution of a single build phase to aid with debugging, and came up > with this with the help of robin on #guix (thanks!) Well, I am often annoyed when debugging a package and I usually use =E2=80=9Cguix build -K=E2=80=9D and then jump in /tmp/guix--XY. T= he most annoying is to re-run all the previous phases when they are somehow already available under /tmp/. And often, this re-run is just for tweaking the recipe to have more context about the failure=E2=80=A6 > --8<---------------cut here---------------start------------->8--- > @@ -4349,7 +4349,19 @@ (define-public vala > (substitute* "valadoc/tests/libvaladoc\ > /tests-extra-environment.sh" > (("export PKG_CONFIG_PATH=3D" m) > - (string-append m "$PKG_CONFIG_PATH:")))))))) > + (string-append m "$PKG_CONFIG_PATH:"))))) > + > + (replace 'glib-or-gtk-wrap > + (lambda args > + (use-modules (system vm trace) > + (system vm vm)) > + (call-with-vm > + (lambda () > + (set-vm-engine! 'debug) > + (call-with-trace > + (lambda _ > + (apply (assoc-ref %standard-phases 'glib-or-gtk-wrap) > + args)))))))))) > (native-inputs > `(("bison" ,bison) > ("dbus" ,dbus) ; for dbus tests > --8<---------------cut here---------------end--------------->8--- =E2=80=A6so maybe we could have something like that for a better tracing. Maybe, we could imagine an option as =E2=80=9Cguix build --list-phases=E2= =80=9D and then a kind of package transformation doing on-the-fly the =E2=80=9Ccall-with-vm= =E2=80=9D =E2=80=93 available with an option as =E2=80=9Cguix build --trace=3Dglib-or-gtk-wrap= =E2=80=9D. > Unfortunately it doesn't cause any trace to be output. Is there > something missing to the above incantation, perhaps? Sadly, I do not know. Cheers, simon