[git-buildpackage] gbp does not recognize the newly merged & tagged upstream version

Guido Günther agx at sigxcpu.org
Thu Apr 20 18:40:35 CEST 2017


On Thu, Apr 20, 2017 at 04:17:37PM +0000, Lukasz Walewski wrote:
[..snip..]
> 
> [buildpackage]
> export-dir=build
> ^^^^^^^^^^^^^^^^
> 
> By doing this, I wanted to clean up my build environment and get rid
> of packages and intermediate dirs hanging all over the parent dir. Is
> it not recommended or unusual to use this feature?

It's perfectly fine to use it. It's just that the extra option
--git-export=WC is needed when you want to export your working copy 1:1
to the export dir (instead of only exporting comitted changes - which is
the default).


> >In this case you have to pass
> >
> >     --git-export=WC
> >
> >to the buildpackage call
> 
> Well, but then one needs to be careful with the export-dir - in my
> case it is located inside of my working copy (and ignored in the
> .gitignore file) so I got a whole lot of errors related to some
> leftovers from previous builds:

As you noticed having export-dir within your working copy confuses
dpkg-source which then finds your changes and wonders why they are
missing from the upstream tarball:

> dpkg-source: error: unrepresentable changes to source

There's little gbp can do about this. You can tell dpkg-source to ignore
your export dir (see it's -I and -i options) but I'd rather move it
outside of your git repo.

> However, I eventually got it working by removing the export-dir from
> my working copy and including the --git-export=WC option, which is a
> workaround, but we can improve it further, I guess.

You don't need --gi-export=WC after you committed the changelog. It's
only there to tell gbp buildpackage what exactly to export.
Cheers
 -- Guido

> 
> Best,
> Lukasz
> 
> 
> ----------------------------------------
> 
> scan Messtechnik GmbH
> Brigittagasse 22-24
> A-1200 Wien/Vienna
> tel. +43 1 219 73 93 - 0
> fax +43 1 219 73 93 - 12
> http://www.s-can.at
> office at s-can.at
> 
> Geschaeftsfuehrer/President: DI Andreas Weingartner
> Firmenbuchnummer/Incorporation No: FN178880i
> Gerichtsstand/Court of Jurisdiction: Wien/Vienna
> 
> ----------------------------------------
> 
> s::can - intelligent, optical, online
> 
> i::scan - compact, precise and affordable!
> UV254::NTU::FTU::TOC::DOC::COD::BOD::Colour ...and many more to come!
> http://www.i-scan.at
> ----------------------------------------
> "YES WE SCAN !"


More information about the git-buildpackage mailing list