#title dpatch 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'''は一般的なパッチシステムです。このパッチシステムには'''cdbs'''と似た'''dpatch-edit-patch'''スクリプトが存在しますが、動作は少し異なります。このスクリプトでは、パッチのファイル名と適用する順番を記録した`debian/patches/00list`というファイルを利用します。つまり、パッチを望む順番で適用したり、このファイルから削除することでパッチを無効にしたりすることができます。しかしながら、パッチを作成した場合は`00list`を修正しなければならないことも意味します。'''dpatch-edit-patch'''が二つの引数を伴って呼び出された場合は、二つ目の引数の名前のパッチまでが適用され、その次のパッチとして一番目の引数の名前のパッチを修正もしくは作成します。つまり: {{{ 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. これを実行した場合、`old.dpatch`までが適用され、`new.dpatch`が作成されます。'''dpatch'''のパッチは、通常.dpatchという拡張子がつきます。これは、'''dpatch'''が作成したパッチファイルは、通常のパッチファイルとは若干異なり、特別なヘッダが付加されるからです。 A real-life example of dpatch usage is the '''xterm''' package. 実例として、dpatchは'''xterm'''パッケージで利用されています。 ||<:20%>,,<=,, ||<:60%>||<:20%> ,,=>,,|| ||<:20%>[[UbuntuPackagingGuideJa/ch05s02|Simple PatchsysとCDBS]]||<:60%>'''dpatch'''||<:20%> [[UbuntuPackagingGuideJa/ch05s04|他の人が作ったパッケージにパッチする]]||