Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806274 - sys-libs/libcap-2.52 calls objcopy directly
Summary: sys-libs/libcap-2.52 calls objcopy directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2021-08-03 11:47 UTC by Agostino Sarubbo
Modified: 2021-08-03 14:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,45.24 KB, text/plain)
2021-08-03 11:47 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-08-03 11:47:16 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/libcap-2.52 calls objcopy directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different OBJCOPY implementation (like llvm-objcopy). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-03 11:47:19 UTC
Created attachment 729870 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-08-03 11:47:21 UTC
Possible context of error(s):

/bin/sh: line 1: objcopy: command not found
Comment 3 Larry the Git Cow gentoo-dev 2021-08-03 12:04:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58fe79a2aef348cbbf37abc0e5f6a1d15961cdae

commit 58fe79a2aef348cbbf37abc0e5f6a1d15961cdae
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-08-03 12:04:04 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-08-03 12:04:20 +0000

    sys-libs/libcap: Attempt to not run objcopy directly
    
    Bug: https://bugs.gentoo.org/806274
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-libs/libcap/libcap-2.52.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2021-08-03 14:17:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5296df85f652c9c0f3dbf29aeaccedb4d43588

commit 2d5296df85f652c9c0f3dbf29aeaccedb4d43588
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-08-03 14:17:04 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-08-03 14:17:04 +0000

    sys-libs/libcap: proper passing of objcopy to build system
    
    Should be a proper fix, not just a rough attempt, as I've tested
    via moving the binary away and all looks good.
    
    Closes: https://bugs.gentoo.org/806274
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../libcap/files/libcap-2.52-build-system-fixes.patch   | 17 ++++++++++-------
 sys-libs/libcap/libcap-2.52.ebuild                      |  3 ---
 2 files changed, 10 insertions(+), 10 deletions(-)