Summary: | sys-apps/sandbox: wrappers are broken when cross compiled using different libc | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Andrew Aladjev <aladjev.andrew> |
Component: | Sandbox | Assignee: | Sandbox Maintainers <sandbox> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | aladjev.andrew, slyfox |
Priority: | Lowest | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Andrew Aladjev
2020-01-21 18:20:01 UTC
For now it is easy to workaround this bug: ``` "${TARGET}-emerge" -v1 sys-apps/sandbox rm "/usr/${TARGET}/usr/lib/libsandbox.so" "${TARGET}-emerge" -v1 sys-apps/portage build "${TARGET}-emerge" -v1 sys-apps/sandbox ``` Cross emerge will load native sandbox (even with LD_LIBRARY_PATH="/usr/${TARGET}/...") instead of cross compiled one. > Cross emerge will load native sandbox (even with LD_LIBRARY_PATH="/usr/${TARGET}/...") instead of cross compiled one.
That's expected. You are normally running only host's binaries when cross-compiling.
If you are running both host's and target's binaries during cross-compilation you have to disable sandbox (it's arguably a bug to even attempt that). There is no way to safely preload same library into both.
Ok, thank you. I will note that it is not a bug. (In reply to Andrew Aladjev from comment #3) > Ok, thank you. I will note that it is not a bug. I still don't think sandbox can do much here. If you'd like to fix a package or specific class of packages to prevent from executing target binaries on a host I suggest attaching example build log and direct the bug to specific maintainers. |