LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 11-08-2005, 05:17 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Gentoo emerge howto do ./configure --options-stuff via portage


Hi, I'm trying to install apache with the following source options:

--prefix=/directory
--enable-so
--enable-ssl
.....
etc etc.... (eg. ./configure --enable-ssl --enable-so....)

but I want to do this as an emerge package and set it permanently so that I can just re-emerge.upgrade it later and still use these options.

I'm a bit confused as to whether USE flags are the same thing, I expect they are but can't find it written in (R)TFM too clearly. And I can't see exactly what the use flags to get this would be. I could just edit the ebuild configure options but I need a longer term solution than this as I believe it will get overwritten at the next emerge --sync.

I've looked at the package.use file mentioned in the Portage Manual but it seems to be for the USE options for specific packages and I'm not sure that's what I need.

Any help please?
 
Old 11-08-2005, 05:34 AM   #2
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
I believe you would have to edit the ebuild yourself, but I am not certain. USE flags are not for this - they are for dependencies and support. For example, I want to build package "x" with "y" support, I would include "y" in my use flags. You could also build the software yourself and install it in a different location, like /opt, for example. Emerge would not be able to track it though. Have you asked this question in the Gentoo forums?
 
Old 11-08-2005, 07:10 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I've already looked at the ebuild but it's not a long term solution.

I di post on the gentoo forum just before this and got a reply at the same time as this. An extra_econf or overlay ebuild was suggested. back to the manuals...
 
Old 11-08-2005, 08:15 AM   #4
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I tried editing the ebuild but when I emerged it said:

!!! Digest verification Failed:
!!! /usr/portage/net-www/apache/apache-2.0.54-r31.ebuild
!!! Reason: Filesize does not match recorded size

and failed there.

How do I get around this?
 
Old 11-08-2005, 07:36 PM   #5
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
This may be what you are looking for - check it out: http://www.gentoo-wiki.com/HOWTO_Cre...Updated_Ebuild
 
Old 11-09-2005, 04:17 AM   #6
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
thanks for that, it helped. You're not supposed to edit ebuilds otherwise md5 fails, but I created an overlay and my own digests for it.

The really annoying thing is that you can't just simply add ./configure --options somehow.

Having to create a new ebuild for every version is not maintainable, going back to building from tarball....
 
Old 05-06-2008, 04:15 AM   #7
maximd
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by humbletech99 View Post
The really annoying thing is that you can't just simply add ./configure --options somehow.
You should use the "EXTRA_ECONF" variable, before launching emerge, like this :
Code:
EXTRA_ECONF="--enable-foo ......" emerge package
I found it on : The usage of this variable is explained here : http://www.gentoo.org/proj/en/devrel...ap=1#doc_chap2 in the "Helper functions" part.

Last edited by maximd; 05-06-2008 at 04:18 AM. Reason: Link to the source
 
Old 05-08-2008, 05:06 AM   #8
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I think I tried this at the time but I don't think it worked, anyway, I've stopped with this awful hackery now and am running stock apache from portage.
 
  


Reply

Tags
gentoo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphical Portage/Emerge GUI (Gentoo) BuckRogers01 Gentoo 37 06-03-2008 08:49 AM
KANOTIX , walkthough for installing gentoo portage & emerge on debian pure sid MaximalSbcYahoo Debian 2 04-01-2006 04:10 PM
Mandrake and emerge / portage Zwisel Linux - Distributions 9 12-20-2004 08:44 PM
Gentoo Newbie Help !!! Best Practices [emerge and stuff...] UsualTuxpect Linux - Software 4 10-13-2004 01:18 PM
No emerge, no portage, no nothing... KFM Linux - Distributions 3 10-09-2004 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration