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
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
Hi, the attached patch fixes the problem. Thanks, Adrian
Hi, any chance the patch from [1] could be added to the Debian package? Thanks, Adrian
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
Hi Trupti, Great, thanks a lot! Adrian
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
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