Bug 52715 - New maintained / unmaintained check
New maintained / unmaintained check
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Felix Botner
Jürn Brodersen
:
Depends on:
Blocks: 52834
  Show dependency treegraph
 
Reported: 2021-01-28 11:31 CET by Jürn Brodersen
Modified: 2021-05-25 16:02 CEST (History)
5 users (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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2021-01-28 11:31:12 CET
New maintained / unmaintained check

We decided to move all packages into one repo without the maintained / unmaintained distinction in the repo. Instead a tool should check the package status on the server.

Plan:
A list of maintained packages is distributed through the "univention-errata-level" package.
A tool to compare that list with currently installed packages is supplied by the updater.
Comment 1 Felix Botner univentionstaff 2021-02-16 12:47:26 CET
Hi,

ccastens/52715-list-installed-unmaintained-pkgs looks good, made a small change to
Comment 2 Felix Botner univentionstaff 2021-02-16 13:00:55 CET
(In reply to Felix Botner from comment #1)
> Hi,
> 
> ccastens/52715-list-installed-unmaintained-pkgs looks good, made a small
> change to ...
 
.. "pretty up" the output (adaaf3b75bb75a611e5e853c4af1e1dc40526f38), please re-check that


* please rename list-installed-unmaintained-packages.py to univention-list-installed-unmaintained-package
* install in usr/sbin/
* add a short description in univention-list-installed-unmaintained-package (-h/--help with argparse)
* commit to 5.0-0/feature_branch (the structure there is a little bit different)
Comment 3 Christian Castens univentionstaff 2021-02-19 11:38:45 CET
Merge request 5.0-0:
https://git.knut.univention.de/univention/ucs/-/merge_requests/70


Branch ccastens/52715-installed-unmaintained
Comment 4 Christian Castens univentionstaff 2021-02-19 12:28:56 CET
Package: univention-updater
Version: 15.0.3-9A~5.0.0.202102191223
Branch: ucs_5.0-0
Comment 5 Christian Castens univentionstaff 2021-02-19 13:33:06 CET
Package: univention-errata-level
Version: 5.0.0-2A~5.0.0.202102191331
Branch: ucs_5.0-0
Comment 6 Christian Castens univentionstaff 2021-02-19 13:44:09 CET
The new script "list_installed_unmaintained_packages.py" (univention-updater module) uses the list "univention-maintained-packages.txt" (univention-errata-level module) in order to list all currently installed unmaintained packages.

Current status:
Before every release the file `univention-maintained-packages.txt` has to be updated manually by replacing its content with the latest list of maintained packages
(univention-errata-release README.md for more info)
Comment 8 Erik Damrose univentionstaff 2021-02-22 12:04:37 CET
a624685eb1 update docs
Comment 9 Felix Botner univentionstaff 2021-02-23 14:03:52 CET
OK - univention-maintained-packages.txt
OK - univention-list-installed-unmaintained-package (still finds
     unmaintained packages on new UCS 5 systems, but that is another issue)
OK - changelog
Comment 10 Philipp Hahn univentionstaff 2021-03-23 14:11:51 CET
I had to revert the change partly and had to move the "unamintained.txt" from "univention-errata-level" to "univention-updater".

univention-errata-level/debian/README.source exists for a reason: <https://git.knut.univention.de/univention/ucs/-/blob/5.0-0/base/univention-errata-level/debian/README.source>

Package: univention-updater
Version: 15.0.3-31A~5.0.0.202103231337

Package: univention-errata-level
Version: 5.0.0-0A~5.0.0.202103231343

QA: univention-list-installed-unmaintained-packages
Comment 11 Felix Botner univentionstaff 2021-03-23 14:23:09 CET
(In reply to Philipp Hahn from comment #10)
> I had to revert the change partly and had to move the "unamintained.txt"
> from "univention-errata-level" to "univention-updater".
> 
> univention-errata-level/debian/README.source exists for a reason:
> <https://git.knut.univention.de/univention/ucs/-/blob/5.0-0/base/univention-
> errata-level/debian/README.source>
> 
> Package: univention-updater
> Version: 15.0.3-31A~5.0.0.202103231337
> 
> Package: univention-errata-level
> Version: 5.0.0-0A~5.0.0.202103231343
> 
> QA: univention-list-installed-unmaintained-packages

I am not OK with that. 

This was done on purpose, the idea is that we include the maintained list during 
the automatic build of univention-errata-level during errata update process (so that we don't have to update univention-updater every time we a add a package to maintained)
There is already a merge request for repo-ng: https://git.knut.univention.de/dist/repo-ng/-/merge_requests/18

If you don't agree with this approach, fine, re-open and discuss with all stake-holders, if there is a better idea, your welcome.

But please don't just change the package on your own
Comment 12 Felix Botner univentionstaff 2021-04-15 13:31:10 CEST
As discussed we move the maintained list back to univention-errata-level

The important note from Philipp is that version of the univention-errata-level must be major.minor.0- (5.0.0-0) for major/minor releases so that the version of the next automatically built u-e-l package (which is *-1) is greater than the release version.

fc713570b463893a9f4de4cf396924b450b38624 - univention-errata-level
0c7bd66f96638db6debf454ea0233c33fc5712b5 - univention-updater

Also updated the maintained list, unfortunately there are still some packages "unmaintained" on a new system 

univention-list-installed-unmaintained-packages 
The following packages are unmaintained:
 gconf2-common gsfonts ifplugd libdaemon0 libdbi1 libfile-copy-recursive-perl libgconf-2-4 libmcrypt4 libnet-snmp-perl libradcli4 libsnmp-session-perl
 linux-image-4.19.0-14-amd64 memtest86+

but we track that on Bug #52834
Comment 13 Jürn Brodersen univentionstaff 2021-04-23 11:05:35 CEST
"maintained-packages.txt" has been moved back into univention-errata-level -> OK
Version number (5.0.0-0) has not been increased -> OK
Comment 14 Florian Best univentionstaff 2021-05-25 16:02:23 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

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