Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887211 - sys-boot/grub-2.06-r4 - configure: error: flex is too old. GRUB requires 2.5.35 or above
Summary: sys-boot/grub-2.06-r4 - configure: error: flex is too old. GRUB requires 2.5....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-19 14:29 UTC by Toralf Förster
Modified: 2023-01-01 03:11 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.85 KB, text/plain)
2022-12-19 14:29 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,61.11 KB, application/x-bzip)
2022-12-19 14:29 UTC, Toralf Förster
Details
environment (environment,106.18 KB, text/plain)
2022-12-19 14:30 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,550 bytes, application/x-bzip)
2022-12-19 14:30 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.71 KB, application/x-bzip)
2022-12-19 14:30 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,9.07 KB, application/x-bzip)
2022-12-19 14:30 UTC, Toralf Förster
Details
sys-boot:grub-2.06-r4:20221219-130051.log (sys-boot:grub-2.06-r4:20221219-130051.log,9.92 KB, text/plain)
2022-12-19 14:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.85 KB, application/x-bzip)
2022-12-19 14:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-19 14:29:56 UTC
checking for lex library... none needed
checking for library containing yywrap... -lfl
checking whether yytext is a pointer... yes
checking for bison... (cached) bison
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
configure: error: flex is too old. GRUB requires 2.5.35 or above

!!! Please attach the following file when seeking support:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20221217-100005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 14771adc5bb0ee9ee4c0afe95816b170fe78a2aa
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 19 11:47:07 2022 +0000

    2022-12-19 11:47:06 UTC

emerge -qpvO sys-boot/grub
[ebuild  N    ] sys-boot/grub-2.06-r4  USE="fonts nls sdl themes truetype -device-mapper -doc -efiemu -libzfs -mount (-test)" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 (-loongson) -multiboot -qemu (-qemu-mips) -uboot -xen -xen-32 -xen-pvh"
Comment 1 Toralf Förster gentoo-dev 2022-12-19 14:29:57 UTC
Created attachment 843811 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-19 14:29:59 UTC
Created attachment 843813 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-12-19 14:30:00 UTC
Created attachment 843815 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-19 14:30:01 UTC
Created attachment 843817 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-19 14:30:02 UTC
Created attachment 843819 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-19 14:30:03 UTC
Created attachment 843821 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-19 14:30:04 UTC
Created attachment 843823 [details]
sys-boot:grub-2.06-r4:20221219-130051.log
Comment 8 Toralf Förster gentoo-dev 2022-12-19 14:30:05 UTC
Created attachment 843825 [details]
temp.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2022-12-20 18:13:38 UTC
The bug has been closed via the following commit(s):

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

commit e93067af16c354c35efd3e674b083c5861456038
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-12-20 18:06:50 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-12-20 18:13:02 +0000

    sys-boot/grub: force LEX=flex
    
    GRUB's configure script checks the version of flex by calling
    ${LEX} --version. If app-alternatives/lex[reflex] is installed,
    this version check will fail.
    
    Closes: https://bugs.gentoo.org/887211
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-boot/grub/grub-2.06-r4.ebuild | 5 ++++-
 sys-boot/grub/grub-9999.ebuild    | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 10 Larry the Git Cow gentoo-dev 2023-01-01 03:11:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e6e30263e56771de876c0e053561a54fd19ed1

commit 56e6e30263e56771de876c0e053561a54fd19ed1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-01 03:04:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-01 03:11:06 +0000

    sys-boot/grub: force Bison too
    
    Already in BDEPEND, just unset to avoid having to explicitly say bison vs bison -y.
    
    Bug: https://bugs.gentoo.org/887211
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-boot/grub/grub-2.06-r4.ebuild | 5 +++--
 sys-boot/grub/grub-9999.ebuild    | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)