Re: qmapshack for debian
On Tue, Aug 05, 2014 at 08:31:44PM +0200, Sebastiaan Couwenberg wrote:
> >> With the recent enhancements in uscan it can strip files listed in the
> >> Files-Excluded section of the debian/copyright file, you could use this
> >> instead of the tar dance in debian/rules.
> >> The current get-orig-source target can also be simplified by using `tar
> >> --delete`. For an example see its usage in postgis:
> >> http://anonscm.debian.org/cgit/pkg-grass/postgis.git/tree/debian/get-orig-source
> > This way of getting orig source repacked is becoming standard in
> > pkg-multimedia team where I co-maintain some packages.
> > Some I am used to it moreover uscan currently doesn't work with bitbucket :(
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749225
> > So this solution allows me get orig source via wget.
> The wget route seems to be a good enough workaround for the uscan issue.
> I would still use `tar --delete` to remove the .hg directory, e.g. with
> something like the following patch (note: untested):
Alternatively you can use wget to download the tarball and use
mk-origtargz --repack --compress xz <path_to_download_tarball>
to emulate what uscan would do (uscan also calls mk-origtargz). This
would let you settle with the same Files-Excluded statement as you could
do with uscan and it saves you longish and hard to maintain
> diff --git a/debian/rules b/debian/rules
> index ec21e31..1dd2bd4 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -15,11 +15,4 @@ get-orig-source:
> # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749225
> # uscan --noconf --force-download --rename --debug --destdir=.
mk-origtargz --repack --compress xz $(pkg)-$(upstream_version).tar.gz
should do the trick instead of the deleted lines of code.