Changes between Initial Version and Version 1 of FullRebuild

Show
Ignore:
Timestamp:
2009-02-26 10:05:16 (19 months ago)
Author:
dottedmag
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FullRebuild

    v1 v1  
     1This guide is for rebuilding IPlinux from scratch, without using any repositories. You probably want the [wiki:Porting] instead. 
     2 
     3== host/tools == 
     4 
     5 1. Install the Debian Lenny chroot (all the following steps are to be performed in this chroot): 
     6{{{ 
     7sudo debootstrap lenny ip http://ftp.de.debian.org/debian 
     8sudo sh -c "echo LANG=C >> ip/etc/bash.bashrc" 
     9sudo chroot ip /bin/bash 
     10}}} 
     11 1. Install a few development packages: 
     12{{{ 
     13apt-get update 
     14apt-get install git-core build-essential dpkg-cross debhelper pkg-config po4a libncursesw5-dev zlib1g-dev libbz2-dev flex libselinux1-dev libio-string-perl quilt autoconf automake cvs gawk dpatch texinfo sharutils libgmp3-dev libmpfr-dev lsb-release realpath cdbs docbook-to-man sudo dbs 
     15}}} 
     16 1. Create a new user account and give it a passwordless sudo. It's a chroot, but your gut feeling probably won't let you compile as root anyway: 
     17{{{ 
     18useradd -m build 
     19echo 'build ALL=NOPASSWD: ALL' >> /etc/sudoers 
     20#echo 'export DEB_BUILD_OPTIONS="parallel=3"' >> /home/build/.bashrc 
     21su - build 
     22}}} 
     23 
     24 1. Clone our `dpkg`, `dpkg-cross`, `debootstrap` and `toolchain-package` gits, build and install them (using regular tools): 
     25{{{ 
     26for i in dpkg dpkg-cross debootstrap toolchain-package; do 
     27  git clone git://git.iplinux.org/$i.git 
     28done 
     29}}} 
     30{{{ 
     31for i in dpkg dpkg-cross toolchain-package debootstrap; do 
     32  (cd $i; dpkg-buildpackage -b -us -uc) 
     33done 
     34sudo dpkg -i dpkg_*.deb dpkg-dev_*.deb toolchain-package_*.deb dpkg-cross_*.deb libdebian-dpkgcross-perl_*.deb debootstrap_*.deb 
     35}}}