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 - RPM verify reports /var/run/squid as missing
Summary: RPM verify reports /var/run/squid as missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1188739 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-12 09:26 UTC by Tom Hughes
Modified: 2015-03-31 21:56 UTC (History)
8 users (show)

Fixed In Version: squid-3.4.12-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-31 21:56:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Replace /var/run/squid with /usr/lib/tmpfiles.d/squid.conf (2.73 KB, patch)
2015-03-19 07:36 UTC, Account closed by the user
no flags Details | Diff

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.


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