termux-packages/packages/texlive-installer/TLUtils.pm.diff
Henrik Grimler 2ed75e267f
texlive-installer: update to 20220403
pythontex patch has been removed since termux's python now support
multiprocessing!
2022-05-02 10:43:23 +02:00

30 lines
1017 B
Diff

--- ./tlpkg/TeXLive/TLUtils.pm.orig 2022-05-01 21:50:15.993394677 +0200
+++ ./tlpkg/TeXLive/TLUtils.pm 2022-05-01 21:50:48.037394654 +0200
@@ -1802,7 +1802,7 @@
}
my $cmd = $keyval{'cmd'};
- my $texdir = `kpsewhich -var-value=SELFAUTOPARENT`;
+ my $texdir = `kpsewhich -var-value=TEXMFROOT`;
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$cmd =~ s!^("?)TEXDIR/!$1$texdir/!g;
@@ -1877,7 +1877,7 @@
if (win32() && defined($keyval{'filew32'})) {
$file = $keyval{'filew32'};
}
- my $texdir = `kpsewhich -var-value=SELFAUTOPARENT`;
+ my $texdir = `kpsewhich -var-value=TEXMFROOT`;
chomp($texdir);
my @syscmd;
if ($file =~ m/\.pl$/i) {
@@ -1952,7 +1952,7 @@
&log("postaction $how shortcut for " . $tlpobj->name . "\n");
if ($how eq "install") {
- my $texdir = `kpsewhich -var-value=SELFAUTOPARENT`;
+ my $texdir = `kpsewhich -var-value=TEXMFROOT`;
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
$icon =~ s!^TEXDIR/!$texdir/!;