A popular patch system is dpatch. It has a dpatch-edit-patch script like cdbs has but stores the patches a little differently. It uses a file named debian/patches/00list to find the name and order of patches to apply. This means you can order your patches in whichever way you want and can disable a patch without removing it altogether. However, it also means you need to update 00list if you add a patch. If dpatch-edit-patch is called with two arguments it will edit/create the the patch named by the first argument relative to the patch named by the second argument. In other words:


dpatch-edit-patch new.dpatch old.dpatch

will apply patches up to old.dpatch and then create new.dpatch. Note that dpatch patches usually have a .dpatch suffix. This is because dpatch stores the patches in a slightly different format than a normal patch that adds a special header.


A real-life example of dpatch usage is the xterm package.


UbuntuJapaneseWiki: UbuntuPackagingGuideJa/ch05s03 (last edited 2012-01-10 11:49:05 by anonymous)