[Aptitude-devel] how to build deb package from git sources?
matthias.hinkfoth2 at uni-rostock.de
matthias.hinkfoth2 at uni-rostock.de
Fri Jan 29 23:08:43 UTC 2016
Hi Axel,
thanks for your help.
I got it working.
> That's because building a source package requires an upstream tar ball
> (if a distinction between packaging and upstream is made) and
> pristine-tar can (and tried to) give you that one.
>
> You can solve that in two ways:
I like the first one. :-)
> * Also create a local pristine-tar branch: "git checkout -b
> pristine-tar origin/pristine-tar" and then try "gbp buildpackage"
> again.
$ git checkout pristine-tar
$ git checkout debian/0.6.11-1
$ gpb build-package --git-ignore-branch --git-upstream-tree=upstream/0.6.11
worked for me.
> * Or use the origtargz tool from the devscripts package. It knows many
> ways to get the according upstream tar ball (including pristine-tar
> which is usually its first try if that branch exists) and will try
> them until it succeeds or runs out of methods. Usually the easiest
> way to solve that problem as it doesn't require much thinking which
> method is the right one in the current case and how are the
> according commands.
I have not tried this, since I was happy with the first solution.
> Hope this helps.
Indeed, it did.
Thanks.
Regards,
Matthias
More information about the Aptitude-devel
mailing list