byacc package does not have support for %destructor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byacc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug is the result of a StackOverflow question [1], in which the poster attempted to use the Ubuntu byacc package in order to manually build libxkbcommon [2]. The libxkbcommon source includes a version of the xkbcomp utility which in turn includes a grammar description (in src/xkbcomp/
According to the byacc package Changelog [3], the package was modified on 10 May 2014 (version 20140422-1) to enable the btyacc extension. This extension is required to support the %destructor declarations. The extension is enabled by specifying --enable-btyacc on the ./configure command.
However, the subsequent package version 20140715-1 does not enable that extension. See below.
[1]: https:/
[2]: https:/
[3]: http://
-----
$ dpkg -l byacc
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++
ii byacc 20140715-1 amd64 public domain Berkeley LALR Yacc parser generator
$ /usr/bin/byacc -B
/usr/bin/byacc: w - -B flag unsupported, reconfigure with --enable-btyacc
I also verified that this problem also applies to the latest (bionic+ cosmic/ amd64) build, 20140715-1build1.
I believe the problem is in the debian/rules file at line 32:
30 dh_auto_configure -- $(shell dpkg-buildflags --export=configure) \ transform- name='s, ^,b,' \
31 --program-
32 --enable-byacc
The last line should read: --enable-btyacc