Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572058 - dev-libs/libressl: cross-compile support
Summary: dev-libs/libressl: cross-compile support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-16 05:07 UTC by popham
Modified: 2020-05-19 21:00 UTC (History)
5 users (show)

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


Attachments
Run elibtoolize to update ltmain.sh and trigger the regeneration of libtool (libressl-2.2.5-r1.patch,567 bytes, patch)
2016-01-16 05:14 UTC, popham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description popham 2016-01-16 05:07:44 UTC
When I attempt to cross compile dev-libs/libressl, my build fails when relinking.  The libressl sources include an ltmain.sh without the cross/link-ROOT patch of the libtool eclass.  libtool therefore looks for libraries based at `/` instead of my sysroot.

Reproducible: Always
Comment 1 popham 2016-01-16 05:14:44 UTC
Created attachment 423020 [details, diff]
Run elibtoolize to update ltmain.sh and trigger the regeneration of libtool
Comment 2 popham 2016-01-20 10:58:01 UTC
I think that the libtool eclass is too automagic for security stuff.  I'm thinking:

* Localize a patch within libressl that does the libtool patching and trigger that patch with a `-vanilla` use flag, and
* mark the package with a `+vanilla` IUSE flag?

Or maybe:

* Localize a patch within libressl that does the libtool patching and trigger that patch with a `libressl_libtoolize` use flag, and
* mark the package with a `-libressl_libtoolize` IUSE flag?
Comment 3 James Le Cuirot gentoo-dev 2020-05-19 21:00:58 UTC
This was fixed ages ago. All but the oldest ebuild calls elibtoolize. I successfully cross-compiled it for x86_64-w64-mingw32 a short while ago although that target may not have suffered from this issue.