summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-04-27 15:48:07 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-04-27 15:48:07 +0200
commita57130b12c6012e9b8a4b0c72e55b1322ed927d5 (patch)
treea7e77ca28ede9c892c33d0f3742d33f11976c773 /force-tlmgr-into-user-mode.patch
parentdrop patches no longer required by texlive-core-2023 (diff)
downloadtex-patches-a57130b12c6012e9b8a4b0c72e55b1322ed927d5.tar.gz
tex-patches-a57130b12c6012e9b8a4b0c72e55b1322ed927d5.tar.bz2
tex-patches-a57130b12c6012e9b8a4b0c72e55b1322ed927d5.zip
Add two tlmgr patches to fix include path and force user mode4
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'force-tlmgr-into-user-mode.patch')
-rw-r--r--force-tlmgr-into-user-mode.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/force-tlmgr-into-user-mode.patch b/force-tlmgr-into-user-mode.patch
new file mode 100644
index 0000000..957ba75
--- /dev/null
+++ b/force-tlmgr-into-user-mode.patch
@@ -0,0 +1,38 @@
+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
+@@ -616,6 +616,6 @@ for the full story.\n";
+ }
+ push @notvalidargs, $k if !$found;
+ }
+ if (@notvalidargs) {
+ my $msg = "The action $action does not support the following option(s):\n";
+ for my $c (@notvalidargs) {
+@@ -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
+