Bug 1307064

Summary: [Patch] Timestamps for configuration files are not kept (causes warnings after Postfix update)
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: postfixAssignee: Ondřej Lysoněk <olysonek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: jskarvad, olysonek
Target Milestone: ---Keywords: EasyFix, Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: postfix-3.1.1-2.fc24 postfix-3.0.5-2.fc23 postfix-3.1.3-2.fc25 postfix-3.1.3-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1307066 1307081 1365015 (view as bug list) Environment:
Last Closed: 2016-12-01 15:54:18 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
postfix-3.0.3-timestamp.patch none

Description Robert Scheck 2016-02-12 15:40:24 UTC
Description of problem:
By default all timestamps of /etc/postfix/* are the timestamps of "make
install" when the RPM package is built. While this is not an issue in general,
this may cause warnings after a postfix update in a common scenario like
this:

Have /etc/postfix/virtual empty (like the default), but reference it within 
main.cf. This needs a "postmap /etc/postfix/virtual" indeed. Everything fine
so far. Then a postfix update happens, /etc/postfix/virtual gets replaced by
the newer file from the RPM package - which leads to a newer timestamp. This 
however makes postfix complaining in logs: "postfix/smtpd[11483]: warning: 
database /etc/postfix/virtual.db is older than source file /etc/postfix/
virtual". The main point here, is that the content of virtual nor virtual.db
changed, just the timestamp of the "source" file.

This issue could be avoided if "install -p" rather "install" is used or if
there is a "touch -c -r <reference>" within the spec file. If there is any
upstream change of one of these files, the newer filestamp would indeed be
applied and thus causes a *.rpmnew (if the original file was touched) - as
it's expected further on.

Version-Release number of selected component (if applicable):
postfix-3.0.3-5.fc24

How reproducible:
Everytime, see above.

Actual results:
Timestamps for configuration files are not kept (causes warnings after Postfix 
update).

Expected results:
Timestamps for configuration files should be kept (thus no Postfix warnings).

Comment 1 Robert Scheck 2016-02-13 12:37:33 UTC
Created attachment 1123772 [details]
postfix-3.0.3-timestamp.patch

Comment 2 Jan Kurik 2016-02-24 15:39:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 3 Fedora Update System 2016-08-05 11:37:17 UTC
postfix-3.1.1-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ef3c27f603

Comment 4 Fedora Update System 2016-08-05 11:55:48 UTC
postfix-3.0.5-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5379be7433

Comment 5 Fedora Update System 2016-08-05 21:21:25 UTC
postfix-3.1.1-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ef3c27f603

Comment 6 Fedora Update System 2016-08-05 21:21:33 UTC
postfix-3.0.5-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5379be7433

Comment 7 Fedora Update System 2016-08-15 21:26:17 UTC
postfix-3.1.1-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-08-16 00:50:36 UTC
postfix-3.0.5-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Jaroslav Škarvada 2016-08-30 14:48:31 UTC
The patch was reverted in upstream, we are going to also revert it in Fedora. Maybe that upstream will come with different solution.

Comment 10 Jaroslav Škarvada 2016-08-30 14:50:41 UTC
(In reply to Jaroslav Škarvada from comment #9)
> The patch was reverted in upstream, we are going to also revert it in
> Fedora. Maybe that upstream will come with different solution.

http://marc.info/?l=postfix-users&m=147234137331669&w=2

Comment 11 Ondřej Lysoněk 2016-11-10 08:27:30 UTC
A new patch is available, so this will get fixed after all.

Comment 12 Fedora Update System 2016-11-10 08:28:10 UTC
postfix-3.1.3-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f33d97609b

Comment 13 Fedora Update System 2016-11-10 09:00:34 UTC
postfix-3.1.3-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7c7283e402

Comment 14 Fedora Update System 2016-11-10 19:27:23 UTC
postfix-3.1.3-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f33d97609b

Comment 15 Fedora Update System 2016-11-11 05:02:17 UTC
postfix-3.1.3-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7c7283e402

Comment 16 Fedora Update System 2016-12-01 15:54:18 UTC
postfix-3.1.3-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2016-12-16 03:52:58 UTC
postfix-3.1.3-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.