From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GFL2IQDVTmR59QAASxT56A (envelope-from ) for ; Sun, 30 Apr 2023 22:52:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0NbNIQDVTmR3lQAA9RJhRA (envelope-from ) for ; Sun, 30 Apr 2023 22:52:16 +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 1D17A2FAF7 for ; Sun, 30 Apr 2023 22:52:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptE1c-0004uE-QF; Sun, 30 Apr 2023 16:52: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 1ptE1a-0004th-V8 for bug-guix@gnu.org; Sun, 30 Apr 2023 16:52:02 -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 1ptE1a-0004Il-9Z for bug-guix@gnu.org; Sun, 30 Apr 2023 16:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptE1a-0006Bv-6h for bug-guix@gnu.org; Sun, 30 Apr 2023 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63043: texlive-font-maps.drv build failure when profiles lacks texlive-* packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 30 Apr 2023 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63043 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: Ricardo Wurmus , 63043@debbugs.gnu.org Received: via spool by 63043-submit@debbugs.gnu.org id=B63043.168288790823767 (code B ref 63043); Sun, 30 Apr 2023 20:52:02 +0000 Received: (at 63043) by debbugs.gnu.org; 30 Apr 2023 20:51:48 +0000 Received: from localhost ([127.0.0.1]:38431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptE1L-0006BG-Uo for submit@debbugs.gnu.org; Sun, 30 Apr 2023 16:51:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptE1K-0006B2-Ci for 63043@debbugs.gnu.org; Sun, 30 Apr 2023 16:51:47 -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 1ptE1E-0004DB-Em; Sun, 30 Apr 2023 16:51:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Ux861ty1i7UT721Cu9DFGc8HrwLi1b2BhnptftBWKNE=; b=sVXi9BvS+DLY6KftlKzm lqozdbvEfwZC9iX493IHaD7ttx95X4UNGPuy+WdOQ1bMhBmZYLRO7r3yioEV0s1arlabdCzOFyUVI y35M5JTih3E3tvEWNe2+2x93MIh/YZABeLOaMOLYqYd8bJ5MxfoqYeeoFIPwD12LMqD5lu7XSRl+8 4MFTUkr3B/cu1A2OCGaPMTcm7QEHG++6Kuzd9TOZrmzXwzXODJn/WytfTUhJpYod9FjH8u3Q/JXrV atLOh+EvD3CsbUJx/i0rezG2z5VWKnvCZ6TQWi22qUnp6+bzV6e4haLt/p5YsE5AVJ3MgMrCtYJZt kU0OgvSQ87wVJA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptE1D-0001MF-E1; Sun, 30 Apr 2023 16:51:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o7nefba4.fsf@inria.fr> <87zg6yt6ro.fsf@gmail.com> <878reh0yo8.fsf@gnu.org> <87edo8sppa.fsf@gmail.com> Date: Sun, 30 Apr 2023 22:51:37 +0200 In-Reply-To: <87edo8sppa.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 24 Apr 2023 21:41:53 -0400") Message-ID: <87354hqejq.fsf@gnu.org> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682887936; a=rsa-sha256; cv=none; b=gUjs5+5P9pPsBx5lGVyuRSDlSD1rbqX56ZP7+CEhqLOzFsoJe8V3Uw0vvk+cWjSWiSWav/ 4g+hOfz7yIDicAZrBLNdWqd8qQqWNsm4o66r6DErpnh2jSbZHkYjMt65h+XLJk9ClwltOC 94AKtYgFkzwWMiyCfXIGEhAFmimA/dzaL18Ck+JCsfq43rOLSRqBYbblceTjPod3vZ81JW +CGwQg7iYVev2XSU2mgGP6Z6KNBZFSMuu/gedo9jLEf1p0zXJ636OY0IUQcOT67ouJS0kF Qn4n1+E6VxiyLtKc4nlDtzsVWsy6q047VhxqAhivgyfLBru+EsUQi58UFe2s5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=sVXi9BvS; 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=1682887936; 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=Ux861ty1i7UT721Cu9DFGc8HrwLi1b2BhnptftBWKNE=; b=XAnzyitRUGaACHZfdEP2PXxs6W1ydlZWUiLGUaJi2ciHsCj9GX75b0hiXfknDjqQJq2txw OXYG2i/HgI1zQUIM5oWsehByZNFq6Bgd9vzjN+ELZh9hd5Ew9iD1KgDHuWd5r/2HHeIgv1 n5K/BiMZHf68oigNYW1LxEYhjhxFibmEORUnjq4ZKwMITKn+NBWXiM+7qdZOCWSvrwxB7v 2tSskjRpKQZHig1TLtNZKG9RFmJlmSg4IGMDdn5XD0oMkpSx9OQk3XxJk7TNWm8gTdtk15 2OYLzG5O/C/wPhvTgO5+NRk2hyvKp41u4RgVJ2o3iox1tZen4KvXB1gcBh6h9A== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=sVXi9BvS; 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-Spam-Score: -4.11 X-Spam-Score: -4.11 X-Migadu-Queue-Id: 1D17A2FAF7 X-TUID: fFjetGldhfzs Hi, Maxim Cournoyer skribis: >> There were cases (like GDK pixbuf, GLib schemas, and all that) where the= idea >> was to take whichever glib/GDK we=E2=80=99d find in the dependency graph= , and >> pick the command we need from it. That way, we wouldn=E2=80=99t introdu= ce any >> additional dependency. That was the reasoning. >> >> Thinking about, this particular case might be easier: we can make things >> consistent like so: [...] >> + (if (and texlive-base (pair? texlive-inputs)) >> (gexp->derivation "texlive-font-maps" build >> #:substitutable? #f >> #:local-build? #t >> >> >> That way, the hook only fire if we have =E2=80=98texlive-base=E2=80=99 (= somewhere in the >> graph) *and* we have texlive-* packages in the manifest. > > That is equivalent, but it doesn't address the core problem in my > opinion. There's no use to run hooks for things which aren't propagated > at the level of the profile, I think. If texlive-base in is the > profile, the person wants to use tex and friends. But if it's wrapped > by some package deep down, we shouldn't care. > > I see it the same way as when using libraries and compilers in a > profile; the compiler (consumer) needs to be present else no search path > is created. > > Does it make sense? I agree with the reasoning; I think it doesn=E2=80=99t apply to the GLib sc= hemas and GDK pixbuf caches though. For TeX Live font maps, maybe it applies, though I=E2=80=99m not entirely s= ure (I wouldn=E2=80=99t be surprised if things other than =E2=80=98texlive-base= =E2=80=99 are consumers of font maps). Plus, since the patch I proposed is simple, I=E2=80=99m inclined to just do that. Thoughts? Ludo=E2=80=99.