Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do an emerge and sen commands to ./configure?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
professorn
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 235
Location: Stockholm, Sweden

PostPosted: Sat Oct 04, 2003 7:52 pm    Post subject: Do an emerge and sen commands to ./configure? Reply with quote

How do i send commands to the ./configure script when i do an emerge?
Back to top
View user's profile Send private message
ctford0
l33t
l33t


Joined: 25 Oct 2002
Posts: 774
Location: Lexington, KY,USA

PostPosted: Sat Oct 04, 2003 7:54 pm    Post subject: Reply with quote

you can edit the ebuild for the app that you are trying to emerge.

chris
Back to top
View user's profile Send private message
professorn
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 235
Location: Stockholm, Sweden

PostPosted: Sat Oct 04, 2003 8:10 pm    Post subject: Reply with quote

Ok, but I dont get it :oops:

Do you mean i shal edit the files in the prtage tree ?
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Sat Oct 04, 2003 8:34 pm    Post subject: Reply with quote

Yes, goto the directory that holds the ebuild in question, open it up and look for the src_compile function. Ebuilds differ to how they manage configure (some use econf, some parse with emake). It should be pretty easy to figure out as most ebuilds have a --prefix=/usr in there, so jus copy its syntax and you will be fine.

Any problems, then let us know which ebuild and what flags you want to append.
Back to top
View user's profile Send private message
CMI
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 205

PostPosted: Sat Oct 04, 2003 10:46 pm    Post subject: Reply with quote

Devs, any chance of something like "emerge app -config "--prefix=/usr"" type thing happening in the future?
Back to top
View user's profile Send private message
nikai
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 270
Location: Kitzbühel, Austria

PostPosted: Sat Oct 04, 2003 11:23 pm    Post subject: Reply with quote

CMI wrote:
Devs, any chance of something like "emerge app -config "--prefix=/usr"" type thing happening in the future?


Actually, this should already work for ebuilds that use "econf":
Code:
EXTRA_ECONF="--prefix=/usr" emerge app
Back to top
View user's profile Send private message
professorn
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 235
Location: Stockholm, Sweden

PostPosted: Sun Oct 05, 2003 8:07 am    Post subject: Reply with quote

How do i see if the app is using econf or not? Can I add a "-p" and see if it's working
Back to top
View user's profile Send private message
nikai
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 270
Location: Kitzbühel, Austria

PostPosted: Sun Oct 05, 2003 8:58 am    Post subject: Reply with quote

professorn wrote:
How do i see if the app is using econf or not?


Code:
find /usr/portage/ -name "app*.ebuild" | xargs grep -n "econf"


Usually looks like "econf || die" or "econf ${myconf} || die".

professorn wrote:
Can I add a "-p" and see if it's working


You can do that, but I prefer the analytic way ;)

Edit: Oh, just in case you mean "emerge -p", that doesn't tell you configure options. As far as I know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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