Mailing List Archive

USE flags & how to tell
Would I definitely want to enable the mysql global USE flag (for
example) because I have and use mysql on my server? If you have and
use a package like mysql, do you turn on the USE flag, or do you
decide on a per-package basis (package.use), or something else?

- Grant

--
gentoo-user@gentoo.org mailing list
Re: USE flags & how to tell [ In reply to ]
On Thu, 16 Sep 2004, Grant wrote:

> Would I definitely want to enable the mysql global USE flag (for
> example) because I have and use mysql on my server? If you have and
> use a package like mysql, do you turn on the USE flag, or do you
> decide on a per-package basis (package.use), or something else?

Packages have default USE settings which can see by using the --pretend
flag to emerge. You can also specify on a per-package basis what USE flags
to set (if they are different from the default).

All of this is documented on the Gentoo site and in the portage man page
(man portage).


--
Aj.
Sys. Admin / Developer

--
gentoo-user@gentoo.org mailing list
Re: USE flags & how to tell [ In reply to ]
* On Thu Sep-16-2004 at 03:45:40 AM +0000, Grant said:
> Would I definitely want to enable the mysql global USE flag (for
> example) because I have and use mysql on my server? If you have and
> use a package like mysql, do you turn on the USE flag, or do you
> decide on a per-package basis (package.use), or something else?

I would say that it is safe to put mysql in USE in /etc/make.conf since
you most likely want most apps compiled with support for mysql.

But be sure to check (emerge -pv foo) for individual packages (at
/least/ the first time you install them).

An example from my system, which may or may not be relevant for you, is
that I compile php with mysql support (I have mysql in USE in make.conf)
but since I've had problems with dspam using mysql as a data store, I
disable it for that package.

sjs@diavolo ~ % grep dspam /etc/portage/package.use
mail-filter/dspam -mysql
sjs@diavolo ~ % egrep '(mysql|USE)' /etc/make.conf
USE="mmx 3dnow sse java imap maildir mbox apache2 mysql sasl xosd

Hope this was useful.

--
Sami Samhuri
Re: USE flags & how to tell [ In reply to ]
quoth the Ajai Khattri:

> Packages have default USE settings which can see by using the --pretend
> flag to emerge. You can also specify on a per-package basis what USE flags
> to set (if they are different from the default).

-p or --pretend does not reveal the use flags, you need to use -v for verbose,
along with the -p flag will show you which use flags are currently set and
which are not utilized.

-d
--
Part of the problem since 1976
http://badcomputer.no-ip.com
Get my public key from
http://keyserver.linux.it/pks/lookup?op=index&search=bulliver
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972