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

Re: Cleaning upstream tarballs



On Thu, 18 Aug 2016 21:41:04 +0100, Christopher Hoskin wrote:

> I'm considering how to remove .jar files and convenience copies of other
> libraries from upstream tar balls. It seems to me that there are several
> ways of approaching repacking:

Just one additional thought:
 
> 1) Add Files-Excluded to debian/copyright
> 2) Create a debian/orig-tar.sh script and call it from debian/watch
> 3) Call jh_repack from debian/watch
> 4) Create a debian/gbp.conf and add filters to the import-orig section

In my understanding, these options have different objectives:
1) and 2) (if I interpret it correctly) remove files from the
.orig.tar.gz while 4) leaves the tarball intact and only exclude
files from being imported into gbp's typical upstream and master
branches.

So 4) is helpful for e.g. excluding upstream .gitignore files or
upstream debian/ directories in git because they are annoying but
this approach doesn't help for getting rid of files (with license
problems or without source or whatever) in the tarball.

In my experience Files-Excluded works quite fine by now in most
cases.
 
(And I have to admit that I don't know option 3) :))


Cheers,
gregor

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Led Zeppelin: We're Gonna Groove

Attachment: signature.asc
Description: Digital Signature


Reply to: