Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621804 - app-crypt/pesign-0.112 : fix for "Cross-compiling does not work"
Summary: app-crypt/pesign-0.112 : fix for "Cross-compiling does not work"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2017-06-15 00:41 UTC by David Michael
Modified: 2020-06-02 15:14 UTC (History)
3 users (show)

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


Attachments
This defines all the configured cross-compiler programs (0001-app-crypt-pesign-Supply-cross-compiling-programs.patch,999 bytes, patch)
2017-06-15 00:44 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 2017-06-15 00:41:04 UTC
The project has a set of variables defining build commands in Make.defaults that can be overridden, but there is no standard build system to handle cross-compilation.
Comment 1 David Michael 2017-06-15 00:44:03 UTC
Created attachment 476508 [details, diff]
This defines all the configured cross-compiler programs

The Makefile sets -flto which needs gcc-ar to succeed, but tc-getAR points at ar, hence the weird AR value.
Comment 2 Larry the Git Cow gentoo-dev 2018-09-29 01:02:56 UTC
The bug has been closed via the following commit(s):

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

commit ab3ba62b708cd6829fbe939eef827b56ad9411bc
Author:     David Michael <david.michael@coreos.com>
AuthorDate: 2017-06-15 00:41:13 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-09-29 01:01:48 +0000

    app-crypt/pesign: Supply cross-compiling programs
    
    (with minor style changes from vdupras)
    
    Closes: https://bugs.gentoo.org/621804
    Package-Manager: Portage-2.3.5, Repoman-2.3.2
    Signed-off-by: Virgil Dupras <vdupras@gentoo.org>

 app-crypt/pesign/pesign-0.112.ebuild | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-30 16:32:29 UTC
I'm going to revert ar change since it obviously fails for CC having any other value than 'gcc', in particular including gcc version.
Comment 4 David Michael 2019-12-31 19:00:15 UTC
Did this need to be reopened?  I think the ar version in the stable binutils package can handle LTO objects on its own these days.  Cross-compilation still seems to work.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-01 04:43:35 UTC
Might be specific to vanilla-kernel{,-bin} too.
Comment 6 David Michael 2020-06-02 15:14:25 UTC
I cross-compiled pesign to a bunch of architectures (i686, x86_64, ppc, riscv, some arm variants), and did not encounter any issues.