Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1173488

Summary: RPM verify reports /var/run/squid as missing
Product: [Fedora] Fedora Reporter: Tom Hughes <tom>
Component: squidAssignee: Pavel Šimerda (pavlix) <psimerda>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: b38617, henrik, jonathansteffan, marcosfrm, mluscon, psimerda, thozza, trevor
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: squid-3.4.12-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-31 21:56:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Replace /var/run/squid with /usr/lib/tmpfiles.d/squid.conf none

Description Tom Hughes 2014-12-12 09:26:13 UTC
Description of problem:

Running "rpm -V squid" reports /var/run/squid as missing:

missing     /var/run/squid

This happens because /run is a tmpfs, so although that directory may be shipped so that it exists after package install it also needs an entry in /usr/lib/tmpfiles.d to recreate it when the system is rebooted.

Either that or (if it's not essential and squid will recreate it when needed) then it should be marked %ghost in the file list so that rpm won't complain if it doesn't exist.

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

squid-3.4.7-2.fc21.x86_64

Comment 1 Marcos Mello 2015-03-01 19:22:19 UTC
Fedora policy:

https://fedoraproject.org/wiki/Packaging:Tmpfiles.d

(%ghost was used long time ago; it should not be used today: https://fedorahosted.org/fesco/ticket/525)

Comment 2 Henrik Nordström 2015-03-03 00:15:35 UTC
*** Bug 1188739 has been marked as a duplicate of this bug. ***

Comment 3 Henrik Nordström 2015-03-03 00:17:01 UTC
See also bug #1176318

Comment 4 Account closed by the user 2015-03-16 13:37:53 UTC
still present in 3.5.2-2

Comment 5 Account closed by the user 2015-03-19 07:36:31 UTC
Created attachment 1003719 [details]
Replace /var/run/squid with /usr/lib/tmpfiles.d/squid.conf

Use systemd facility to create files under tmpfs.

Comment 6 Pavel Šimerda (pavlix) 2015-03-23 14:36:11 UTC
The patch seems to miss the squid-tmpfiles.conf file refered from the lines added to the specfile.

Comment 7 Account closed by the user 2015-03-23 14:40:05 UTC
(In reply to Pavel Šimerda (pavlix) from comment #6)

> The patch seems to miss the squid-tmpfiles.conf file refered from the lines
> added to the specfile.

It is included in the patch:


[...]
diff --git a/squid-tmpfiles.conf b/squid-tmpfiles.conf
new file mode 100644
index 0000000..6440c48
--- /dev/null
+++ b/squid-tmpfiles.conf
@@ -0,0 +1 @@
+d	/var/run/squid		0750 squid squid
[...]

Comment 8 Pavel Šimerda (pavlix) 2015-03-23 18:20:11 UTC
Thanks Xose, my bad.

Comment 9 Fedora Update System 2015-03-24 09:39:06 UTC
squid-3.4.12-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/squid-3.4.12-2.fc21

Comment 10 Fedora Update System 2015-03-26 22:09:04 UTC
Package squid-3.4.12-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing squid-3.4.12-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4739/squid-3.4.12-2.fc21
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-03-31 21:56:24 UTC
squid-3.4.12-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.