Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676524 - app-crypt/mit-krb5-1.16.3 - bison -y: .../work/krb5-1.16.3/src/kadmin/cli/getdate.y:180.1-7: error: POSIX Yacc does not support %expect [-Werror=yacc]
Summary: app-crypt/mit-krb5-1.16.3 - bison -y: .../work/krb5-1.16.3/src/kadmin/cli/get...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-27 15:15 UTC by Sven Hesse
Modified: 2019-01-28 19:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Hesse 2019-01-27 15:15:51 UTC
Probably due to the recent Bison 3.3 release, app-crypt/mit-krb5-1.16.3 doesn't compile anymore.

The error is the following:

bison -y  /var/tmp/portage/app-crypt/mit-krb5-1.16.3/work/krb5-1.16.3/src/kadmin/cli/getdate.y 
/var/tmp/portage/app-crypt/mit-krb5-1.16.3/work/krb5-1.16.3/src/kadmin/cli/getdate.y:180.1-7: error: POSIX Yacc does not support %expect [-Werror=yacc]
 %expect 4
 ^~~~~~~

When invoking bison without -y, the file is processed okay.
Comment 1 Yves Hoppe 2019-01-27 19:46:01 UTC
Adding -Wno-yacc to bison -y fixes it for me (MakeFile in kadmin and kadmin/cli), without -y the file is not generated in my case.
Comment 2 Sven Hesse 2019-01-27 19:52:11 UTC
(Without -y the file is called getdate.tab.c instead of y.tab.c, so it needs to be moved/copied. -Wno-yacc seem to be better solution.)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-28 19:07:40 UTC
GNU Bison NEWS

* Noteworthy changes in release 3.3.1 (2019-01-27) [stable]

** Changes

  The option -y/--yacc used to imply -Werror=yacc, which turns uses of Bison
  extensions into errors.  It now makes them simple warnings (-Wyacc).


commit 5be2c1812c5d672bb3d2f3ea8ba25f260abbf45f
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Mon Jan 28 01:46:04 2019 +0100

    sys-devel/bison: Bump to version 3.3.1. Removed old.

    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>