[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running git-buildpackage on different branch



On 05/05/2014 10:10 PM, Jochen Topf wrote:
> On Mo, Mai 05, 2014 at 09:24:19 +0200, Sebastiaan Couwenberg wrote:
>> On 05/05/2014 08:51 PM, Jochen Topf wrote:
>>> Is there any way to run git-buildpackage on a different branch? I tried
>>> the --git-upstream-tree and --git-upstream-branch options, but whatever
>>> I put there, it is ignored.
>>>
>>> I am trying to build packages not from the tagged upstream branch but
>>> from upstream master HEAD which I am fetching (as a git remote) from the
>>> original upstream repository.
>>
>> git-buildpackages uses both the upstream branch to generate the
>> orig.tar.gz and a debian specific branch to generate the diff for the
>> debian directory.
>>
>> --git-upstream-branch only uses a different branch than the default
>> ("upstream"), you need to specify an alternate branch that includes the
>> debian directory with --git-debian-branch.
> 
> But I want to use the debian stuff from the normal debian branch!?
> 
> Anyway, whatever I put on the --git-upstream-tree or --git-upstream-branch
> options, it is all ignored. Even if it is not a branch but some random
> string, it just happily builds what it always builds. Shouldn't it at
> least complain if the branch doesn't exist?

What you seem to want is similar to the old svn-buildpackage workflow,
where you fetch the tarball from upstream (in this case the upstream git
branch) and merge that with the changes for the debian directory from
the repository.

The current git-buildpackage workflow doesn't keep the debian directory
and upstream source separated. You can configure git-buildpackage to
support merging the debian changes with the upstream source before
building the package, but that's not something we're using now.

When you use git-buildpackage with a different upstream branch than from
which the debian branch descends it will create the upstream orig.tar.gz
from the specified upstream branch, but build the package with the
upstream source and debian directory from the debian branch. This is
wrong, but currently not warned about by git-buildpackage.

> Jochen

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/E88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: