From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6DFhNJot02GYBQAAgWs5BA (envelope-from ) for ; Mon, 03 Jan 2022 18:08:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6HPrMJot02EyEQEAauVa8A (envelope-from ) for ; Mon, 03 Jan 2022 18:08:42 +0100 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 72B4A3E17C for ; Mon, 3 Jan 2022 18:07:35 +0100 (CET) Received: from localhost ([::1]:57274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4Qo2-0000qS-L0 for larch@yhetil.org; Mon, 03 Jan 2022 12:07:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4QnW-0008F9-Fe for bug-guix@gnu.org; Mon, 03 Jan 2022 12:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4QnW-0001Gm-5u for bug-guix@gnu.org; Mon, 03 Jan 2022 12:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4QnW-0001XJ-1C for bug-guix@gnu.org; Mon, 03 Jan 2022 12:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52979: Modular texlive has problems finding fonts Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 03 Jan 2022 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52979@debbugs.gnu.org Received: via spool by 52979-submit@debbugs.gnu.org id=B52979.16412295715804 (code B ref 52979); Mon, 03 Jan 2022 17:07:01 +0000 Received: (at 52979) by debbugs.gnu.org; 3 Jan 2022 17:06:11 +0000 Received: from localhost ([127.0.0.1]:36077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4Qmh-0001VY-6u for submit@debbugs.gnu.org; Mon, 03 Jan 2022 12:06:11 -0500 Received: from mail2.fsfe.org ([213.95.165.55]:34576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4Qme-0001VP-OB for 52979@debbugs.gnu.org; Mon, 03 Jan 2022 12:06:10 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021081301; t=1641229567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oXHDOfrHkz5JWTsZ1IgURP3EC+4DzyFnaQksMJmbTDA=; b=PaUdTPwOTlFcHbKKBwaPtujXw42h7Q4IW9R7MdTHWmPuyKZp6Xf8hHNg//jPTtTHPwMuTz Zdk400iy7Oa+PsnJHJilvljq+sIYcoxikD14tDyk6DDgafS4vG3aHEKx4tP+F0ZQgKMx76 RO5TQqL4Mm55IvX7fd5CbBpBuEJ9jNY= In-Reply-To: <86k0fg3i9y.fsf@fsfe.org> References: <86k0fg3i9y.fsf@fsfe.org> Date: Mon, 03 Jan 2022 18:06:06 +0100 Message-ID: <86ee5o3g1t.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: Ricardo Wurmus Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641229655; 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: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=oXHDOfrHkz5JWTsZ1IgURP3EC+4DzyFnaQksMJmbTDA=; b=Ven2mcmVN7964B1fnQD5r0bRFIVJzXXqVjDCShGqYfAX3prSzcoo06JQvq6k6UEKEKhEaO FS02BuzKFvVN6qouWBr6SfJ0PRCVKhTCOivHHfxII/rv4RZHN89ZmartTsfVLn5Ku8uJjk +IlrS+B2Q545zcsKX/IV3bEVHtaIzUnUOmynbMRwWVe2BuO497DrW2Ga2xisvP87R0X1nE XsDBS7OmNIj17bQlu9w5hlXKq+EdLmcy5rVyPCK7GeZqvEvx3BOfB3xWyJQR20I889K/gT tNNpI/lrCKW2igJhLSKBYnd8w1GAicp5D6tLBhURaDUZhEdpkdAOIiY/GVGIdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641229655; a=rsa-sha256; cv=none; b=AhB2dzs2eNeoXXGqeJHhOVNPFyLGPm63YI0/yGQr8UREPPvzn3Vv0NC2YOvpmEXj9miUsh QNyrlgVa3ybLG9CLlJ3goFOFb9JXsz8mA6zYT0pQ/IfUhk06aTGE/+k94/Dt56IxJLWNlk P36u367KIfvLDmBDmAPwwVfj+kvtuuQgKTTNTdApckZ4PoejVZDIXCqEPHz2FTP9tHgkV6 o1p04E89NWmVsdFs0HLtgjrZbp2RiHBEjKsl0dGGAktwau0az+aZe29Ow96l2lFisMsPpX 5fx9ZDr4DR8D0gD8Tos7AFB/P80jVhNoikopGl5IJliItZvqqJRsbD4py49K9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=PaUdTPwO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (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-Migadu-Spam-Score: -3.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=PaUdTPwO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fsfe.org (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-Migadu-Queue-Id: 72B4A3E17C X-Spam-Score: -3.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: C15lpODQpfP9 Jelle Licht writes: > As discussed on #guix on IRC, several folks including myself ran into > issues getting the following some-file.tex: > > --8<---------------cut here---------------start------------->8--- > \documentclass[11pt]{article} > \begin{document} > Hello friends > \end{document} > --8<---------------cut here---------------end--------------->8--- > > ... to typeset with the following manifest.scm: > --8<---------------cut here---------------start------------->8--- > (specifications->manifest > '("texlive-base" > "texlive-fonts-ec" > "texlive-amsfonts" > "texlive-fira" > "texlive-inconsolata")) > --8<---------------cut here---------------end--------------->8--- > > ... with command: > `guix shell --pure coreutils grep sed gawk -m manifest.scm -- pdflatex some-file > > Note that the monolithic texlive seems to work: > `guix shell --pure coreutils grep sed gawk texlive -- pdflatex some-file' > > On IRC, rekado /w strace identified that texlive does not seem to be > entering the subdirectory containing the font files, as it seems to be > loading texlive-bin's texmf.cnf, instead of the one generated by > `(@ (guix profiles) texlive-configuration)'. The first part here is correct, the second part is not; It seems texlive's kpathsea uses a heuristic to determine if a directory is a 'leaf node', where it checks whether there are exactly 2 links in there[1]; since symlinks do not count towards the link count, a directory filled with only symlinks to other directories is seen as a leaf node, and traversal subsequently ends there. This heuristic is a performance optimisation, as simply doing stat calls of everything in a directory is slow, according the the kpathsea authors. We can disable this optimisation by setting ST_NLINK_TRICK at compile time. Alternatively, we could try to figure out a way in which our directory-of-symlinks also contains at least one file. [1]: That is, "." and ".."