On 12/17/2019 11:00 AM, Andrey Rahmatullin wrote:
On Tue, Dec 17, 2019 at 10:37:27AM -0800, deb...@lewenberg.com wrote:
1. Download the stretch source packages:
wget
http://http.debian.net/debian/pool/main/h/heimdal/heimdal_7.1.0+dfsg-13+deb9u3.dsc
wget
http://http.debian.net/debian/pool/main/h/heimdal/heimdal_7.1.0+dfsg.orig.tar.gz
wget
http://http.debian.net/debian/pool/main/h/heimdal/heimdal_7.1.0+dfsg-13+deb9u3.debian.tar.xz
You should use dget instead.
3. Download new source and change its name:
wget
https://github.com/heimdal/heimdal/releases/download/heimdal-7.7.0/heimdal-7.7.0.tar.gz
mv heimdal-7.7.0.tar.gz heimdal_7.7.0+dfsg.orig.tar.gz
Just adding +dfsg is not enough, you need to actually repack the source
removing non-dfsg bits.
5. Import the upstream source:
git checkout upstream
This is the reason of your error.
You should do it in the debian branch.
gbp import-orig ../heimdal_7.7.0+dfsg.orig.tar.gz -u7.7.0
The heimdal_7.7.0+dfsg.orig.tar.gz correspoinds to the 7.7.0+dfsg upstream
version, not 7.7.0.
I changed the tar file name to heimdal_7.7.0.orig.tar.gz.
Switching to the master branch and running the same command I get a
different error:
$ gbp import-orig ../heimdal_7.7.0.orig.tar.gz -u7.7.0
gbp:info: Importing '../heimdal_7.7.0.orig.tar.gz' to branch 'upstream'...
gbp:info: Source package is heimdal
gbp:info: Upstream version is 7.7.0
gbp:error: Import of ../heimdal_7.7.0.orig.tar.gz failed: Can't find
upstream vcs tag at 'heimdal-7.7.0^{}'