| 1 |
:1. Preparing the cowbuilder: |
| 2 |
============================ |
| 3 |
|
| 4 |
sudo aptitude install cowdancer grep-dctrl wget |
| 5 |
sudo cowbuilder --create --distribution squeeze --basepath /var/cache/pbuilder/testing-base.cow |
| 6 |
|
| 7 |
2. Getting the list of packages to build: |
| 8 |
========================================= |
| 9 |
|
| 10 |
getlist squeeze |
| 11 |
|
| 12 |
Will fetch the Sources.gz for main and contrib of the distribution you |
| 13 |
choose and creates two files: |
| 14 |
|
| 15 |
1. list.squeeze |
| 16 |
2. list.squeeze.i368 |
| 17 |
|
| 18 |
The first list contains the name of all packages followed by all |
| 19 |
architectures it can be build on. The second list Contains the names of |
| 20 |
all packages which can be build on your arch. |
| 21 |
|
| 22 |
3. Setting the rebuild variables: |
| 23 |
================================= |
| 24 |
|
| 25 |
The only setting should change is the BASEPATH variable. It must match |
| 26 |
the --basepath option you gave. |
| 27 |
|
| 28 |
The other settings BUILDDIR and LOGDIR are optional. |
| 29 |
|
| 30 |
4. Rebuilding the archive |
| 31 |
========================= |
| 32 |
|
| 33 |
rebuild list.squeeze.i386 squeeze |
| 34 |
|
| 35 |
Will attempt to build all packages appearing in list.testing.i368. It will |
| 36 |
temporarily build them in $BUILDDIR/$PACKAGE and will use $LOGDIR to create |
| 37 |
lock- and logfiles. |
| 38 |
|
| 39 |
NOTES: |
| 40 |
====== |
| 41 |
|
| 42 |
- On a machine with more than one processor you can run multiple instances |
| 43 |
of the rebuild script in order to speed up the build process by building |
| 44 |
multiple packages concurrently |
| 45 |
|
| 46 |
- When building for a different distribution (testing) than the one the host |
| 47 |
system is running (sid) you got to make sure that apt-get source fetches the |
| 48 |
right sources. Otherwise you'll rebuild the packages from sid in a testing |
| 49 |
environment and get false-positive FTBFS. |
| 50 |
|
| 51 |
-- |
| 52 |
|
| 53 |
2007-02-21, Bastian Venthur |
| 54 |
|