Hi,
I created a x86 stage1 with catalyst and after chrooting into it, I hit
this error:

asuka usr # env-update
!!! CANNOT IMPORT FTPLIB: No module named _socket
   >>> Regenerating /etc/ld.so.cache...
asuka usr # emerge foo
Traceback (most recent call last):
      File "/usr/bin/emerge", line 6, in ?
        import os,sys,socket
      File "/usr/lib/python2.3/socket.py", line 44, in ?
        import _socket
ImportError: No module named _socket

This is a ~x86 stage1 with python-2.3.2-r2.

Searching the forums brought up some posts from people having the same
problem:

http://forums.gentoo.org/viewtopic.php?t=113030&highlight=module+named+socket
http://forums.gentoo.org/viewtopic.php?t=107625&highlight=module+named+socket
http://forums.gentoo.org/viewtopic.php?t=101920&highlight=module+named+socket

Searching google gives the indication that its a problem with python (so
nothing Gentoo related). I also found this bug report:

https://sourceforge.net/tracker/?func=detail&atid=105470&aid=565710&group_id=5470

In fact, /usr/lib/python2.3/lib-dynload/_socket.so isnt build with our
current python 2.3 ebuild.

After reading this report, I looked at the python ebuild and saw that
python-2.3.2-disable_modules_and_ssl.patch gets applied. The Changelog says:

     01 Nov 2003; Alastair Tse <[EMAIL PROTECTED]> python-2.2.3-r5.ebuild,
     python-2.3.2-r1.ebuild,
files/python-2.2.3-disable_modules_and_ssl.patch,
     files/python-2.3.2-disable_modules_and_ssl.patch:
     reordered deps to allow minimal python build for USE='build'. makes
python
     respect useflags explicitly even if the dependency exists. added
support to
     disable SSL. tweaked python_mod_optimize.

I commented the epatch line, built a binary package (emerge -B), copied
and unpacked it in my chroot and now python 2.3 works fine:

asuka / # python
Python 2.3.2 (#1, Dec 23 2003, 01:22:00)
[...]
asuka / # python -c 'import socket'
asuka / #

Long story, short question:

Are there any rejections/opinions on removing the patch?
(Liquidx is on vacation so I cant ask him directly :/ )

--
Sven Blumenstein                http://0x1337.net/
Gentoo Linux/Sparc Developer    http://dev.gentoo.org/~bazik/





Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to