From 71aa39eda1a262a06883fe641896ec08391c8ab0 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sun, 17 Jun 2018 14:21:44 -0400 Subject: [PATCH] Fix non-ghost-in-run filter in config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The non-ghost-in-var-(lock|run) identifiers were merged and renamed to non-ghost-in-run in rpmlint-1.8¹. Update the config to properly filter this warning. ¹ https://github.com/rpm-software-management/rpmlint/commit/2d56865 --- rpmlint.config | 7 +++---- rpmlint.spec | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rpmlint.config b/rpmlint.config index 9b091af..2cb695d 100644 --- a/rpmlint.config +++ b/rpmlint.config @@ -415,10 +415,9 @@ addFilter("no-%clean-section") # Only EL4 needs the files-attr-not-set check, because rpm 4.4 and newer no longer need a %defattr line # (it automatically provides one). addFilter("files-attr-not-set") -# Don't bother with the non-ghost-in-var-(lock|run) checks on Fedora 15 or newer -# since they have tmpfs /var/lock and /var/run. -addFilter("non-ghost-in-var-lock") -addFilter("non-ghost-in-var-run") +# Don't bother with the non-ghost-in-run checks, /var/lock and /var/run are +# symlinks to /run/lock and /run respectively, and /run is a tmpfs +addFilter("non-ghost-in-run") # Someone thought it was a good idea to make .desktop files executable. They were wrong. # Nevertheless, I do not yet control the universe, so we squelch the error here. addFilter(r"script-without-shebang .*\.desktop$") diff --git a/rpmlint.spec b/rpmlint.spec index 0b1be91..2cf25b1 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -145,6 +145,7 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} - Fix mixed-use-of-spaces-and-tabs warning (in this spec file) - Remove el4/el5 configs and /usr/bin symlinks - Disable automatic compilation of Python files in /usr/share/rpmlint +- Fix non-ghost-in-run filter in config * Tue Jun 12 2018 Miro Hrončok - 1.10-14 - apply upstream fix for python 3.7 new magic numbers