View previous topic :: View next topic |
Author |
Message |
rakim Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/131072915425087c5cb621.gif)
Joined: 08 Mar 2005 Posts: 231
|
Posted: Thu Mar 23, 2006 11:21 am Post subject: EBUILD: passare target e prefix ad econf [risolto] |
|
|
Dovendo fare un ebuild nella funzione src_compile mi vedo costretto a dover passare i parametri --prefix=/usr/local --target=mipsel-linux a ./configure.
Per fare questo dovrei utilizzare econf ma non so come fare a dirgli di utilizzarli non prendendo in considerazione quelli del make.conf
Last edited by rakim on Thu Mar 23, 2006 7:07 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morellik l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Thu Mar 23, 2006 12:58 pm Post subject: |
|
|
Credo ti possa usare direttamente econf con i parametri di cui parli.
Code: |
econf --prefix=/usr/local \
--target=mipsel-linux || die "conf fallito"
|
morellik |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Luca89 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15529267248502dd4c2bab.jpg)
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Thu Mar 23, 2006 1:47 pm Post subject: |
|
|
Quoto morellik, comunque il software installato da un ebuild non dovrebbe andare in /usr/local. _________________ Running Fast! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morellik l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Thu Mar 23, 2006 2:02 pm Post subject: |
|
|
Infatti la locazione ufficiale per pacchetti non standard è /opt.
morellik |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rakim Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/131072915425087c5cb621.gif)
Joined: 08 Mar 2005 Posts: 231
|
Posted: Thu Mar 23, 2006 4:26 pm Post subject: |
|
|
@morellik: magari fosse così semplice, il problema è che econf prende quei parametri (prefix e target) dal make.con e li aggiunge in coda ai parametri che vengono passati al ./configure sovrascrivendo quelli impostati manualmente!
Il problema si pone SOPRATTUTO per --target=mipsel-linux
Una soluzione poco pulita sarebbe quella di modificare il make.conf e subito dopo rimetterlo come era prima ma vorrei qualcosa di MOLTO più pulito!
@Luca89: la posizione è irrilevante |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morellik l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Thu Mar 23, 2006 4:41 pm Post subject: |
|
|
Prova ad utilizzare lo stesso ./configure al posto di econf.
Code: |
./configure --prefix=/usr/local \
--target=mipsel-linux || die
|
morellik |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rakim Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/131072915425087c5cb621.gif)
Joined: 08 Mar 2005 Posts: 231
|
Posted: Thu Mar 23, 2006 7:08 pm Post subject: |
|
|
Grazie, morellik, risolto! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|