Bug 3408 - TMPDIR cannot contain ../
Summary: TMPDIR cannot contain ../
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: All Multiple
: Medium normal
Target Milestone: 1.4 M2
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-11-12 15:07 UTC by Paul Eggleton
Modified: 2012-12-14 18:25 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2012-11-12 15:07:04 UTC
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.
Comment 1 Saul Wold 2012-12-12 01:54:00 UTC
This will fix the chrpath, but there may be other issues lurking. We may also want to add a sanity check.