Bug 6664 - python3 64bit installation is broken
Summary: python3 64bit installation is broken
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: release_blocker critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga2-64-OK, mga2-32-OK
Keywords: validated_update
Depends on: 6702
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-02 20:08 CEST by Kamil Rytarowski
Modified: 2012-07-10 19:03 CEST (History)
3 users (show)

See Also:
Source RPM: python3
CVE:
Status comment:


Attachments

Description Kamil Rytarowski 2012-07-02 20:08:20 CEST
Description of problem:

Python3 x86_64 version is broken and not usable.

Python3 installs files into /usr/lib64 directory, and some libraries are looking for files in /usr/lib. This is producing error tracebacks.

This bug is present in Mga2 and Mga3 (Cauldron) - for Cauldron this is release blocker - because without it, there isn't possible to introduce missing libraries.

Input Command (one-liner): python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_config_vars('LDFLAGS'))"

And the result
===================
Traceback (most recent call last):
  File "/usr/lib64/python3.2/distutils/sysconfig.py", line 435, in _init_posix
    parse_makefile(filename, g)
  File "/usr/lib64/python3.2/distutils/sysconfig.py", line 304, in parse_makefile
    fp = TextFile(fn, strip_comments=1, skip_blanks=1, join_lines=1, errors="surrogateescape")
  File "/usr/lib64/python3.2/distutils/text_file.py", line 100, in __init__
    self.open(filename)
  File "/usr/lib64/python3.2/distutils/text_file.py", line 115, in open
    self.file = io.open(self.filename, 'r', errors=self.errors)
IOError: [Errno 2] No such file or directory: '/usr/lib/python3.2/config-3.2mu/Makefile'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.2/distutils/sysconfig.py", line 526, in get_config_vars
    func()
  File "/usr/lib64/python3.2/distutils/sysconfig.py", line 441, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python3.2/config-3.2mu/Makefile (No such file or directory)
==============

Version-Release number of selected component (if applicable):
python3.2-3.2.3-1

How reproducible:
Always

Steps to Reproduce:
1. Install python3 and python3-devel (don't install 32bit packages concurrently!) in 64bit environment
2. Consult a result of: python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_config_vars('LDFLAGS'))"
Kamil Rytarowski 2012-07-02 20:08:41 CEST

Priority: Normal => release_blocker

Comment 1 Kamil Rytarowski 2012-07-02 21:58:42 CEST
I'm on it.
Comment 2 Kamil Rytarowski 2012-07-03 19:58:37 CEST
Fixed in Cauldron.
Comment 3 Kamil Rytarowski 2012-07-03 21:27:15 CEST
Suggested advisory:
========================

Updated Python3 package fixes X86_64 build.

64 bit installation was partly broken. A simple way to see an error was to type:
python3 -c "import distutils.sysconfig;print(distutils.sysconfig.get_config_vars('LDFLAGS'))"

This update uses patches from Fedora.
========================

Updated packages in core/updates_testing:
========================
noarch:
python3-docs-3.2.3-1.mga3.noarch.rpm

i586:
libpython3.2-3.2.3-1.1.mga2.i586.rpm
python3-3.2.3-1.1.mga2.i586.rpm
tkinter3-3.2.3-1.1.mga2.i586.rpm
libpython3-devel-3.2.3-1.1.mga2.i586.rpm
python3-debug-3.2.3-1.1.mga2.i586.rpm
kinter3-apps-3.2.3-1.1.mga2.i586.rpm

x86_64:
lib64python3.2-3.2.3-1.1.mga2.x86_64.rpm
python3-3.2.3-1.1.mga2.x86_64.rpm
tkinter3-3.2.3-1.1.mga2.x86_64.rpm
lib64python3-devel-3.2.3-1.1.mga2.x86_64.rpm
python3-debug-3.2.3-1.1.mga2.x86_64.rpm
kinter3-apps-3.2.3-1.1.mga2.x86_64.rpm

Source RPM: 
python3-3.2.3-1.1.mga2.src.rpm
Kamil Rytarowski 2012-07-03 21:27:43 CEST

Assignee: bugsquad => qa-bugs

Comment 4 William Murphy 2012-07-04 16:31:21 CEST
Testing on mga2 x86_64 and mga2 i586 (since listed in advisory)

Before update, output was the same as in the bug description above for x86_64. 
Before and after for mga2 i586 and after update for x86_64, output was: 

['-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags']

Testing complete for mga2 i586 & x86_64.

CC: (none) => fcs
Whiteboard: (none) => mga2-64-OK, mga2-32-OK

Comment 5 William Murphy 2012-07-05 19:49:00 CEST
-------------------------------------------------------------------------------
Update validated.
Thanks.

-------------------------------------------------------------------------------
Advisory

Listed in comment 3

--------------

SRPM: python3-3.2.3-1.1.mga2.src.rpm

Could sysadmin please push from core/updates_testing to core/updates.

Thank you!
--------------------------------------------------------------------------------

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update
Version: Cauldron => 2

Comment 6 Manuel Hiebel 2012-07-05 20:06:35 CEST
please don't push the updates, see new bug 6704

we can mix the two advisory and close the bugs in the same time.

Depends on: (none) => 6702

Comment 7 Thomas Backlund 2012-07-10 19:03:04 CEST
ignoring comment 6 as it points to a hplip bug

update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0114

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.