tex-luatex requires older version of zlib after upgrade from 13.2 to 13.3

From: Kaya Saman <kayasaman_at_optiplex-networks.com>
Date: Wed, 28 Aug 2024 10:54:53 UTC
Hi,


I'm trying to upgrade my ports collection but running into this error. I 
performed the necessary upgrade steps:


uname -a
FreeBSD <hostname> 13.3-RELEASE-p5 FreeBSD 13.3-RELEASE-p5 GENERIC amd64


and have initiated a full ports rebuild. I'm using portmaster so I just 
ran a: portmaster -adfy --no-confirm


Somehow luatex keeps throwing up this error??


I have seen two postings on this already but nothing seems to work for 
me....


https://forums.freebsd.org/threads/lualatex-incorrect-version-of-zlib.93162/

https://lists.freebsd.org/archives/freebsd-ports/2024-June/006202.html


Does anyone have a solution to this? Output below:


Making install in .
  /bin/mkdir -p '/usr/ports/print/tex-luatex/work/stage/usr/local/bin'
   /bin/sh ./libtool   --mode=install install  -s -m 555 luahbtex luatex 
luajittex '/usr/ports/print/tex-luatex/work/stage/usr/local/bin'
libtool: install: install -m 555 -s luahbtex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/luahbtex
libtool: install: install -m 555 -s luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/luatex
libtool: install: install -m 555 -s luajittex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/luajittex
/usr/bin/make  install-exec-hook
/bin/mkdir -p /usr/ports/print/tex-luatex/work/stage/usr/local/bin
/usr/bin/find -s 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist -not 
-type d | /usr/bin/sort |  /usr/bin/sed -e 
's#^/usr/ports/print/tex-luatex/work/stage/usr/local/##' >> 
/usr/ports/print/tex-luatex/work/.PLIST.mktmp
/usr/bin/find -s 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist -type 
d -empty | /usr/bin/sort -r |  /usr/bin/sed -e 
's#^/usr/ports/print/tex-luatex/work/stage/usr/local/#@dir #' >> 
/usr/ports/print/tex-luatex/work/.PLIST.mktmp
echo "share/texmf-var/web2c/luatex/lollipop.log" >> 
/usr/ports/print/tex-luatex/work/.PLIST.mktmp
echo "share/texmf-var/web2c/luatex/lollipop.fmt" >> 
/usr/ports/print/tex-luatex/work/.PLIST.mktmp
/bin/ln -sf luahbtex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/lualatex
/bin/ln -sf luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/dviluatex
/bin/ln -sf luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/dvilualatex
/bin/ln -sf luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/lualollipop
/bin/ln -sf luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/texlua
/bin/ln -sf luatex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/texluac
/bin/ln -sf luajittex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/texluajit
/bin/ln -sf luajittex 
/usr/ports/print/tex-luatex/work/stage/usr/local/bin/texluajitc
test -n '"luatex luatex language.def,language.dat.lua luatex.ini" 
"dviluatex luatex language.def,language.dat.lua dviluatex.ini" 
"dvilualatex luatex language.dat,language.dat.lua dvilualatex.ini"  
"lualatex luahbtex language.dat,language.dat.lua lualatex.ini"  
"luajittex luajittex language.def,language.dat.lua luatex.ini"  
"pdfcsplain luatex - -etex csplain.ini"  "lollipop luatex - lollipop.ini"'
/usr/bin/printf "%s\t#luatex\n" "luatex luatex 
language.def,language.dat.lua luatex.ini"  "dviluatex luatex 
language.def,language.dat.lua dviluatex.ini"  "dvilualatex luatex 
language.dat,language.dat.lua dvilualatex.ini"  "lualatex luahbtex 
language.dat,language.dat.lua lualatex.ini"  "luajittex luajittex 
language.def,language.dat.lua luatex.ini"  "pdfcsplain luatex - -etex 
csplain.ini"  "lollipop luatex - lollipop.ini"  > 
/usr/ports/print/tex-luatex/work/fmtutil.cnf
/bin/mkdir -p 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var/web2c 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist/web2c
/bin/ln -f -s /usr/local/share/texmf-dist/web2c/texmf.cnf 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist/web2c/texmf.cnf
/usr/local/bin/mktexlsr 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var
mktexlsr: Updating 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist/ls-R...
mktexlsr: Updating 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var/ls-R...
mktexlsr: Done.
/bin/cat /usr/ports/print/tex-luatex/work/fmtutil.cnf |  while read 
format dum; do  /usr/bin/env 
PATH=/usr/ports/print/tex-luatex/work/stage/usr/local/bin:/usr/ports/print/tex-luatex/work/.bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin 
TEXMFDIST=/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-dist:/usr/local/share/texmf-dist 
/usr/local/bin/fmtutil-sys  --byfmt $format  --fmtdir 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var/web2c 
--cnffile /usr/ports/print/tex-luatex/work/fmtutil.cnf;  done
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence 
order):
fmtutil:   /usr/ports/print/tex-luatex/work/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing 
changes:
fmtutil:   /usr/ports/print/tex-luatex/work/fmtutil.cnf
fmtutil [INFO]: writing formats under 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var/web2c
fmtutil [INFO]: --- remaking luatex with luatex
fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex 
luatex.ini' ...
PANIC: unprotected error in call to Lua API (zlib library version does 
not match - header: 1.2.12, library: 1.3.1)
fmtutil [INFO]: log file copied to: 
/usr/ports/print/tex-luatex/work/stage/usr/local/share/texmf-var/web2c/luatex/luatex.log
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex 
luatex.ini </dev/null' return status: 0.5234375
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: not selected formats: 6
fmtutil [INFO]: failed to build: 1 (luatex/luatex)
fmtutil [INFO]: total formats: 7
fmtutil [INFO]: exiting with status 1
*** Error code 1

Stop.
make: stopped in /usr/ports/print/tex-luatex



Thanks,


Kaya