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

Attachment: signature.asc
Description: Digital signature

pkg-multimedia-maintainers mailing list

Reply via email to