This is Interesting: Free IT Magazines  
Home > Archive > Gentoo Linux forum > February 2005 > Howto send configure options through portage??





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Howto send configure options through portage??
Casper A

2005-02-10, 7:45 am

Hi,

I'm still new to Gentoo, so I'm still having a bit of a fight with
portage...


I'm trying to install freeTDS, and I need to change som basic settings
in it. To do this I "simply" set a couple of configure options, i.e.:

../configure --sysconfdir=DIR --with-tdsver=VER etc...

But when I do a “$emerge freetds“, I don't get anywhere near the
../configure command. So where and how do I put these options so that
they are passed to the configure script, when portage gets to it??

I thought about putting them in the USE flags, but that's not quite the
same is it? The way I understand it, the USE flags are more like options
for the make commmand not the configure - am I right?

An other thing; when I (hopefully) have the configure options in place,
how do I tell portage to re-build the package? I know I could unmerge
it, and then re-emerge it. But that seems kind of stupid, there must be
an smarter way...

Best regards

Casper Angelo
micromoog

2005-02-10, 5:45 pm

> [asking how to manually run the "configure" part of an emerge]

http://www.gentoo.org/doc/en/faq.xml#configure

MikeyD

2005-02-10, 5:45 pm

Casper A wrote:

> Hi,
>
> I'm still new to Gentoo, so I'm still having a bit of a fight with
> portage...
>
>
> I'm trying to install freeTDS, and I need to change som basic settings
> in it. To do this I "simply" set a couple of configure options, i.e.:
>
> ./configure --sysconfdir=DIR --with-tdsver=VER etc...
>
> But when I do a “$emerge freetds“, I don't get anywhere near the
> ./configure command. So where and how do I put these options so that
> they are passed to the configure script, when portage gets to it??
>
> I thought about putting them in the USE flags, but that's not quite the
> same is it? The way I understand it, the USE flags are more like options
> for the make commmand not the configure - am I right?


Nope. Well, it all depends really. But usually, a use flag will just affect
the arguments to configure, and nothing else. If it's not right, a
quick-and-dirty solution is just to edit the ebuild and add the option you
need. (But really, if there's something people are going to want to choose,
there should be a USE flag for it)
>
> An other thing; when I (hopefully) have the configure options in place,
> how do I tell portage to re-build the package? I know I could unmerge
> it, and then re-emerge it. But that seems kind of stupid, there must be
> an smarter way...
>

Just emerge it, portage has enough sense to unmerge the currently installed
version automatically

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2010 webservertalk.com