| Summary: | rpath fixup broken after 6fcb960: chrpath: Improve crazy code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Matt Cowell <matt.cowell> | ||||
| Component: | deployment | Assignee: | Richard Purdie <richard.purdie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | jessica.zhang | ||||
| Version: | 1.6.2 | ||||||
| Target Milestone: | 1.7 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Matt Cowell
2014-04-17 18:51:06 UTC
based on comments the commit is: commit 6fcb96076ca60ef30062fda0ff8308cc840ab07d Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Tue Nov 26 22:14:47 2013 +0000 chrpath: Improve crazy code The current code is a little bit overcomplicated, deficient and also possibly broken. Created attachment 1918 [details]
Proposed patch to handle .. in rootdir path
I found that this is caused when there is a '..' in the rootdir path, as in "/var/fpwork/qdpx86/nsn-yocto/build_lrc-lsp-k2/../build_lrc-lsp/tmp/work/x86_64-linux/file-native/5.16-r0/sysroot-destdir/" in my case. I've attached a proposed patch that fixes the issue by normalizing the rootdir path.
Patch looks good, thanks. Merges, thanks for the patch! http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1b82c73df43500d64dc49a9fb4a2546d88a5f95e |