Wind River Support Network

HomeDefectsLIN5-19509
Fixed

LIN5-19509 : linuxdoc-tools-native fails if host /tmp is mounted noexec

Created: Oct 2, 2014    Updated: Dec 19, 2017
Resolved Date: Oct 26, 2014
Found In Version: 5.0.1.18
Fix Version: 5.0.1.21
Severity: Standard
Applicable for: Wind River Linux 5
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