void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.52k stars 2.12k forks source link

[RFC] Lint packages for configuration files not listed in `conf_files` #52368

Open ahesford opened 3 days ago

ahesford commented 3 days ago

It might be nice to add a post-install lint that emits warnings when apparent configuration files are discovered in well-known directories but not listed in the package's conf_files. Apparently configuration files could be identified simply by expecting particular extensions, for example:

and "well-known dirctories" might just be the /etc hierarchy, or might include a few others. Comments and recommendations for additional paths, extensions or alternative methods for discovering configuration files are appreciated.

Anachron commented 2 days ago

What about ${pkgname}rc files? A lot of tools also simply use "config" as name.

Chocimier commented 1 day ago

See #21649