summaryrefslogtreecommitdiff
blob: 5ff74b7459d14f206b6f22a51c859b10f2d88aa9 (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
From 9ea30257f3c31924e711f9d32b33017ae8870cf5 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flo@geekplace.eu>
Date: Sat, 27 Apr 2024 15:31:14 +0200
Subject: [PATCH 1/2] Force tlmgr into user mode

Similar to what debian does [1], we forcefully switch tlmgr into user
mode.

1: https://github.com/debian-tex/texlive-nonbin/blob/e4e5b367d97b26c19998e71da40f203d2403f41b/texlive-base/debian/patches/debian-tlmgr-usermode#L47-L53
---
 texk/texlive/linked_scripts/texlive/tlmgr.pl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/texk/texlive/linked_scripts/texlive/tlmgr.pl b/texk/texlive/linked_scripts/texlive/tlmgr.pl
index 6b7da02192d2..47c9f5bfa4af 100755
--- a/texk/texlive/linked_scripts/texlive/tlmgr.pl
+++ b/texk/texlive/linked_scripts/texlive/tlmgr.pl
@@ -630,6 +631,10 @@ for the full story.\n";
 
   # the main tree we will be working on
   $::maintree = $Master;
+  if (!$opts{"usermode"} && $action ne "init-usertree") {
+    $opts{"usermode"} = 1;
+    print "Gentoo managed TeXLive, switching tlmgr to user mode.\n";
+  }
   if ($opts{"usermode"}) {
     # we could also try to detect that we don't have write permissions
     # and switch to user mode automatically
-- 
2.43.2