Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EBUILD: passare target e prefix ad econf [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rakim
Apprentice
Apprentice


Joined: 08 Mar 2005
Posts: 231

PostPosted: Thu Mar 23, 2006 11:21 am    Post subject: EBUILD: passare target e prefix ad econf [risolto] Reply with quote

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
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Thu Mar 23, 2006 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Mar 23, 2006 1:47 pm    Post subject: Reply with quote

Quoto morellik, comunque il software installato da un ebuild non dovrebbe andare in /usr/local.
_________________
Running Fast!
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Thu Mar 23, 2006 2:02 pm    Post subject: Reply with quote

Infatti la locazione ufficiale per pacchetti non standard è /opt.

morellik
Back to top
View user's profile Send private message
rakim
Apprentice
Apprentice


Joined: 08 Mar 2005
Posts: 231

PostPosted: Thu Mar 23, 2006 4:26 pm    Post subject: Reply with quote

@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
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Thu Mar 23, 2006 4:41 pm    Post subject: Reply with quote

Prova ad utilizzare lo stesso ./configure al posto di econf.

Code:

./configure --prefix=/usr/local \
                --target=mipsel-linux || die



morellik
Back to top
View user's profile Send private message
rakim
Apprentice
Apprentice


Joined: 08 Mar 2005
Posts: 231

PostPosted: Thu Mar 23, 2006 7:08 pm    Post subject: Reply with quote

Grazie, morellik, risolto!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum