Move heirloom lex and flex after musl, replace heirloom yacc with byacc

This way, heirloom-devtools is only linked to a libc with a CDDL-compatible
license, making it fully redistributable. Heirloom yacc doesn't work properly
with musl libc, but luckily byacc can do its job just fine, so we only need
heirloom lex now.

Thanks to the more complete libc, and bash being available, heirloom's
bootstrap is significantly simplified.
This commit is contained in:
Gábor Stefanik 2024-04-15 01:22:50 +02:00
parent 6567973a04
commit 02fb689ce1
6 changed files with 26 additions and 1679 deletions

View file

@ -30,14 +30,14 @@ patch -Np0 -i ../../patches/meslibc.patch
make CC=tcc AR=tcc\ -ar CFLAGS=-DMAXPATHLEN=100\ -DEILSEQ=84\ -DMB_LEN_MAX=100 LDFLAGS=-lgetopt\ -static RANLIB=true
# Install yacc
install yacc ${BINDIR}/byacc
install yacc ${BINDIR}/yacc
cd ../..
# Checksums
if match x${UPDATE_CHECKSUMS} xTrue; then
sha256sum -o ${pkg}.checksums \
/usr/bin/byacc
/usr/bin/yacc
install ${pkg}.checksums ${SRCDIR}
else