From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 qK/9J/W2T2SNMgAASxT56A (envelope-from ) for ; Mon, 01 May 2023 14:56:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oM4FJ/W2T2S1QAEAG6o9tA (envelope-from ) for ; Mon, 01 May 2023 14:56:21 +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 57A30AE08 for ; Mon, 1 May 2023 14:56:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptSbV-0000H8-Ou; Mon, 01 May 2023 08:26:05 -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 1ptSbU-0000El-H8 for bug-guix@gnu.org; Mon, 01 May 2023 08:26: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 1ptSbT-00014d-L4 for bug-guix@gnu.org; Mon, 01 May 2023 08:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptSbS-000523-H7 for bug-guix@gnu.org; Mon, 01 May 2023 08:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63043: texlive-font-maps.drv build failure when profiles lacks texlive-* packages Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 01 May 2023 12:26: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Ricardo Wurmus , 63043@debbugs.gnu.org Received: via spool by 63043-submit@debbugs.gnu.org id=B63043.168294390419238 (code B ref 63043); Mon, 01 May 2023 12:26:02 +0000 Received: (at 63043) by debbugs.gnu.org; 1 May 2023 12:25:04 +0000 Received: from localhost ([127.0.0.1]:39093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptSaV-00050C-Mr for submit@debbugs.gnu.org; Mon, 01 May 2023 08:25:04 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:53701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptSaS-0004zY-J2 for 63043@debbugs.gnu.org; Mon, 01 May 2023 08:25:01 -0400 Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-3ef33f12995so11524301cf.3 for <63043@debbugs.gnu.org>; Mon, 01 May 2023 05:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682943894; x=1685535894; 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=4WD7iuphlQ0BjQDPuQXbeICktcpr3NY7cU35sh+LRow=; b=Y2J5DKDFwj8umazXPlm6I2tMoQNbRsKxG7TI87+MgUz/p42DBblCJLaAM2Hrpn0zHb s800smW5dbIHQ8NcIZ6V0hI6V4Tn+2iMA5MAGO1Mbpvcj3W21Omx9OvWZIOIkOrEa/2Y L/YB6dXm7NaTcPN0u8Qrs6E9ILcI/xvsmCD6Iv2xvSVcd7tuz8XOJ2dqysqU21hR/BK/ HUXIBMocEAqnqgecht0H0B04m8nckaIeXuEX2qt3x6ShrAism45rDnq8ab22+NNq/JPP 08wOoKeWqo+VR/ds7z038Xjoqg4N/d6kMiv1sTaOcZoe5bYwF6YQM35ofKNpbtVZHdpY my2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682943894; x=1685535894; 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=4WD7iuphlQ0BjQDPuQXbeICktcpr3NY7cU35sh+LRow=; b=PArxfOQY3Jt0lus/Q4aoawrxNauUQayVl4Oj0+zQ2Bxi35FXncOTc5fE8IZXOr6sCZ o5mYckGfF83xgwBMpLzLEKjd1xL+/kpN3HYekyKcZJqp6L2gluHbZWdoUOhR4oTxDXKp jbLfl9KGCqIRwq02oh3p9tIyijj8GbW7M/FXogFXdJZVkLNlK/FG7UQBd+TTNEzWDh60 OUcp75FbvCicp3Ft706PTax9T23BKWSDBAkGOXjzUo17mFDpqU9wr4qaBp9rL24tXl/K 6Ggzn3aAbz8M5Ypn0AKo+uRpEQ+vg/w/YFeQLnbUp2V5FhgS0alDiLtezTYVLarbQYjS ydig== X-Gm-Message-State: AC+VfDwClhUnTUdIlstgEMrAJzNWTy4d4jjkp9KHR9QUM71Pcstk1pm9 J8p1HwVzxxpTFe3XLFeGC/eJlF3Tx5WehQ== X-Google-Smtp-Source: ACHHUZ7kMCL8UIqHudrntlS0h0jfEUrF2b4xaizvgKp35UCDoQsFe59X8jjgFljUW4g/2gPkSAR+4A== X-Received: by 2002:a05:622a:1d5:b0:3ed:e5ad:4a30 with SMTP id t21-20020a05622a01d500b003ede5ad4a30mr21793403qtw.10.1682943894391; Mon, 01 May 2023 05:24:54 -0700 (PDT) Received: from hurd (dsl-157-118.b2b2c.ca. [66.158.157.118]) by smtp.gmail.com with ESMTPSA id w4-20020a05620a094400b0073b8745fd39sm5267621qkw.110.2023.05.01.05.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 05:24:53 -0700 (PDT) From: Maxim Cournoyer References: <87o7nefba4.fsf@inria.fr> <87zg6yt6ro.fsf@gmail.com> <878reh0yo8.fsf@gnu.org> <87edo8sppa.fsf@gmail.com> <87354hqejq.fsf@gnu.org> Date: Mon, 01 May 2023 08:24:52 -0400 In-Reply-To: <87354hqejq.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 30 Apr 2023 22:51:37 +0200") Message-ID: <87sfcg5je3.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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682945781; a=rsa-sha256; cv=none; b=SwzeHH7yC4rdOPxicXHryVX6jKGx3VOHbsssv2FQmQvv1GbWCVKDCPqtcbQ2lRxWho0egt mDQeD2GA3ByeRpIzFBKfbrQ1snX479lEHN96YSWAa1aavpB/e+KTgI6JUUt89Yl8pkPz7w Lyj2wPYssIMdrrkdOGe7YsTwDUI/Tqa72jyfsTj4fTQSafEpffSlZZ5m7fegVSnhGsZhwf 83igk1RtrS19+o3NVazfUarfRtTdHhAJe4+u16K0/4We2wtgmwqaxf2F0rxG8DpCopGNgF sdzT/zb/JGWBcQTVm20NjK1955CT1WDNXtQNAHsRw5h/VAJk7Glmpk1Mg+aI6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Y2J5DKDF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1682945781; 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=4WD7iuphlQ0BjQDPuQXbeICktcpr3NY7cU35sh+LRow=; b=Dj0w9CSotmdc7UeaFV6ShcOaOp5ixh+4W2njlPc+ekUGMqQmBch23CSjtqqYhH8JA4krsJ s5VipnZoUGplMhmHsK32Y3+QaIJbb8BPMxweYsjuw7ZBioMxXpE2P2gus5RJPKVz3oT2zM 2Y37oefjH6JEAncT6DAZiKIU7U2VYoZN4pZBxw7UDCTg7orpcCcFJTfmXzYpdT56w5gNax btSYIAYfA5IwQtdYFDEdkeWUk3W4a1+lHLJRwhguqKjD0GTxp2T65FGUZP9TcZG4glhThV Q2YKI7gva4uH6N1sgj1zqN3KNg0F/IIjvtgg8AZcmZvESMU3qcscsMLoJECx+w== X-Migadu-Spam-Score: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: 57A30AE08 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Y2J5DKDF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-TUID: AMXfoKXCq/BD Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >>> There were cases (like GDK pixbuf, GLib schemas, and all that) where th= e idea >>> was to take whichever glib/GDK we=E2=80=99d find in the dependency grap= h, and >>> pick the command we need from it. That way, we wouldn=E2=80=99t introd= uce 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 = schemas > and GDK pixbuf caches though. It does, for the simple reasons that both GDK pixbufs and GLib schemas are collected using manifest-inputs, which means only direct inputs from the profile and the ones they propagate. So if you look deep in the profile graph for the 'glib-compile-schemas' command, there is a chance that it is found while no schemas were collected, and this is the kind of case that'd lead to an empty derivation output (because there's no schema to compile). > For TeX Live font maps, maybe it applies, though I=E2=80=99m not entirely= sure > (I wouldn=E2=80=99t be surprised if things other than =E2=80=98texlive-ba= se=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? I still think that my proposition is better, but I don't mind if you apply your fix now and we revisit this at a later time. If we get to it, this change could be reverted as it wouldn't be necessary anymore. --=20 Thanks, Maxim