Wind River Support Network


LIN6-8494 : linuxdoc-tools-native fails if host /tmp is mounted noexec

Created: Oct 2, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 22, 2014
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


Patch sent to OE-Core Oct 2nd, 2014

The script uses the following line to set TMPDIR

export TMPDIR=`mktemp -d ${TMPDIR:-/tmp}/ldt.XXXXXXXXXX`;

and then later in the script:

chmod u+x $TMPDIR/linuxdoc

Since TMPDIR is not set the script will default to /tmp and if /tmp
is set to noexec (which is becoming more common), the chmod call fails.

 meta/recipes-devtools/linuxdoc-tools/ | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/linuxdoc-tools/ b/meta/recipes-devtools/linuxdoc-tools/
index ed6ab73..9bd2bba 100644
--- a/meta/recipes-devtools/linuxdoc-tools/
+++ b/meta/recipes-devtools/linuxdoc-tools/
@@ -19,3 +19,7 @@ inherit autotools-brokensep native
 do_configure () {
+do_install() {
+	oe_runmake TMPDIR=${T} install


Remove noexec from /tmp mount

Steps to Reproduce

configure --enable-board=qemumips --enable-rootfs=glibc-std-sato --enable-kernel=standard --with-layer=wr-security,meta-selinux
BBCMD="bitbake linuxdoc-tools-native" make bbc

Other Downloads

Live chat