Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using custom configure parameters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 146
Location: Ohio

PostPosted: Tue Apr 29, 2003 1:26 am    Post subject: Using custom configure parameters Reply with quote

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


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue Apr 29, 2003 1:50 am    Post subject: Reply with quote

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
View user's profile Send private message
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 146
Location: Ohio

PostPosted: Tue Apr 29, 2003 11:05 am    Post subject: Reply with quote

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


Joined: 18 Feb 2003
Posts: 597
Location: Silver City, NM

PostPosted: Tue Apr 29, 2003 11:25 am    Post subject: Reply with quote

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


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Apr 29, 2003 11:46 am    Post subject: Reply with quote

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. :wink:
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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