cdbs vs dh (was: uploaded first pkg: pd-motex)

Jonas Smedegaard dr at jones.dk
Fri Aug 13 14:46:46 UTC 2010


On Fri, Aug 13, 2010 at 03:10:19PM +0200, Jonas Smedegaard wrote:
>On Fri, Aug 13, 2010 at 01:58:18PM +0200, Benjamin Drung wrote:
>>Am Freitag, den 13.08.2010, 10:40 +0200 schrieb Jonas Smedegaard:

>>>CDBS provides routines to track copyright and licensing info of 
>>>sources.

>Here's a quick intro (from my head - hope it works):
>
> 1) Include /usr/share/cdbs/1/rules/utils.mk
>
> 2) touch debian/copyright_hints
>    (else you will simply be suggested to do this at each build)
>
> 3) build as usual
>
> 4) copy the autogenerated debian/copyright_newhints to 
>debian/copyright     and verify and clean it up manually
>
>...or what I do, and find smarter, is at 3) to a) build with 
>"maintainer mode" enabled[1], b) manually apply patches, and c) only 
>build the minimal necessary for the licensing check. Like this:
>
>  QUILT_PATCHES=debian/patches quilt push -a
>  DEB_MAINTAINER_MODE=1 debian/rules pre-build
>
>Also, I cleanup with maintainer mode enabled, which keeps the 
>debian/copyright_newhints file but tidy other noise in source:
>
>  DEB_MAINTAINER_MODE=1 fakeroot debian/rules clean
>  QUILT_PATCHES=debian/patches quilt pop -a


Above works for dpkg source format 3.0.

For older packages using patchsys-quilt.mk do *not* invoke quilt 
manually, neither before license-check nor after cleanup.


  - 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/20100813/d11892c7/attachment.pgp>


More information about the pkg-multimedia-maintainers mailing list