R.A. Epigonos et al.

[debian] aptitude経由で導入したバイナリパッケージのコンパイルオプションを確認

aptitude経由で導入したscreenが256色に対応しているかどうかチェックしたかったので、まずはコンパイルオプションの確認から始めた。

まずはapt-get sourceでソースのダウンロードとパッチの適応。出力から dpkg-source -x screen_4.0.3-11+lenny1.dsc されている事がわかる。dpkg-source はパッチを当ててくれるので、出来上がったディレクトリの内容はパッチ済みということ。

$ apt-get source screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 972kB of source archives.
Get:1 http://ftp.jp.debian.org lenny/main screen 4.0.3-11+lenny1 (dsc) [1079B]
Get:2 http://ftp.jp.debian.org lenny/main screen 4.0.3-11+lenny1 (tar) [841kB]
Get:3 http://ftp.jp.debian.org lenny/main screen 4.0.3-11+lenny1 (diff) [130kB]
Fetched 972kB in 0s (1565kB/s)
gpg: Signature made Thu 02 Apr 2009 08:46:16 PM JST using DSA key ID 73647CFF
gpg: Can't check signature: public key not found
dpkg-source: extracting screen in screen-4.0.3
dpkg-source: info: unpacking screen_4.0.3.orig.tar.gz
dpkg-source: info: applying screen_4.0.3-11+lenny1.diff.gz

エディタでdebian/rulesの内容を確認するか、

$ vi screen-4.0.3/debian/rules

ソースディレクトリに移動して、grep等で適当なオプションを探す。今回はenable-colors256をキーワードにした。

$ cd screen-4.0.3
$ find -print0 | xargs -0 grep -e 'enable-colors256'
./configure:  --enable-colors256      enable support for 256 colors
./configure:# Check whether --enable-colors256 or --disable-colors256 was given.
./debian/patches/04AUTOCONF.dpatch:-# Check whether --enable-colors256 or --disable-colors256 was given.
./debian/patches/04AUTOCONF.dpatch:+# Check whether --enable-colors256 was given.
./debian/rules:             --enable-colors256
./configure.in:AC_ARG_ENABLE(colors256, [  --enable-colors256      enable support for 256 colors])

リファレンス

  1. Ubuntu Manpage: dpkg-source - Debian source package (.dsc) manipulation tool
  2. orig.tar.gz diff.gz .dsc - Google 検索

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2009-08-23T23:26:08+09:00
  2. Modified: 2009-08-23T23:26:08+09:00
  3. Generated: 2023-08-27T23:09:15+09:00