Re: can't install package texlive-base-20240312-1

Derek Homeier <[email protected]> Wed, 6 Nov 2024 03:46:12 +0100
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 5 Nov 2024, at 4:57 pm, Scott Hannahs via Fink-users <[email protected]> wrote:
> 
> I am away from my development systems, but it is weird that fink rebuilds the executables luajittex and luajithbtex which seem to be valid in the build directories.  Then during installation, it installs in /opt/sw/bin/ non working versions that “file” lists as “malformed executables”.   The sizes are wrong.  If I copy the build working executables to the /opt/sw/bin directory and try to reinstall, it still fails as they are overwritten early in the install process.
> 
FWIW I can reproduce the failure with 15.1/Xcode 16.1 when building for x86_64 (in Rosetta), but not with
the arm64 build. The x86_64 installation actually tries to execute the programs twice, first segfaulting:

fmtutil [INFO]: --- remaking luajithbtex with luajithbtex
fmtutil: running `luajithbtex -ini   -jobname=luajithbtex -progname=luajithbtex luatex.ini' ...
sh: line 1: 22005 Segmentation fault: 11  luajithbtex -ini -jobname=luajithbtex -progname=luajithbtex luatex.ini < /dev/null

fmtutil [INFO]: --- remaking luajittex with luajittex
fmtutil: running `luajittex -ini   -jobname=luajittex -progname=luajittex luatex.ini' ...
sh: line 1: 22022 Segmentation fault: 11  luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini < /dev/null
fmtutil [INFO]: log file copied to: /opt/x64/var/lib/texmf/web2c/luajittex/luajittex.log

and then returning the “error on —strict”

fmtutil [ERROR]: running `luajithbtex -ini   -jobname=luajithbtex -progname=luajithbtex luatex.ini </dev/null' return status: 139
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `luajittex -ini   -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status: 139
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: disabled formats: 3
fmtutil [INFO]: successfully rebuilt formats: 52
fmtutil [INFO]: failed to build: 2 (luajithbtex/luajithbtex luajittex/luajittex)

The executables are not shown as malformed in either case
> ll /opt/*[24]/bin/luajit*
-rwxr-xr-x  1 root  admin  6007664  5 Nov 17:16 /opt/sw2/bin/luajithbtex*
-rwxr-xr-x  1 root  admin  5965680  5 Nov 17:16 /opt/sw2/bin/luajittex*
-rwxr-xr-x  1 root  admin  6347720  5 Nov 15:34 /opt/x64/bin/luajithbtex*
-rwxr-xr-x  1 root  admin  6310120  5 Nov 15:34 /opt/x64/bin/luajittex*
> file /opt/*[24]/bin/luajit*                                                                                                                     
/opt/sw2/bin/luajithbtex: Mach-O 64-bit executable arm64
/opt/sw2/bin/luajittex:   Mach-O 64-bit executable arm64
/opt/x64/bin/luajithbtex: Mach-O 64-bit executable x86_64
/opt/x64/bin/luajittex:   Mach-O 64-bit executable x86_64

When I rebuild, the executables in the Fink install directory %i are identical to the final installed ones;
the built ones in %b/Work/texk/web2c are somewhat larger, but are segfaulting the same way when
called directly – the size change would be a result from the install —strip.

>> On Nov 5, 2024, at 06:06, Hanspeter Niederstrasser <[email protected]> wrote:
>> …
>> What’s your output of `fink list texlive-texmf` ?
>> 
>> If you edit the file /opt/sw/share/texmf-dist/web2c/fmtutil.cnf around line 96, and add the # symbol at the very beginning of the line that starts with "luajittex luajittex language.def", and then try `fink reinstall texlive-base`, does that let the build finish? If it fails on luajithbtex, then also add # to the line immediately above the one you edited first. What's interesting is that I have a system with macOS 13.6.3 and don't get this failure.

This lets the x86_64 install succeed as well (texlive-base and -texmf 20240312-1).

						Derek



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users