Retrive 64bit timestamp from curl_easy_getinfo on _TIME_BITS=64 environment
author河辺 岳人 <kabe@sra-tohoku.co.jp>
Tue, 27 Sep 2022 12:10:39 +0000 (21:10 +0900)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 27 Sep 2022 15:02:44 +0000 (11:02 -0400)
commit0e1eda6f83694ca65612456562c99c703cf0361f
tree9d53f211ef54cccfd7a4f5c5ee8f63f8b99036cb
parent6cb01b4ef3cdd4f83d21bbcec72fa66712ac14e6
Retrive 64bit timestamp from curl_easy_getinfo on _TIME_BITS=64 environment

On 32bit system compiled with -D_TIME_BITS=64, following tests failed:

FAIL: run-debuginfod-archive-test.sh
FAIL: run-debuginfod-archive-groom.sh
FAIL: run-debuginfod-archive-rename.sh
FAIL: run-debuginfod-federation-sqlite.sh
FAIL: run-debuginfod-federation-metrics.sh
FAIL: run-debuginfod-federation-link.sh

due to tests/debuginfod-subr.sh:archive_test failing on
"test $fileame -ot `pwd`", with LHS file having a bogus timestamp.
LHS is generated by debuginfo-find as a cache file.

I'm not sure the fix is the correct way, but
since -D_TIME_BITS=64 mandates -D_FILE_OFFSET_BITS=64 in glibc,
this does work on glibc environment.

Signed-off-by: Taketo Kabe <kabe@sra-tohoku.co.jp>
ChangeLog
debuginfod/debuginfod-client.c