🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4182

Bug#1153525: lintian: Detect files with a timestamp too far in the past

#4182
From: Rafael Laboissière
Date: Wed, 11 Nov 2026 20:00
36 lines
3952 bytes
Control: retitle -1 lintian: Detect files in the orig tarball with a timestamp too far in the past

* Rafael Laboissière <rafael@debian.org> [2026-11-09 15:54]:

> Package: lintian
> Version: 2.143.0
> Severity: wishlist
>
> Dear Lintian maintainers,
>
> I recently uploaded version 0.5.1 of the octave-mplapack package to unstable. It was rejected by the FTP masters (Bug#1153471 [1]) because the .deb file contained files with a timestamp too far in the past. Indeed, this comes from the upstream tarball:
>
> $ wget http://deb.debian.org/debian/pool/main/o/octave-mplapack/octave-mplapack_0.5.1.orig.tar.gz
> $ tar tfvz octave-mplapack_0.5.1.orig.tar.gz | head -n4
> drwxr-xr-x 0/0               0 1970-01-01 01:00 mplapack-interop-0.5.1/
> -rw-r--r-- 0/0             569 1970-01-01 01:00 mplapack-interop-0.5.1/CONTRIBUTING.md
> -rw-r--r-- 0/0            1331 1970-01-01 01:00 mplapack-interop-0.5.1/COPYING
> -rw-r--r-- 0/0             305 1970-01-01 01:00 mplapack-interop-0.5.1/DESCRIPTION
>
> Would it be possible to add a Lintian check for that?

I just noticed that Lintian already has a "package-contains-ancient-file" tag with an associated Check::Files::Date check. However, this check only verifies the timestamps of the installed file. In the case of Bug #1153741, this was insufficient to detect the potential issue. When I built the Octave-Mplapack package, I did so from the Salsa Git repository. When the package was first imported into the repository via gbp import-orig, the timestamps of the files were modified. This resulted in a valid .deb file with the correct timestamps, which I uploaded. However, the autobuilders operate from the .dsc file, so the inappropriate timestamps in the orig.tar.gz file were propagated into the .deb file.

I am hereby retitling this bug report to clarify that the issue is with the files in the orig.tar.gz file, not the installed files.

> I do not know what threshold the FTP master uses to determine whether a timestamp is too far in the past.

I found the answer to my question: Dinstall::PastCutoffYear "1975"

https://salsa.debian.org/ftp-team/dak/-/blame/master/docs/config.sample?ref_type=heads#L111

Best,

Rafael Laboissière

[1] https://bugs.debian.org/1153471
Technical Details
Message-ID: <NYmE9-bhLl-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NXz0J-aPCb-5@gated-at.bofh.it> <NXz0J-aPCb-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Rafael Laboissière <rafael@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153525: lintian: Detect files with a timestamp too far in the past
Date: Wed, 11 Nov 2026 21:00:01 +0100
Message-ID: <NYmE9-bhLl-3@gated-at.bofh.it>
References: <NXz0J-aPCb-5@gated-at.bofh.it> <NXz0J-aPCb-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 11 19:55:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Rafael Laboissière <rafael@debian.org>, 1153525@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: lintian-maint@debian.org
X-Debian-Pr-Message: followup 1153525
X-Debian-Pr-Package: lintian
X-Debian-Pr-Source: lintian
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Organization: Debian GNU/Linux
X-Content-Language: en-us
X-Position: 2171
X-Debian-User: rafael
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002098
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 36
Sender: robomod@news.nic.it
X-Original-Date: Wed, 11 Nov 2026 20:53:17 +0100
X-Original-Message-ID: <avTHrebI0A7Glhdo@laboissiere.net>
X-Original-References: <avHerHEx8zqho0U_@laboissiere.net> <avHerHEx8zqho0U_@laboissiere.net>