Bug 45639 - Make upstream Debian config file changes detectable
Make upstream Debian config file changes detectable
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-02 15:24 CET by Arvid Requate
Modified: 2020-07-13 20:08 CEST (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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2017-11-02 15:24:19 CET
It would be helpful to have a mechanism to detect when and how an *upstream* Debian config file changed which has been diverted and replaced by a UCR template. I'm not talking about *local* config file changes here, see below.

This mechanism should provide a diff for us which we can use to detect when a UCR template might need an update, because the upstream file changed.

Technically we may be able to do this by wrapping the dpkg-divert calls and copy the (to be) diverted file to a backup location. Once we find a stored copy, we can diff.

When you think about it, a version control system would be ideal for this, e.g. git. If that's not possible, then we could simply use filenames for the backup copies that have the Debian package version in the filename, a bit like /var/univention-backup/.


Once we have this information, it may additionally offer us a way to also discover customer initiated *local* config file changes like frequently found in the case of the S4- and AD-Connector mapping (see Bug 45220). Ideally a 3-way-merge would be possible.



Note: We currently have univention-check-templates to find .dpkg-dist and .dpkg-new files which are generated by dpkg in case a config file has been changed *locally*. The proposal here is complementary to that.
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:54:25 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.