Bug#1127348: grub2: FTBFS on powerpc - upstream source builds fine
Control: tags -1 +patch Hi, the attached patch fixes the problem. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 From 4b25e41a17ad2f7b613b2d88c44bde439413b42b Mon Sep 17 00:00:00 2001 From: Sudhakar Kuppusamy Date: Fri, 27 Feb 2026 19:11:43 +0530 Subject: [PATCH] powerpc_ieee1275: Excluding the PKS for grub-emu on 32-bit PowerPC Configuring the build with --with-platform=emu fails on 32-bit PowerPC with: /usr/bin/ld: appendedsig.module: in function `grub_mod_init': /home/glaubitz/grub/grub-core/commands/appendedsig/appendedsig.c:1615:(.text+0x2ab4): undefined reference to `grub_pks_get_keystore' /usr/bin/ld: appendedsig.module: in function `create_dbs_from_pks': /home/glaubitz/grub/grub-core/commands/appendedsig/appendedsig.c:1400:(.text+0x2c3c): undefined reference to `grub_pks_free_data' collect2: error: ld returned 1 exit status Fixing this by excluding the Platform Keystore (PKS) for grub-emu on 32-bit PowerPC. Reported-by: John Paul Adrian Glaubitz Signed-off-by: Sudhakar Kuppusamy --- include/grub/powerpc/ieee1275/platform_keystore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/powerpc/ieee1275/platform_keystore.h b/include/grub/powerpc/ieee1275/platform_keystore.h index 931ada224..f78e44953 100644 --- a/include/grub/powerpc/ieee1275/platform_keystore.h +++ b/include/grub/powerpc/ieee1275/platform_keystore.h @@ -96,7 +96,7 @@ struct grub_pks }; typedef struct grub_pks grub_pks_t; -#if defined(__powerpc__) +#if defined(__powerpc__) && !defined(GRUB_MACHINE_EMU) /* Initialization of the Platform Keystore. */ extern void grub_pks_keystore_init (void); -- 2.51.0
Bug#1127348: grub2: FTBFS on powerpc - upstream source builds fine
Control: tags -1 +upstream Hi, On Sat, 2026-02-07 at 10:30 +0100, John Paul Adrian Glaubitz wrote: > 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. 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 > [1] https://lists.gnu.org/archive/html/grub-devel/2026-02/msg00077.html -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Bug#1127348: grub2: FTBFS on powerpc - upstream source builds fine
Source: grub2 Version: 2.14-1 Severity: normal User: [email protected] Usertags: powerpc X-Debbugs-Cc: [email protected] 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 > [1] > https://buildd.debian.org/status/fetch.php?pkg=grub2&arch=powerpc&ver=2.14-1&stamp=1770454521&raw=0 > [2] https://lists.gnu.org/archive/html/grub-devel/2026-02/msg4.html -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

