When a project uses find_program('objcopy'), it will default to the native unprefixed version if it's not defined, which breaks projects like systemd: [640/1860] /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j '.rel*' -O binary src/boot/efi/stub.so src/boot/efi/linuxaa64.efi.stub FAILED: src/boot/efi/linuxaa64.efi.stub /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j '.rel*' -O binary src/boot/efi/stub.so src/boot/efi/linuxaa64.efi.stub /usr/bin/objcopy: Unable to recognise the format of the input file `src/boot/efi/stub.so'
Created attachment 686838 [details, diff] fix.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e0c04acea49b63cdfbc5de84c3b3d01e272660f commit 7e0c04acea49b63cdfbc5de84c3b3d01e272660f Author: David Michael <fedora.dm0@gmail.com> AuthorDate: 2021-02-15 21:54:31 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-02-15 23:23:04 +0000 meson.eclass: define objcopy Closes: https://bugs.gentoo.org/770844 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> eclass/meson.eclass | 2 ++ 1 file changed, 2 insertions(+)