Bug 33355 - После пересборки: OSError: [Errno 38] Function not implemented
Summary: После пересборки: OSError: [Errno 38] Function not implemented
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python-base (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Vladimir D. Seleznev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 01:18 MSK by Vitaly Lipatov
Modified: 2017-04-12 18:32 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2017-04-11 01:18:49 MSK
* Ср мар 22 2017 Vladimir D. Seleznev <vseleznv@altlinux.org> 2.7.11-alt3.qa1
- NMU: rebuilt against Tcl/Tk 8.6

$ python 
Python 2.7.11 (default, Apr  7 2017, 11:12:07) 
[GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from random import Random as _Random
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/random.py", line 885, in <module>
    _inst = Random()
  File "/usr/lib64/python2.7/random.py", line 97, in __init__
    self.seed(x)
  File "/usr/lib64/python2.7/random.py", line 113, in seed
    a = long(_hexlify(_urandom(2500)), 16)
OSError: [Errno 38] Function not implemented
>>> 

в предыдущей сборке работало.
Comment 1 Vladimir D. Seleznev 2017-04-11 03:31:22 MSK
$ uname -r
4.9.18-std-def-alt1
$ rpm -q glibc 
glibc-2.25-alt2.x86_64
$ python                                       
Python 2.7.11 (default, Apr  7 2017, 11:12:07)
[GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from random import Random as _Random
>>>
$ strace -o /dev/null -e fault=getrandom python 
Python 2.7.11 (default, Apr  7 2017, 11:12:07)
[GCC 6.3.1 20170118 (ALT 6.3.1-alt2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from random import Random as _Random
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/random.py", line 885, in <module>
    _inst = Random()
  File "/usr/lib64/python2.7/random.py", line 97, in __init__
    self.seed(x)
  File "/usr/lib64/python2.7/random.py", line 113, in seed
    a = long(_hexlify(_urandom(2500)), 16)
OSError: [Errno 38] Function not implemented
>>>
Comment 2 Repository Robot 2017-04-12 18:32:44 MSK
python-2.7.11-alt4 -> sisyphus:

* Tue Apr 11 2017 Gleb F-Malinovskiy <glebfm@altlinux> 2.7.11-alt4
- Fixed 'random' module regression caused by glibc >= 2.25 (closes: #33355).