Wind River Support Network

HomeDefectsLIN6-8494
Fixed

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: 6.0.0.11
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Patch sent to OE-Core Oct 2nd, 2014

The Makedoc.sh 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/linuxdoc-tools-native_0.9.69.bb | 4 ++++
 1 file changed, 4 insertions(+)

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

Workaround

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
Online