Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage shot itself by updating libffi from 3.1-r3 to 3.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Duncan_Shriek
n00b
n00b


Joined: 17 Aug 2010
Posts: 10

PostPosted: Wed Nov 12, 2014 8:13 pm    Post subject: Portage shot itself by updating libffi from 3.1-r3 to 3.2 Reply with quote

Since that update every emerge fails after unpacking with:
Code:

Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/portage/util/_async/ForkProcess.py", line 43, in _spawn
    portage.process._setup_pipes(fd_pipes, close_fds=False)
  File "/usr/lib64/python3.4/site-packages/portage/proxy/objectproxy.py", line 22, in __getattribute__
    result = object.__getattribute__(self, '_get_target')()
  File "/usr/lib64/python3.4/site-packages/portage/proxy/lazyimport.py", line 107, in _get_target
    __import__(name)
  File "/usr/lib64/python3.4/site-packages/portage/process.py", line 27, in <module>
    from portage.util._ctypes import find_library, LoadLibrary, ctypes
  File "/usr/lib64/python3.4/site-packages/portage/util/_ctypes.py", line 5, in <module>
    import ctypes
  File "/usr/lib64/python3.4/ctypes/__init__.py", line 541, in <module>
    _reset_cache()
  File "/usr/lib64/python3.4/ctypes/__init__.py", line 280, in _reset_cache
    CFUNCTYPE(c_int)(lambda: None)
MemoryError


Any ideas how to revert that libffi update now? Any other ideas how to repair emerge?
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Wed Nov 12, 2014 10:01 pm    Post subject: Reply with quote

Just curious, did you try it with the active python set to either python 2.7 or 3.2? The main reason why I mention it, is because support for python 3.4 is still masked.
Back to top
View user's profile Send private message
Duncan_Shriek
n00b
n00b


Joined: 17 Aug 2010
Posts: 10

PostPosted: Wed Nov 12, 2014 10:05 pm    Post subject: Reply with quote

ct85711 wrote:
Just curious, did you try it with the active python set to either python 2.7 or 3.2? The main reason why I mention it, is because support for python 3.4 is still masked.


Yes, I've usually python 2.7 eselected. 3.4 didn't change the error.
Back to top
View user's profile Send private message
SemmZemm
n00b
n00b


Joined: 05 Jul 2013
Posts: 62
Location: France, Russia

PostPosted: Thu Nov 13, 2014 1:56 pm    Post subject: Reply with quote

I have apparently the same problem as you but I did easily:
emerge -1 =dev-libs/libffi-3.1-r3
Back to top
View user's profile Send private message
Duncan_Shriek
n00b
n00b


Joined: 17 Aug 2010
Posts: 10

PostPosted: Thu Nov 13, 2014 2:11 pm    Post subject: Reply with quote

As I posted already in the other thread: booting with
Code:
selinux=0
on the kernel command line was enough to fix it for me.
Back to top
View user's profile Send private message
229566
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2010
Posts: 127

PostPosted: Thu Nov 13, 2014 6:37 pm    Post subject: Reply with quote

Duncan_Shriek wrote:
Code:
selinux=0


However, that is not really a fix but a temporary solution. If you do run SELinux already, check what policy is causing this and why, and easily fix it with audit2allow.
Back to top
View user's profile Send private message
N8Fear
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2013
Posts: 140
Location: Berlin (Germany)

PostPosted: Thu Nov 13, 2014 9:29 pm    Post subject: Reply with quote

Likely you just have to setsebool executable memory enabled (which is essentially what libffi does and why it clashes with pax enabled kernels too unless the binaries are marked with -m or -E).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum