From dd11c239380fe20c97546ac7b59d0c6eaa90086e Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Tue, 11 Feb 2025 00:06:20 +0100
Subject: [PATCH] Fixed source/libs/luajit/Makefile.am. Update changeLog and
 NEWS.

---
 source/libs/luajit/Makefile.am                | 95 ------------------
 source/libs/luajit/Makefile.in                | 96 -------------------
 source/texk/web2c/luatexdir/ChangeLog         |  3 +
 source/texk/web2c/luatexdir/NEWS              |  8 ++
 .../texk/web2c/luatexdir/luatex_svnversion.h  |  2 +-
 5 files changed, 12 insertions(+), 192 deletions(-)

diff --git a/source/libs/luajit/Makefile.am b/source/libs/luajit/Makefile.am
index 3c73fe6e0..f28a81ad8 100644
--- a/source/libs/luajit/Makefile.am
+++ b/source/libs/luajit/Makefile.am
@@ -34,86 +34,6 @@ dist_libtexluajit_la_SOURCES = \
 	lbitlib.c
 
 
-# nodist_libtexluajit_la_SOURCES = \
-# 	$(ljlib_sources) \
-# 	@LUAJIT_TREE@/src/lib_aux.c \
-# 	@LUAJIT_TREE@/src/lib_base.c \
-# 	@LUAJIT_TREE@/src/lib_bit.c \
-# 	@LUAJIT_TREE@/src/lib_buffer.c \
-# 	@LUAJIT_TREE@/src/lib_debug.c \
-# 	@LUAJIT_TREE@/src/lib_ffi.c \
-# 	@LUAJIT_TREE@/src/lib_init.c \
-# 	@LUAJIT_TREE@/src/lib_io.c \
-# 	@LUAJIT_TREE@/src/lib_jit.c \
-# 	@LUAJIT_TREE@/src/lib_math.c \
-# 	@LUAJIT_TREE@/src/lib_os.c \
-# 	@LUAJIT_TREE@/src/lib_package.c \
-# 	@LUAJIT_TREE@/src/lib_string.c \
-# 	@LUAJIT_TREE@/src/lib_table.c \
-# 	@LUAJIT_TREE@/src/lj_alloc.c \
-# 	@LUAJIT_TREE@/src/lj_api.c \
-# 	@LUAJIT_TREE@/src/lj_asm.c \
-# 	@LUAJIT_TREE@/src/lj_assert.c \
-# 	@LUAJIT_TREE@/src/lj_bc.c \
-# 	@LUAJIT_TREE@/src/lj_bcread.c \
-# 	@LUAJIT_TREE@/src/lj_bcwrite.c \
-# 	@LUAJIT_TREE@/src/lj_buf.c \
-# 	@LUAJIT_TREE@/src/lj_carith.c \
-# 	@LUAJIT_TREE@/src/lj_ccallback.c \
-# 	@LUAJIT_TREE@/src/lj_ccall.c \
-# 	@LUAJIT_TREE@/src/lj_cconv.c \
-# 	@LUAJIT_TREE@/src/lj_cdata.c \
-# 	@LUAJIT_TREE@/src/lj_char.c \
-# 	@LUAJIT_TREE@/src/lj_clib.c \
-# 	@LUAJIT_TREE@/src/lj_cparse.c \
-# 	@LUAJIT_TREE@/src/lj_crecord.c \
-# 	@LUAJIT_TREE@/src/lj_ctype.c \
-# 	@LUAJIT_TREE@/src/lj_debug.c \
-# 	@LUAJIT_TREE@/src/lj_dispatch.c \
-# 	@LUAJIT_TREE@/src/lj_err.c \
-# 	@LUAJIT_TREE@/src/lj_ffrecord.c \
-# 	@LUAJIT_TREE@/src/lj_func.c \
-# 	@LUAJIT_TREE@/src/lj_gc.c \
-# 	@LUAJIT_TREE@/src/lj_gdbjit.c \
-# 	@LUAJIT_TREE@/src/lj_ir.c \
-# 	@LUAJIT_TREE@/src/lj_lex.c \
-# 	@LUAJIT_TREE@/src/lj_lib.c \
-# 	@LUAJIT_TREE@/src/lj_load.c \
-# 	@LUAJIT_TREE@/src/lj_mcode.c \
-# 	@LUAJIT_TREE@/src/lj_meta.c \
-# 	@LUAJIT_TREE@/src/lj_obj.c \
-# 	@LUAJIT_TREE@/src/lj_opt_dce.c \
-# 	@LUAJIT_TREE@/src/lj_opt_fold.c \
-# 	@LUAJIT_TREE@/src/lj_opt_loop.c \
-# 	@LUAJIT_TREE@/src/lj_opt_mem.c \
-# 	@LUAJIT_TREE@/src/lj_opt_narrow.c \
-# 	@LUAJIT_TREE@/src/lj_opt_sink.c \
-# 	@LUAJIT_TREE@/src/lj_opt_split.c \
-# 	@LUAJIT_TREE@/src/lj_parse.c \
-# 	@LUAJIT_TREE@/src/lj_prng.c \
-# 	@LUAJIT_TREE@/src/lj_profile.c \
-# 	@LUAJIT_TREE@/src/lj_record.c \
-# 	@LUAJIT_TREE@/src/lj_serialize.c \
-# 	@LUAJIT_TREE@/src/lj_snap.c \
-# 	@LUAJIT_TREE@/src/lj_state.c \
-# 	@LUAJIT_TREE@/src/lj_str.c \
-# 	@LUAJIT_TREE@/src/lj_strfmt.c \
-# 	@LUAJIT_TREE@/src/lj_strfmt_num.c \
-# 	@LUAJIT_TREE@/src/lj_strscan.c \
-# 	@LUAJIT_TREE@/src/lj_tab.c \
-# 	@LUAJIT_TREE@/src/lj_trace.c \
-# 	@LUAJIT_TREE@/src/lj_udata.c \
-# 	@LUAJIT_TREE@/src/lj_vmevent.c \
-# 	@LUAJIT_TREE@/src/lj_vmmath.c \
-# 	@LUAJIT_TREE@/src/luajit.c \
-# 	@LUAJIT_TREE@/src/vm_arm64.dasc \
-# 	@LUAJIT_TREE@/src/vm_arm.dasc \
-# 	@LUAJIT_TREE@/src/vm_mips64.dasc \
-# 	@LUAJIT_TREE@/src/vm_mips.dasc \
-# 	@LUAJIT_TREE@/src/vm_ppc.dasc \
-# 	@LUAJIT_TREE@/src/vm_x64.dasc \
-# 	@LUAJIT_TREE@/src/vm_x86.dasc
-
 nodist_libtexluajit_la_SOURCES = \
 	$(ljlib_sources) \
 	@LUAJIT_TREE@/src/lib_aux.c \
@@ -189,21 +109,6 @@ else !PEOBJ
 nodist_libtexluajit_la_SOURCES += lj_vm_asm.S
 endif !PEOBJ
 
-# ljlib_sources = \
-# 	lib_aux.c \
-# *	lib_base.c \
-# *	lib_bit.c \
-# 	lib_buffer.c \
-# *	lib_debug.c \
-# *	lib_ffi.c \
-# 	lib_init.c \
-# *	lib_io.c \
-# *	lib_jit.c \
-# *	lib_math.c \
-# *	lib_os.c \
-# *	lib_package.c \
-# *	lib_string.c \
-# *	lib_table.c
 
 ljlib_sources = \
 	lib_base.c \
diff --git a/source/libs/luajit/Makefile.in b/source/libs/luajit/Makefile.in
index 77a802c2f..63d26ad8d 100644
--- a/source/libs/luajit/Makefile.in
+++ b/source/libs/luajit/Makefile.in
@@ -773,86 +773,6 @@ libtexluajit_la_LDFLAGS = -bindir @bindir@ -no-undefined -version-info $(LUAJIT_
 dist_libtexluajit_la_SOURCES = \
 	lbitlib.c
 
-
-# nodist_libtexluajit_la_SOURCES = \
-# 	$(ljlib_sources) \
-# 	@LUAJIT_TREE@/src/lib_aux.c \
-# 	@LUAJIT_TREE@/src/lib_base.c \
-# 	@LUAJIT_TREE@/src/lib_bit.c \
-# 	@LUAJIT_TREE@/src/lib_buffer.c \
-# 	@LUAJIT_TREE@/src/lib_debug.c \
-# 	@LUAJIT_TREE@/src/lib_ffi.c \
-# 	@LUAJIT_TREE@/src/lib_init.c \
-# 	@LUAJIT_TREE@/src/lib_io.c \
-# 	@LUAJIT_TREE@/src/lib_jit.c \
-# 	@LUAJIT_TREE@/src/lib_math.c \
-# 	@LUAJIT_TREE@/src/lib_os.c \
-# 	@LUAJIT_TREE@/src/lib_package.c \
-# 	@LUAJIT_TREE@/src/lib_string.c \
-# 	@LUAJIT_TREE@/src/lib_table.c \
-# 	@LUAJIT_TREE@/src/lj_alloc.c \
-# 	@LUAJIT_TREE@/src/lj_api.c \
-# 	@LUAJIT_TREE@/src/lj_asm.c \
-# 	@LUAJIT_TREE@/src/lj_assert.c \
-# 	@LUAJIT_TREE@/src/lj_bc.c \
-# 	@LUAJIT_TREE@/src/lj_bcread.c \
-# 	@LUAJIT_TREE@/src/lj_bcwrite.c \
-# 	@LUAJIT_TREE@/src/lj_buf.c \
-# 	@LUAJIT_TREE@/src/lj_carith.c \
-# 	@LUAJIT_TREE@/src/lj_ccallback.c \
-# 	@LUAJIT_TREE@/src/lj_ccall.c \
-# 	@LUAJIT_TREE@/src/lj_cconv.c \
-# 	@LUAJIT_TREE@/src/lj_cdata.c \
-# 	@LUAJIT_TREE@/src/lj_char.c \
-# 	@LUAJIT_TREE@/src/lj_clib.c \
-# 	@LUAJIT_TREE@/src/lj_cparse.c \
-# 	@LUAJIT_TREE@/src/lj_crecord.c \
-# 	@LUAJIT_TREE@/src/lj_ctype.c \
-# 	@LUAJIT_TREE@/src/lj_debug.c \
-# 	@LUAJIT_TREE@/src/lj_dispatch.c \
-# 	@LUAJIT_TREE@/src/lj_err.c \
-# 	@LUAJIT_TREE@/src/lj_ffrecord.c \
-# 	@LUAJIT_TREE@/src/lj_func.c \
-# 	@LUAJIT_TREE@/src/lj_gc.c \
-# 	@LUAJIT_TREE@/src/lj_gdbjit.c \
-# 	@LUAJIT_TREE@/src/lj_ir.c \
-# 	@LUAJIT_TREE@/src/lj_lex.c \
-# 	@LUAJIT_TREE@/src/lj_lib.c \
-# 	@LUAJIT_TREE@/src/lj_load.c \
-# 	@LUAJIT_TREE@/src/lj_mcode.c \
-# 	@LUAJIT_TREE@/src/lj_meta.c \
-# 	@LUAJIT_TREE@/src/lj_obj.c \
-# 	@LUAJIT_TREE@/src/lj_opt_dce.c \
-# 	@LUAJIT_TREE@/src/lj_opt_fold.c \
-# 	@LUAJIT_TREE@/src/lj_opt_loop.c \
-# 	@LUAJIT_TREE@/src/lj_opt_mem.c \
-# 	@LUAJIT_TREE@/src/lj_opt_narrow.c \
-# 	@LUAJIT_TREE@/src/lj_opt_sink.c \
-# 	@LUAJIT_TREE@/src/lj_opt_split.c \
-# 	@LUAJIT_TREE@/src/lj_parse.c \
-# 	@LUAJIT_TREE@/src/lj_prng.c \
-# 	@LUAJIT_TREE@/src/lj_profile.c \
-# 	@LUAJIT_TREE@/src/lj_record.c \
-# 	@LUAJIT_TREE@/src/lj_serialize.c \
-# 	@LUAJIT_TREE@/src/lj_snap.c \
-# 	@LUAJIT_TREE@/src/lj_state.c \
-# 	@LUAJIT_TREE@/src/lj_str.c \
-# 	@LUAJIT_TREE@/src/lj_strfmt.c \
-# 	@LUAJIT_TREE@/src/lj_strfmt_num.c \
-# 	@LUAJIT_TREE@/src/lj_strscan.c \
-# 	@LUAJIT_TREE@/src/lj_tab.c \
-# 	@LUAJIT_TREE@/src/lj_trace.c \
-# 	@LUAJIT_TREE@/src/lj_udata.c \
-# 	@LUAJIT_TREE@/src/lj_vmevent.c \
-# 	@LUAJIT_TREE@/src/lj_vmmath.c \
-# 	@LUAJIT_TREE@/src/luajit.c \
-# 	@LUAJIT_TREE@/src/vm_arm64.dasc \
-# 	@LUAJIT_TREE@/src/vm_arm.dasc \
-# 	@LUAJIT_TREE@/src/vm_mips64.dasc \
-# 	@LUAJIT_TREE@/src/vm_mips.dasc \
-# 	@LUAJIT_TREE@/src/vm_ppc.dasc \
-# 	@LUAJIT_TREE@/src/vm_x64.dasc \
-# 	@LUAJIT_TREE@/src/vm_x86.dasc
 nodist_libtexluajit_la_SOURCES = $(ljlib_sources) \
 	@LUAJIT_TREE@/src/lib_aux.c @LUAJIT_TREE@/src/lib_init.c \
 	@LUAJIT_TREE@/src/lj_alloc.c @LUAJIT_TREE@/src/lj_api.c \
@@ -890,22 +810,6 @@ nodist_libtexluajit_la_SOURCES = $(ljlib_sources) \
 	@LUAJIT_TREE@/src/vm_x64.dasc @LUAJIT_TREE@/src/vm_x86.dasc \
 	$(am__append_1)
 @PEOBJ_TRUE@libtexluajit_la_LIBADD = lj_vm_obj.lo
-
-# ljlib_sources = \
-# 	lib_aux.c \
-# *	lib_base.c \
-# *	lib_bit.c \
-# 	lib_buffer.c \
-# *	lib_debug.c \
-# *	lib_ffi.c \
-# 	lib_init.c \
-# *	lib_io.c \
-# *	lib_jit.c \
-# *	lib_math.c \
-# *	lib_os.c \
-# *	lib_package.c \
-# *	lib_string.c \
-# *	lib_table.c
 ljlib_sources = \
 	lib_base.c \
         lib_buffer.c \
diff --git a/source/texk/web2c/luatexdir/ChangeLog b/source/texk/web2c/luatexdir/ChangeLog
index 52c0e06ca..1b5febbaf 100644
--- a/source/texk/web2c/luatexdir/ChangeLog
+++ b/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,6 @@
+2025-02-10 Luigi Scarso <luigi.scarso@gmail.com>
+	* Updated \tracinglostchars. 4: early warning (and force terminal); >4: early error.
+
 2025-02-09 Luigi Scarso <luigi.scarso@gmail.com>
 	* fixed shell-escape bypass (thanks to tex@maxchernoff.ca)
 	* Add token.unchecked_put_next, support setting the environment
diff --git a/source/texk/web2c/luatexdir/NEWS b/source/texk/web2c/luatexdir/NEWS
index 7df6e2402..994a8c9a1 100644
--- a/source/texk/web2c/luatexdir/NEWS
+++ b/source/texk/web2c/luatexdir/NEWS
@@ -4,6 +4,11 @@ LuaTeX 1.21.0 2025-02-13
 
 - LuaJIT 2.1.1736781742
 - New luaffi lib, supporting aarch64
+- \tracinglostchars  has two extra options that
+   report in an earlier stage i.e.\ when the glyphs are packaged or processed during
+   line breaking:
+   \tracinglostchars=4 early warning (and force terminal)
+   \tracinglostchars >4 early error 
 - New primitive \mathemptydisplaymode. By default paragraphs
   before a display equation containing dir nodes are never ignored.
   Changing that could break existing documents, but when you set mathemptydisplaymode
@@ -20,6 +25,9 @@ LuaTeX 1.21.0 2025-02-13
   to include a correct pdf of the image instead, it's more robust.
 - Handle token combiners in immediate assignments (H.Hagen)
 
+
+
+
 For more details, see ChangeLog.
 
 
diff --git a/source/texk/web2c/luatexdir/luatex_svnversion.h b/source/texk/web2c/luatexdir/luatex_svnversion.h
index c4cf5939e..aad2746ab 100644
--- a/source/texk/web2c/luatexdir/luatex_svnversion.h
+++ b/source/texk/web2c/luatexdir/luatex_svnversion.h
@@ -1,4 +1,4 @@
 #ifndef luatex_svn_revision_h
 #define luatex_svn_revision_h
-#define luatex_svn_revision 7663
+#define luatex_svn_revision 7664
 #endif
-- 
GitLab