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 ms9.migadu.com with LMTPS id 8GJCBoIOKGRYTgAASxT56A (envelope-from ) for ; Sat, 01 Apr 2023 12:59:14 +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 OFFDBoIOKGSyNgEA9RJhRA (envelope-from ) for ; Sat, 01 Apr 2023 12:59:14 +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 9668725A56 for ; Sat, 1 Apr 2023 12:59:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piYws-0001NL-6Q; Sat, 01 Apr 2023 06:59:06 -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 1piYwp-0001NA-HY for bug-guix@gnu.org; Sat, 01 Apr 2023 06:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1piYwp-00066s-5u for bug-guix@gnu.org; Sat, 01 Apr 2023 06:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piYwo-00036P-Hs for bug-guix@gnu.org; Sat, 01 Apr 2023 06:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62589: Help with patch with delayed evaluation Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 01 Apr 2023 10:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62589 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , 62589@debbugs.gnu.org Received: via spool by 62589-submit@debbugs.gnu.org id=B62589.168034674111919 (code B ref 62589); Sat, 01 Apr 2023 10:59:02 +0000 Received: (at 62589) by debbugs.gnu.org; 1 Apr 2023 10:59:01 +0000 Received: from localhost ([127.0.0.1]:35591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piYwn-000369-EC for submit@debbugs.gnu.org; Sat, 01 Apr 2023 06:59:01 -0400 Received: from 9.mo584.mail-out.ovh.net ([46.105.40.176]:41979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piYwk-000360-VE for 62589@debbugs.gnu.org; Sat, 01 Apr 2023 06:59:00 -0400 Received: from director6.ghost.mail-out.ovh.net (unknown [10.108.16.32]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 89CCC24B07 for <62589@debbugs.gnu.org>; Sat, 1 Apr 2023 10:58:57 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-jv2lz (unknown [10.110.103.57]) by director6.ghost.mail-out.ovh.net (Postfix) with ESMTPS id CD8571FE44; Sat, 1 Apr 2023 10:58:56 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-jv2lz with ESMTPSA id jrdtLnAOKGSKWhAAMsM2XA (envelope-from ); Sat, 01 Apr 2023 10:58:56 +0000 X-OVh-ClientIp: 81.67.140.142 In-Reply-To: <87zg7rgaln.fsf_-_@gnu.org> References: <87ilefgbza.fsf@ngraves.fr> <20230401100509.24723-1-ngraves@ngraves.fr> <87zg7rgaln.fsf_-_@gnu.org> Date: Sat, 01 Apr 2023 12:58:55 +0200 Message-ID: <87fs9jg974.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 1040612990259618327 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeifedgfeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefujghffffkgggtgfesthhqredttddtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeffudelkeejveetleeuffejfefftefhhfffuedtteethfelueelveffjedvffdtffenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddruddutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiedvheekleesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekgedpmhhouggvpehsmhhtphhouhht X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves From: Nicolas Graves via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680346753; a=rsa-sha256; cv=none; b=GbZitr3Nh/7HryOTifILfVNDMgSxgSMxG5Oa1Wrm8qKEuNahbjtTpKXNCKVHNxFYpKgKha +8TwIZJm5e40f7EOTe/EdOpz1d5MiUP4Hz2UAzbyXICkrSLyeJSM5wZtXXVpXleB0AUhA2 jV6meTe6zqZEHGqHazidntY3p0GEVMRcgcRKAIxWxsyD5uws46YVRMCq4kipEwplSqXR3z rDSI2ByOMjP3VLO7tS4FBbpDktr71geRqWaVVJeX/u7YWS34ovdZ97iK5BM4u+LjsvSW7x bmcXFQVjHu6/bJuqDDkbt3wttCzAJzP0DEZagpxVDTjGEt7SkuJxPnm2JOE6Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680346753; h=from:from:sender:sender:reply-to: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; bh=x4KZUrGGe4z/5ChIZmMUe0vx5wGKufmybiqWL+KiDZ8=; b=HosksY1Q5GwZRaCWn6f0vZ3rRrb+oBmCKeCI3rhOHwuxzRh9avendHNoBPD7utFzspQphp kcvtkHDlHtypbkxfCuFymRWrEzHDoDhGkJ8IK1ramGOLhmINNDhE158oy908qi6NVYIKtN 0MwBJhZF9CNg1YeaxKW4ujmbM8/M68Fw20X4JUhbaAQTZshOVWv8Pz9HRujp+Rhl+vC5zk 27Ged5aCDP2P6VUFm/0V3WSOSuX3eNgQZTwvpF4cu1yOCLyTq/qeEa35v/2yPrXsKXkdff TBWXrw70De5TDIdqZVrGI/OUbGLjKijPnZfYzaFs056JzYlFJge8xhN1xIiDuQ== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.23 X-Spam-Score: -4.23 X-Migadu-Queue-Id: 9668725A56 X-TUID: Ssfdp3ePzwzj On 2023-04-01 12:28, Ludovic Court=C3=A8s wrote: > Hi, > > Nicolas Graves skribis: > >> +(define* (make-nerd-dictation-package >> + input-tool output-tool >> + #:key (nerd-dictation-package nerd-dictation)) >> + "Construct a nerd-dictation package for OUTPUT-TOOL." >> + (match-let* (((input-name output-name) >> + (map (lambda (tool) >> + (lazy >> + (delay (package-name (force tool))))) >> + (list input-tool output-tool)))) >> + (package >> + (inherit nerd-dictation-package) >> + (name (string-append "nerd-dictation-" >> + (if (equal? (force input-name) "sox") >> + "sox-" >> + "") >> + (force output-name))) > > I don=E2=80=99t understand the details of what the patch does, but as a r= ule of > thumb, make sure you only ever inherit from packages defined in the same > module. The patch defines a helper for defining variants of nerd-dictation. It now supports wtype and I wasn't totally satisfied by international support for ydotool, so I wanted to switch, but copying it make a lot of repeated code. I already defined such a helper with Liliana Marie Prinkler with make-emacs-eval-in-repl, but this time I don't understand this error. Josselin was suggesting a module import cycle, (gnu packages machine-learning) is imported in (gnu packages audio), the error might come from there.=20 > > Perhaps that=E2=80=99s what was going wrong? I've tried inheriting from the above package direclty, doesn't seem to be that. > > HTH, > Ludo=E2=80=99. --=20 Best regards, Nicolas Graves