Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540052 - emerge ffmpeg will fail when trying to configure the sources
Summary: emerge ffmpeg will fail when trying to configure the sources
Status: RESOLVED DUPLICATE of bug 519566
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-14 12:48 UTC by harryrage
Modified: 2015-02-23 22:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description harryrage 2015-02-14 12:48:19 UTC
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.
Comment 1 Zac Medico gentoo-dev 2015-02-14 16:04:31 UTC
Are you sure that /var/tmp isn't mounted noexec? You can use this command to verify:

   grep noexec /proc/mounts
Comment 2 harryrage 2015-02-18 14:22:28 UTC
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
Comment 3 Zac Medico gentoo-dev 2015-02-18 16:03:17 UTC
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
Comment 4 harryrage 2015-02-23 21:55:50 UTC
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 ;)
Comment 5 Zac Medico gentoo-dev 2015-02-23 22:09:40 UTC
> 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 ***