ruby 1.8.4 を unstableなdeb-srcからゲット

http://www.mail-archive.com/debian-ruby@lists.debian.org/msg00301.html をヒントにやってみた。

まず、unstableなdeb-lineを /etc/apt/sources.list に追加。

deb http://ftp.jp.debian.org/debian/ unstable main
deb-src http://ftp.jp.debian.org/debian/ unstable main

間違ってruby以外をunstableにしないようにapt-get updateとかの基準を/etc/apt/apt.conf.d/70debconfに設定するように以下を追加。

APT::Default-Release "stable";

でパッケージリストを更新しておく。

# apt-get update

ruby1.8のソースをゲット

$ apt-get -t unstable source ruby1.8
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 4385kB of source archives.
Get:1 http://ftp.jp.debian.org unstable/main ruby1.8 1.8.4-5 (dsc) [1038B]
Get:2 http://ftp.jp.debian.org unstable/main ruby1.8 1.8.4-5 (tar) [4309kB]
Get:3 http://ftp.jp.debian.org unstable/main ruby1.8 1.8.4-5 (diff) [74.8kB]
Fetched 4385kB in 4s (1092kB/s)
dpkg-source: extracting ruby1.8 in ruby1.8-1.8.4

apt-get build-depで依存関係を設定?しておく*1。たくさんパッケージがインストールされるけど、

# apt-get build-dep ruby1.8

devscriptsをインストール

# apt-get install devscripts

ディレクトリruby1.8-1.8.4 で debuild

# cd ruby1.8-1.8.4
# debuild

・・・秘密鍵が見つかんない、debsignに失敗したってエラーが出た。

今の僕には茨の道か・・・。ふつーにmakeした方が楽。