Bug 10071 - [PATCH] fakeroot: replace hard-coded paths in post install
Summary: [PATCH] fakeroot: replace hard-coded paths in post install
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-14 19:17 UTC by Stefan Becker
Modified: 2017-08-02 20:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
patch for branch master (952 bytes, patch)
2017-07-14 19:17 UTC, Stefan Becker
Details
patch for branch 2017.05.x (and older) (994 bytes, patch)
2017-07-14 21:04 UTC, Stefan Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
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.