#title Simple PatchsysとCDBS The CDBS build helper system (see [[UbuntuPackagingGuideJa/basic-cdbs|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: CDBSというビルド補助システム([[UbuntuPackagingGuideJa/basic-cdbs|“CDBSによるパッケージング”セクション]]を参照してください)では、とてもシンプルなパッチシステムが内蔵されています。`debian/rules`の中で、''simple-patchsys.mk''のインクルード行を追加するだけで利用できます。例として、'''pmount'''パッケージでは`rules`ファイルは次のようになっています: {{{ #!/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/` Simple Patchsysは、'''cdbs-edit-patch'''というパッチ編集機能も備えています。'''cdbs-edit-patch'''に、修正したい既存のパッチファイルか、作成したい新しいパッチファイルの名前を与えるだけで利用できます。これは、既存のパッチを適用した上で、新規のシェルが立ち上がります。パッチに対する変更点をすべて入力したら最後に''Ctrl-D''を入力してシェルを出ます。すると新しいパッチが作成されます。このパッチは`debian/rules`に保存されます。 ||<:20%>,,<=,, ||<:60%>||<:20%> ,,=>,,|| ||<:20%>[[UbuntuPackagingGuideJa/ps-scratch|パッチシステムを用いないパッチ適用]]||<:60%>'''Simple PatchsysとCDBS'''||<:20%> [[UbuntuPackagingGuideJa/ch05s03|dpatch]]||