#1127348 grub2: FTBFS on powerpc - upstream source builds fine

Package:
src:grub2
Source:
src:grub2
Submitter:
John Paul Adrian Glaubitz
Date:
2026-02-27 21:57:01 UTC
Severity:
normal
Tags:
#1127348#5
Date:
2026-02-07 09:30:44 UTC
From:
To:
Hi,

starting with version 2.14-1, grub2 fails to build from source on powerpc [1]:

/usr/bin/powerpc-linux-gnu-ld.bfd: appendedsig.module: in function `grub_mod_init':
/build/reproducible-path/grub2-2.14/obj/grub-emu/grub-core/../../../grub-core/commands/appendedsig/appendedsig.c:1615:(.text+0x2adc): undefined reference to `grub_pks_get_keystore'
/usr/bin/powerpc-linux-gnu-ld.bfd: appendedsig.module: in function `create_dbs_from_pks':
/build/reproducible-path/grub2-2.14/obj/grub-emu/grub-core/../../../grub-core/commands/appendedsig/appendedsig.c:1400:(.text+0x2c64): undefined reference to `grub_pks_free_data'
collect2: error: ld returned 1 exit status

Since I initially suspected an upstream problem, I tried building grub2 from
git which surprisingly worked fine [2]. Thus, the problem must be with the Debian
package itself, either one of the patches or how the package is configured in
debian/rules.

Adrian

#1127348#14
Date:
2026-02-24 20:10:17 UTC
From:
To:
Hi,

It's actually an upstream bug and can be reproduced when building grub-emu instead
of grub-ieee1275 with "--with-platform=emu". I have already reported the issue to
the corresponding upstream author [1].

Adrian

#1127348#21
Date:
2026-02-27 21:55:26 UTC
From:
To:
Hi,

the attached patch fixes the problem.

Thanks,
Adrian