[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1003769: RFS: byacc/1.0-2 [ITA] -- public domain Berkeley LALR Yacc parser generator



On Sun, Jan 16, 2022 at 08:03:14AM +0100, Andreas Metzler wrote:
> On 2022-01-15 Thomas Dickey <dickey@his.com> wrote:
> [...]
> > I am looking for a sponsor for my package "byacc":
> 
> >  * Package name    : byacc
> >    Version         : 1:2.0.20220114-1
> >    Upstream Author : <dickey@invisible-island.net> (Thomas E. Dickey)
> >  * URL             : https://invisible-island.net/byacc/
> >  * License         : GPL-3, public-domain, other-BSD
> >  * Vcs             : https://salsa.debian.org/debian/byacc
> >    Section         : devel
> 
> > It builds those binary packages:
> 
> >   byacc - public domain Berkeley LALR Yacc parser generator
> >   byacc2 - public domain Berkeley LALR Yacc parser generator, with back-tracking
> [...]
> 
> Hello Thomas,
> 
> I would like to question the introduction of another binary package:
> * "byacc2" seems to be a (newly introduced) Debiansm. Googling for
>   "byacc2" only finds links related to this RFS.

Ultimately that's because Debian's the only place where the older "btyacc"
is packaged.

> * The packages are tiny (about 100k) and have no conflicting files.
>   /usr/bin/byacc2 and /usr/bin/byacc could be shipped in on binary
>   package.

yes, I could do that.  I don't believe that would interfere with using
the alternatives mechanism for selecting "yacc".  I made them separate
because I thought that would be the expected way.

> * Is the double compilation/binary necessary? - Is /usr/bin/byacc2

I thought it would be the safest approach.  I've made some effort to keep
the two compatible, but sooner or later will get some bug report related
to their differences.  Debian's the usual place for that sort of thing.

>   incompatible with /usr/bin/byacc2? A quick glance at the yacc.1 seems
>   to suggests that /usr/bin/byacc2 is a backward compatible extension of
>   /usr/bin/byacc the only difference being that it additionally supports
>   | -B   create a backtracking parser

...with these caveats:

	a) because of the backtracking support, the skeletons differ.

	b) backtracking can be slow

However, Mageia and OpenSUSE provide packages for byacc with backtracking
enabled.  (I should make a list of the other packages, but the rpm's
are easy to check at the moment).

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


Reply to: