Bug 26852 - 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: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Stefan Gohmann
Philipp Hahn
: interim-1
: 27199 (view as bug list)
Depends on:
Blocks: 26854
  Show dependency treegraph
 
Reported: 2012-04-20 16:33 CEST by Stefan Gohmann
Modified: 2012-12-12 21:08 CET (History)
2 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):
Max CVSS v3 score:


Attachments
Check package build version vs source version (1.07 KB, text/plain)
2012-09-13 13:23 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-04-20 16:33:10 CEST
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 Alexander Kläser univentionstaff 2012-05-21 15:12:12 CEST
*** Bug 27199 has been marked as a duplicate of this bug. ***
Comment 2 Janis Meybohm univentionstaff 2012-05-30 13:47:21 CEST
Erneut gemeldet an Ticket#: 2012052321003259
Comment 3 Stefan Gohmann univentionstaff 2012-09-05 11:19:25 CEST
Änderungen sind im svn, die folgenden Pakete müssen noch neu gebaut werden:

management/univention-management-console-module-mrtg 
management/univention-management-console-module-ipchange 
management/univention-management-console-module-packages 
management/univention-management-console-module-services 
management/univention-management-console-module-vnc 
management/univention-management-console-module-ucr 
management/univention-management-console-module-reboot 
management/univention-management-console-module-top
Comment 4 Stefan Gohmann univentionstaff 2012-09-06 07:52:13 CEST
(In reply to comment #3)
> Änderungen sind im svn, die folgenden Pakete müssen noch neu gebaut werden:
> 
> management/univention-management-console-module-mrtg 
> management/univention-management-console-module-ipchange 
> management/univention-management-console-module-packages 
> management/univention-management-console-module-services 
> management/univention-management-console-module-vnc 
> management/univention-management-console-module-ucr 
> management/univention-management-console-module-reboot 
> management/univention-management-console-module-top

management/univention-management-console-module-ipchange wurde neu gebaut, alle anderen Pakete werden bei der Dojo Umstellung neu gebaut.
Comment 5 Florian Best univentionstaff 2012-09-06 12:13:05 CEST
(In reply to comment #4)
> management/univention-management-console-module-ipchange wurde neu gebaut, alle
> anderen Pakete werden bei der Dojo Umstellung neu gebaut.
Alle Pakete gebaut.
Comment 6 Philipp Hahn univentionstaff 2012-09-13 13:22:23 CEST
1. Ich halte den gewählten Weg für generell falsch, denn beim Update von UCS-2.4 auf UCS-3.0 hatten wir große Probleme damit, daß plötzlich Softwware nicht mehr funktioniert hat, weil sich die Python-Version von 2.4 auf 2.6 geändert hat. Insbesondere durch die Umstellung von univention-config, univention-python, univention-lib laufen wir Gefahr, daß Problem bei der nächsten Umstellun der standart-Python-Version zu wiederholen.
Für UDM und UMC mag das noch gehen, aber für UCR sehe ich das als latente Gefahr.

2. Außerdem ist XS-Python-Version veralt

3. Wenn schon die Python-Version eingeschränkt wird, sollte auch das Build-Depends: von python-all-dev auf python2.6-dev geändert werden.


OK: Code-Review svn35235

OK: ChangeLog svn14597

FAIL: Alle Pakete wurden gebaut, nur bei univention-management-console-module-reboot scheint was schiefgelaufen zu sein: Es fehlt der typische UCS-Versions-Suffix mit Zeitstempel:
$ ls -1 */univention-management-console-module-reboot*
all/univention-management-console-module-reboot_2.0.0-2_all.deb
source/univention-management-console-module-reboot_2.0.0-2.dsc
source/univention-management-console-module-reboot_2.0.0-2_i386.changes
source/univention-management-console-module-reboot_2.0.0-2.tar.gz
Bitte da nochmal nachschauen, ob das so okay ist.
Comment 7 Philipp Hahn univentionstaff 2012-09-13 13:23:28 CEST
Created attachment 4654 [details]
Check package build version vs source version

Requires git
Comment 8 Stefan Gohmann univentionstaff 2012-09-13 14:32:14 CEST
(In reply to comment #6)
> 1. Ich halte den gewählten Weg für generell falsch, denn beim Update von
> UCS-2.4 auf UCS-3.0 hatten wir große Probleme damit, daß plötzlich Softwware
> nicht mehr funktioniert hat, weil sich die Python-Version von 2.4 auf 2.6
> geändert hat. Insbesondere durch die Umstellung von univention-config,
> univention-python, univention-lib laufen wir Gefahr, daß Problem bei der
> nächsten Umstellun der standart-Python-Version zu wiederholen.
> Für UDM und UMC mag das noch gehen, aber für UCR sehe ich das als latente
> Gefahr.

Ja, das stimmt schon. Wie besprochen sollten wir das dann mit dem letzten Update vor UCS 4 bewusst angehen.

> 2. Außerdem ist XS-Python-Version veralt

Das lösen wir irgendwann durch ein Update auf dh_python2 oder was auch immer dann aktuell ist.

> 3. Wenn schon die Python-Version eingeschränkt wird, sollte auch das
> Build-Depends: von python-all-dev auf python2.6-dev geändert werden.
> 
> 
> OK: Code-Review svn35235
> 
> OK: ChangeLog svn14597
> 
> FAIL: Alle Pakete wurden gebaut, nur bei
> univention-management-console-module-reboot scheint was schiefgelaufen zu sein:
> Es fehlt der typische UCS-Versions-Suffix mit Zeitstempel:
> $ ls -1 */univention-management-console-module-reboot*
> all/univention-management-console-module-reboot_2.0.0-2_all.deb
> source/univention-management-console-module-reboot_2.0.0-2.dsc
> source/univention-management-console-module-reboot_2.0.0-2_i386.changes
> source/univention-management-console-module-reboot_2.0.0-2.tar.gz
> Bitte da nochmal nachschauen, ob das so okay ist.

Nach einem
buildsystem=# update src_pkg set modify_build_name = True where nr = '15486';
habe ich das Paket neu gebaut:
 univention-management-console-module-reboot_2.0.0-2.1.201209131426_all.deb
Comment 9 Philipp Hahn univentionstaff 2012-09-13 18:43:52 CEST
(In reply to comment #8)
> > FAIL: Alle Pakete wurden gebaut, nur bei
> > univention-management-console-module-reboot scheint was schiefgelaufen zu sein:
...
> Nach einem
> buildsystem=# update src_pkg set modify_build_name = True where nr = '15486';
> habe ich das Paket neu gebaut:
>  univention-management-console-module-reboot_2.0.0-2.1.201209131426_all.deb

OK: Alle Pakete (bis auf python-univention-package-template) wurden neu gebaut

# grep ^pyversions= /usr/share/python-support/*univention*.public
/usr/share/python-support/python-univention-config-registry.public:pyversions=2.6
/usr/share/python-support/python-univention-debug.public:pyversions=2.5,2.6
/usr/share/python-support/python-univention-directory-manager-cli.public:pyversions=2.6
/usr/share/python-support/python-univention-directory-manager.public:pyversions=2.6
/usr/share/python-support/python-univention-directory-manager-uvmm.public:pyversions=2.6
/usr/share/python-support/python-univention-directory-reports.public:pyversions=2.6
/usr/share/python-support/python-univention-heimdal.public:pyversions=2.6
/usr/share/python-support/python-univention-lib.public:pyversions=2.6
/usr/share/python-support/python-univention-license.public:pyversions=2.6
/usr/share/python-support/python-univention-management-console.public:pyversions=2.6
/usr/share/python-support/python-univention-pkgdb.public:pyversions=2.6
/usr/share/python-support/python-univention.public:pyversions=2.6
/usr/share/python-support/univention-management-console-dev.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-ipchange.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-lib.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-mrtg.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-packages.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-quota.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-reboot.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-services.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-setup.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-top.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-ucr.public:pyversions=2.6
/usr/share/python-support/univention-management-console-module-udm.public:pyversions=2.6
Comment 10 Stefan Gohmann univentionstaff 2012-12-12 21:08:46 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".