Debianのパッチ事情
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Debianのパッチ事情

  • 105 views
Uploaded on

NSEG#57で話した内容のスライド

NSEG#57で話した内容のスライド

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment

Views

Total Views
105
On Slideshare
103
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 2

https://twitter.com 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 Debianのパッチ 事情 勝手に長野Debian系勉強会 鍋太郎@NSEG
  • 2. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 自己紹介 プログラマー✓ 2014年度 DebianJP副会長✓ http://about.me/nabetaro✓
  • 3. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 Debian系のパッケージ debパッケージ 作ったことありますか?✓ ✓
  • 4. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 パッケージの作成 あるソフトウェアA✓ そのソフトウェアを改変して別 途リリース(A') ✓ A'の改変には Aに取り込まれるもの✓ Aに取り込まれないものも✓ ✓
  • 5. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 改変部分 パッチとして管理 パッチで変更したい内容ごとに分ける✓ ✓ diff で作成 patch で適用✓ 複数になると大変
  • 6. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 パッチ管理システム quilt 複数のパッチを管理✓ 適用順の管理✓ パッチの修正✓ 汎用のパッチ管理システム
  • 7. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 debパッケージでは 最新のパッケージフォーマット ではデフォルトで利用 ✓ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 3.0 (quilt) Source: grep Binary: grep
  • 8. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 準備 環境設定をしておく .quiltrc✓ 環境変数 QUILT_PATCHES=debian/patches✓ ✓ ✓ https://wiki.debian.org/UsingQuilt
  • 9. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 例:grepパッケージ apt-get install quilt✓ apt-get source grep カレントディレクトリに grep-VER✓ ✓ grep-VERに移動✓ パッチはすべて適用済み
  • 10. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 debianディレクトリ debパッケージ固有の情報✓ patchesにパッチを集約 パッチファイル群✓ seriesファイル✓ ✓
  • 11. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 現在の適用パッチ quilt applied✓ debian/patches/02-man_rgrep.patch debian/patches/03-397262-dlopen-pcre.patch debian/patches/70-man_apostrophe.patch debian/patches/04-446854-grep.1.patch debian/patches/05-grep-wrapper-sh.patch debian/patches/80-587930-man-ere-reference.patch debian/patches/85-412370-F-x-documentation.patch debian/patches/99-autotools-changes.patch debian/patches/0001-build-avoid-Wstack-protector.patch debian/patches/0001-grep-P-invalid-utf8-non-matching-debian.patch
  • 12. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 パッチスタックの操作 パッチの適用を戻す quilt pop✓ ✓ パッチを適用する quilt push✓ ✓
  • 13. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 パッチの追加手順 どこに追加するか決める✓ quilt new✓ quilt add 改変するファイル名✓ 編集 quilt diffで確認✓ ✓ quilt refresh✓
  • 14. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 パッチの修正手順 修正するパッチを選択✓ 編集 quilt diffで確認✓ ✓ quilt refresh✓
  • 15. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 上流ソースの更新 パッチを全部未適用に quilt pop -a✓ ✓ 上流ソース更新✓ パッチを全部適用 quilt push -a✓ ✓
  • 16. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 適用に失敗したら パッチを編集✓
  • 17. Debianのパッチ事情 - 勝手に長野Debian系勉強会 Powered by Rabbit 2.1.3 まとめ debパッケージでは quilt で複 数のパッチを管理 ✓ quilt の使い方のさわりを紹介✓ debパッケージ作ってみよぅ✓