]
トップ «前の日記(2006-06-27) 最新 次の日記(2006-06-29)» 編集

Yukiharu YABUKI の tDiary



このtDiaryを検索します。

2006-06-28 [長年日記]

_ [Debian] pbuilder

Sargeの上で、sidのパッケージをコンパイルしようとおもったら、たまたまだと思うが
sudo pbuilder create --distribution sarge
 
中略
 
I: Validating sed
E: Couldn't download slang1a-utf8
pbuilder: debootstrap failed
 -> Aborting with an error
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//13773 and its subdirectories
がでて、しょんぼり。sudo pbuilder create --distribution sargeは、無事環境が作れた模様。sidで、pbuilder createしても、
E: Couldn't install system due to errors!
pbuilder: cdebootstrap failed
 -> Aborting with an error
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//24733 and its subdirectories
という状態。sidの上で、pbuilder create --distribution sargeは、動いた。yc-elのpbuilder-testは、sidの中で、chrootされたsargeでテストすることになりそう。

_ pbuilderでのコンパイル

Sid(Debianの開発版)の上で、Sarge(Debianの安定版)のビルドを行う。pbuilderにてchrootの環境を作って、pbuilder create コマンドで base.tar.gzを作っておく, ログを見ればわかるがchroot環境下で必要なパッケージを「自動的」に取得している。再ビルドするときには、pbuilder build hogefuga.dsc 以下は、ログ。*1

*1 footnoteにpreタグを使ったが、うまくいったみたい。

yabuki@Malkion:~/src/deb-package/yc-el$ sudo pbuilder build yc-el_4.0.13-4.dsc
Password:
W: /home/yabuki/.pbuilderrc does not exist
I: using fakeroot in build.
pbuilder-buildpackage/i386 $Id: pbuilder-buildpackage-funcs,v 1.31 2006/05/30 23:45:45 dancer Exp $
$Id: pbuilder-buildpackage,v 1.126 2006/06/10 15:09:52 dancer Exp $
 
Current time: Wed Jun 28 12:49:10 JST 2006
pbuilder-time-stamp: 1151466550
Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
 -> creating local configuration
 -> copying local configuration
 -> mounting /proc filesystem
 -> mounting /dev/pts filesystem
 -> policy-rc.d already exists
Obtaining the cached apt archive contents
Installing the build-deps
 -> Attempting to parse the build-deps : pbuilder-satisfydepends,v 1.28 2006/05/30 23:45:45 dancer Exp         $
 -> Considering  debhelper (>= 4.0.0)
   -> Trying debhelper
 -> Installing  debhelper
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  debconf-utils file gettext html2text intltool-debian libmagic1 po-debconf
Suggested packages:
  dh-make cvs gettext-doc
Recommended packages:
  curl libmail-sendmail-perl libcompress-zlib-perl
The following NEW packages will be installed:
  debconf-utils debhelper file gettext html2text intltool-debian libmagic1 po-debconf
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2568kB of archives.
After unpacking 8507kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org sarge/main libmagic1 4.12-1 [233kB]
Get:2 http://ftp.jp.debian.org sarge/main file 4.12-1 [28.6kB]
Get:3 http://ftp.jp.debian.org sarge/main debconf-utils 1.4.30.13 [33.0kB]
Get:4 http://ftp.jp.debian.org sarge/main html2text 1.3.2a-2 [92.6kB]
Get:5 http://ftp.jp.debian.org sarge/main gettext 0.14.4-2 [1718kB]
Get:6 http://ftp.jp.debian.org sarge/main intltool-debian 0.30+20040213 [23.5kB]                      
Get:7 http://ftp.jp.debian.org sarge/main po-debconf 0.8.23 [78.0kB]                                  
Get:8 http://ftp.jp.debian.org sarge/main debhelper 4.2.32 [362kB]                                    
Fetched 2568kB in 8s (289kB/s)                                                                        
Selecting previously deselected package libmagic1.
(Reading database ... 11088 files and directories currently installed.)
Unpacking libmagic1 (from .../libmagic1_4.12-1_i386.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../archives/file_4.12-1_i386.deb) ...
Selecting previously deselected package debconf-utils.
Unpacking debconf-utils (from .../debconf-utils_1.4.30.13_all.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-2_i386.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.14.4-2_i386.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.30+20040213_all.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_0.8.23_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_4.2.32_all.deb) ...
Setting up libmagic1 (4.12-1) ...
 
Setting up file (4.12-1) ...
Setting up debconf-utils (1.4.30.13) ...
 
Setting up html2text (1.3.2a-2) ...
 
Setting up gettext (0.14.4-2) ...
 
Setting up intltool-debian (0.30+20040213) ...
Setting up po-debconf (0.8.23) ...
Setting up debhelper (4.2.32) ...
 -> Finished parsing the build-deps
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  fakeroot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 70.5kB of archives.
After unpacking 201kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org sarge/main fakeroot 1.2.10 [70.5kB]
Fetched 70.5kB in 0s (115kB/s)
Selecting previously deselected package fakeroot.
(Reading database ... 11603 files and directories currently installed.)
Unpacking fakeroot (from .../fakeroot_1.2.10_i386.deb) ...
Setting up fakeroot (1.2.10) ...
Copying back the cached apt archive contents
 -> new cache content libmagic1_4.12-1_i386.deb added
 -> new cache content file_4.12-1_i386.deb added
 -> new cache content debconf-utils_1.4.30.13_all.deb added
 -> new cache content html2text_1.3.2a-2_i386.deb added
 -> new cache content gettext_0.14.4-2_i386.deb added
 -> new cache content intltool-debian_0.30+20040213_all.deb added
 -> new cache content po-debconf_0.8.23_all.deb added
 -> new cache content debhelper_4.2.32_all.deb added
 -> new cache content fakeroot_1.2.10_i386.deb added
Copying source file
    -> copying [yc-el_4.0.13-4.dsc]
    -> copying [./yc-el_4.0.13.orig.tar.gz]
    -> copying [./yc-el_4.0.13-4.diff.gz]
Extracting source
su: Authentication service cannot retrieve authentication info.
(Ignored)
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-source: extracting yc-el in yc-el-4.0.13
 -> Building the package
su: Authentication service cannot retrieve authentication info.
(Ignored)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source package is yc-el
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source version is 4.0.13-4
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: source maintainer is Yukiharu YABUKI 
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-buildpackage: host architecture is i386
dpkg-checkbuilddeps: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean
make[1]: Entering directory `/tmp/buildd/yc-el-4.0.13'
rm: cannot remove `icanna.o': No such file or directory
rm: cannot remove `icanna': No such file or directory
make[1]: *** [clean] Error 1
make[1]: Leaving directory `/tmp/buildd/yc-el-4.0.13'
make: [clean] Error 2 (ignored)
dh_clean 
 dpkg-source -b yc-el-4.0.13
dpkg-source: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-source: building yc-el using existing yc-el_4.0.13.orig.tar.gz
dpkg-source: building yc-el in yc-el_4.0.13-4.diff.gz
dpkg-source: building yc-el in yc-el_4.0.13-4.dsc
 debian/rules build
dh_testdir
touch configure-stamp
dh_testdir
/usr/bin/make
make[1]: Entering directory `/tmp/buildd/yc-el-4.0.13'
gcc    -c -o icanna.o icanna.c
gcc -o icanna icanna.o
make[1]: Leaving directory `/tmp/buildd/yc-el-4.0.13'
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs
/usr/bin/make install DESTDIR=/tmp/buildd/yc-el-4.0.13/debian/yc-el
make[1]: Entering directory `/tmp/buildd/yc-el-4.0.13'
install -m 755 -s icanna /tmp/buildd/yc-el-4.0.13/debian/yc-el/usr/lib/yc-el/icanna
install -m 644 yc.el /tmp/buildd/yc-el-4.0.13/debian/yc-el/usr/share/emacs/site-lisp/yc-el/yc.el
make[1]: Leaving directory `/tmp/buildd/yc-el-4.0.13'
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dh_installdocs 
dh_installexamples
dh_installemacsen
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dpkg-shlibdeps: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dh_gencontrol
dpkg-gencontrol: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (0)
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `yc-el' in `../yc-el_4.0.13-4_i386.deb'.
 dpkg-genchanges
dpkg-genchanges: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-architecture: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-parsechangelog: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
debian: warning: no utmp entry available and LOGNAME not defined; using uid of process (1234)
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
Copying back the cached apt archive contents
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
Current time: Wed Jun 28 12:50:10 JST 2006
pbuilder-time-stamp: 1151466610
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//9293 and its subdirectories
yabuki@Malkion:~/src/deb-package/yc-el$ 

_ pbuilder-test

パッケージの自動テスト。

10. Using pbuilder for automated testing of packages

10. pbuilderを使って、パッケージのテストを自動化する。

pbuilder can be used for automated testing of packages. It has the feature of allowing hooks to be placed, and these hooks can try to install packages inside the chroot, or run them, or whatever else that can be done. Some known tests and ideas:

● Automatic install-remove-upgrade-remove-install-purge-upgrade-purge test-suite (distributed as an example, B91dpkg-i), or just check that everything installs somewhat (execute_installtest.sh).

● Automatically running lintian/linda (distributed as an example in /usr/share/doc/pbuilder/examples/B90linda).

● Automatic debian-test of the package? The debian-test package has been removed from Debian. A pbuilder implementation can be found as debian/pbuilder-test directory, implemented through B92pkg-test script.

_ 日本のガイドブック

Debconfに関連して、海外のガイドブックで日本をどのように紹介しているか気になった。 lonely planet(http://www.lonelyplanet.com/) 日本は、メディアファクトリーがやってたのか。(http://www.mediafactory.co.jp/books/lplanet/)

miro2さん情報より。Lonely Planet Japan(Chris Rowthorn/Ray Bartlett/Justin Ellis)

_ memo:インド企業ソフトウェアサービス輸出額増加 - 伸びるトップ20企業

インド企業ソフトウェアサービス輸出額増加 - 伸びるトップ20企業(http://journal.mycom.co.jp/news/2006/06/28/341.html)

_ 45 RPMのPenguin Tシャツ

さりげなく ;-) ペンギン (http://store.45rpm.jp/main/shop/goods/goods.asp?goods=2027906)

_ [] なぜ、それを考えつかなかったのか?

積んどくしていた なぜ、それを考えつかなかったのか?―最高の結果を生む聡明な思考法(Jr.,チャールズ・W. マッコイ/Jr.,Charles W. McCoy/ルディー 和子) に手をつける。

_ mdadmの新版(2.5.2-1)

mdadmの新しいのができたらテストしてみてね。というはなし。Debian Unstable用で、experimentalから引っ張ってくる必要あり。 Please test mdadm/experimental(http://blog.madduck.net/debian/2006.06.28-testing-mdadm.xhtml)

mdadmとは何か

ソフトウェアRAIDのデバイスmdを管理するプログラム。

_ memo:■[英語で読むITトレンド] YouTubeについて(1)

便利だけど、どこまで行けるの?という話。■[英語で読むITトレンド] YouTubeについて(1)(http://d.hatena.ne.jp/umedamochio/20060628/p1)

_ おとなの小論文教室

(http://www.1101.com/essay/index.html)