Did you or anyone else do a tutorial on patching?
Both the new quilt source format (3.0) and the cdbs "/usr/share/cdbs/1/rules/simple-patchsys.mk"
are pretty simple to use. Just generate a .diff between your patched code and the original source file, put that in /debian/patches, and add it to "series" or "00list". CDBS requires that you include this line in the rules file:
Code: Select all
include /usr/share/cdbs/1/rules/simple-patchsys.mk
but the new quilt format, which dh_make generates by default, just works automagically.
The older way of using quilt lets you create and manage a stack of patches, but is a bit harder to learn:
https://mybravenewworld.wordpress.com/2 ... anagement/
I don't know that much about dpatch. though I have been able to modify a .diff patch to work in the dpatch system, by looking at the other patches.
If you are modifying a text file that will be installed, such as a configuration file, and it will not be compiled, you can get away with just installing the modified version from the /debian directory by adding it and its destination to the package.install file, for example, for package foo, foo.install would have
Code: Select all
debian/foo-config.conf /etc/foo-config.conf
though the install command can also be added to the rules file.