diff --git a/editor/tex/texlive-bin/actions.py b/editor/tex/texlive-bin/actions.py
index 2ee38dcd4c..2b83db91d9 100644
--- a/editor/tex/texlive-bin/actions.py
+++ b/editor/tex/texlive-bin/actions.py
@@ -13,10 +13,20 @@ from pisi.actionsapi import texlivemodules
import os
-WorkDir = "."
-buildDir = 'texlive-20240312-source/build'
+# WorkDir = "."
+# buildDir = 'texlive-20250308-source/build'
+
+buildDir = 'build'
def setup():
+ shelltools.export("CFLAGS", " -std=gnu17")
+ shelltools.system("sed -i '/AC_SEARCH_LIBS/a KPSE_KPATHSEA_FLAGS' texk/bibtex-x/configure.ac")
+ shelltools.system("sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c")
+
+ shelltools.cd("texk/bibtex-x")
+ shelltools.system("autoreconf")
+ shelltools.cd("../..")
+
shelltools.makedirs(buildDir)
shelltools.cd(buildDir)
shelltools.sym("../configure", "configure")
@@ -58,7 +68,7 @@ def install():
autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR())
shelltools.system("pwd")
#install biber
- pisitools.dobin("../../biber-2.20/bin/biber")
+ pisitools.dobin("../../biber-2.21/bin/biber")
#pisitools.dodir("/usr/share/tlpkg/TeXLive")
#shelltools.move("%s/source/utils/biber/TeXLive/*.pm" % get.workDIR(), "%s/usr/share/tlpkg/TeXLive" % get.installDIR())
diff --git a/editor/tex/texlive-bin/files/arch/lua-root.patch b/editor/tex/texlive-bin/files/arch/lua-root.patch
new file mode 100644
index 0000000000..9a24061bc3
--- /dev/null
+++ b/editor/tex/texlive-bin/files/arch/lua-root.patch
@@ -0,0 +1,13 @@
+diff --git a/libs/lua53/lua53-src/src/luaconf.h b/libs/lua53/lua53-src/src/luaconf.h
+index 9eeeea69e2..2a7deef3e1 100644
+--- a/libs/lua53/lua53-src/src/luaconf.h
++++ b/libs/lua53/lua53-src/src/luaconf.h
+@@ -200,7 +200,7 @@
+
+ #else /* }{ */
+
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
+ #define LUA_PATH_DEFAULT \
diff --git a/editor/tex/texlive-bin/files/arch/ptex-debug-print.patch b/editor/tex/texlive-bin/files/arch/ptex-debug-print.patch
new file mode 100644
index 0000000000..cc2953d995
--- /dev/null
+++ b/editor/tex/texlive-bin/files/arch/ptex-debug-print.patch
@@ -0,0 +1,14 @@
+diff --git a/texk/ptexenc/ptexenc.c b/texk/ptexenc/ptexenc.c
+index 4e81dbee7c..3c98d68125 100644
+--- a/texk/ptexenc/ptexenc.c
++++ b/texk/ptexenc/ptexenc.c
+@@ -1044,7 +1044,9 @@ long input_line2(FILE *fp, unsigned char *buff, unsigned char *buff2,
+ enc = ptenc_guess_enc(fp);
+ if (string_to_enc(enc) > 0) {
+ infile_enc[fd] = string_to_enc(enc);
++#ifdef DEBUG
+ fprintf(stderr, "(guessed encoding #%d: %s = %s)", fd, enc, enc_to_string(infile_enc[fd]));
++#endif /* DEBUG */
+ } else {
+ infile_enc[fd] = get_file_enc();
+ }
diff --git a/editor/tex/texlive-bin/pspec.xml b/editor/tex/texlive-bin/pspec.xml
index 3110469b53..26c10313e5 100644
--- a/editor/tex/texlive-bin/pspec.xml
+++ b/editor/tex/texlive-bin/pspec.xml
@@ -16,8 +16,8 @@
Texlive binaries that are an essential part of TeXLive component.
- https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2024/texlive-20240312-source.tar.xz
- https://github.com/plk/biber/archive/refs/tags/v2.20.tar.gz
+ https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/texlive-20250308-source.tar.xz
+ https://github.com/plk/biber/archive/refs/tags/v2.21.tar.gz
gd-devel
clisp-devel
@@ -42,7 +42,8 @@
ghostscript-devel
-
+ arch/ptex-debug-print.patch
+ arch/lua-root.patch
@@ -101,6 +102,13 @@
+
+ 2026-02-19
+ 20250308
+ Version bump.
+ Pisi Linux Community
+ admin@pisilinux.org
+
2025-02-26
20240312