View previous topic :: View next topic |
Author |
Message |
braindead0 Tux's lil' helper
Joined: 29 Apr 2003 Posts: 146 Location: Ohio
|
Posted: Tue Apr 29, 2003 1:26 am Post subject: Using custom configure parameters |
|
|
How can I make emerge build a particular package with custom configure params? The immediate need I can see is for building apache and php, I know exactly what I need in the configure and I'd rather not get any unused 'fluff'
Seems to me their outta be an easy way to do this (short of injecting a dummy package into the portage). |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Tue Apr 29, 2003 1:50 am Post subject: |
|
|
The easiest way would probably be to copy the original ebuild, and its original directory structure, to /usr/local/portage. Then edit that ebuild and emerge it. |
|
Back to top |
|
|
braindead0 Tux's lil' helper
Joined: 29 Apr 2003 Posts: 146 Location: Ohio
|
Posted: Tue Apr 29, 2003 11:05 am Post subject: |
|
|
so if I do an emerge -f apache, copy (not move?) the apache source tree to /usr/local/portage (/apps-www/apache I think), edit the configure options...
Do I then simply do an emerge apache and it will use the ebuild in /usr/local/portage ?
Just making sure I've got this stuff straight |
|
Back to top |
|
|
Jimbow Guru
Joined: 18 Feb 2003 Posts: 597 Location: Silver City, NM
|
Posted: Tue Apr 29, 2003 11:25 am Post subject: |
|
|
You are making it too complicated. Do as ronman says: Code: | mkdir -p /usr/local/portage/apps-www
cd /usr/local/portage/apps-www
cp -a /usr/portage/apps-www/apache .
edit apache/apache-xxxx.ebuild
emerge apache/apache-xxx.ebuild |
As an alternative you could use the ebuild program (man ebuild) to emerge the package step by step, but I think ronmon's way is probably easier. You may need to add the following line to your make.conf: Code: | PORTDIR_OVERLAY="/usr/local/portage" |
_________________ After Perl everything else is just assembly language. |
|
Back to top |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Apr 29, 2003 11:46 am Post subject: |
|
|
From the Gentoo FAQ:
Quote: | I want to perform the ./configure step myself. Can I?
Yes, but it is not trivial. First do man ebuild followed by ebuild foo-x.y.z.ebuild unpack. Then cd to /var/tmp/portage/foo-x.y.z/work. You can manually perform the ./configure and make steps yourself (you'll have to do both, since Portage does not separate the configure and build steps). To have Portage finish the installation (so that you can easily remove it later, should you desire to do so, and it will be registered in Portage as a possible dependency) you first need to touch /var/tmp/portage/foo-x.y.z/.compiled (tricking Portage into thinking that ebuild foo-x.y.z.ebuild compile has completed), followed by ebuild foo-x.y.z.ebuild merge. | .
Also you might check this thread. _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
|
|