Projet

Général

Profil

GitPackaging » Historique » Version 13

Daniel Dehennin, 30/01/2012 11:11
Déplacement du workflow dans une page dédiée

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