| 1 |
--- texlive-base-2026.20260328.orig/texmf-dist/scripts/texlive/tlmgr.pl |
| 2 |
+++ texlive-base-2026.20260328/texmf-dist/scripts/texlive/tlmgr.pl |
| 3 |
@@ -43,41 +43,41 @@ |
| 4 |
} |
| 5 |
|
| 6 |
BEGIN { |
| 7 |
- $^W = 1; |
| 8 |
- # make subprograms (including kpsewhich) have the right path: |
| 9 |
- my $kpsewhichname; |
| 10 |
- $Master = __FILE__; |
| 11 |
- if ($^O =~ /^MSWin/i) { |
| 12 |
- # on w32 $0 and __FILE__ point directly to tlmgr.pl; they can be relative |
| 13 |
- $Master =~ s!\\!/!g; |
| 14 |
- $Master =~ s![^/]*$!../../..! |
| 15 |
- unless ($Master =~ s!/texmf-dist/scripts/texlive/tlmgr\.pl$!!i); |
| 16 |
- $bindir = "$Master/bin/windows"; |
| 17 |
- $kpsewhichname = "kpsewhich.exe"; |
| 18 |
- # PATH already set by wrapper batchfile |
| 19 |
- } else { |
| 20 |
- $Master =~ s,/*[^/]*$,,; |
| 21 |
- $bindir = $Master; |
| 22 |
- $Master = "$Master/../.."; |
| 23 |
- $kpsewhichname = "kpsewhich"; |
| 24 |
- $ENV{"PATH"} = "$bindir:$ENV{PATH}"; |
| 25 |
- } |
| 26 |
- if (-r "$bindir/$kpsewhichname") { |
| 27 |
- # not in bootstrapping mode => kpsewhich exists, so use it to get $Master |
| 28 |
- chomp($Master = `kpsewhich -var-value=TEXMFROOT`); |
| 29 |
- } |
| 30 |
- |
| 31 |
- # if we have no directory in which to find our modules, |
| 32 |
- # no point in going on. |
| 33 |
- if (! $Master) { |
| 34 |
- warn "$0: Could not determine (Master) directory of tlmgr executable.\n"; |
| 35 |
- warn "$0: with __FILE__: ", __FILE__, "\n"; |
| 36 |
- warn "$0: and bindir: $bindir\n"; |
| 37 |
- warn "$0: and PATH: $ENV{PATH}\n"; |
| 38 |
- die "$0: Check for error messages above.\n"; |
| 39 |
- |
| 40 |
- } |
| 41 |
- |
| 42 |
+# $^W = 1; |
| 43 |
+# # make subprograms (including kpsewhich) have the right path: |
| 44 |
+# my $kpsewhichname; |
| 45 |
+# $Master = __FILE__; |
| 46 |
+# if ($^O =~ /^MSWin/i) { |
| 47 |
+# # on w32 $0 and __FILE__ point directly to tlmgr.pl; they can be relative |
| 48 |
+# $Master =~ s!\\!/!g; |
| 49 |
+# $Master =~ s![^/]*$!../../..! |
| 50 |
+# unless ($Master =~ s!/texmf-dist/scripts/texlive/tlmgr\.pl$!!i); |
| 51 |
+# $bindir = "$Master/bin/windows"; |
| 52 |
+# $kpsewhichname = "kpsewhich.exe"; |
| 53 |
+# # PATH already set by wrapper batchfile |
| 54 |
+# } else { |
| 55 |
+# $Master =~ s,/*[^/]*$,,; |
| 56 |
+# $bindir = $Master; |
| 57 |
+# $Master = "$Master/../.."; |
| 58 |
+# $kpsewhichname = "kpsewhich"; |
| 59 |
+# $ENV{"PATH"} = "$bindir:$ENV{PATH}"; |
| 60 |
+# } |
| 61 |
+# if (-r "$bindir/$kpsewhichname") { |
| 62 |
+# # not in bootstrapping mode => kpsewhich exists, so use it to get $Master |
| 63 |
+# chomp($Master = `kpsewhich -var-value=TEXMFROOT`); |
| 64 |
+# } |
| 65 |
+# |
| 66 |
+# # if we have no directory in which to find our modules, |
| 67 |
+# # no point in going on. |
| 68 |
+# if (! $Master) { |
| 69 |
+# warn "$0: Could not determine (Master) directory of tlmgr executable.\n"; |
| 70 |
+# warn "$0: with __FILE__: ", __FILE__, "\n"; |
| 71 |
+# warn "$0: and bindir: $bindir\n"; |
| 72 |
+# warn "$0: and PATH: $ENV{PATH}\n"; |
| 73 |
+# die "$0: Check for error messages above.\n"; |
| 74 |
+# |
| 75 |
+# } |
| 76 |
+ $Master = "/usr/share/texlive"; |
| 77 |
$::installerdir = $Master; # for config.guess et al., see TLUtils.pm |
| 78 |
|
| 79 |
# make Perl find our packages first: |