Fix some rpmlint issues and add filter for others
This commit is contained in:
parent
91fd7acc9e
commit
be4317e8bf
@ -43,6 +43,7 @@ for file in files(buildroot):
|
||||
/etc(/pam\.d|/xdg|/X11|/X11/xinit|/X11.*\.d|)$|
|
||||
/etc/(dnf|dnf/protected.d)$|
|
||||
/usr/(src|lib/debug)| # no $
|
||||
/run$|
|
||||
/var(/cache|/log|/lib|/run|)$
|
||||
''', n, re.X):
|
||||
continue
|
||||
|
50
systemd.rpmlintrc
Normal file
50
systemd.rpmlintrc
Normal file
@ -0,0 +1,50 @@
|
||||
# Just kill all warnings about README being wrong in every possible way
|
||||
addFilter(r'README')
|
||||
|
||||
addFilter(r'missing-call-to-(chdir-with-chroot|setgroups-before-setuid)')
|
||||
|
||||
addFilter(r'executable-marked-as-config-file /etc/X11/xinit/xinitrc.d/50-systemd-user.sh')
|
||||
|
||||
addFilter(r'non-readable /etc/crypttab')
|
||||
|
||||
addFilter(r'non-conffile-in-etc /etc/inittab')
|
||||
|
||||
addFilter(r'systemd-unit-in-etc /etc/systemd/.*\.wants')
|
||||
|
||||
addFilter(r'dangling-relative-symlink /usr/lib/environment.d/99-environment.conf ../../../etc/environment')
|
||||
|
||||
addFilter(r'devel-file-in-non-devel-package /usr/share/pkgconfig/(systemd|udev).pc')
|
||||
|
||||
addFilter(r'non-standard-dir-perm /var/cache/private 700')
|
||||
|
||||
addFilter(r'non-root-group-log-file /var/log/btmp utmp')
|
||||
|
||||
addFilter(r'non-standard-dir-perm /var/log/private 700')
|
||||
|
||||
addFilter(r'non-root-group-log-file /var/log/wtmp utmp')
|
||||
|
||||
addFilter(r'dangerous-command-in-')
|
||||
|
||||
addFilter(r'summary-not-capitalized C systemd')
|
||||
|
||||
addFilter(r'obsolete-not-provided')
|
||||
|
||||
addFilter(r'postin-without-ldconfig')
|
||||
|
||||
addFilter(r'systemd-rpm-macros.noarch: W: only-non-binary-in-usr-lib')
|
||||
|
||||
addFilter(r'systemd-rpm-macros.noarch: W: no-documentation')
|
||||
|
||||
addFilter(r'systemd-tests\..*: W: no-documentation')
|
||||
|
||||
addFilter(r'systemd-tests.*: E: zero-length /usr/lib/systemd/tests/testdata/test-umount/empty.mountinfo')
|
||||
|
||||
addFilter(r'hardcoded-library-path in.*(firewalld|install.d)')
|
||||
|
||||
# everybody does it this way: systemd, syslog-ng, rsyslog
|
||||
addFilter(r'unversioned-explicit-provides syslog')
|
||||
|
||||
# systemd-machine-id-setup requires libssl
|
||||
addFilter(r'explicit-lib-dependency openssl-libs')
|
||||
|
||||
addFilter(r'systemd.src:.*strange-permission')
|
@ -394,9 +394,9 @@ mkdir -p %{buildroot}%{system_unit_dir}/basic.target.wants
|
||||
mkdir -p %{buildroot}%{system_unit_dir}/default.target.wants
|
||||
mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants
|
||||
mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants
|
||||
mkdir -p %{buildroot}%{_localstatedir}/run
|
||||
mkdir -p %{buildroot}/run
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log
|
||||
touch %{buildroot}%{_localstatedir}/run/utmp
|
||||
touch %{buildroot}/run/utmp
|
||||
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
|
||||
|
||||
# Make sure the user generators dir exists too
|
||||
@ -481,7 +481,7 @@ python3 %{SOURCE2} %buildroot <<EOF
|
||||
/usr/lib/systemd/purge-nobody-user
|
||||
%ghost %config(noreplace) /etc/vconsole.conf
|
||||
%ghost %config(noreplace) /etc/X11/xorg.conf.d/00-keyboard.conf
|
||||
%ghost %attr(0664,root,utmp) /var/run/utmp
|
||||
%ghost %attr(0664,root,utmp) /run/utmp
|
||||
%ghost %attr(0664,root,utmp) /var/log/wtmp
|
||||
%ghost %attr(0600,root,utmp) /var/log/btmp
|
||||
%ghost %config(noreplace) /etc/hostname
|
||||
@ -1000,7 +1000,7 @@ fi
|
||||
- Remove link creation for rsyslog.service
|
||||
|
||||
* Thu Nov 8 2018 Adam Williamson <awilliam@redhat.com> - 239-9.git9f3aed1
|
||||
- Go back to using systemctl preset-all in %post (#1647172, #1118740)
|
||||
- Go back to using systemctl preset-all in %%post (#1647172, #1118740)
|
||||
|
||||
* Mon Nov 5 2018 Adam Williamson <awilliam@redhat.com> - 239-8.git9f3aed1
|
||||
- Requires(post) openssl-libs to fix live image build machine-id issue
|
||||
|
Loading…
Reference in New Issue
Block a user