From d2afea0af9291bd0d6967c6b8b418541c3c28f64 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 6 Dec 2014 15:11:46 +0000 Subject: Workaround for old gnu tar, failing to restore timestamps on symlinks. Older versions of GNU tar fail to set the timestamps on symlinks, which makes them appear too recent/new to be backed up immediately, causing test_bbackupd_uploads_files() for example to fail. Fixed by restoring the timestamps manually after extracting the fixture archive. For more details about the issue in tar, please see: http://lists.gnu.org/archive/html/bug-tar/2009-08/msg00007.html http://git.savannah.gnu.org/cgit/tar.git/plain/NEWS?id=release_1_24 This resulted in symlinks in fixture test files --- infrastructure/m4/boxbackup_tests.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'infrastructure/m4') diff --git a/infrastructure/m4/boxbackup_tests.m4 b/infrastructure/m4/boxbackup_tests.m4 index ccb46646..cd1b33f3 100644 --- a/infrastructure/m4/boxbackup_tests.m4 +++ b/infrastructure/m4/boxbackup_tests.m4 @@ -274,7 +274,8 @@ AC_FUNC_CLOSEDIR_VOID AC_FUNC_ERROR_AT_LINE AC_TYPE_SIGNAL AC_FUNC_STAT -AC_CHECK_FUNCS([getpeereid getpeername lchown setproctitle getpid gettimeofday waitpid ftruncate]) +AC_CHECK_FUNCS([getpeereid getpeername getpid gettimeofday lchown setproctitle]) +AC_CHECK_FUNCS([utimensat]) AC_SEARCH_LIBS([setproctitle], ["bsd"]) # NetBSD implements kqueue too differently for us to get it fixed by 0.10 -- cgit v1.2.3