Discussion:Freepbx Asterix : Différence entre versions
(2 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 21 : | Ligne 21 : | ||
rpmbuild -bb dahdi-linux.spec --without extras | rpmbuild -bb dahdi-linux.spec --without extras | ||
+ | |||
rpmbuild -ba dahdi-linux.spec --without extras | rpmbuild -ba dahdi-linux.spec --without extras | ||
le patch extras fais des erreurs de compilation. comme je n'ai pas les cartes pour ces drivers je me casse pas la tete | le patch extras fais des erreurs de compilation. comme je n'ai pas les cartes pour ces drivers je me casse pas la tete | ||
+ | |||
+ | pour les requires inutiles rpmbuild (chez sourceforge est votre ami) | ||
+ | |||
+ | rpmrebuild --package --edit-requires dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm | ||
+ | |||
+ | __________________________ | ||
+ | |||
+ | apres tergiversation ne pas prendre les versions chez atrpms mais plutot les sources el4 chez contribs | ||
+ | |||
+ | il faut rajouter les chemins des fichiers je ne sais pas pourquoi.. mais c'est necessaire. le spec fait une erreur de construction sinon | ||
+ | Erreur de construction de RPM: | ||
+ | Fichier(s) installé(s) (mais non empaquetés): | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_eth.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_ethmf.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_loc.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_jpah.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_kb1.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_mg2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_transcode.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_vpmadt032_loader.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/pciradio.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/tor2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/voicebus/dahdi_voicebus.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcb4xxp/wcb4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcfxo.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct1xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct4xxp/wct4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctc4xxp/wctc4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm24xxp/wctdm24xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte11xp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte12xp/wcte12xp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_bri.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxo.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxs.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_pri.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp_usb.ko | ||
+ | |||
+ | ajouter après ceci: | ||
+ | |||
+ | %files -n %kmdl_name | ||
+ | %defattr(-,root,root,-) | ||
+ | %{kmdl_moduledir} | ||
+ | |||
+ | les chemins suivants dans le spec | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_eth.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_ethmf.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_loc.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_jpah.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_kb1.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_mg2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_transcode.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_vpmadt032_loader.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/pciradio.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/tor2.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/voicebus/dahdi_voicebus.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcb4xxp/wcb4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcfxo.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct1xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct4xxp/wct4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctc4xxp/wctc4xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm24xxp/wctdm24xxp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte11xp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte12xp/wcte12xp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_bri.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxo.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxs.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_pri.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp.ko | ||
+ | /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp_usb.ko | ||
+ | avant ceci : | ||
+ | |||
+ | %endif | ||
+ | |||
+ | %changelog | ||
+ | |||
+ | |||
+ | puis en voiture simone | ||
+ | cd /usr/src/redhat/SPECS | ||
+ | rpmbuild -ba dahdi-linux.spec --without extras --define 'dist .centos4' | ||
+ | |||
+ | suivit de | ||
+ | cd ../RPMS/i386 | ||
+ | rpmrebuild --package --edit-requires dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm | ||
+ | |||
+ | moi j'ai enlevé les dependances au kernel qui etaient inexactes (il a mangé ma sous version perso ) | ||
+ | |||
+ | puis | ||
+ | yum localinstall dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm |
Version actuelle en date du 10 mai 2011 à 02:12
a la mise a jour et malgrès mon kernel modifié qui ne s'upgrade pas j'ai
Error: Missing Dependency: dahdi-linux-kmdl-2.4.0-69.el4 is needed by package dahdi-linux Error: Missing Dependency: dahdi-linux = 2.2.1-66.el4 is needed by package dahdi-linux-kmdl-2.6.9-89.0.19.EL
or:
- rpm -qa |grep dahdi
dahdi-linux-kmdl-2.6.9-89.0.19.EL-2.2.1-66.el4 dahdi-tools-2.3.0-66.el4 dahdi-linux-2.2.1-66.el4 dahdi-linux-devel-2.3.0-68.el4
- uname -r
2.6.21
compilation de srpm atrpms dadhi-linux 2.4.0
rpmbuild -bb dahdi-linux.spec --without extras
rpmbuild -ba dahdi-linux.spec --without extras le patch extras fais des erreurs de compilation. comme je n'ai pas les cartes pour ces drivers je me casse pas la tete
pour les requires inutiles rpmbuild (chez sourceforge est votre ami)
rpmrebuild --package --edit-requires dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm
__________________________
apres tergiversation ne pas prendre les versions chez atrpms mais plutot les sources el4 chez contribs
il faut rajouter les chemins des fichiers je ne sais pas pourquoi.. mais c'est necessaire. le spec fait une erreur de construction sinon Erreur de construction de RPM:
Fichier(s) installé(s) (mais non empaquetés): /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_eth.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_ethmf.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_loc.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_jpah.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_kb1.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_mg2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_transcode.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_vpmadt032_loader.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/pciradio.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/tor2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/voicebus/dahdi_voicebus.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcb4xxp/wcb4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcfxo.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct1xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct4xxp/wct4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctc4xxp/wctc4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm24xxp/wctdm24xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte11xp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte12xp/wcte12xp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_bri.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxo.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxs.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_pri.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp_usb.ko
ajouter après ceci:
%files -n %kmdl_name %defattr(-,root,root,-) %{kmdl_moduledir}
les chemins suivants dans le spec
/lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_eth.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_ethmf.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_dynamic_loc.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_jpah.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_kb1.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_mg2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_echocan_sec2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_transcode.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/dahdi_vpmadt032_loader.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/pciradio.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/tor2.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/voicebus/dahdi_voicebus.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcb4xxp/wcb4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcfxo.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct1xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wct4xxp/wct4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctc4xxp/wctc4xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wctdm24xxp/wctdm24xxp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte11xp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/wcte12xp/wcte12xp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_bri.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxo.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_fxs.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpd_pri.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp.ko /lib/modules/2.6.21-rc5-git1SMEviaC7/dahdi/xpp/xpp_usb.ko
avant ceci :
%endif %changelog
puis en voiture simone
cd /usr/src/redhat/SPECS rpmbuild -ba dahdi-linux.spec --without extras --define 'dist .centos4'
suivit de
cd ../RPMS/i386 rpmrebuild --package --edit-requires dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm
moi j'ai enlevé les dependances au kernel qui etaient inexactes (il a mangé ma sous version perso )
puis
yum localinstall dahdi-linux-kmdl-2.6.21-rc5-git1-2.4.0-69.el4.i386.rpm