blob: 4b82c1fea8274431ac720bbbdcdf8e324ee3233f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
From b8566bfdd6a4ed151ece66bf4267dc0f6838449f Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flo@geekplace.eu>
Date: Sat, 27 Apr 2024 15:32:18 +0200
Subject: [PATCH 2/2] Fix perl include path of tlmgr
The texlive-core ebuilds install tlmgr's perl modules under
/usr/share/tlpkg/TeXLive/
however /usr/share/texmf-dist/scripts/texlive/tlmgr.pl fails to find
them
can't locate TeXLive/TLConfig.pm in @INC (you may need to install the
TeXLive::TLConfig module) (@INC entries checked:
/usr/share/texmf-dist/scripts/texlive/../../texmf-dist/scripts/texlive
/usr/share/texmf-dist/scripts/texlive/../../tlpkg /etc/perl
/usr/local/lib64/perl5/5.38/x86_64-linux-thread-multi
/usr/local/lib64/perl5/5.38
/usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.38
/usr/lib64/perl5/5.38/x86_64-linux-thread-multi /usr/lib64/perl5/5.38)
at /usr/share/texmf-dist/scripts/texlive/tlmgr.pl line 92.
the @INC above is wrong, it includes
/usr/share/texmf-dist/tlpkg (/usr/share/texmf-dist/scripts/texlive/../../tlpkg)
when it should be /usr/share/tlpkg.
So lets fix the include path.
Notably, debian also fixes this via patching tlmgr:
https://github.com/debian-tex/texlive-nonbin/blob/e4e5b367d97b26c19998e71da40f203d2403f41b/texlive-base/debian/patches/debian-tlmgr-usermode#L7-L39
Bug: https://bugs.gentoo.org/832139
Bug: https://bugs.gentoo.org/263194
---
texk/texlive/linked_scripts/texlive/tlmgr.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/texk/texlive/linked_scripts/texlive/tlmgr.pl b/texk/texlive/linked_scripts/texlive/tlmgr.pl
index 47c9f5bfa4af..8d79fd376a11 100755
--- a/texk/texlive/linked_scripts/texlive/tlmgr.pl
+++ b/texk/texlive/linked_scripts/texlive/tlmgr.pl
@@ -59,7 +59,7 @@ BEGIN {
$Master = __FILE__;
$Master =~ s,/*[^/]*$,,;
$bindir = $Master;
- $Master = "$Master/../..";
+ $Master = "$Master/../../..";
# make subprograms (including kpsewhich) have the right path:
$ENV{"PATH"} = "$bindir:$ENV{PATH}";
$kpsewhichname = "kpsewhich";
--
2.43.2
|