logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 7048b4a1745b492a30e94e6c49cc2be052ca6ac4
parent 622dd36d1f191128b6e8ae46f36c53e79e3b1a9e
Author: fosslinux <fosslinux@aussies.space>
Date:   Thu,  6 Feb 2025 10:02:28 +1100

Replace byacc with oyacc in parts.rst

Diffstat:

Mparts.rst26+++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/parts.rst b/parts.rst @@ -322,15 +322,23 @@ we skip them. The ``cp`` in this stage replaces the ``mescc-tools-extra`` ``cp``. -byacc 20240109 -============== +oyacc 6.6 +========= + +``oyacc`` is a portable derivative of OpenBSD's Yacc parser generator. Unlike +``bison``, it can be compiled with a simple ``Makefile``. Some simple patches +are required for mes libc. + +We need a Yacc implementation for bash. -The Berkeley Yacc parser generator, a public-domain implementation of the -``yacc`` utility. Differently from the analogous ``bison`` utility from the -GNU project, it can be compiled with a simple ``Makefile``. +Side note; the following other implementations have been tested and not adopted: -Some code is backported from an earlier version of byacc, 20140101, because -of an incompatibility of newer versions with meslibc. +- GNU Bison: requires a more complicated build we cannot yet support without + lots of work +- Heirloom Devtools: licensed under a GPL-incompatible license, which makes the + resultant binary with mes libc (GPL licensed) non-distributable +- Berkeley Yacc: has a few C files generated using an Awk script; Awk is not yet + available to us bash 2.05b ========== @@ -341,7 +349,7 @@ kaem, including proper POSIX sh support, globbing, etc. Bash ships with a bison pre-generated file here which we delete. Unfortunately, we have not bootstrapped bison but fortunately for us, -Berkeley Yacc is able to cope here. +OpenBSD's Yacc is able to cope here. setup_repo ========== @@ -465,7 +473,7 @@ Differently from the analogous utilities from the GNU project, they can be compiled with a simple ``Makefile``. Because issues with the Heirloom version of ``yacc`` compiled against musl, -we continue using Berkeley Yacc together with Heirloom ``lex`` for the next +we continue using OpenBSD's ``yacc`` together with Heirloom ``lex`` for the next few steps. flex 2.5.11