Bug 998984 - tuna: W: non-conffile-in-etc /etc/tuna.conf
tuna: W: non-conffile-in-etc /etc/tuna.conf
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuna (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: John Kacur
Depends On:
  Show dependency treegraph
Reported: 2013-08-20 09:21 EDT by John Kacur
Modified: 2014-07-31 11:02 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-07-31 11:02:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Kacur 2013-08-20 09:21:01 EDT
Description of problem: rpmlint noarch/tuna-0.11-2.el7.noarch.rpm
produces the following warnings
tuna.noarch: W: non-conffile-in-etc /etc/tuna.conf
tuna.noarch: W: non-conffile-in-etc /etc/tuna/example.conf

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. in dist-git do rhpkg local
2. rpmlint noarch/tuna-0.11-2.el7.noarch.rpm

This warning is a false positive, since the files are actually conf files.
This warning can be suppressed my marking the conf files in the spec as
%config(noreplace) or %config appropriately.
Comment 1 John Kacur 2013-08-20 09:23:01 EDT
The following patch will fix the problem

From 10d88f69108f08c4ab324a51f6e445c8a7856439 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Mon, 19 Aug 2013 22:28:01 +0200
Subject: [PATCH] spec: Mark configuration files with %config

Explicitly declaring configuration files as such, prevents rpmlint
from falsely complaining that non-configuration files are being installed
in /etc

Signed-off-by: John Kacur <jkacur@redhat.com>
 rpm/SPECS/tuna.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rpm/SPECS/tuna.spec b/rpm/SPECS/tuna.spec
index e0b8b8b..a971523 100644
--- a/rpm/SPECS/tuna.spec
+++ b/rpm/SPECS/tuna.spec
@@ -84,8 +84,8 @@ rm -rf %{buildroot}
+%config(noreplace) %{_sysconfdir}/tuna.conf
+%config %{_sysconfdir}/tuna/example.conf

 %files -n oscilloscope
Comment 3 John Kacur 2014-03-11 07:50:31 EDT
rpmlint noarch/tuna-0.11.1-5.el7.noarch.rpm | grep non-conffile

This has been fixed since 0.11-3
Current version is 0.11.1-5
Comment 5 Jiri Kastner 2014-07-31 10:57:43 EDT
[indy@dhcp-27-216 ~]$ rpmlint rpmbuild/SRPMS/tuna-0.11.1-6.el7.src.rpm
tuna.src: W: invalid-url URL: http://userweb.kernel.org/~acme/tuna/ <urlopen error [Errno -2] Name or service not known>
tuna.src:130: W: macro-in-%changelog %config
tuna.src: E: specfile-error warning: bogus date in %changelog: Tue Mar 10 2014 John Kacur <jkacur@redhat.com> - 0.11.1-6
1 packages and 0 specfiles checked; 1 errors, 2 warnings.

Note You need to log in before you can comment on or make changes to this bug.