Bug 1000019
Summary: | Bogus dates in RPM changelog | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Justin Clift <jclift> | ||||
Component: | build | Assignee: | Niels de Vos <ndevos> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | pre-release | CC: | ejhuff, gluster-bugs, jclift, kwade, ndevos, ToddAndMargo | ||||
Target Milestone: | --- | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-02-14 09:00:35 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
Justin Clift
2013-08-22 13:59:56 UTC
REVIEW: http://review.gluster.org/5692 (build: fix days and dates in the %changelog of the spec-file) posted (#1) for review on master by Niels de Vos (ndevos) Justin, could you verify if those changes to the glusterfs.spec.in fix this for you? There is no automated regression test against a recent Fedora (or RHEL7). Thanks, Niels COMMIT: http://review.gluster.org/5692 committed in master by Vijay Bellur (vbellur) ------ commit 19fa9b4d6ee47e0f204b04abf9bc3adabbd9f0d4 Author: Niels de Vos <ndevos> Date: Thu Aug 22 16:25:58 2013 +0200 build: fix days and dates in the %changelog of the spec-file This prevents unneeded build warnings like: warning: bogus date in %changelog: Mon Apr 22 2008 ... Bug: 1000019 Change-Id: Ie584e5faf5d04672186eada718aba7e71bd82b42 Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/5692 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Vijay Bellur <vbellur> REVIEW: http://review.gluster.org/5701 (build: fix days and dates in the %changelog of the spec-file (2nd part)) posted (#1) for review on master by Niels de Vos (ndevos) COMMIT: http://review.gluster.org/5701 committed in master by Anand Avati (avati) ------ commit 32fb404ef2fda7368c11c591bfa4dcf269cbd320 Author: Niels de Vos <ndevos> Date: Thu Aug 22 16:25:58 2013 +0200 build: fix days and dates in the %changelog of the spec-file (2nd part) This prevents more unneeded build warnings like: warning: bogus date in %changelog: Mon Apr 22 2008 ... Bug: 1000019 Change-Id: I1d59fb93806e25a4629ce027beec324d03702e15 Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/5701 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Anand Avati <avati> REVIEW: http://review.gluster.org/6584 (build: fix day in the %changelog) posted (#1) for review on master by Harshavardhana (harsha) REVIEW: http://review.gluster.org/6585 (build: fix day in the %changelog) posted (#1) for review on release-3.5 by Harshavardhana (harsha) COMMIT: http://review.gluster.org/6584 committed in master by Vijay Bellur (vbellur) ------ commit 412e6ab75834f4ec3ba024b702374a84b2f18eb0 Author: Harshavardhana <harsha> Date: Mon Dec 23 11:13:17 2013 -0800 build: fix day in the %changelog This fixes `warnings` during build tests `rpm.t` Change-Id: I706ceb1a39d046fe26f70f7b1b06f059abd5d3c0 BUG: 1000019 Signed-off-by: Harshavardhana <harsha> Reviewed-on: http://review.gluster.org/6584 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Vijay Bellur <vbellur> COMMIT: http://review.gluster.org/6585 committed in release-3.5 by Vijay Bellur (vbellur) ------ commit 0a377e4af6c026d5be1c0f685f2339805b83a28a Author: Harshavardhana <harsha> Date: Mon Dec 23 11:17:29 2013 -0800 build: fix day in the %changelog This fixes `warnings` during build tests `rpm.t` Change-Id: I5609f1ab674ed0829e4d5ac049e4ca5d4f4b1a21 BUG: 1000019 Signed-off-by: Harshavardhana <harsha> Reviewed-on: http://review.gluster.org/6585 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Vijay Bellur <vbellur> Regression testing is not straight forward for this. New versions of 'rpm' contain this in build/parseChangelog.c: /* XXX Turn this into a hard error in a release or two */ if (!sameDate(&time, &ntime)) rpmlog(RPMLOG_WARNING, _("bogus date in %%changelog: %s\n"), datestr); So, at the moment it is not possible to abort on this error, but in a future version it'll happen automatically. We're regularly building the packages on Fedora and should notice these warnings every now and then. Created attachment 863130 [details]
bash script to fix bogus weekdays in rpm spec files.
This script automatically corrects bogus weekdays in spec files, generating a changelog entry and adding a line after the bogus date noting the original date. (The weekday might have been correct and the day of the month wrong). The input file is copied to a backup file, and a diff is printed.
Thanks for the script! For all I know, the dates should be correct now, current regression testruns and nightly builds do not have these errors anymore. |