コンパイル用の環境を作成
# rm -fr /home/chroot/testing_amd64_publican/ # debootstrap --verbose --arch amd64 testing /home/chroot/testing_amd64_publican/ http://ftp.jp.debian.org/debian/ # cat << EOT > /etc/schroot/chroot.d/testing_amd64_publican.conf [testing_amd64_publican] description=Debian testing amd64 publican type=directory directory=/home/chroot/testing_amd64_publican/ users=****************** groups=****************** root-groups=root EOT # exit
コンパイル用の環境に chroot。
$ schroot -c testing_amd64_publican
rootになる。debian-handbook のソースを引っ張ってくるのに git を使うのでこれをインストール。また、debian-handbook のビルドに必要なパッケージもインストール。
$ su - # sed -i -e 's/^deb \(.*\)$/deb \1\ndeb-src \1/' /etc/apt/sources.list # apt-get update && apt-get -y upgrade && apt-get autoremove && apt-get clean # apt-get install git ghostscript lmodern fonts-ipafont fonts-ipaexfont po4a poxml gnome-doc-utils # apt-get build-dep debian-handbook
# rm -fr /home/chroot/unstable_amd64_publican/ # debootstrap --verbose --arch amd64 unstable /home/chroot/unstable_amd64_publican/ http://ftp.jp.debian.org/debian/ # cat << EOT > /etc/schroot/chroot.d/unstable_amd64_publican.conf [unstable_amd64_publican] description=Debian unstable amd64 publican type=directory directory=/home/chroot/unstable_amd64_publican/ users=****************** groups=****************** root-groups=root EOT # exit
# rm -fr /home/chroot/oldstable_amd64_publican/ # debootstrap --verbose --arch amd64 oldstable /home/chroot/oldstable_amd64_publican/ http://ftp.jp.debian.org/debian/ # cat << EOT > /etc/schroot/chroot.d/oldstable_amd64_publican.conf [oldstable_amd64_publican] description=Debian oldstable amd64 publican type=directory directory=/home/chroot/oldstable_amd64_publican/ users=****************** groups=****************** root-groups=root EOT # exit