Bug 204019 - multimedia/ffmpeg: make install stops with an error "Unable to create and execute files in /tmp"
Summary: multimedia/ffmpeg: make install stops with an error "Unable to create and exe...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-25 20:35 UTC by TommiP
Modified: 2015-11-28 07:24 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TommiP 2015-10-25 20:35:53 UTC
After a make install the port multimedia/ffmpeg: stops with an error "Unable to create and execute files in /tmp".

Other ports compile without issues on the same system.
Portmaster stops with the same error.

My guess is that there is some bug in these lines from configure?
Starting from line 3295:
# set temporary file name
: ${TMPDIR:=$TEMPDIR}
: ${TMPDIR:=$TMP}
: ${TMPDIR:=/tmp}

if [ -n "$tempprefix" ] ; then
    mktemp(){
        echo $tempprefix.${HOSTNAME}.${UID}
    }
elif ! check_cmd mktemp -u XXXXXX; then
    # simple replacement for missing mktemp
    # NOT SAFE FOR GENERAL USE
    mktemp(){
        echo "${2%%XXX*}.${HOSTNAME}.${UID}.$$"
    }
fi

tmpfile(){
    tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
        (set -C; exec > $tmp) 2>/dev/null ||
        die "Unable to create temporary file in $TMPDIR."
    append TMPFILES $tmp
    eval $1=$tmp
}
Comment 1 Thomas Zander freebsd_committer freebsd_triage 2015-11-08 13:28:02 UTC
First question would be: Is the error message right? Is it possible for the build system to write and execute files there?