Bug#727665: lintian: FTBFS: Test failures
On 2013-10-25 19:09, Niels Thykier wrote:
> Control: tags -1 confirmed
>
> On 2013-10-25 08:11, Daniel Schepler wrote:
>> Source: lintian
>> Version: 2.5.19
>> Severity: serious
>>
>> >From my pbuilder build log:
>>
>> [...]
>>
>
> Hi,
>
> I can confirm this failure on (a slightly updated) git master branch;
> downgrading tar to the version in testing makes the problems go away.
> Odds are recent changes in tar to blame for this; question is now
> whether it is a regression in tar or Lintian relying on non-interface bits.
>
> ~Niels
>
>
Okay, first two of 3 problems solved (thanks to Jakub Wilk). See
attached patch for a sample work around / solution.
Ref: http://sources.debian.net/src/tar/1.27-1/ChangeLog?hl=265#L261
~Niels
From dad5e05115ec05822d300a7e05bd07bebea11dd3 Mon Sep 17 00:00:00 2001
From: Niels Thykier
Date: Fri, 25 Oct 2013 21:58:08 +0200
Subject: [PATCH] t: Use -d@-1 to create ancient files in tarballs
Signed-off-by: Niels Thykier
---
t/debs/deb-format-ancient-file/Makefile | 2 +-
t/debs/deb-format-ancient-file/tags | 2 +-
t/source/cruft-ancient-file/Makefile | 2 +-
t/source/cruft-ancient-file/tags | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/debs/deb-format-ancient-file/Makefile b/t/debs/deb-format-ancient-file/Makefile
index a2ea7fc..d6cdf10 100644
--- a/t/debs/deb-format-ancient-file/Makefile
+++ b/t/debs/deb-format-ancient-file/Makefile
@@ -9,7 +9,7 @@ all:
chown 0:0 control
chmod 644 control
- env TZ=GMT touch -t 197001010000 control
+ env TZ=GMT touch -d@-1 control
# Use --no-fix-perm to avoid it messing with the
# our created "mod-times"
diff --git a/t/debs/deb-format-ancient-file/tags b/t/debs/deb-format-ancient-file/tags
index 83de2df..c00701c 100644
--- a/t/debs/deb-format-ancient-file/tags
+++ b/t/debs/deb-format-ancient-file/tags
@@ -1,2 +1,2 @@
E: deb-format-ancient-file: package-contains-ancient-file usr/share/doc/deb-format-ancient-file/changelog.gz 1970-01-01
-E: deb-format-ancient-file: tar-errors-from-control control: implausibly old time stamp 1970-01-01 00:00:00
+E: deb-format-ancient-file: tar-errors-from-control control: implausibly old time stamp 1969-12-31 23:59:59
diff --git a/t/source/cruft-ancient-file/Makefile b/t/source/cruft-ancient-file/Makefile
index f11f631..284c123 100644
--- a/t/source/cruft-ancient-file/Makefile
+++ b/t/source/cruft-ancient-file/Makefile
@@ -4,7 +4,7 @@ dir = $(name)-1.0
all:
mkdir $(dir)
echo 'Some upstream README' > $(dir)/README
- env TZ=GMT touch -t 197001010000 $(dir)/README
+ env TZ=GMT touch -d@-1 $(dir)/README
tar -c -f $(name)_1.0.orig.tar.gz -z $(dir)
mkdir $(dir)/debian
cp changelog copyright control rules $(dir)/debian/
diff --git a/t/source/cruft-ancient-file/tags b/t/source/cruft-ancient-file/tags
index e5945ba..18765f6 100644
--- a/t/source/cruft-ancient-file/tags
+++ b/t/source/cruft-ancient-file/tags
@@ -1 +1 @@
-I: cruft-ancient-file source: tar-errors-from-source cruft-ancient-file-1.0/README: implausibly old time stamp 1970-01-01 00:00:00
+I: cruft-ancient-file source: tar-errors-from-source cruft-ancient-file-1.0/README: implausibly old time stamp 1969-12-31 23:59:59
--
1.8.4.rc3
Reply to: