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

Package:
src:grub2
Source:
src:grub2
Submitter:
John Paul Adrian Glaubitz
Date:
2026-09-24 10:37:03 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

#1127348#28
Date:
2026-07-11 13:07:07 UTC
From:
To:
Hi,

any chance the patch from [1] could be added to the Debian package?

Thanks,
Adrian

#1127348#33
Date:
2026-08-05 08:15:54 UTC
From:
To:
Hi Adrian,

I have submitted a merge request to the Debian grub-team repository
adding the upstream fix:

https://salsa.debian.org/TruptiShirsat/grub/-/merge_requests/1

The patch has been tested by building grub2 2.14-3.1 for powerpc
using sbuild and the build succeeded.

Thanks,
Trupti

#1127348#38
Date:
2026-08-05 08:20:53 UTC
From:
To:
Hi Trupti,

Great, thanks a lot!

Adrian

#1127348#41
Date:
2026-08-16 17:55:26 UTC
From:
To:
Hello,

Bug #1127348 in grub2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/grub-team/grub/-/commit/969992b177c7fab8730fb738c48af53836a77d2a
------------------------------------------------------------------------
Merge branch 'fix/powerpc-grub-emu-pks-ftbfs' into 'master'

Fix grub-emu FTBFS on 32-bit powerpc due to PKS support (Closes: #1127348)

See merge request grub-team/grub!93
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1127348

#1127348#46
Date:
2026-08-16 17:55:26 UTC
From:
To:
Hello,

Bug #1127348 in grub2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/grub-team/grub/-/commit/189fbc7da34f185db7fba1475fcd3ce2cb245f96
------------------------------------------------------------------------
debian/patches: Fix grub-emu FTBFS on 32-bit powerpc due to PKS support (Closes: #1127348)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1127348

#1127348#51
Date:
2026-09-24 10:34:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
grub2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1127348@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve McIntyre <93sam@debian.org> (supplier of updated grub2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 23 Sep 2026 21:39:45 +0100
Source: grub2
Architecture: source
Version: 2.14-4
Distribution: unstable
Urgency: medium
Maintainer: GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net>
Changed-By: Steve McIntyre <93sam@debian.org>
Closes: 1127348 1128574 1148719 1148741
Changes:
 grub2 (2.14-4) unstable; urgency=medium
 .
   [ Trupti Shirsat ]
   * debian/patches: Fix grub-emu FTBFS on 32-bit powerpc due to PKS
     support (Closes: #1127348)
 .
   [ youwan Wang ]
   * debian/rules: serialize package build targets
 .
   [ Steve McIntyre ]
   * Backport fix for serial-MMIO secure boot bypass (Closes: #1148741)
   * Backport fixes for compilation with gcc-16 (Closes: #1128574)
   * Backport fix for boot failure when shim validation is disabled
     under secure boot (Closes: #1148719)
Checksums-Sha1:
 7350c01d98e8f60a1c8522709981dfadcd58c23c 7208 grub2_2.14-4.dsc
 90ab4a47debd62b1b5c1f2c3aeb23021a30b8d98 1099216 grub2_2.14-4.debian.tar.xz
 1ae247818cca9b8077c7548e63b80433509c0309 14440 grub2_2.14-4_source.buildinfo
Checksums-Sha256:
 6963e89ff2aaf7c38f386f62e664bf56af70a66a7977e86925602d47cf15d14b 7208 grub2_2.14-4.dsc
 290779e500e4de6e68f45d89853cde3a7873a42d037b5980376bb85b1b42137d 1099216 grub2_2.14-4.debian.tar.xz
 ca21087b2d29d2d0cf72ea39881cafdf69d916e16f9cf04f67a4bf52df068997 14440 grub2_2.14-4_source.buildinfo
Files:
 8685aa0b56c8c2b4badefb9fd9181fbe 7208 admin optional grub2_2.14-4.dsc
 60dedd7284ef808eb6226f8d365b6558 1099216 admin optional grub2_2.14-4.debian.tar.xz
 acd33bb990b93ede245f9c236df93da4 14440 admin optional grub2_2.14-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEzrtSMB1hfpEDkP4WWHl5VzRCaE4FAmq0+ZYRHDkzc2FtQGRl
Ymlhbi5vcmcACgkQWHl5VzRCaE4daw/9FVVhO11Okv7ylAWIZe37GIXHdM8TIlNz
WhwbOt8v2J/Msb3MMwsrCKE5wFjfTZRhzLqTup0ef8EMjSP3ZmsNizE9vG6IDChu
OevyAEnGsaRA3p4WwEDhz+gUA01VNR5IhIugQV8nXncF8QVX6222BdY0R97WCS0l
h/hxrhsxbZrXsoGcQqY8NBJYtu0U8vD9n9ccRqcUxTuUUSGBzyTdJFsoLoiwDhdb
6aAI5B6UJ//htFWJd4Nf8N2haNI3aOTlmysSqyp6O6pWQKeG2894JYHRAjv9LlYK
NIimYZHbjTdwdNV/x0/0nrTmSo2e6n8hF15rMpWYbTqJe1bs8dfw4cTMafhLlB/E
NArr6M+D0FkmPeEenJGmnUZN4H5XEWSdNhLuzJwI2SxqzbCz7eMwVqC/xkwc8Q3b
UZazxKE9Vut3obnBBSKQDrJ8hMwYVp90CAphKDy/LLjGTC8I94/cQb6wpTMpSwD3
LxUWLdA9FbDRqOAugoE/ESk8xQBvdHw3IDwY1Zx9nZ1PAsh6kVqS6fA1GKbiMDYc
gCI/lDDRJGCcCPGJy+fkVjA7ZHGTDv84EDHsFheD0Kva1z422MHdb1S7pemDH+yQ
Mcgz5h0iXfIC2Q2VazaYT3x5fmq2KB3IfzSSDEowBWIO0rIcA+oiMuynt/lSJy2h
HwXLc1KnwMU=
=OW8O
-----END PGP SIGNATURE-----