pristine-tar error: Can't exec "cmp": No such file or directory

Bug #1946214 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
New
Undecided
Unassigned

Bug Description

$ git ubuntu import vulkan-tools -d vulkan-tools --no-push --no-fetch

...
10/06/2021 11:32:33 - ERROR:Command exited 128: pristine-tar verify /home/paelzer/work/vulkan-tools/vulkan-tools/.git/git-ubuntu-cache/vulkan-tools_1.1.82.0+dfsg1.orig.tar.gz
10/06/2021 11:32:33 - ERROR:stdout:
10/06/2021 11:32:33 - ERROR:stderr: fatal: Path 'vulkan-tools_1.1.82.0+dfsg1.orig.tar.gz.delta' does not exist in 'refs/heads/pristine-tar'
  pristine-tar: git show refs/heads/pristine-tar:vulkan-tools_1.1.82.0+dfsg1.orig.tar.gz.delta failed

...
10/06/2021 11:34:56 - INFO:Downloading vulkan-tools_1.2.189.0+dfsg1-1.debian.tar.xz from launchpad.net (0.003 MiB)
10/06/2021 11:34:58 - ERROR:Command exited 1: gbp import-orig --no-merge --upstream-branch do-not-push --pristine-tar --no-interactive --no-symlink-orig '--upstream-tag=importer/upstream/debian/%(version)s.xz' /home/paelzer/work/vulkan-tools/vulkan-tools/.git/git-ubuntu-cache/vulkan-tools_1.2.189.0+dfsg1.orig.tar.xz
10/06/2021 11:34:58 - ERROR:stdout: gbp:info: Importing '/home/paelzer/work/vulkan-tools/vulkan-tools/.git/git-ubuntu-cache/vulkan-tools_1.2.189.0+dfsg1.orig.tar.xz' to branch 'do-not-push'...
  gbp:info: Source package is vulkan-tools
  gbp:info: Upstream version is 1.2.189.0+dfsg1
  gbp:info: Rolling back branch do-not-push by resetting it to 830f1ed7c9191b4b941e3d0db73b76545e647f08
  gbp:info: Rolling back branch pristine-tar by resetting it to 799a37570a876452336755c1fa75090e0f97431c

10/06/2021 11:34:58 - ERROR:stderr: gbp:error: Import of /home/paelzer/work/vulkan-tools/vulkan-tools/.git/git-ubuntu-cache/vulkan-tools_1.2.189.0+dfsg1.orig.tar.xz failed: Couldn't commit to 'pristine-tar' with upstream '20bc2fb4e4cec9f15eff5abb5c92e78d3779e32d': Can't exec "cmp": No such file or directory at /snap/git-ubuntu/652/usr/share/perl5/Pristine/Tar.pm line 127.
  Failed to execute cmp: No such file or directory
  pristine-tar: failed to generate delta
  gbp:error: Error detected, Will roll back changes.
  gbp:error: Rolled back changes after import error.

...

Are these any problem?
installed: 1.0-79-g0500536 (652) 114MB classic

Tags: import snap
Revision history for this message
Robie Basak (racb) wrote : Re: [Bug 1946214] [NEW] gbp import errors on vulkan-tools

Thanks. Looks like we need to make the cmp command available in the snap for pristine-tar like some of the others (and there's an existing test pattern to avoid future regression).

If it helps, there's an import option to skip pristine-tar. I forget the name, but if -h doesn't list it try inspecting parse_args in importer.py.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

> If it helps, there's an import option to skip pristine-tar. I forget the
> name, but if -h doesn't list it try inspecting parse_args in
> importer.py.

It worked well enough for me to use it, I only filed this since I want
all edge cases documented for better coordination on a v1.x down the
road and towards the vision of importing universe.

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: gbp import errors on vulkan-tools

I'm seeing this in the production importer service as well, fwiw.

tags: added: import
summary: - gbp import errors on vulkan-tools
+ pristine-tar error: Can't exec "cmp": No such file or directory
Robie Basak (racb)
tags: added: snap
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.