View previous topic :: View next topic |
Author |
Message |
professorn Apprentice
Joined: 18 Sep 2003 Posts: 235 Location: Stockholm, Sweden
|
Posted: Sat Oct 04, 2003 7:52 pm Post subject: Do an emerge and sen commands to ./configure? |
|
|
How do i send commands to the ./configure script when i do an emerge? |
|
Back to top |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Sat Oct 04, 2003 7:54 pm Post subject: |
|
|
you can edit the ebuild for the app that you are trying to emerge.
chris |
|
Back to top |
|
|
professorn Apprentice
Joined: 18 Sep 2003 Posts: 235 Location: Stockholm, Sweden
|
Posted: Sat Oct 04, 2003 8:10 pm Post subject: |
|
|
Ok, but I dont get it
Do you mean i shal edit the files in the prtage tree ? |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Sat Oct 04, 2003 8:34 pm Post subject: |
|
|
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 |
|
|
CMI Apprentice
Joined: 19 Aug 2003 Posts: 205
|
Posted: Sat Oct 04, 2003 10:46 pm Post subject: |
|
|
Devs, any chance of something like "emerge app -config "--prefix=/usr"" type thing happening in the future? |
|
Back to top |
|
|
nikai Apprentice
Joined: 02 Oct 2002 Posts: 270 Location: Kitzbühel, Austria
|
Posted: Sat Oct 04, 2003 11:23 pm Post subject: |
|
|
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 |
|
|
professorn Apprentice
Joined: 18 Sep 2003 Posts: 235 Location: Stockholm, Sweden
|
Posted: Sun Oct 05, 2003 8:07 am Post subject: |
|
|
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 |
|
|
nikai Apprentice
Joined: 02 Oct 2002 Posts: 270 Location: Kitzbühel, Austria
|
Posted: Sun Oct 05, 2003 8:58 am Post subject: |
|
|
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 |
|
|
|