Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE questions
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
KAA
n00b
n00b


Joined: 12 Jul 2002
Posts: 14
Location: Kyiv

PostPosted: Wed Feb 12, 2003 8:49 am    Post subject: USE questions Reply with quote

Hi there

It seems that I misunderstood something about emerge usage.
Let's say if I need to set custom ./configure options for some ebuild, I should do as following:
#export USE='--with-some-option=value'
But it doesn't work in my case...
What am I doing wrong?

Thanks in advance
_________________
--
wbr, kaa
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 12, 2003 11:48 am    Post subject: Reply with quote

Remove the #

A # is a comment, anything on the line after it is ignored,
USE="....."
is the correct way to specify the flag.

A honest mistake :)
Back to top
View user's profile Send private message
KAA
n00b
n00b


Joined: 12 Jul 2002
Posts: 14
Location: Kyiv

PostPosted: Wed Feb 12, 2003 11:56 am    Post subject: USE questions Reply with quote

it's not that bad about me ;o)
i just wanted to show that i run command as root :)

any other ideas?
_________________
--
wbr, kaa
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 12, 2003 12:14 pm    Post subject: Reply with quote

Ahh my oops, sorry :D

Well you would normally issue the following
Code:
USE="-3dfx" emerge media-video/vlc

To emege VLC withough 3dfx support ( because that usually breaks it ).

So try using the above as opposed to exporting USE="..." because I think portage re-reads USE from the file unless specified on the command line.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Wed Feb 12, 2003 12:17 pm    Post subject: Reply with quote

I'm not sure, but it looks like you're confusing Gentoo USE flags and BSD-style USE entries in Makefiles. Have a look at the USE manual and tell us if that answers your question.
Back to top
View user's profile Send private message
KAA
n00b
n00b


Joined: 12 Jul 2002
Posts: 14
Location: Kyiv

PostPosted: Wed Feb 12, 2003 1:51 pm    Post subject: Reply with quote

yeap. looks like i really mistaken what USE is made for :o(

Then what should i do to make for example, mailman ebuild compile with option --with-cgi-gid=mailman, or mod_php compile without mysql support?
see what I mean?
There ususally lots of options which need tuning in each ebuild...
there must be a way out, I just can't find it... :o)
_________________
--
wbr, kaa
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 12, 2003 2:07 pm    Post subject: Reply with quote

Well all the configure options are actually processed in the ebuild files.
Code:
nano /usr/portage/<category>/<package>.ebuild


But that is a little long winded for each package.... But I think that is all you can do for it... Somethings such as mysql do have USE variables that cause this to happen, but not all possible ./configure options.
Back to top
View user's profile Send private message
KAA
n00b
n00b


Joined: 12 Jul 2002
Posts: 14
Location: Kyiv

PostPosted: Wed Feb 12, 2003 2:16 pm    Post subject: Reply with quote

thanks
that's exactly what i needed :)
_________________
--
wbr, kaa
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 12, 2003 2:18 pm    Post subject: Reply with quote

Look into the protected directory of ebuilds aswell, so that you can keep your modified files safe from emerge sync -ing the machine.
Back to top
View user's profile Send private message
plate
Bodhisattva
Bodhisattva


Joined: 25 Jul 2002
Posts: 1663
Location: Berlin

PostPosted: Wed Feb 12, 2003 2:36 pm    Post subject: Reply with quote

Hit me over the head with a blunt instrument if I'm completely off the rocker, but shouldn't
Code:
CFLAGS="--what-is-your-wish-master" emerge jeannie

do just that?
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 12, 2003 2:40 pm    Post subject: Reply with quote

It would if the CFLAGS are past to the ./configure script.
I am / was under the impression that they were not and hence did not work that way.
Back to top
View user's profile Send private message
KAA
n00b
n00b


Joined: 12 Jul 2002
Posts: 14
Location: Kyiv

PostPosted: Wed Feb 12, 2003 4:12 pm    Post subject: Reply with quote

BTW, cyfred, you've become guru today, greetings ;)
_________________
--
wbr, kaa
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