#1110375 pristine-xz failed to generate delta for xz-utils_5.8.1.orig.tar.xz

Package:
pristine-tar
Source:
pristine-tar
Description:
regenerate pristine tarballs
Submitter:
Otto Kekäläinen
Date:
2025-08-05 21:31:01 UTC
Severity:
normal
#1110375#5
Date:
2025-08-04 03:05:42 UTC
From:
To:
## Steps to reproduce

cd $(mktemp -d)
gbp clone --verbose --add-upstreamvcs
https://salsa.debian.org/otto/xz-utils-pristine-tar.git
cd xz-utils-pristine-tar
git fetch --tags upstreamvcs
gbp import-orig --uscan --verbose

## Expected result

Import completes successfully.

## Actual result

Generating pristine-tar fails.

± gbp import-orig --uscan --verbose
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream/latest']
gbp:debug: ['git', 'status', '--porcelain']
gbp:info: Launching uscan...
gpgv: Signature made Thu 03 Apr 2025 04:38:23 AM PDT
gpgv:                using RSA key 3690C240CE51B4670D30AD1C38EE757D69184620
gpgv: Good signature from "Lasse Collin <lasse.collin@tukaani.org>"
gbp:info: Using uscan downloaded tarball ../xz-utils_5.8.1.orig.tar.xz
gbp:debug: Signature ../xz-utils_5.8.1.orig.tar.xz found for
../xz-utils_5.8.1.orig.tar.xz.asc
gbp:debug: ['git', 'tag', '-l', 'upstream/5.8.1']
gbp:debug: tar ['-C', '../tmpynbsr03h', '-a', '-xf',
'../xz-utils_5.8.1.orig.tar.xz'] []
gbp:debug: Unpacked '../xz-utils_5.8.1.orig.tar.xz' to '../tmpynbsr03h/xz-5.8.1'
gbp:info: Importing '../xz-utils_5.8.1.orig.tar.xz' to branch
'upstream/latest'...
gbp:info: Source package is xz-utils
gbp:info: Upstream version is 5.8.1
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'v5.8.1^{}']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/upstream/latest']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'upstream/latest']
gbp:debug: ['git', 'add', '-f', '.']
gbp:debug: ['git', 'write-tree']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'upstream/latest']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
'a522a226545730551f7e7c2685fab27cf567746c']
gbp:debug: ['git', 'commit-tree',
'5e6b06d1ec8dc7d19cb0c130d1fdd8aaf139c3dd', '-p',
'0a6f467db2c7b0a6e2fb7145ebf0d596563a70a3', '-p',
'a522a226545730551f7e7c2685fab27cf567746c']
gbp:debug: ['git', 'update-ref', '-m', 'gbp: New upstream version
5.8.1', 'refs/heads/upstream/latest',
'c18e86d57978ae931847bebad4ba40503467cb57',
'0a6f467db2c7b0a6e2fb7145ebf0d596563a70a3']
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:debug: ['git', 'ls-tree', '-z', 'upstream/latest', '--']
gbp:debug: ['git', 'mktree', '-z']
gbp:debug: pristine-tar [] ['--help']
gbp:debug: pristine-tar [] ['commit', '../xz-utils_5.8.1.orig.tar.xz',
'5e6b06d1ec8dc7d19cb0c130d1fdd8aaf139c3dd', '-s',
'../xz-utils_5.8.1.orig.tar.xz.asc']
gbp:error: Import of ../xz-utils_5.8.1.orig.tar.xz failed: Couldn't
commit to 'pristine-tar' with upstream
'5e6b06d1ec8dc7d19cb0c130d1fdd8aaf139c3dd': pristine-xz failed to
reproduce build of ../xz-utils_5.8.1.orig.tar.xz
(Please file a bug report.)
pristine-tar: failed to generate delta
gbp:error: Error detected, Will roll back changes.
gbp:info: Rolling back branch upstream/latest by resetting it to
0a6f467db2c7b0a6e2fb7145ebf0d596563a70a3
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure
rollback of upstream/latest', 'refs/heads/upstream/latest',
'0a6f467db2c7b0a6e2fb7145ebf0d596563a70a3']
gbp:info: Rolling back branch 'pristine-tar' by deleting it
gbp:debug: ['git', 'show-ref', '--verify', 'refs/heads/pristine-tar']
gbp:error: Rolled back changes after import error.
gbp:debug: rm ['-rf', '../tmpynbsr03h'] []


± pristine-tar --verbose commit ../xz-utils_5.8.1.orig.tar.xz
5e6b06d1ec8dc7d19cb0c130d1fdd8aaf139c3dd -s
../xz-utils_5.8.1.orig.tar.xz.asc
pristine-tar: git archive --format=tar
5e6b06d1ec8dc7d19cb0c130d1fdd8aaf139c3dd | (cd
'/tmp/pristine-tar.UJEUn78Ndr' && tar x)
pristine-tar: mkdir /tmp/pristine-tar.oX8u5zBkNa/workdir
pristine-tar: mv /tmp/pristine-tar.UJEUn78Ndr
/tmp/pristine-tar.oX8u5zBkNa/workdir/xz-5.8.1
pristine-tar: tar cf /tmp/pristine-tar.oX8u5zBkNa/recreatetarball
--owner 0 --group 0 --numeric-owner -C
/tmp/pristine-tar.oX8u5zBkNa/workdir --no-recursion --mode 0644 --null
--files-from /tmp/pristine-tar.oX8u5zBkNa/nulledmanifest
pristine-tar: pristine-xz -v --no-debug --no-keep gendelta
../xz-utils_5.8.1.orig.tar.xz /tmp/pristine-tar.7uiWQttgXh/wrapper
pristine-xz: pixz -d < ../xz-utils_5.8.1.orig.tar.xz >
/tmp/pristine-tar.7K3B0QBvFm/test
pristine-xz: xz --check=sha256 -z -T1 -7 <
/tmp/pristine-tar.7K3B0QBvFm/test >
/tmp/pristine-tar.7K3B0QBvFm/test.xz
pristine-xz: xz --check=sha256 -z -T1 -7e <
/tmp/pristine-tar.7K3B0QBvFm/test >
/tmp/pristine-tar.7K3B0QBvFm/test.xz
pristine-xz failed to reproduce build of ../xz-utils_5.8.1.orig.tar.xz
(Please file a bug report.)
pristine-tar: failed to generate delta

#1110375#10
Date:
2025-08-05 06:59:56 UTC
From:
To:
Hi!

Is anyone having success using pristine-tar with upstream tarballs that use xz?

I see multiple reports that look very similar:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918663
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851291
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041465
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110375

I also noticed there was this issue in xz itself:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063252

Wild guess: could it be related that xz supports multiple compression
levels and they are not part fo the metadata currently?

- Otto

#1110375#15
Date:
2025-08-05 21:28:29 UTC
From:
To:
I'm not sure it was really necessary to cross-post this across
several bugs while also CC'ing random developers (I don't think I've
ever interacted with any of the bugs you mention above).

To answer your question, libvirt and libvirt-dbus are both using
pristine-tar to import xz-compressed upstream tarballs and I'm not
aware of that ever causing any issues.