Univention Bugzilla – Bug 49168
Migrate services/univention-ad-connector to dh_python2
Last modified: 2020-01-13 17:14:39 CET
The package services/univention-ad-connector should be migrated to use dh_python instead of python-support. Migration-Guide: https://hutten.knut.univention.de/mediawiki/index.php/Python_DebHelper_Migration
Pyshared references needs to be adjusted: services/univention-ad-connector/debian/univention-ad-connector.univention-service:programs=/usr/share/pyshared/univention/connector/ad/main.py services/univention-ad-connector/scripts/prepare-new-instance: sed -i "s|/usr/share/pyshared/univention/connector/ad/main.py.*|/usr/share/pyshared/univention/connector/ad/main.py --configbase \"$CONFIGBASENAME\"|" /usr/sbin/univention-ad-"$CONFIGBASENAME" services/univention-ad-connector/univention-ad-connector:/usr/bin/python2.7 -W ignore /usr/share/pyshared/univention/connector/ad/main.py
Patch available in git:dh-python/services
Patch applied, diff is similar to the changes for univention-s4-connector. univention-ad-connector (13.0.0-17) e97d3546d6fe | Bug #49168: futurize -nw --no-diffs -f lib2to3.fixes.fix_numliterals abfd66703084 | Bug #49168: futurize -nw --no-diffs -f lib2to3.fixes.fix_long 3aa03a056256 | Bug #49168: futurize -nw --no-diffs -f lib2to3.fixes.fix_except 002bf978b9b8 | Bug #49168: futurize -nw --no-diffs -f libfuturize.fixes.fix_print_with_import modules/ b1a68465ea3f | Bug #49168: do not adjust sys.path for importing of mapping.py e50e38321f52 | Bug #49168: pep8: fix F841: local variable is assigned to but never used bc239eb40446 | Bug #49168: pep8 univention-ad-connector 97081e5b04be | Bug #49168: migrate to dh_python ucs-test (9.0.3-93) 3aa26464a19c | Bug #49168: make tests pass with python-support and dh-python ad-connector univention-ad-connector.yaml f7921de2a399 | YAML Bug #49168
OK code changes OK debdiff / dpkg -L OK install / upgrade UMC module OK yaml (f5fc81a5d5 Bug #49168: yaml) OK jenkins -> verified
<http://errata.software-univention.de/ucs/4.4/390.html>