Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 212769

Summary: dev-lang/python-2.5.4-r2 tests fail on uclibc/hardened
Product: Gentoo Linux Reporter: Aurélien Francillon <aurelien.francillon>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Severity: normal CC: python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: dev-lang:python-2.5.4-r2:20090519-082034.log

Description Aurélien Francillon 2008-03-08 22:51:07 UTC
emerging dev-lang/python-2.4.4-r9 on a gentoo uclibc/hardened fails with the following message :

3 tests failed: 
    test_largefile test_openpty test_resource
34 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_gl test_imgfile test_linuxaudiodev test_locale test_macfs
    test_macostools test_nis test_normalization test_ossaudiodev
    test_pep277 test_plistlib test_scriptpackages test_socket_ssl
    test_socketserver test_sunaudiodev test_timeout test_unicode_file
    test_urllib2net test_urllibnet test_winreg test_winsound
1 skip unexpected on linux2:
Re-running failed tests in verbose mode
Re-running test 'test_largefile' in verbose mode
create large file via seek (may be sparse file) ...
check file size with os.fstat
2500000001L =?= 2500000001L ... yes
check file size with os.stat
2500000001L =?= 2500000001L ... yes
play around with seek() and read() with the built largefile
test test_largefile crashed -- exceptions.IOError: [Errno 75] Value too large for defined data type: '@test'
Traceback (most recent call last):
  File "./Lib/test/", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/", line 89, in ?
    f = open(name, 'rb')
IOError: [Errno 75] Value too large for defined data type: '@test'
Re-running test 'test_openpty' in verbose mode
Calling os.openpty()
test test_openpty crashed -- exceptions.OSError: [Errno 13] Permission denied
Traceback (most recent call last):
  File "./Lib/test/", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/", line 9, in ?
    master, slave = os.openpty()
OSError: [Errno 13] Permission denied
Re-running test 'test_resource' in verbose mode
test test_resource crashed -- exceptions.IOError: [Errno 27] File too large
Traceback (most recent call last):
  File "./Lib/test/", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/", line 42, in ?
IOError: [Errno 27] File too large
make: *** [test] Error 1

Reproducible: Always

emerge --info
Portage (uclibc/x86/hardened, gcc-3.4.6, uclibc-, 2.6.22-hardened-r8 i686)
System uname: 2.6.22-hardened-r8 i686 Pentium III (Coppermine)
Timestamp of tree: Sat, 08 Mar 2008 02:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
FEATURES="autoconfig ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict test unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="aalib apache2 audiofile berkdb bzip2 caps cdb chroot cli cracklib crypt curl dri dts expat ffmpeg gd gdbm ggi gmp hardened imagemagick imap ipv6 jpeg lcms libcaca libwww maildir mhash midi mmx mudflap ncurses no-htdocs ogg openmp pcre perl php pic pie png python readline reflection sasl session sftplogging snmp spl sse ssl tcpd tiff truetype uclibc uclibc-compat udev usb wmf x86 xml2 xorg xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-18 15:54:45 UTC
Please test with a newer version of Python.
Comment 2 Aurélien Francillon 2009-05-19 09:39:26 UTC
Created attachment 191762 [details]

Log file of emerge python 2.5.4-r2
Comment 3 Aurélien Francillon 2009-05-19 09:43:15 UTC
still has many failures including tests :

        find_library('c') ->
        find_library('m') ->
make: *** [test] Killed (core dumped)

full log attached
Comment 4 Jan 2009-05-26 17:45:13 UTC
(In reply to comment #3)
> still has many failures including tests :
>  test_ctypes
>         find_library('c') ->
>         find_library('m') ->
> make: *** [test] Killed (core dumped)

I encountered similar problems recently; did you try the workarounds suggested in these bug reports? (test_ctypes) (test_largefile)

Those helped me. Did you encounter additional problems?
Comment 5 Aurélien Francillon 2009-05-26 21:32:01 UTC
Thanks for the hint they looks to be similar, 
however they seems to provide only workarounds...
I recently EOL'ed the machine on which I had this problem so I can't test it 

Comment 6 Patrice Clement gentoo-dev 2015-03-09 10:11:26 UTC
patrice@vmint ~/gentoo-x86/dev-lang/python $ ls
ChangeLog       CVS    Manifest      python-2.7.9-r1.ebuild  python-3.2.5-r6.ebuild  python-3.4.0.ebuild  python-3.4.2.ebuild
ChangeLog-2011  files  metadata.xml  python-2.7.9-r2.ebuild  python-3.3.5-r1.ebuild  python-3.4.1.ebuild  python-3.4.3.ebuild

Python 2.5 was taken out of the tree a while ago. I believe we don't support it anymore. Closing this bug.