[FFmpeg-trac] #11382(undetermined:new): Default build assumes /tmp allows exec.
FFmpeg
trac at avcodec.org
Sat Dec 28 14:00:02 EET 2024
#11382: Default build assumes /tmp allows exec.
-------------------------------------+-------------------------------------
Reporter: Tom | Type:
| enhancement
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: TMPDIR, | Blocked By:
noexec, building |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
The default configure and build process puts temporary files in the /tmp
dir instead of the build dir.
Refer to for what I'm talking about.
https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/be0d52ab7875f91d783feba3ea12f338dfd08d45
The bug is that this is not of this time and /tmp being mounted with
noexec is not at all weird in namespaces or similar closed build
environments.
Which makes ffmpeg not build.
How to reproduce:
Try to compile ffmpeg in an environment where /tmp is mounted noexec.
You get:
{{{
./configure
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.
}}}
While the workaround provided is functional, it begs the question why on
earth ffmpeg doesn't just put its scripts in the build dir like any other
project does. This practice of using /tmp feels like it was done before
out-of-source builds became a standard practice.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11382>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list