Bug 54571 - ucs-school-webproxy postinst prints dpkg-statoverride deprecation warnings
ucs-school-webproxy postinst prints dpkg-statoverride deprecation warnings
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Proxy services
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 5.0 v2
Assigned To: Carlos García-Mauriño
Arvid Requate
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-21 12:51 CET by Florian Best
Modified: 2022-07-15 08:31 CEST (History)
3 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): bitesize
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2022-03-21 12:51:59 CET
The postinst of ucs-school-webproxy prints thesee deprecation warnings:

dpkg-statoverride: Warnung: deprecated --force option; use --force-all instead                                                                                                                                     
dpkg-statoverride: Warnung: Entfernen von abschließendem(n) /                                                 
dpkg-statoverride: Warnung: Ein Override für »/var/lib/ucs-school-webproxy« existiert bereits, wird aber ignoriert, da --force angegeben ist
dpkg-statoverride: Warnung: deprecated --force option; use --force-all instead                                 
dpkg-statoverride: Warnung: Ein Override für »/var/lib/ucs-school-webproxy/bdbtemp« existiert bereits, wird aber ignoriert, da --force angegeben ist

ucs-school-webproxy/debian/ucs-school-webproxy.postinst:                dpkg-statoverride --update --force --add root proxy 2770 /var/lib/ucs-school-webproxy/ || true                                             
ucs-school-webproxy/debian/ucs-school-webproxy.postinst:                dpkg-statoverride --update --force --add root proxy 2770 /var/lib/ucs-school-webproxy/bdbtemp || true
Comment 1 Tobias Wenzel univentionstaff 2022-04-27 12:04:43 CEST
QA: all ok, reopen for merge + build

- [x] Changelog OK
- [x] Advisory OK 

-> You can also add this after the merge to avoid merge conflicts (which won't happen here ;) ) . Splitting these steps into single commits is a good idea.

- [x] Code OK
- [x] manual test


This is some useful information which I like to add as qa and implementee:
```
ucr get server/role 
domaincontroller_master

univention-app info
UCS: 5.0-1 errata286
Installed: squid=3.5 ucsschool=5.0 v1
```

expected: no warning as mentioned in the description


before fix

```
dpkg-statoverride: Warnung: deprecated --force option; use --force-all instead
dpkg-statoverride: Warnung: Entfernen von abschließendem(n) /
dpkg-statoverride: Warnung: Ein Override für »/var/lib/ucs-school-webproxy« existiert bereits, wird aber ignoriert, da --force angegeben ist
dpkg-statoverride: Warnung: deprecated --force option; use --force-all instead
dpkg-statoverride: Warnung: Ein Override für »/var/lib/ucs-school-webproxy/bdbtemp« existiert bereits, wird aber ignoriert, da --force angegeben ist
```

after fix:

-> no warning


=> `expected == result` ==> OK


Next steps:

- merge
- build
- adjust advisory (version)
Comment 2 Carlos García-Mauriño univentionstaff 2022-04-27 18:02:09 CEST
MR merged (https://git.knut.univention.de/univention/ucsschool/-/merge_requests/93), package built (`16.0.7A~5.0.0.202204271758`) and advisory updated (https://git.knut.univention.de/univention/ucsschool/-/commit/0c79f960daa34566fc86f5601928e42b61c3ab40).
Comment 3 Tobias Wenzel univentionstaff 2022-04-28 09:10:24 CEST
after the merge you can set the bug to resolved/fixed
Comment 4 Tobias Wenzel univentionstaff 2022-04-28 09:11:08 CEST
QA: all OK -> set to verified

Changelog OK
Advisory OK
Jenkins OK

Successful build
Package: ucs-school-webproxy
Version: 16.0.7A~5.0.0.202204271758
Branch: ucs_5.0-0
Scope: ucs-school-5.0
Comment 5 Tobias Wenzel univentionstaff 2022-07-15 08:31:11 CEST
UCS@school 5.0 v2 has been released.

https://docs.software-univention.de/changelog-ucsschool-5.0v2-de.html

If this error occurs again, please clone this bug.