Borg stopped working after update to 24.10.0.2

I use borg to make a weekly back of my containers directory and send it to backblaze with a cloudsync job. It’s a very simple script that runs before the job and then it sends the repo remotely.

I used to make borg work by downloading the binary and then overriding the TMPDIR to something like /mnt/tmp as borg will not work without setting a writable tmp dir.

It worked great so far, however it stopped working after I’ve upgraded to 24.10.0.2 for some reason. The error is the same as if I hadn’t set up the TMPDIR:

root@truenas[/mnt/zfspool/backup]# /mnt/zfspool/backup/borg -V
/mnt/zfspool/backup/borg: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Any idea what could have changed? My setup is pretty simple, if I can avoid having to run borg in a container I would.