matteocorti / check_ssl_cert

A shell script (that can be used as a Nagios/Icinga plugin) to check an SSL/TLS connection.
GNU General Public License v3.0
371 stars 132 forks source link

rpmbuild error with bad date in %changelog #517

Closed nichivo closed 2 months ago

nichivo commented 2 months ago

Describe the bug

Something seems to have changed with 2.83.0 to use full month name in RPM spec file changelog which outputs an rpmbuild error and prevents changelogs being added to the RPM as rpmbuild seems to only accept short month names.

To Reproduce

It has started since 2.83.0:

rpmbuild -ba SPECS/check_ssl_cert.spec
error: bad date in %changelog: Tue August 28 2024 Matteo Corti <matteo@corti.li> - 2.83.0-0

and affects latest version 2.83.1 too:

error: bad date in %changelog: Tue September 10 2024 Matteo Corti <matteo@corti.li> - 2.83.1-0

Previous version use short month which work:

* Thu Jul  11 2024 Matteo Corti <matteo@corti.li> - 2.82.0-0

Expected behavior

rpmbuild should build an RPM without error with changelogs, which it can do when the months are manually shortened e.g. August to Aug

System (please complete the following information):

Additional context/output

rpmbuild on RHEL7 used to fail on this type of error and not produce an RPM, but on RHEL9 it seems to continue? Or maybe now I'm building in mock it hides it? Either way, behaviour has changed and date "+%a %b %d %Y" style format should probably be used. Thanks!

matteocorti commented 2 months ago

Thanks, fixed in d3d0375