Bug 5357 - Incorrect prefix/sysroot used for binaries in cenbuild
Summary: Incorrect prefix/sysroot used for binaries in cenbuild
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: pre-1.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Pierre Ossman
Depends on:
Reported: 2014-11-14 16:04 CET by Pierre Ossman
Modified: 2023-03-21 13:35 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2014-11-14 16:04:21 CET
Currently we cheat a bit for our build system in that we include the sysroot path in the prefix. E.g. the bindir for an arm package is /usr/arm-linux-gnueabi/sys-root/usr/bin. The proper way is to keep bindir at the normal /usr/bin and have all the tools compensate for the sysroot offset.

The main problem with our current approach is that sometimes those incorrect paths leak into the binaries.

The problem with doing it properly is that some build environments aren't compatible with a sysroot cross compile and may need fixes.
Comment 1 Pierre Ossman cendio 2014-11-21 17:07:21 CET
This also breaks packages that do special things when prefix is /usr, such as glibc.
Comment 2 Karl Mikaelsson cendio 2018-11-13 12:06:45 CET
In theory, this could lead to things like fontconfig not finding it's configuration files in /etc, making it impossible for the system administrator to configure things like font overrides, cache directories, and custom font locations. I have not verified that this is the case.
Comment 3 Pierre Ossman cendio 2020-01-15 14:45:52 CET
We should also adjust our CMake toolchain file when fixing this and set CMAKE_SYSROOT.

Note You need to log in before you can comment on or make changes to this bug.