Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813037 - sys-boot/grub-2.06-r1 - user patch triggers autoreconf
Summary: sys-boot/grub-2.06-r1 - user patch triggers autoreconf
Status: RESOLVED INVALID
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: 2021-09-14 09:32 UTC by Florian Schmaus
Modified: 2021-09-14 14:02 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,6.34 KB, text/plain)
2021-09-14 09:32 UTC, Florian Schmaus
Details
build.log (build.log,70.79 KB, text/x-log)
2021-09-14 09:32 UTC, Florian Schmaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2021-09-14 09:32:25 UTC
Created attachment 739277 [details]
emerge-info.txt

Emerging sys-boot/grub-2.06-r1 fails for me with

make -l 8 -j 10 
CDPATH="${ZSH_VERSION+.}:" && cd /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06 && /bin/sh /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/build-aux/missing aclocal-1.15 -I m4
/var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/build-aux/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [Makefile:3408: /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/aclocal.m4] Error 127
 * ERROR: sys-boot/grub-2.06-r1::gentoo failed (compile phase):

This appears to be within the grub build stage where the xen-pvh variant is build. See also the attached build.log. Emerging automake:1.15 fixes the issue.

# emerge -pqv '=sys-boot/grub-2.06-r1::gentoo'
[ebuild   R   ] sys-boot/grub-2.06-r1  USE="device-mapper nls -doc -efiemu -fonts -libzfs -mount -sdl (-test) -themes -truetype" GRUB_PLATFORMS="efi-64 xen xen-pvh -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen-32"
Comment 1 Florian Schmaus gentoo-dev 2021-09-14 09:32:52 UTC
Created attachment 739279 [details]
build.log
Comment 2 Florian Schmaus gentoo-dev 2021-09-14 09:42:42 UTC
Looking at grub 2.06 source it appears the ebuild should set "WANT_AUTOMAKE=1.15", as aclocal.m4 and configure contain am__api_version='1.15'.
Comment 3 Mike Gilbert gentoo-dev 2021-09-14 13:45:05 UTC
It looks like you are applying a user patch:

0001-Fix-build-error-in-binutils-2.36.patch

I assume this is the patch from opensuse, which has not yet been sent to grub upstream.

https://build.opensuse.org/package/view_file/home:michael-chang:grub:2.06/grub2/0001-Fix-build-error-in-binutils-2.36.patch?expand=0

This patch modifies configure.ac which forces an autoreconf.

If you want to continue applying this patch, you should set GRUB_AUTORECONF=1 in make.conf or package.env.
Comment 4 Larry the Git Cow gentoo-dev 2021-09-14 14:02:23 UTC
The bug has been referenced in the following commit(s):

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

commit 3bd87a8adfebcc22f55823568418f7cb4365a245
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-14 14:00:46 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-14 14:01:57 +0000

    sys-boot/grub: document global variables
    
    Bug: https://bugs.gentoo.org/813037
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-boot/grub/grub-2.06-r1.ebuild | 13 +++++++++++++
 sys-boot/grub/grub-9999.ebuild    | 13 +++++++++++++
 2 files changed, 26 insertions(+)