Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
tuto:virtualisation:compiler_la_derniere_version_de_libvirt [22/06/2010 20:00] dani Page moved from virt:compiler_la_derniere_version_de_libvirt to compiler_la_derniere_version_de_libvirt |
tuto:virtualisation:compiler_la_derniere_version_de_libvirt [12/07/2012 23:30] (Version actuelle) dani Page moved from compiler_la_derniere_version_de_libvirt to tuto:virtualisation:compiler_la_derniere_version_de_libvirt |
||
---|---|---|---|
Ligne 31: | Ligne 31: | ||
Normalement, | Normalement, | ||
On passe juste certains arguments, qui désactive les fonctions non utilisées | On passe juste certains arguments, qui désactive les fonctions non utilisées | ||
+ | |||
+ | À partir de la v 0.8.1, il faut faire une toute petite modification du fichier spec, un test doit être désactivé, | ||
+ | |||
+ | Chercher la section | ||
+ | <code bash> | ||
+ | for i in nodeinfotest daemon-conf seclabeltest | ||
+ | do | ||
+ | rm -f $i | ||
+ | printf "# | ||
+ | chmod +x $i | ||
+ | done | ||
+ | </ | ||
+ | et la remplacer par | ||
+ | <code bash> | ||
+ | for i in nodeinfotest daemon-conf seclabeltest interfaceschematest | ||
+ | do | ||
+ | rm -f $i | ||
+ | printf "# | ||
+ | chmod +x $i | ||
+ | done | ||
+ | </ | ||
< | < | ||
Ligne 36: | Ligne 57: | ||
--without lxc --without vbox --without esx \ | --without lxc --without vbox --without esx \ | ||
--without phyp --without one --without avahi \ | --without phyp --without one --without avahi \ | ||
- | --without openvz --without uml" | + | --without openvz --without uml --with nwfilter \ |
+ | --with libpcap" | ||
</ | </ | ||
Certaines dépendances seront demandés | Certaines dépendances seront demandés | ||
- | On peut également construire le rpm pour de l'i386 en rajoutant l'argument | + | |
+ | ===== solution alternative ===== | ||
+ | Pour compiler avec un serveur | ||
+ | <hidden Patch pour le fichier spec> | ||
+ | <code diff> | ||
+ | --- F/ | ||
+ | +++ F/ | ||
+ | @@ -107,6 +107,14 @@ | ||
+ | | ||
+ | | ||
+ | |||
+ | +# Custom Firewall-Services | ||
+ | +%if 0%{?rhel} == 5 | ||
+ | +%define with_avahi 0 | ||
+ | +%define with_xen 0 | ||
+ | +%define with_esx 0 | ||
+ | +%endif | ||
+ | +# End customization | ||
+ | + | ||
+ | # RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen | ||
+ | # on all archs. Other archs all have LXC available though | ||
+ | %if 0%{?rhel} >= 6 | ||
+ | @@ -177,7 +185,7 @@ | ||
+ | | ||
+ | |||
+ | # Force QEMU to run as non-root | ||
+ | -%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 | ||
+ | +%if 0%{?fedora} >= 12 || 0%{?rhel} >= 5 | ||
+ | | ||
+ | | ||
+ | | ||
+ | @@ -705,7 +713,7 @@ | ||
+ | | ||
+ | cd tests | ||
+ | # These 3 tests don't current work in a mock build root | ||
+ | -for i in nodeinfotest daemon-conf seclabeltest | ||
+ | +for i in virshtest nodeinfotest daemon-conf seclabeltest interfaceschematest | ||
+ | do | ||
+ | rm -f $i | ||
+ | | ||
+ | </ | ||
+ | </ | ||