see http://forums.gentoo.org/viewtopic-p-7702172.html for log, environment, useflags portage tells it has no rights to create files within the tempdir for ffmpeg package... but if I check the privileges it is allright even environment,etc. files are created properly within. Reproducible: Always Steps to Reproduce: 1.emerge ffmpeg 2. 3. Actual Results: will fail at configure Expected Results: should run configure properly this happened before a different application when I upgraded my kernel to a newer version.
Are you sure that /var/tmp isn't mounted noexec? You can use this command to verify: grep noexec /proc/mounts
just for your concerns : if I am able to execute anything but not the configure process of an app's emerge - is the tmpfs for /var/tmp then mounted noexec? this is mounted no exec because it should be mounted no exec: proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 sysfs /sys sysfs rw,seclabel,nosuid,nodev,noexec,relatime 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /sys/fs/cgroup tmpfs ro,seclabel,nosuid,nodev,noexec,mode=755 0 0 cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 cgroup /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
Maybe there is something wrong with your filesystem. What type of filesystem are you using? You can test with tmpfs to see if that makes a difference: mount -o exec -t tmpfs tmpfs /var/tmp/portage
mount -o exec -t tmpfs tmpfs /var/tmp/portage will make no difference since i am mostly using console if i can avoid X - I did not realize grsec's pax noexec did prevent the execution because the sh file is located in a group writeable directory... it works without this grsec feature. Well this was somehow my fault - sorry - paranoid kernel config ;)
> Unable to create and execute files in /var/tmp/portage/media-video/ffmpeg-1.2.6-r1/temp. Set the TMPDIR environment This is fixed in portage-2.2.15. *** This bug has been marked as a duplicate of bug 519566 ***