Proposal: amend the packaging guidelines for %fillup_only

Hi list, our packaging guidelines for %fillup_only [1] currently do not suggest anything for the %files section for the files generated in `/etc/sysconfig/`. I would like to suggest that we start adding the newly generated file `/etc/sysconfig/$pkgname` as follows to the %files section: --8<---------------cut here---------------start------------->8--- %files %ghost %config(noreplace) %attr(0600,root,root) /etc/sysconfig/%{name} %dir /etc/sysconfig --8<---------------cut here---------------end--------------->8--- This ensures that rpm is aware of the files as configuration files. Thoughts, opinions? Cheers, Dan Footnotes: [1] https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#%fillup_on... -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Frankenstr. 146 90461 Nürnberg Germany www.suse.com Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)

Aaron Puchert <aaronpuchert@alice-dsl.net> writes:
Hm, I think we should leave the permissions up to the packager. There are packages where you might put sensitive data into the config file and hence having it world readable is not a good idea. For other packages it might be required. Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Frankenstr. 146 90461 Nürnberg Germany www.suse.com Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)

Hi, what happened to this proposal? I think it would be a good idea to track the generated files as being ghost owned by the respective package (users are more likely to `rpm -qf` the files in /etc/sysconfig as opposed to knowing /usr/share/fillup-templates/... needs to be queried instead), but it seems to currently not be allowed by "E: suse-filelist-forbidden-sysconfig (Badness: 10000)". Cheers, Georg
participants (3)
-
Aaron Puchert
-
Dan Čermák
-
Georg Pfuetzenreuter