From 92a12693c160409c82978f36e26e6948d9b19a7f Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Jun 30 2017 15:43:51 +0000 Subject: Fix test for file modification times when they differ below whole seconds Resolves: #1458008 --- diff --git a/bash-4.5-test-modification-time.patch b/bash-4.5-test-modification-time.patch new file mode 100644 index 0000000..275bbed --- /dev/null +++ b/bash-4.5-test-modification-time.patch @@ -0,0 +1,11 @@ +diff --git a/config.h.in b/config.h.in +--- a/config.h.in ++++ b/config.h.in +@@ -449,6 +449,7 @@ + #undef SYS_TIME_H_DEFINES_STRUCT_TIMESPEC + #undef PTHREAD_H_DEFINES_STRUCT_TIMESPEC + ++#undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC + #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC + #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC + #undef HAVE_STRUCT_STAT_ST_ATIMENSEC diff --git a/bash.spec b/bash.spec index 93a69f3..33e4242 100644 --- a/bash.spec +++ b/bash.spec @@ -7,7 +7,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Url: http://www.gnu.org/software/bash Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz @@ -89,6 +89,10 @@ Patch129: bash-4.4-unset-nonblock-stdin.patch # This should be dropped while rebasing to bash-4.5 Patch130: bash-4.4-assignment-error.patch +# 1458008 - test builtin gives wrong result when file modification times differ below whole seconds +# This should be dropped while rebasing to bash-4.5 +Patch131: bash-4.5-test-modification-time.patch + BuildRequires: texinfo bison BuildRequires: ncurses-devel BuildRequires: autoconf, gettext @@ -300,6 +304,10 @@ end %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Fri Jun 30 2017 Siteshwar Vashisht - 4.4.12-6 +- Fix test for file modification times when they differ below whole seconds + Resolves: #1458008 + * Tue May 30 2017 Siteshwar Vashisht - 4.4.12-5 - command builtin should not abort on variable assignment errors Resolves: #1389838