q: excluding upstream files from tarball

Jonas Smedegaard dr at jones.dk
Tue Dec 14 20:26:35 UTC 2010


On Tue, Dec 14, 2010 at 05:54:36PM +0100, IOhannes m zmoelnig wrote:
>i have a question on how the exclusion of files from the upstream 
>tarball can be handled and maintained.
>
>as far as i understand, you just use
>$ git-import-orig --filter="*proprietary*" /path/to/upstream_1.0.tar.gz
>
>which will exclude all files matching *proprietary* from the debian
>"upstream" tarball (what's the right terminology, btw?)
>
>this is all fine, but how is this maintained over time?
>e.g. next upstream release i have to do the same thing again.
>however, considering that we do a lot of packaging, how am i to keep
>track of all this?
>
>shouldn't all this exclusion be documented somewhere, e.g. in
>debian/README.source?

Instead of above, I include the upstream-tarball.mk CDBS snippet, 
declare with DEB_UPSTREAM_REPACKAGE_EXCLUDES what to exclude, and the 
"debian/rules get-orig-source" then automagically repackages a DFSG-free 
tarball from the pristine tarball offered upstream.

And yes, in addition to that, I also mention the stripped parts in 
debian/copyright.  I personally consider such note required, but recent 
discussions about DEP5 indicated that not all agree with that.

An example of this packaging style is in the csound package.  Beware, 
though, that the copyright comments use leading "X-" which is 
discouraged in recent DEP5 discussions.

Another - simpler and newer - example is gmerlin-avdecoder.  Whoops, I 
forgot to add the notes in the copyright file there.  Also, current 
release actually does not make use of the get-orig-source magic as 
Allessio hand-roled a tarball from upstream VCS source.


  - Jonas

-- 
  * Jonas Smedegaard - idealist & Internet-arkitekt
  * Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20101214/43a9a7d8/attachment-0001.pgp>


More information about the pkg-multimedia-maintainers mailing list