diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-02-08 01:22:36 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-09 09:57:25 +0000 |
commit | 4e7394ffefb5243b34f26ffade0ff5631de827c6 (patch) | |
tree | 023a44cd9022ab5fede04528e1ff65582ad035ca /meta/recipes-multimedia/ffmpeg | |
parent | 3e2ef40f40763439cfe253530a48ebc0b039be04 (diff) | |
download | poky-4e7394ffefb5243b34f26ffade0ff5631de827c6.tar.gz |
ffmpeg: fix configure failure on noexec /tmp host
The configure scripts uses /tmp to execute some generated files.
If /tmp is noexec, then we meet the following error.
| Unable to create and execute files in /tmp. Set the TMPDIR environment
| variable to another directory and make sure that it is not mounted noexec.
| Sanity test failed.
(From OE-Core rev: 6099b88c4decb285fd3519d5565909c15d935030)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/ffmpeg')
-rw-r--r-- | meta/recipes-multimedia/ffmpeg/ffmpeg_5.1.2.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.1.2.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.1.2.bb index 0f67c9e949..63abc5d437 100644 --- a/meta/recipes-multimedia/ffmpeg/ffmpeg_5.1.2.bb +++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_5.1.2.bb | |||
@@ -141,6 +141,8 @@ LDFLAGS:append:x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -f | |||
141 | EXTRA_OEMAKE = "V=1" | 141 | EXTRA_OEMAKE = "V=1" |
142 | 142 | ||
143 | do_configure() { | 143 | do_configure() { |
144 | export TMPDIR="${B}/tmp" | ||
145 | mkdir -p ${B}/tmp | ||
144 | ${S}/configure ${EXTRA_OECONF} | 146 | ${S}/configure ${EXTRA_OECONF} |
145 | sed -i -e "s,^X86ASMFLAGS=.*,& --debug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} --debug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR},g" ${B}/ffbuild/config.mak | 147 | sed -i -e "s,^X86ASMFLAGS=.*,& --debug-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} --debug-prefix-map=${B}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR},g" ${B}/ffbuild/config.mak |
146 | } | 148 | } |