Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770844 - meson.eclass: define objcopy
Summary: meson.eclass: define objcopy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 770850
  Show dependency tree
 
Reported: 2021-02-15 21:55 UTC by David Michael
Modified: 2021-02-15 23:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix.patch (0001-meson.eclass-define-objcopy.patch,1.31 KB, patch)
2021-02-15 21:55 UTC, David Michael
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-02-15 21:55:21 UTC
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'
Comment 1 David Michael 2021-02-15 21:55:43 UTC
Created attachment 686838 [details, diff]
fix.patch
Comment 2 Larry the Git Cow gentoo-dev 2021-02-15 23:24:09 UTC
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(+)