Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V3] linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount
@ 2014-10-06 14:50 Mark Hatle
  2014-10-06 14:51 ` Mark Hatle
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Hatle @ 2014-10-06 14:50 UTC (permalink / raw)
  To: openembedded-core

From: Konrad Scherer <Konrad.Scherer@windriver.com>

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.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 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..a8a90fc 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 'DESTDIR=${D}' 'TMPDIR=${T}' install
+}
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V3] linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount
  2014-10-06 14:50 [PATCH V3] linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount Mark Hatle
@ 2014-10-06 14:51 ` Mark Hatle
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2014-10-06 14:51 UTC (permalink / raw)
  To: openembedded-core

V3 - Only difference to V2 is the summary line of the commit message.  After 
sending it I realized it wasn't in the right OE format.

V2 - Only difference is adding back in the missing DESTDIR=

On 10/6/14, 9:50 AM, Mark Hatle wrote:
> From: Konrad Scherer <Konrad.Scherer@windriver.com>
>
> 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.
>
> Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
>   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..a8a90fc 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 'DESTDIR=${D}' 'TMPDIR=${T}' install
> +}
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-06 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-06 14:50 [PATCH V3] linuxdoc-tools-native: Makedoc.sh uses /tmp and fails w/ noexec mount Mark Hatle
2014-10-06 14:51 ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox