#1098992 pristine-tar: unable to reproduce libreswan 5.2

Package:
pristine-tar
Source:
pristine-tar
Description:
regenerate pristine tarballs
Submitter:
Daniel Kahn Gillmor
Date:
2025-02-27 01:21:02 UTC
Severity:
normal
#1098992#5
Date:
2025-02-27 01:06:28 UTC
From:
To:
Libreswan 5.2 does not appear to be reproducible via pristine-tar:

```
0 dkg@bob:/tmp/cdtemp.nBPSJI$ git clone https://github.com/libreswan/libreswan
Cloning into 'libreswan'...
remote: Enumerating objects: 509669, done.
remote: Counting objects: 100% (3570/3570), done.
remote: Compressing objects: 100% (839/839), done.
remote: Total 509669 (delta 3109), reused 2982 (delta 2725), pack-reused 506099 (from 2)
Receiving objects: 100% (509669/509669), 181.57 MiB | 25.66 MiB/s, done.
Resolving deltas: 100% (441441/441441), done.
0 dkg@bob:/tmp/cdtemp.nBPSJI$ wget https://download.libreswan.org/libreswan-5.2.tar.gz
--2025-02-26 19:57:56--  https://download.libreswan.org/libreswan-5.2.tar.gz
Resolving download.libreswan.org (download.libreswan.org)... 77.246.200.9, 193.110.157.101, 2a00:1190:c02d::9, ...
Connecting to download.libreswan.org (download.libreswan.org)|77.246.200.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4132199 (3.9M) [application/gzip]
Saving to: ‘libreswan-5.2.tar.gz’
2025-02-26 19:57:59 (1.82 MB/s) - ‘libreswan-5.2.tar.gz’ saved [4132199/4132199]

0 dkg@bob:/tmp/cdtemp.nBPSJI$ sha256sum libreswan-5.2.tar.gz
c382bbd838c239f8d4c4e9cc320f3abf34f7b08e71d9e78ed029a96d963940ce  libreswan-5.2.tar.gz
0 dkg@bob:/tmp/cdtemp.nBPSJI$ cd libreswan/
0 dkg@bob:/tmp/cdtemp.nBPSJI/libreswan$ pristine-tar commit ../libreswan-5.2.tar.gz v5.2
warning: pristine-gz cannot reproduce build of ../libreswan-5.2.tar.gz; storing entire file in delta!
(Please consider filing a bug report so the delta size can be improved.)
pristine-tar: committed libreswan-5.2.tar.gz.delta to branch pristine-tar
0 dkg@bob:/tmp/cdtemp.nBPSJI/libreswan$
```

Previous archives of libreswan have had no problem being imported by
pristine-tar.

According to Libreswan's RELENG.md, the archive is generated with:

    git archive --format=tgz --prefix=libreswan-x.y/ HEAD > libreswan-x.y.tar.gz

And according to git-archive(1):

So maybe the issue is that there's a different version of gzip being
used?

I note that when i try RELENG.md command myself, i end up with a
different digest:

```
0 dkg@bob:/tmp/cdtemp.nBPSJI/libreswan$ git archive --format=tgz --prefix=libreswan-5.2/ v5.2 | sha256sum
0211ab60ae7e7d8f3ac352b2e20ffeaad73507b10f101794f28261cbac7b210f  -
0 dkg@bob:/tmp/cdtemp.nBPSJI/libreswan$
```

Thanks for working on pristine-tar!