GitPackaging » Historique » Version 2
Daniel Dehennin, 10/01/2012 11:10
Introduction sur les environnements de compilation personel
1 | 1 | Daniel Dehennin | h1. Gestion des paquets EOLE |
---|---|---|---|
2 | 1 | Daniel Dehennin | |
3 | 2 | Daniel Dehennin | h2. Environnement de compilation personel |
4 | 1 | Daniel Dehennin | |
5 | 2 | Daniel Dehennin | Il existe plusieurs outils afin de mettre en place des environnements de compilation personels. |
6 | 2 | Daniel Dehennin | |
7 | 2 | Daniel Dehennin | L’outil utilisé dans le projet "Debian":http://www.debian.org se nomme "sbuild":http://wiki.debian.org/sbuild. |
8 | 2 | Daniel Dehennin | |
9 | 2 | Daniel Dehennin | Ce système peut se reposer sur un système de snapshot : on installe un système de base, propre, et la compilation se fait dans un snapshot temporarire de ce système. |
10 | 2 | Daniel Dehennin | |
11 | 2 | Daniel Dehennin | Cela permet de lancer des compilations en parallèles au besoin. |
12 | 2 | Daniel Dehennin | |
13 | 2 | Daniel Dehennin | Deux méthodes sont utilisables pour la mise en place des snapshots : |
14 | 2 | Daniel Dehennin | |
15 | 1 | Daniel Dehennin | * [[eole:GitPackagingSbuildLVM|avec LVM]] |
16 | 1 | Daniel Dehennin | * [[eole:GitPackagingSbuildBtrfs|avec le système de fichier btrfs]] |
17 | 2 | Daniel Dehennin | |
18 | 2 | Daniel Dehennin | |
19 | 2 | Daniel Dehennin | Lorsque les schroots sont en place et sbuild configuré, la compilation d’un paquet peut se dérouler comme suit : |
20 | 2 | Daniel Dehennin | |
21 | 2 | Daniel Dehennin | <pre> |
22 | 2 | Daniel Dehennin | buildd@build:~$ sudo apt-get install git-core git-buildpackage fakeroot build-essential debhelper cdbs |
23 | 2 | Daniel Dehennin | buildd@build:~$ git clone http://dev-eole.ac-dijon.fr/git/eole-debsums |
24 | 2 | Daniel Dehennin | buildd@build:~$ cd eole-debsums |
25 | 2 | Daniel Dehennin | buildd@build:~$ git checkout -b dist/ubuntu/lucid/build origin/dist/ubuntu/lucid/master |
26 | 2 | Daniel Dehennin | buildd@build:~$ git buildpackage --git-builder="sbuild -A -d eole2.3-dev" --git-cleaner=/bin/true |
27 | 2 | Daniel Dehennin | </pre> |