Your message dated Sat, 08 Apr 2023 18:18:57 +0000
with message-id <e1pld9n-00frtv...@fasolo.debian.org>
and subject line Bug#1026204: fixed in tar 1.34+dfsg-1.2
has caused the Debian Bug report #1026204,
regarding tar FTBFS on armel, armhf, i386, hppa, powerpc and sparc64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1026204: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026204
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tar
Version: 1.34+dfsg-1.1
Tags: hppa, patch, ftbfs, lfs

I wondered why tar now suddenly fails to build on those platforms.
Testcase # 151 does create files whith access dates which are outside of the 
reach for
32-bit plaforms with a default of 32-bit timestamps in glibc.
This does succeed on filesystems which support 64-bit timestamps, but
stat'ing this file from 32-bit tar executable fails like this:
+tar: dir/f2038-01-19T03\:14\:08.9: Cannot stat: Value too large for defined 
data type
(this message comes from glibc!)

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=tar&arch=hppa&ver=1.34%2Bdfsg-1.1&stamp=1670958554&raw=0

I've found, that changing the line 12 in debian/rules from
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
to:
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D__USE_TIME_BITS64
does solve the issue.

So, either please add this line, or glibc needs fixing to allow
64-bit timestamps (which it probably did in earlier versions, since
otherwise tar would have failed in the past).

Here is a trivial testcase:
1. run:
touch -d 2106-02-07T06:28:15.001 f2106-02-07T06:28:15.001

2. compile and run this program, with and without __USE_TIME_BITS64 defined:
-------------------------------------------------------------
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE_SOURCE
// #define __USE_TIME_BITS64
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <errno.h>
// run before starting this program: touch -d 2106-02-07T06:28:15.001 
f2106-02-07T06:28:15.001
int main(void)
{
        struct stat statbuf = { 0 };
        int ret;

        ret = fstatat(AT_FDCWD, "f2106-02-07T06:28:15.001", &statbuf, 
AT_SYMLINK_NOFOLLOW);
        fprintf(stderr, "return code %d  errno %d  st_atim.tv_sec %llx\n", ret, 
errno, statbuf.st_atim.tv_sec);
        return ret;
}
-------------------------------------------------------------

--- End Message ---
--- Begin Message ---
Source: tar
Source-Version: 1.34+dfsg-1.2
Done: Paul Gevers <elb...@debian.org>

We believe that the bug you reported is fixed in the latest version of
tar, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1026...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paul Gevers <elb...@debian.org> (supplier of updated tar package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 06 Apr 2023 16:25:47 +0200
Source: tar
Architecture: source
Version: 1.34+dfsg-1.2
Distribution: unstable
Urgency: medium
Maintainer: Janos Lenart <o...@debian.org>
Changed-By: Paul Gevers <elb...@debian.org>
Closes: 1026204
Changes:
 tar (1.34+dfsg-1.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Build with lfs and -D_TIME_BITS=64 on 32 bits archs (Closes: #1026204)
     Thanks to Andreas Henriksson and Helge Deller
Checksums-Sha1:
 0d512170aeb72e1a47bdd69a9be8021e60e8e2be 1768 tar_1.34+dfsg-1.2.dsc
 129c166c4c9351a97003f2c90895fda5e6c2e193 20336 tar_1.34+dfsg-1.2.debian.tar.xz
Checksums-Sha256:
 4e7999f6d8a7fef2d09aa5b915877357a80c68ab0a339ee802b304d0e99e7517 1768 
tar_1.34+dfsg-1.2.dsc
 6e32291771f375a7e08cc4cabad1a658327d3dd7a4ff1b557a338ffe0675a25c 20336 
tar_1.34+dfsg-1.2.debian.tar.xz
Files:
 acbc41754da2052768791d014a55545f 1768 utils required tar_1.34+dfsg-1.2.dsc
 c8c2f6987a8ed25d0bd075a4151dd754 20336 utils required 
tar_1.34+dfsg-1.2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAmQvBWoACgkQnFyZ6wW9
dQrApgf/c5AN80kYBo6fl321CVE46EUiHIqYCdQYW6IKD6ZdFCwpd2KhijA5hVcy
q3jnu2aJtcQ1B6Uv8T6J95bLkCGD6xaMz8mY2fciYMNQ2WklAdgMQ+Jk9UHuwet3
w06acYNydf/+eaKfz8fT4qA5+p7eeyGpgPY4jOXqZelvtS/rz1Dd6p4oOk6fEIdP
HSpgTrqDunYDxy6llIaxKBzNEizYttkRDZpWvJohIgj36PkALRzRA3wBv/qepmZP
Uz6HKExAqRRFZhSkBczARaWV3iFjGPWa+9sYZUEn7QJYVM4sdWLSXiaG096dRToJ
8rq+RmKg1zVeyo8anCLmlUOirQxZwA==
=4hYc
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to