Differences between revisions 8 and 9
Revision 8 as of 2017-02-08 14:40:35
Size: 2126
Editor: RogerShimizu
Comment: add ideas from email feedback
Revision 9 as of 2017-02-08 14:49:51
Size: 2213
Editor: RogerShimizu
Comment: diff d/copyright files
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
 * There're a few automatic tools. Just apt install to get them.
   * debmake. It compares source tree and debian/copyright, then give you a report.
 There're a few automatic tools. Just apt install to get them.
 * debmake. It compares source tree and debian/copyright, then give you a report.
Line 19: Line 19:
   * decopy. It generate a copyright file for reference.  * decopy. It generate a copyright file for reference.
Line 22: Line 22:
diff -u debian/copyright debian/copyright.tmp
Line 23: Line 24:
   * cme. It generate/overwrite debian/copyright.  * cme. It generate/overwrite debian/copyright.
Line 27: Line 28:
diff -u debian/copyright.orig debian/copyright

Procedure to review packaging for mentors

Get the package

  • Usually sponsorship-requests (RFS) email tells how to get the package:

dget -x https://mentors.debian.net/debian/pool/main/x/yyy/yyy_zzz-1.dsc
  • Unless you have the sponsee's key (for example, they're in the DM keyring), you should replace the -x with -ux or dpkg-source will refuse to extract the source package.

  • Consider asking the sponsee to put their package in a git repository. This makes things easier when you expect to do several rounds of review.

Check the license

  • There're a few automatic tools. Just apt install to get them.
  • debmake. It compares source tree and debian/copyright, then give you a report.

debmake -kk
  • decopy. It generate a copyright file for reference.

decopy -o debian/copyright.tmp
diff -u debian/copyright debian/copyright.tmp
  • cme. It generate/overwrite debian/copyright.

cp debian/copyright debian/copyright.orig
cme update dpkg-copyright -trace
diff -u debian/copyright.orig debian/copyright

Build the package

  • You need to install build-dependencies first. Here's a way to remove easily afterwards.

mk-build-deps
sudo dpkg -i <yyy_build-deps_zzz-1.deb>
sudo apt install -f
  • debuild or dpkg-buildpackage

debuild -us -uc
- or -
dpkg-buildpackage -us -uc

Auto Check Tools

  • lintian (Note: Just verbose the output, but not all of them is must-fix)

lintian -I --pedemic

Other things to check

Alternative workflows

Ideas to be added to this page

  • add sbuild/pbuilder usage
  • "dget -u" unpacks the source in case you already trust the person (but you didn't update the keyring)
  • debdiff between versions (in case of update)

filterdiff debdiff -i "*debian*" > debdiff.filtered
  • apt build-dep (dsc-file) to build-dependencies