rpmlint icon indicating copy to clipboard operation
rpmlint copied to clipboard

Reword non-etc-or-var-file-marked-as-conffile

Open jengelh opened this issue 5 years ago • 5 comments

[  479s] Mesa.x86_64: W: non-etc-or-var-file-marked-as-conffile /usr/share/drirc.d/00-mesa-defaults.conf
[  479s] A file not in /etc or /var is marked as being a configuration file (%config).
[  479s] Please put your configuration files in /etc or /var.

New proposed wording:

Put your configuration files in /etc or /var, or remove the %config attribute from the corresponding line in the %files section.

jengelh avatar Nov 11 '20 11:11 jengelh

I'd probably say that we should be even stronger here and just say %config should not be used in anything but /etc and /var, no?

Conan-Kudo avatar Nov 11 '20 11:11 Conan-Kudo

Yep, ack on that, even it could be error, the files check is one of the tests that are not yet rewritten.

scarabeusiv avatar Nov 11 '20 11:11 scarabeusiv

What about the recently increasingly used %_distconfdir (/usr/etc/)?

bnavigator avatar Nov 14 '21 17:11 bnavigator

What about the recently increasingly used %_distconfdir (/usr/etc/)?

  1. It's an openSUSE-ism
  2. They must not be marked as %config.

Conan-Kudo avatar Nov 14 '21 18:11 Conan-Kudo

Ok thank you. I will take it into account when I adjust %jupyter_move_config

bnavigator avatar Nov 14 '21 18:11 bnavigator