Bug 22637 - Updated package: python3
Summary: Updated package: python3
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-64-OK MGA6-32-OK
Keywords: advisory, has_procedure, validated_update
Depends on:
Blocks:
 
Reported: 2018-02-23 01:23 CET by Stig-Ørjan Smelror
Modified: 2018-02-26 17:24 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Stig-Ørjan Smelror 2018-02-23 01:23:07 CET
Advisory
========

Added a patch to fix a whitespace in the command "python3-config --ldflags" that could result in a cmake error CMP0004.

Old behavior:
$ python3-config --ldflags
 -L/usr/lib64 -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic

New behavior:
$ python3-config --ldflags
-L/usr/lib64 -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic

References
==========
https://bugs.python.org/issue32914

Files
=====
The following files has been uploaded to core/updates_testing:

python3-3.5.3-1.2.mga6
python3-docs-3.5.3-1.2.mga6
lib64python3-devel-3.5.3-1.2.mga6
lib64python3.5-3.5.3-1.2.mga6
lib64python3.5-stdlib-3.5.3-1.2.mga6
lib64python3.5-testsuite-3.5.3-1.2.mga6

from python3-3.5.3-1.2.mga6.src.rpm
Comment 1 Stig-Ørjan Smelror 2018-02-23 09:07:42 CET
Advisory
========

Added a patch to fix a whitespace in the command "python3-config --ldflags" that could result in a cmake error CMP0004.

Old behavior:
$ python3-config --ldflags
 -L/usr/lib64 -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic

New behavior:
$ python3-config --ldflags
-L/usr/lib64 -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic

References
==========
https://bugs.python.org/issue32914

Files
=====
The following files has been uploaded to core/updates_testing:

python3-3.5.3-1.2.mga6
libpython3.5-3.5.3-1.2.mga6
libpython3.5-stdlib-3.5.3-1.2.mga6
libpython3.5-testsuite-3.5.3-1.2.mga6
libpython3-devel-3.5.3-1.2.mga6
python3-docs-3.5.3-1.2.mga6
tkinter3-3.5.3-1.2.mga6
tkinter3-apps-3.5.3-1.2.mga6

from python3-3.5.3-1.2.mga6.src.rpm
Comment 2 Len Lawrence 2018-02-23 18:49:49 CET
Mageia 6 :: x86_64

Before update:
$ python3-config --ldflags
" -L/usr/lib64 -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic"

After update:
$ python3-config --ldflags
"-L/usr/lib64  -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic"

The offending leading space has been removed which in itself is enough to validate the update but since everything presumably has been rebuilt a utility test is in order.  Ran a short script which produces a simple interactive gui which works.  Just a rubber stamp.

CC: (none) => tarazed25
Whiteboard: (none) => MGA6-64-OK

Comment 3 Len Lawrence 2018-02-26 01:25:45 CET
Mageia 6 :: i586 in virtualbox

The before and after test of 
$ python3-config --ldflags
returned the same results as the 64-bit tests.
 -L/usr/lib -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic
-L/usr/lib  -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic

combo.py, a mickey-mouse script to exercize python3 and tkinter:

#!/bin/env python3
from tkinter import *
from tkinter import ttk

def calculate ( *args ):
  try:
    value = float( feet.get( ) )
    metres.set( (0.3048 * value * 10000.0 + 0.5) / 10000.0 )
  except ValueError:
    pass

root = Tk( )
root.title( "Feet to metres" )

mainframe = ttk.Frame( root, padding="3 3 12 12" )
mainframe.grid( column=0, row=0, sticky=(N, W, E, S) )
mainframe.columnconfigure( 0, weight=1 )
mainframe.rowconfigure( 0, weight=1 )

feet   = StringVar( )
metres = StringVar( )
value  = StringVar( )


values = ttk.Combobox( mainframe, textvariable=feet )
values.grid( column=1, row=1, sticky=W )
values['value'] = ( '1', '2', '5.5', '12.3' )

feet_entry = ttk.Entry( mainframe, width=7, textvariable=feet )
feet_entry.grid( column=2, row=1, sticky=(W, E) )

e = ttk.Label( mainframe, textvariable=metres )
e.grid( column=2, row=2, sticky=(W, E) )
b = ttk.Button( mainframe, text="Calculate", command=calculate )
b.grid( column=2, row=3, sticky=W )

u = ttk.Label( mainframe, text="feet" )
u.grid( column=3, row=1, sticky=W )
v = ttk.Label( mainframe, text="is equivalent to" )
v.grid( column=1, row=2, sticky=E )
z = ttk.Label( mainframe, text="metres" )
z.grid( column=3, row=2, sticky=W )

for child in mainframe.winfo_children( ): child.grid_configure( padx=5, pady=5 )

feet_entry.focus( )
root.bind( '<Return>', calculate )

root.mainloop( )

$ ./combo.py 
generates the simple gui for converting feet to metres.

Good for 32 bits.

Keywords: (none) => validated_update
Whiteboard: MGA6-64-OK => MGA6-64-OK MGA6-32-OK
CC: (none) => sysadmin-bugs

Comment 4 claire robinson 2018-02-26 16:44:19 CET
advisory uploaded.

Keywords: (none) => advisory, has_procedure

Comment 5 Mageia Robot 2018-02-26 17:24:10 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2018-0036.html

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


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