Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657458 - sys-libs/glibc-2.27 fails src_configure without sys-devel/bison
Summary: sys-libs/glibc-2.27 fails src_configure without sys-devel/bison
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 12:12 UTC by matoro
Modified: 2018-12-29 22:33 UTC (History)
3 users (show)

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


Attachments
emerge --info (info.txt,4.89 KB, text/plain)
2018-06-06 12:20 UTC, matoro
Details
build log (emerge.txt,17.37 KB, text/plain)
2018-06-06 12:21 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2018-06-06 12:12:16 UTC
Pretty self-explanatory really.  Tried to emerge =sys-libs/glibc-2.27-r3 yesterday on a system on which I keep free of build deps.  It fails complaining about bison on all arches with the following:

configure: error:
*** These critical programs are missing or too old: bison
*** Check the INSTALL file for required versions.

Emerging sys-devel/bison --oneshot lets it go through and the package builds fine.  Have not tested sys-libs/glibc-2.26, so don't know if it includes the same check in its configure script.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-libs/glibc-2.27-r3
Actual Results:  
Emerge fails in configure phase.

Expected Results:  
Emerge completes successfully.

sys-devel/bison is required on amd64, armv6, armv7 at least.
Comment 1 matoro archtester 2018-06-06 12:20:01 UTC
Created attachment 535026 [details]
emerge --info
Comment 2 matoro archtester 2018-06-06 12:21:13 UTC
Created attachment 535028 [details]
build log
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2018-06-09 20:43:07 UTC
Yep, this probably shouldn't happen (and adding a dependency is wrong). Side effect of the patchset. I'll look into it.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-06-15 06:41:04 UTC
I don't think it's accidental to require bison: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1faaf7035cabda101e1d6653bff7a539f201db91

"""
This patch fixes this by requiring "bison" being installed
and by always generating intl/plural.c from intl/plural.y.
"""
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-06-15 17:58:06 UTC
Is there a good reason to ever regenerate that file with Bison during install time, esp in Gentoo where it could be a bootstrap condition?

It seems to me we could take the opposite decision from upstream, and simply never regenerate that file, even if bison is present.

That would also solve the quasi-determinism.

Then all we'd have to do is have some sort of QA process where we periodically determined if building the file with bison renders any semantic change, and then ship patch updates when that is the case.

Yes, I realise ultimately this is a form of "compile it before we ship it", but it might be the right choice for something like glibc.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2018-06-15 22:49:54 UTC
It would require patching glibc (by undoing the change). I'd prefer upstream to provide a way to make bison optional with less pain for Gentoo.
Comment 7 Larry the Git Cow gentoo-dev 2018-06-17 17:27:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271a55a9f3a4576fb8fd95762d704e6310d8819d

commit 271a55a9f3a4576fb8fd95762d704e6310d8819d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2018-06-17 17:27:29 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2018-06-17 17:27:29 +0000

    sys-libs/glibc: Require bison in DEPEND
    
    Keeping the bug open until we've been talking to upstream
    about it.
    
    Bug: https://bugs.gentoo.org/657458
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-libs/glibc/glibc-2.27-r4.ebuild | 1 +
 sys-libs/glibc/glibc-9999.ebuild    | 1 +
 2 files changed, 2 insertions(+)
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2018-12-29 22:33:46 UTC
Listed in official docs, so I dont see this go away.