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 gIMfLWC6RWTCtAAASxT56A (envelope-from ) for ; Mon, 24 Apr 2023 01:08:16 +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 OAwgLWC6RWRv1wAA9RJhRA (envelope-from ) for ; Mon, 24 Apr 2023 01:08: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 32D0520BA0 for ; Mon, 24 Apr 2023 01:08:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqioR-0007G5-CP; Sun, 23 Apr 2023 19:08:07 -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 1pqioO-0007Fv-Lr for bug-guix@gnu.org; Sun, 23 Apr 2023 19:08: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 1pqioM-00032m-Qz for bug-guix@gnu.org; Sun, 23 Apr 2023 19:08:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqioM-0004zw-Au; Sun, 23 Apr 2023 19:08: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: maxim.cournoyer@gmail.com, bug-guix@gnu.org Resent-Date: Sun, 23 Apr 2023 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63043 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63043@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by submit@debbugs.gnu.org id=B.168229124319150 (code B ref -1); Sun, 23 Apr 2023 23:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2023 23:07:23 +0000 Received: from localhost ([127.0.0.1]:47108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqini-0004yo-MS for submit@debbugs.gnu.org; Sun, 23 Apr 2023 19:07:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:53766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqing-0004yf-JF for submit@debbugs.gnu.org; Sun, 23 Apr 2023 19:07:21 -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 1pqing-00076v-6y for bug-guix@gnu.org; Sun, 23 Apr 2023 19:07:20 -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 1pqinf-0002zf-UP for bug-guix@gnu.org; Sun, 23 Apr 2023 19:07:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=rkeAJ1ittOQqfrfN28YMTlw6TTmfMpzvGhZSV9GNN8k=; b=Fi5CW86Asb/ZD8 taufIss1QEnN3sqYMLlCot5xbDhynzbzspBJw1StjZMZo6ZjxlwphBsU81lR3MwaXZZSqMC4k6SCl WMYji69XFCxxo/tH1f8JBvTwZ6txUAC98gXlXjPGdu48nYZNA4TXVkZqWr+5ecunmS3vufSecd7xS carhneS3YZyLUI6hYvpnouKH7o6KJsHJggD2LK5rE60Co0RwjzjmqX2cS/uxtIdOMVNzsHC2HqLPy MllfZPapwWt/ElEHd9X6eQO5UjFVjYcSBxiY9/9piNLR9uYlw4fTAhl+B+0Z3tk+mCwG/al1Y5dCV lql5LFY4mQjkMnxDV6cg==; 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 1pqind-0006pY-PM for bug-guix@gnu.org; Sun, 23 Apr 2023 19:07:18 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 =?UTF-8?Q?Flor=C3=A9al?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Rossignol X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 24 Apr 2023 01:07:15 +0200 Message-ID: <87o7nefba4.fsf@inria.fr> 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=1682291296; a=rsa-sha256; cv=none; b=tb0hI3lLdikqGmSpmBdiaw8YUiw/cRjNL0UlLv6+b9+cdX1B43+PSHFWiPDIacWZQcC4DO 0CN0kTJ1qheopARNIxSBXCIRKutJ4vcFS0Ljc5Da5/EFFYAjSMJFM5OyxO0lne032KHdij JiVNHLHCDSJRlSDoA/W+UJ9TGfuy5cLuOh5WmzJ4+KRfKsn8vw38XTNYjN7+KrKYtc75rA cC1TkHjOFn2p25d0AFjA0ld0GRRSdYR3cYWveBAL9e4o+zBxNTC2Oba1IkrqTOIoyrZmQC ZdoX/bsmLDO+sozZJ8GwX32k2GPIlKejta3onJejbotwSLlanFumbIEUXCk7TA== 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=Fi5CW86A; 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=1682291296; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rkeAJ1ittOQqfrfN28YMTlw6TTmfMpzvGhZSV9GNN8k=; b=AS23e23GpT/7gIK0dZZpF4TDJ0S/TaW+jCEeBFiQ1Gj0Unj0hHR+efh0JnqPgkdJKNk4A2 /mlvWocYN+F+d5xsEkb5AnOUON7wNl0j4Yqp1Lxm/Ly3EGPuc8K1UtFbQt0qE14z0Si5xW l0wtuypLooT8rN41Hr+mbDjpseGdy6fouf3MaJ3LiJxQac3188wsGwOKXJA3nJPVSnhIst dduAG2PLFBGNDbwsSYK4dKkkBFinoYErnELELVmLAlkA2NakAftZSU+kjLgiMNxf36z5Fd 4l4bFS3qvXbhZQTAuLaMB1DNXiC4zUprtxZXzAtplmyzAvlAN3xXG+3uwYl6UA== 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=Fi5CW86A; 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: 32D0520BA0 X-TUID: hdLPSLD3/Fsf Hi! (Cc: Maxim who may be familiar with the =E2=80=98texlive-font-maps=E2=80=99= hook.) I have Guile as a channel, which provides guile@3.0.99-git. Trying to add this guile package to a profile leads to a =E2=80=98texlive-font-maps.d= rv=E2=80=99 build failure: --8<---------------cut here---------------start------------->8--- $ guix describe -f channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "74e96c4cb171b17949f638d8b452d047a8f2dc6f") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'guile) (url "https://git.savannah.gnu.org/git/guile.git") (branch "main") (commit "1ae50a7f80654f04d93d900e17f3160205700a75")) (channel (name 'shepherd) (url "https://git.savannah.gnu.org/git/shepherd.git") (branch "master") (commit "ab0c7ec989d3afe1933aebb2e03c1d6ecb558ca6") (introduction (make-channel-introduction "788a6d6f1d5c170db68aa4bbfb77024fdc468ed3" (openpgp-fingerprint "3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5"))))) $ guix build guile /gnu/store/1cssq3p4ndi4rvly5w607q7chrg2sj3v-guile-3.0.99-git-debug /gnu/store/qndx3hp7cv5z8mv899k58gr9ampaa4g0-guile-3.0.99-git $ guix show guile@3.0.99-git |grep location location: guile-package.scm:51:4 $ guix shell guile -- guile The following derivation will be built: /gnu/store/pih50yd938jz3h6zkz0kd5jffkxagp3l-profile.drv builder for `/gnu/store/8d71qslw04hz3dc9gk8yfp0gcp9z03bx-texlive-font-maps'= failed previously (cached) build of /gnu/store/6h3k74mn5wpgcy0mqzh1zfa6r207jsqf-texlive-font-maps.drv = failed View build log at '/var/log/guix/drvs/6h/3k74mn5wpgcy0mqzh1zfa6r207jsqf-tex= live-font-maps.drv.gz'. cannot build derivation `/gnu/store/pih50yd938jz3h6zkz0kd5jffkxagp3l-profil= e.drv': 1 dependencies couldn't be built guix shell: error: build of `/gnu/store/pih50yd938jz3h6zkz0kd5jffkxagp3l-pr= ofile.drv' failed --8<---------------cut here---------------end--------------->8--- The log file for texlive-font-maps.drv ends with: --8<---------------cut here---------------start------------->8--- updmap: open() failed: No such file or directory at /gnu/store/fd38qipvckr2= jkkq2xja1n3rb9xz334r-texlive-bin-20210325/bin/updmap line 2158. updmap [ERROR]: The following map file(s) couldn't be found: updmap [ERROR]: dvips35.map (in builtin) updmap [ERROR]: pdftex35.map (in builtin) updmap [ERROR]: ps2pk35.map (in builtin) updmap [ERROR]: Did you run mktexlsr? You can disable non-existent map entries using the option --syncwithtrees. Backtrace: 2 (primitive-load "/gnu/store/pnzmvmbx1smragwnw3rlq4n6zd6?") In ice-9/eval.scm: 619:8 1 (_ #(#(#(# #) #) #)) In guix/build/utils.scm: 762:6 0 (invoke "/gnu/store/fd38qipvckr2jkkq2xja1n3rb9xz334r-t?" ?) guix/build/utils.scm:762:6: In procedure invoke: ERROR: 1. &invoke-error: program: "/gnu/store/fd38qipvckr2jkkq2xja1n3rb9xz334r-texlive-bin-202= 10325/bin/updmap-sys" arguments: ("--cnffile=3D/gnu/store/8d71qslw04hz3dc9gk8yfp0gcp9z03bx-= texlive-font-maps/share/texmf-dist/web2c/updmap.cfg" "--dvipdfmxoutputdir= =3D/gnu/store/8d71qslw04hz3dc9gk8yfp0gcp9z03bx-texlive-font-maps/share/texm= f-dist/fonts/map/dvipdfmx/updmap" "--dvipsoutputdir=3D/gnu/store/8d71qslw04= hz3dc9gk8yfp0gcp9z03bx-texlive-font-maps/share/texmf-dist/fonts/map/dvips/u= pdmap" "--pdftexoutputdir=3D/gnu/store/8d71qslw04hz3dc9gk8yfp0gcp9z03bx-tex= live-font-maps/share/texmf-dist/fonts/map/pdftex/updmap") exit-status: 1 term-signal: #f stop-signal: #f --8<---------------cut here---------------end--------------->8--- The =E2=80=98texlive-font-maps-builder=E2=80=99 file starts with: --8<---------------cut here---------------start------------->8--- (begin (use-modules (guix build utils) (guix build union) (ice-9 popen)) (union-build "/tmp/texlive" (quote ()) #:create-all-directories? #t #:log-port (%make-void-port "w")) (setenv "PATH" (string-append "/gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.= 32/bin" ":" "/gnu/store/hrgqa7m498wfavq4awai3xz86ifkjxdr-grep-3.6/bin" ":" = "/gnu/store/zhd6blbfz40xp62i4d1rcgbyrpkynbkc-sed-4.8/bin")) (setenv "PERL5LIB" "/gnu/store/fd38qipvckr2jkkq2xja1n3rb9xz334r-texlive-b= in-20210325/share/tlpkg") (setenv "GUIX_TEXMF" "/tmp/texlive/share/texmf-dist") --8<---------------cut here---------------end--------------->8--- So the failure is caused by the fact that /tmp/texlive is in fact empty. How does this happen? I think there=E2=80=99s a logic failure in this bit = of =E2=80=98texlive-font-maps=E2=80=99 in (guix profiles): (mlet %store-monad ((texlive-base (manifest-lookup-package manifest "texl= ive-base"))) (if texlive-base (gexp->derivation "texlive-font-maps" build #:substitutable? #f #:local-build? #t #:properties `((type . profile-hook) (hook . texlive-font-maps))) (return #f))) In this case, =E2=80=98texlive-base=E2=80=99 is found among the native inpu= ts of guile@3.0.99-git. However, the profile itself contains zero texlive-* packages, hence the failure. There are probably two things to fix: 1. The =E2=80=98manifest-lookup-package=E2=80=99 check seems inconsistent= with what=E2=80=99s passed to =E2=80=98union-build=E2=80=99. 2. Perhaps the builder shouldn=E2=80=99t fail anyway when given an empty /tmp/texlive. =20=20 Thoughts? Ludo=E2=80=99.