Skip to content

Commit

Permalink
mozjs: specify TMPDIR
Browse files Browse the repository at this point in the history
Although it is extremely rare the following type of error
can occur during configuration:

Creating `/tmp/conftest.i53clm4z.cpp` with content:
...
x86_64-wrs-linux-g++: error: /tmp/conftest.i53clm4z.cpp: No such file or directory
x86_64-wrs-linux-g++: error: /tmp/conftest.i53clm4z.cpp: No such file or directory
x86_64-wrs-linux-g++: fatal error: no input files

So, specify a local directory as TMPDIR during configuration.

Signed-off-by: Joe Slater <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
jwslater0823 authored and kraj committed Aug 12, 2020
1 parent 87ce978 commit 8fd3da8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ do_configure() {
autoconf213 --macrodir=${STAGING_DATADIR_NATIVE}/autoconf213 old-configure.in > old-configure

cd ${B}
${S}/js/src/configure ${EXTRA_OECONF}
# use of /tmp can causes problems on heavily loaded hosts
mkdir -p "${B}/lcl_tmp"
TMPDIR="${B}/lcl_tmp" ${S}/js/src/configure ${EXTRA_OECONF}

# Make standard Makefile checks pass
touch ${S}/js/src/configure
Expand Down

0 comments on commit 8fd3da8

Please sign in to comment.