Bug 31320 - UCS 3 Python Module nur für Python 2.6 bauen
UCS 3 Python Module nur für Python 2.6 bauen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.2-1-errata
Assigned To: Stefan Gohmann
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-08 15:35 CEST by Alexander Kläser
Modified: 2014-05-07 15:25 CEST (History)
6 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2013-05-08 15:35:15 CEST
Der folgenden Fehler ist noch einmal auf einer 3.1-Instanz aufgefallen:

====================
Vorbereitung zum Ersetzen von univention-management-console-module-setup 6.0.76-15.459.201303221437 (durch .../univention-management-console-module-setup_6.1.76-12.460.201303251119_all.deb) ...
Reloading Univention Management Console Server.
done.
Ersatz für univention-management-console-module-setup wird entpackt ...
Vorbereitung zum Ersetzen von univention-system-setup 6.0.76-15.459.201303221437 (durch .../univention-system-setup_6.1.76-12.460.201303251119_all.deb) ...
Ersatz für univention-system-setup wird entpackt ...
Trigger für python-support werden verarbeitet ...
Compiling /usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py ...
  File "/usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py", line 59
    return map(lambda x:x if x!= oldValue else newValue,l)
                           ^
SyntaxError: invalid syntax

Trigger für univention-config werden verarbeitet ...
====================

+++ This bug was initially created as a clone of Bug #26852 +++

Bei einer Migration von Samba 3 auf Samba 4 sind die folgenden Meldungen
aufgefallen:

Trigger für python-support werden verarbeitet ...
Compiling /usr/lib/pymodules/python2.4/univention/admin/uldap.py ...
  File "/usr/lib/pymodules/python2.4/univention/admin/uldap.py", line 257
    except TypeError as e:
                      ^
SyntaxError: invalid syntax

/usr/lib/pymodules/python2.5/univention/admin/uldap.py:257: Warning: 'as' will
become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/univention/admin/uldap.py ...
  File "/usr/lib/pymodules/python2.5/univention/admin/uldap.py", line 257
    except TypeError as e:
                      ^
SyntaxError: invalid syntax

Wir sollten die Module nur für die aktuelle Python Version, derzeit Python 2.6
bauen.
Comment 1 Tim Petersen univentionstaff 2013-06-26 15:40:49 CEST
Ebenfalls bei einem Kunden aufgefallen.
Comment 2 Florian Best univentionstaff 2013-11-19 14:19:41 CET
Again on update to UCS 3.2.
Comment 3 Daniel Orrego univentionstaff 2014-01-14 10:24:13 CET
It appeared many times (s4connector!) in an update after 3.1-1-errata196 and once in the upgrade to UCS 3.2 :

---
Trigger für python-support werden verarbeitet ...
Compiling /usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py ...
  File "/usr/lib/pymodules/python2.4/univention/s4connector/s4/computer.py", line 59
    return map(lambda x:x if x!= oldValue else newValue,l)
                           ^
SyntaxError: invalid syntax
---
Comment 4 Stefan Gohmann univentionstaff 2014-02-13 06:42:43 CET
Should be fixed with the next connector update.
Comment 5 Stefan Gohmann univentionstaff 2014-04-10 10:17:16 CEST
The S4 connector python modules are only built for Python 2.6.

Fixed: r49234
YAML: r49235
Comment 6 Arvid Requate univentionstaff 2014-05-06 20:29:15 CEST
Ok:
* /usr/share/python-support/python-univention-connector-s4.public now specifies
  pyversions=2.6
* The postinst calls update-python-modules
* Advisory Ok.
Comment 7 Moritz Muehlenhoff univentionstaff 2014-05-07 15:25:39 CEST
http://errata.univention.de/ucs/3.2/107.html