Bug 256804 - misc/mc: stop wrecking customised config files
Summary: misc/mc: stop wrecking customised config files
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-24 11:48 UTC by ice
Modified: 2024-10-22 08:41 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
Prevent customised config from being overwritten (1.59 KB, patch)
2021-06-24 11:48 UTC, ice
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ice 2021-06-24 11:48:34 UTC
Created attachment 226030 [details]
Prevent customised config from being overwritten

Local changes made to configuration files in etc/mc/ are being wrecked on package update. This is not a very neighbourly thing to do.

The attached patch tags these files as @sample and installs them as such. I am not completely convinced this form is absolutely the correct approach, it however does seem to work as intended (both on deinstall and upgrade).
Comment 1 Yury V. Zaytsev 2024-10-22 08:41:57 UTC
I don't think that's a very good idea. Many sites would have been broken as we changed the mc.ext format. Updates to menu files will also be lost.

I don't know if FreeBSD has a merge mechanism for site configs like Debian, but something like that would have been more appropriate. In the absence of such a mechanism, it is better to use user customisations instead of site customisations, as is possible with mc.ext.