From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id 8DYlExY57mSXMAEAG6o9tA:P1
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 29 Aug 2023 20:29:42 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id 8DYlExY57mSXMAEAG6o9tA
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 29 Aug 2023 20:29:42 +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 0D9983F0B0
	for <larch@yhetil.org>; Tue, 29 Aug 2023 20:29:41 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=ILNdvL16;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693333782; a=rsa-sha256; cv=none;
	b=pFGirOZqBn1Jl3hAmEkv2Wf9No1dXXst/ycNRJixGkr/7uKXrgFitSSk15c2firTrHehul
	E9M2HKVtJ0WaxcWw49fikZk7PaqN4y74gI81kuOLv/6adMpUBaz4OBz2gRhwpJb2CQT8Zn
	aeIu7EqQQjv7nboAUoRSh/4HNyvzLbQkz8MYlZJtaMZI4TOBCggJvl+XsCGWIz8OgIqfnE
	pKlmsUa+teqILKIY/qEXHTlWStFGebmtX4u19tabxVk1p0ZJDfEcGa/k0/A0avkC+8QRwQ
	z5hLvAnNqc0dMsmaX+dg3t2bAXH13SHsdrLiz+6bEjlZwFFhrTYhDUXW/6oizA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=ILNdvL16;
	dmarc=pass (policy=none) header.from=gmail.com;
	spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1693333782;
	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:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=62+B898m9wKz3o4uSk/eY0tiUBy5t7Gb7wuSSvcoXB8=;
	b=C/6IDainLOZr+ycI/TTpbBbHhVVoxxiAy2bPS/4oGp+s2HI1V3B3m2+0/0ANIEmfYkFxM5
	gnIUSJedenWuPPp7oQ/aOMOmtyO4vIHAVFpLgGVe+ijCsxGkELOt+Q837/zT6hKOLYehWj
	otnD5MsrYGWl5kzE4RSELKJqZecbSi4dwyYhsAbVhpM2+F1yvFynUWkpM7Zs8KrsHUKbL+
	4wVRqGqUREffGcz4ZhhV+hEb9vs3oD7M0z3p/XL9blcGhDl6dZmeLLWuIJfu1s2TynJLuL
	VZX5Tmoyra8DlkHm0jOqSAcBuyWRfqKGPF/3bRwyJyxv0sBFUr7TDRXafEiYrg==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-guix-bounces@gnu.org>)
	id 1qb3SX-0005nC-Rk; Tue, 29 Aug 2023 14:29:01 -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 <poptsov.artyom@gmail.com>)
 id 1qb3QZ-0005Pl-Gg
 for help-guix@gnu.org; Tue, 29 Aug 2023 14:26:59 -0400
Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <poptsov.artyom@gmail.com>)
 id 1qb3QW-0005ZW-Sg
 for help-guix@gnu.org; Tue, 29 Aug 2023 14:26:59 -0400
Received: by mail-lf1-x12b.google.com with SMTP id
 2adb3069b0e04-4fe1b00fce2so7535141e87.3
 for <help-guix@gnu.org>; Tue, 29 Aug 2023 11:26:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693333615; x=1693938415;
 h=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=62+B898m9wKz3o4uSk/eY0tiUBy5t7Gb7wuSSvcoXB8=;
 b=ILNdvL16EX1rSKub4vbHAe2creWlX9lDNiu+a2m1ik/HBuBE9bfjFnoGGQSx+kZ1dy
 RK/nVCwLA0S03mVin8EcDNatz3QC7fTjRgM5IrVK30/VG/5s4J75t+0iGVtb0iqr5CYP
 oFp8ceSTkeFnCFqgw4gau7gQv2krbnX0FWBe4jT27mrW2KWc08XYxtsufXosCfNFDo1L
 KipRfEElekzzPvahZai9do+f1cTSFymzBW9m4SHgmKpw2jBArk2PA6wNx7gRdnrZ2VVO
 p1UJpvT49HGSKstYC9F/a3I9Kwf3qpGw2VAaXnBdU4wpAa3XiWaZtJTGMle9kR+gyJXG
 EADQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693333615; x=1693938415;
 h=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=62+B898m9wKz3o4uSk/eY0tiUBy5t7Gb7wuSSvcoXB8=;
 b=RWsCGW/SQfP4sSdlT4XqsB6k4PWu+8pk8U3FuAd6M4zuNDMoftjNrHToazyuRGn97A
 ZBcmQM4c+ByGiGWCkw8C7sKFy8qHVnX9BEgLBQDFQDrZ4+o+zWYuAp5j53oZyh2Geldc
 axdLz5aqrhp/AoopbnMZwdRrsGBqpf0KyMk34M8ZLdMt1PrK5WkNi0oZsVFMD+9uDCNO
 Mq+wZP9P/hS3PfUyf0JCXN0bpLrsiZfOerZ1wjt+wiF8rYa8HP2kbkq0S7PrLFR67NZ0
 gRFSw77Lbg7PMODegIKQipWYkG27zmnZ9+VjUqkWc8IHigSYUQon1NCPOub3WSc8aZuN
 ZnkA==
X-Gm-Message-State: AOJu0YwpOymHLJ+WyhDOpWs29fGKnc65TFDAgk3TKgUOYPPfsUI66vV7
 GZvXF9741VyuUvhhVwZmCYjK2oLdTdo=
X-Google-Smtp-Source: AGHT+IENcItQADjgeVeNJKajZXtk0fiOXOWf3dWWjK420qlsvL64LmkoSNMC2xe6aF6rbtPAbEr2+A==
X-Received: by 2002:ac2:5f81:0:b0:500:9214:b309 with SMTP id
 r1-20020ac25f81000000b005009214b309mr14309040lfe.56.1693333614338; 
 Tue, 29 Aug 2023 11:26:54 -0700 (PDT)
Received: from elephant ([5.166.207.245]) by smtp.gmail.com with ESMTPSA id
 j17-20020a19f511000000b005007e688a37sm2057715lfb.126.2023.08.29.11.26.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 29 Aug 2023 11:26:53 -0700 (PDT)
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: help-guix@gnu.org
Subject: Re: LaTeX: Need help with packaging a book in GNU Guix
References: <873503ygd1.fsf@gmail.com> <87v8cynrwa.fsf@nicolasgoaziou.fr>
 <87pm3658ao.fsf@gmail.com> <87jztenhgp.fsf@nicolasgoaziou.fr>
Date: Tue, 29 Aug 2023 21:26:49 +0300
In-Reply-To: <87jztenhgp.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of
 "Tue, 29 Aug 2023 14:47:18 +0200")
Message-ID: <871qflemc6.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2a00:1450:4864:20::12b;
 envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x12b.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: help-guix@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-guix>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org
Sender: help-guix-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Queue-Id: 0D9983F0B0
X-Migadu-Scanner: mx1.migadu.com
X-Migadu-Spam-Score: -11.19
X-Spam-Score: -11.19
X-TUID: /AEtgfi8FHxW

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello Nicolas!

> I then suggest to add `texlive-fontspec' (a few kB) instead of `texlive'
> (3 GB) to the inputs.

Thanks, that worked out indeed.  I've added other LaTeX packages as
well, searching by the required ".sty" files.

But then, I ran into the following error:

=2D-8<---------------cut here---------------start------------->8---
Package rerunfilecheck Info: Checksums for `sparc.out':
(rerunfilecheck)             Before: <no file>
(rerunfilecheck)             After:  8A9E5CFD2193CCDADFE90D96E3F45333;20690.
runsystem(rm sparc.pyg)...executed.

 )=20
Here is how much of TeX's memory you used:
 66386 strings out of 476682
 1790478 string characters out of 5779954
 2503753 words of memory out of 5000000
 84784 multiletter control sequences out of 15000+600000
 516911 words of font info for 97 fonts, out of 8000000 for 9000
 1348 hyphenation exceptions out of 8191
 94i,16n,92p,2254b,2061s stack positions out of 10000i,1000n,20000p,200000b=
,200000s

Output written on sparc.xdv (133 pages, 2587352 bytes).
GLOSSARY  sparc
INDEX     sparc
/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/sh: /gn=
u/store/05770yhxad3d3p4q7rgw8clh0y1gi5sc-texlive-glossaries-66594/bin/makeg=
lossaries: /usr/bin/env: bad interpreter: No such file or directory
make: *** [Makefile:77: make_glossary] Error 1
make: *** Waiting for unfinished jobs....
=2D-8<---------------cut here---------------end--------------->8---

It looks like "makeglossaries" cannot find "/usr/bin/env" program.  I
checked where "env" can be found inside the builder context:

=2D-8<---------------cut here---------------start------------->8---
 (arguments
  (list #:phases
        #~(modify-phases %standard-phases
            (add-after 'unpack 'debug
                       (lambda _
                         (invoke "which" "env")))
=2D-8<---------------cut here---------------end--------------->8---

And the full path is:
  /gnu/store/yr39rh6wihd1wv6gzf7w4w687dwzf3vb-coreutils-9.1/bin/env

But "makeglossaries" script seems to have a wrong path:

=2D-8<---------------cut here---------------start------------->8---
$ head -1 /gnu/store/05770yhxad3d3p4q7rgw8clh0y1gi5sc-texlive-glossaries-66=
594/bin/makeglossaries
#!/usr/bin/env perl
=2D-8<---------------cut here---------------end--------------->8---

Maybe there should be a symlink to "/bin/env" or something.  Strangely
enough when I add "texlive" to the inputs, the problem is gone.

Any ideas?

Thanks!

=2D avp

=2D-=20
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmTuOGkZHHBvcHRzb3Yu
YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigL6VQB/9vGjpnZWhNm+BBV00QFceI
wL0g4R96r9dwO9USNWLnRY6ftrWit5yIGUTpKdxnVvEfU8kktJK7h6f3jz6SCRPx
dtIy6wsHz/yv98VqENIutpr29gQdUN5oIgATLHoIEO4vgykABIpxBriVyioWfAwF
2cswTMShlA3rXoz8Ztqgn4xP4lhE3CM3K9QHJquoOmviI5JhwSa6HAZ/Pu/r4/Rf
RXtjtKEmdaSfV4QzzbgJOWkMFwTbdRGWAa2hOvLRuzzSES+u4Ln5YuJ00qIgQJQH
0KX/rh1eRLcOm/ptJuy5KINnlqbp6o2p4XR5PTsESd0TBRYm3bHkmt5tfCm71dmy
=Ke49
-----END PGP SIGNATURE-----
--=-=-=--