August 9, 2008

debian patches explained.. or at least clearer for me

I thought that leaving the patch on the debian/patches and doing a dpkg-buildpackages would apply them and everything would be dandy.. WRONG

the patches have to be in the dpatch format.. that means

adding this on the top of a diff -u

#! /bin/sh /usr/share/dpatch/dpatch-run
## 99-patchname.dpatch by you <you@you>
##
## All lines beginning with `## DP:’ are a description of the patch.

@DPATCH@
diff -Naur …. regular diff file

then add the file name to the 00list OTHERWISE IT WILL NOT BE APPLIED

lazy way to do it is:  ls 99-patchname.dpatch » 00list

dpkg-buildpackage and it’s done! took only a lot of time to discover it :)