Bug 10071

Summary: [PATCH] fakeroot: replace hard-coded paths in post install
Product: buildroot Reporter: Stefan Becker <chemobejk>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: patch for branch master
patch for branch 2017.05.x (and older)

Description Stefan Becker 2017-07-14 19:17:27 UTC
Created attachment 7116 [details]
patch for branch master

fakeroot script has the absolute path to the host tools directory encoded in it. It will therefore fail if a developer downloads a build e.g. from an automated build system and unpacks it at a different location locally.
    
The attached patch for branch "master" adds a host post install step that replaces the absolute path with ${HOST_DIR}. The same solution should be easy to backport to older branches too.
Comment 1 Stefan Becker 2017-07-14 21:04:06 UTC
Created attachment 7121 [details]
patch for branch 2017.05.x (and older)

Older branches install fakeroot into ${HOST_DIR}/usr/bin instead of ${HOST_DIR}/bin.
Comment 2 Thomas Petazzoni 2017-08-02 20:48:12 UTC
This issue has been fixed by the relocatable SDK work. The idea is that after a build, you run "make sdk", which prepares the SDK to be relocable. Then you can move the contents of output/host/ around, you can tarball it and share it with other developers. output/host contains a relocate-sdk.sh script, which one must run before using the SDK. This script will adjust the hardcoded paths as needed.