Bug 50332 - Adjust dh_umc for dh_python2
Adjust dh_umc for dh_python2
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.4
All Linux
: P5 normal (vote)
: UCS 4.4-3-errata
Assigned To: Johannes Keiser
Jürn Brodersen
:
Depends on: 49161
Blocks: 28497
  Show dependency treegraph
 
Reported: 2019-10-08 15:31 CEST by Florian Best
Modified: 2020-02-19 16:12 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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:
best: Patch_Available+


Attachments
patch (3.79 KB, patch)
2019-11-29 11:56 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2019-10-08 15:31:51 CEST
Split the part to make dh_umc use dh_python into this Bug.

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

The package management/univention-management-console should be migrated to use dh_python instead of python-support.

Migration-Guide: https://hutten.knut.univention.de/mediawiki/index.php/Python_DebHelper_Migration
Comment 1 Florian Best univentionstaff 2019-11-12 14:46:03 CET
The idea here is that dh_umc evaluates the debian control file and adds the python2 or python3 files depending on the ${python:Provides} and ${python3:Provides} Provides entry.
Comment 2 Florian Best univentionstaff 2019-11-29 11:56:44 CET
Created attachment 10236 [details]
patch
Comment 3 Johannes Keiser univentionstaff 2020-02-17 13:34:50 CET
1dc09c3959 Bug #50332: debian changelog                                                                                                                                                                                                      
68f12c6455 Bug #50332: remove option from shebang
92771f270a Bug #50332: yaml
7eb838a17c Bug #50332: debian changelog
e8d753dce4 Bug #50332: install umc modules under python2.7 and/or python3 depending on what they provide

Successful build
Package: univention-ucs-translation-template
Version: 6.0.0-14A~4.4.0.202002171321

Successful build
Package: univention-management-console
Version: 11.0.4-57A~4.4.0.202002171325

Applied patch:
binary packages that provide an umc module are installed under python2.7 and/or
python3 depending on the 'Provides' field
Comment 4 Jürn Brodersen univentionstaff 2020-02-18 13:36:46 CET
What I tested:
Build a package without any "provides" -> python2.7 is build -> OK
Build a package which provides python and python3 -> python2.7 and python3 is build -> OK

[4.4-3 35f3fd8af4] Bug #50332: yaml

-> Verified