The CDBS build helper system (see the section called “Packaging With CDBS” ) has a very simple patch system built in. You simply need to add an include for simple-patchsys.mk in debian/rules
. An example is pmount. Its entire rules
looks like:
#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk common-post-build-arch:: # Generate a POT file cd po; intltool-update -p --verbose
Simple patchsys also has a patch editor built in called cdbs-edit-patch. You can give cdbs-edit-patch either the name of an existing patch to edit or a new patch to create. It will apply the existing patch, if it exists, and put you in a new shell. You can then make any changes you want added to the patch and finally type Ctrl-D to exit the shell and create the new patch. The patches are stored in debian/patches/