| Summary: | TMPDIR cannot contain ../ | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Paul Eggleton <bluelightning> |
| Component: | core | Assignee: | Saul Wold <sgw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, meta.mr.watcher, meta.watcher |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M2 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
This will fix the chrpath, but there may be other issues lurking. We may also want to add a sanity check. |
If the user specifies TMPDIR as a path containing parent directory reference (..) e.g. TMPDIR = "${TOPDIR}/../build-${DISTRO}" then the build will fail at do_unpack of expat with: gzip: /lib/i386-linux-gnu/libz.so.1: version `ZLIB_1.2.5.1' not found (required by gzip) It appears something is going wrong with the RPATH relocation: $ objdump -x ./tmp/sysroots/x86_64-linux/usr/bin/pigz-native/gzip | grep RPATH RPATH $ORIGIN/usr/lib:$ORIGIN/lib This was reproduced easily on two different systems running Ubuntu 12.04.