Univention Bugzilla – Bug 28497
pycentral → pysupport → dh_python2
Last modified: 2021-03-19 10:09:22 CET
Wir wir auf die nächste Debian-Version wechseln, müssen die ganzen Python-Pakete angepasst werden. Dabei sind in debian/control auch die XS-Python-Version anzupassen, was noch von pycentral stammt. Aktuell für dh_python2 ist "X-Python-Version". dh_pysupport verwendet derzeit debian/pyversions, was dann auch zu ersetzten ist.
pysupport is still available in UCS 4. Are the benefits of dh_python2 enough?
We will use pysupport for the UCS 4 packages. The main problem is that we have to migrate the whole univention namespace at once. I don't think it is the best solution to do it in such a big update.
(In reply to Stefan Gohmann from comment #2) > We will use pysupport for the UCS 4 packages. The main problem is that we > have to migrate the whole univention namespace at once. No, you don't have to: <https://docs.python.org/2.7/library/pkgutil.html#pkgutil.extend_path> works quiet well. The main problem by now is that lots of UCS packages hard-code files in /usr/share/pyshared/, which is wrong and will break left and right if we do the transition. > I don't think it is the best solution to do it in such a big update. And you propose to do it when instead? This is going to be an API change, so if not for a major release, when else? We already procrastinated the change with Debian-Wheezy for UCS-4.0, and it gets worse with Debian-Jessie with UCS-4.2
(In reply to Philipp Hahn from comment #3) > > I don't think it is the best solution to do it in such a big update. > > And you propose to do it when instead? This is going to be an API change, so > if not for a major release, when else? > We already procrastinated the change with Debian-Wheezy for UCS-4.0, and it > gets worse with Debian-Jessie with UCS-4.2 And this will probably also ease the transition to Python 3, which is available in UCS 4.2 / Debian Jessie. In UCS 5.x the update will probably not break as much with dh_python than py_support.
Also happened with python-univention-odoo
I created bugs for all our UCS packages except: packaging/ucslint packaging/univention-directory-manager-module-example packaging/univention-package-template-python packaging/univention-ucs-translation-template test/ucs-test-tools test/ucs-test test/ucs-windows-tools management/python-notifier
[4.4-0] 51379bd8d9 Bug #28497 ucslint: Fix migrate to dh-python packaging/ucslint/debian/changelog | 6 ++++++ packaging/ucslint/debian/control | 1 + 2 files changed, 7 insertions(+) Package: ucslint Version: 8.0.0-12A~4.4.0.201905210840 Branch: ucs_4.4-0 Scope: errata4.4-0
univention-package-template (7.0.1-1) e53d1afdcf82 | Bug #28497: migrate to dh_python2 ucs-windows-tools (6.0.0-1) 6c5907479481 | Bug #28497: migrate ucs-windows-tools to dh_python2 univention-package-template-python (7.0.0-2) 0c8c69460026 | Bug #28497: migrate to dh_python2 ucslint (8.0.0-11) 1b6cd7415477 | Bug #28497: add python3 support for flake8 plugin 0a6412767c40 | Bug #28497: migrate ucslint to dh-python ucslint.yaml ebc7ad5254fe | Bug #28497: YAML univention-management-console-module-udm (1.0.203-1) r28497 | univention-management-console-module-udm (1.0.203-1) unstable; urgency=low ucslint (8.0.0-12) c5fa5942f46f | Bug #28497: remove debug output 51379bd8d9ca | Bug #28497 ucslint: Fix migrate to dh-python ucs-test-tools (8.0.0-1) 0a77a7f4afd3 | Bug #28497: migrate ucs-test-tools to dh_python2 ucslint (8.0.0-5) a35d7cc263ff | Bug #28497: check for dh-python instead of python_support univention-ucs-translation-template (6.0.0-2) 6fe3a76f3e85 | Bug #28497: migrate to dh_python2 ucs-test (9.0.2-58) a348e4799c67 | Bug #28497: futurize -nw --no-diffs -f libfuturize.fixes.fix_print_with_import univention/testing/ 9554348e4480 | Bug #28497: migrate ucs-test to dh-python
All packages in UCS have been migrated to dh_python2: git grep pycentral -- ':!**/debian/changelog' git grep pysupport -- ':!**/debian/changelog' Legacy compatibility code to be removed with UCS-5+ git grep -n pyshared -- ':!**/debian/changelog' ':!**.public' OK: test/utils/utils.sh TODO: management/univention-directory-manager-modules/debian/control git grep -n python-support ':!**/debian/changelog' OK: packaging/ucslint test/ucs-test/tests/72_udm-extensions/ TODO: Re-check the following cases univention-system-activation services/univention-radius/debian/univention-radius.links test/utils/utils.sh test/ucs-test/debian/rules [4.4-4] f5db3652f7 Bug #28497: Complete dh_python2 transition 9 7 base/univention-app-appliance/debian/control 0 1 base/univention-app-appliance/debian/dirs 2 1 base/univention-app-appliance/debian/univention-app-appliance.dirs 0 2 doc/developer-reference/packaging/packaging.xml 9 15 doc/developer-reference/udm/udm.xml 1 1 doc/developer-reference/umc/ucr/debian/control 1 1 management/univention-directory-listener/README.md 0 3 management/univention-directory-manager-modules/debian/python-univention-directory-manager.dirs 0 6 management/univention-ldap/univention-backup2master 0 1 packaging/ucslint/doc/ucslint.1 1 1 packaging/univention-directory-manager-module-example/debian/control 1 1 packaging/univention-directory-manager-module-example/debian/rules 0 2 packaging/univention-directory-manager-module-example/debian/univention-directory-manager-module-example.dirs 1 1 packaging/univention-directory-manager-module-example/debian/univention-directory-manager-module-example.install 1 1 services/univention-admin-diary/scripts/make_udm_events.py 0 4 services/univention-nfs/81univention-nfs-server.inst 0 4 services/univention-radius/debian/copyright 0 3 services/univention-samba/debian/rules 1 1 services/univention-samba4/96univention-samba4.inst 1 1 services/univention-samba4/98univention-samba4-dns.inst 1 1 services/univention-samba4/lib/base.sh 1 1 services/univention-samba4/scripts/setup-dns-in-ucsldap.sh 0 2 services/univention-support-info/debian/control 0 1 services/univention-support-info/debian/univention-support-info.dirs 1 9 services/univention-support-info/univention-support-info
[4.4-4] df3fd0c48e Bug #28497: Complete dh_python2 transition fix .../debian/python-univention-directory-manager.dirs | 3 +++ 1 file changed, 3 insertions(+)
OK: git:f5db3652f71d22c53113f006eeb78ac2566fde1b Took only 7 years to do the migration.
All changes are released CLOSING