public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Per package use flags?
@ 2003-06-30 10:58 Michael Kohl
  2003-06-30 11:03 ` Patrick Kursawe
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Michael Kohl @ 2003-06-30 10:58 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]

1. What?

Ok, I've found my set of useflags, and acutally I'm pretty happy with
it. But there are some packages which I *always* compile a little
different then the rest of my system (e.g. and don't need every feature
and his grandmother for my mod_php test install on my laptop). So I do
have to 

#USE="-foo bar" emerge foo-bar

Works, but is not really that nice, especially when you're like me and
forget things like this once in a while.

2. Proposed solution:

A file /etc/portage/custom.use (or however you want to call it), that is
somewhat similar to package.mask (or /etc/portage/package.mask for that
matter as it overrides the standard settings), which contains one entry
per line in the form of:

foo-bar/foobar "-foo bar"

So when I emerge a package and portage finds an entry for it in this
file, the useflags will be put in the environment (USE_ORDER =
env:conf:auto:defaults), like the statement 

#USE="..." emerge ... 

would have done.

3. You lazy...

Yeah, I know, all talk no code, but I'm fairly with Python, and after my
first look Portage seemed a little to complicated as a beginner's task
(at least for me). Although at the moment I have no access to a test box
and don't want to fry my main system...

Comments?
Michael

-- 
www.cargal.org 
GnuPG-key-ID: 0x90CA09E3
Jabber-ID: citizen428 [at] cargal [dot] org
Registered Linux User #278726

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
@ 2003-06-30 11:03 ` Patrick Kursawe
  2003-06-30 11:12   ` Michael Kohl
  2003-06-30 11:24   ` Georgi Georgiev
  2003-06-30 11:34 ` Panard
                   ` (4 subsequent siblings)
  5 siblings, 2 replies; 13+ messages in thread
From: Patrick Kursawe @ 2003-06-30 11:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

On Mon, Jun 30, 2003 at 06:58:55PM +0800, Michael Kohl wrote:
> 2. Proposed solution:
> 
> A file /etc/portage/custom.use (or however you want to call it), that is
> somewhat similar to package.mask (or /etc/portage/package.mask for that
> matter as it overrides the standard settings), which contains one entry
> per line in the form of:
> 
> foo-bar/foobar "-foo bar"

Sounds nice, was already proposed a while ago. I would really like it.

Bye, Patrick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 11:03 ` Patrick Kursawe
@ 2003-06-30 11:12   ` Michael Kohl
  2003-06-30 11:24   ` Georgi Georgiev
  1 sibling, 0 replies; 13+ messages in thread
From: Michael Kohl @ 2003-06-30 11:12 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

On Mon, 30 Jun 2003 13:03:14 +0200
Patrick Kursawe <phosphan@gentoo.org> wrote:

> Sounds nice, was already proposed a while ago.

Yeah, I also thought that it somehow sounds familiar. That's why I had a
look at the Portage Guide, the Useflag Howto and the manpage of
make.conf before posting, because I believed to remember that something
like this is already possible. But as I didn't find anything I posted it
here.

Michael

-- 
www.cargal.org 
GnuPG-key-ID: 0x90CA09E3
Jabber-ID: citizen428 [at] cargal [dot] org
Registered Linux User #278726

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 11:03 ` Patrick Kursawe
  2003-06-30 11:12   ` Michael Kohl
@ 2003-06-30 11:24   ` Georgi Georgiev
  1 sibling, 0 replies; 13+ messages in thread
From: Georgi Georgiev @ 2003-06-30 11:24 UTC (permalink / raw
  To: gentoo-dev; +Cc: Patrick Kursawe

[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]

On 30/06/2003 at 13:03:14(+0200), Patrick Kursawe used 0.9K just to say:
> On Mon, Jun 30, 2003 at 06:58:55PM +0800, Michael Kohl wrote:
> > 2. Proposed solution:
> > 
> > A file /etc/portage/custom.use (or however you want to call it), that is
> > somewhat similar to package.mask (or /etc/portage/package.mask for that
> > matter as it overrides the standard settings), which contains one entry
> > per line in the form of:
> > 
> > foo-bar/foobar "-foo bar"
> 
> Sounds nice, was already proposed a while ago. I would really like it.

I'd join and say that I'd really like to see such a feature as well. Currently
I keep a list in /var/db/warning-rebuild that says

vpopmail        USE=-mysql
courier-imap    USE=-mysql

because these two packages become hardly usable (in my setup) if compiled with
mysql support.

-- 
\    Georgi Georgiev   \  The real problem with hunting elephants is   \
/     chutz@gg3.net    /  carrying the decoys.                         /
\   +81(90)6266-1163   \                                               \

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
  2003-06-30 11:03 ` Patrick Kursawe
@ 2003-06-30 11:34 ` Panard
  2003-06-30 11:39   ` Michael Kohl
  2003-06-30 12:04 ` Thomas de Grenier de Latour
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 13+ messages in thread
From: Panard @ 2003-06-30 11:34 UTC (permalink / raw
  To: gentoo-dev

Hi,

I've done something like this a few month ago:
look at :
http://data.inzenet.org/gentoo

place the emerge-interactive in /usr/lib/portage/bin
then use 
$ emerge-interactive -I <package>

Panard

Le Lundi 30 Juin 2003 12:58, Michael Kohl a écrit :
>  1. What?
>
>  Ok, I've found my set of useflags, and acutally I'm pretty happy with
>  it. But there are some packages which I *always* compile a little
>  different then the rest of my system (e.g. and don't need every feature
>  and his grandmother for my mod_php test install on my laptop). So I do
>  have to
>
>  #USE="-foo bar" emerge foo-bar
>
>  Works, but is not really that nice, especially when you're like me and
>  forget things like this once in a while.
>
>  2. Proposed solution:
>
>  A file /etc/portage/custom.use (or however you want to call it), that is
>  somewhat similar to package.mask (or /etc/portage/package.mask for that
>  matter as it overrides the standard settings), which contains one entry
>  per line in the form of:
>
>  foo-bar/foobar "-foo bar"
>
>  So when I emerge a package and portage finds an entry for it in this
>  file, the useflags will be put in the environment (USE_ORDER =
>  env:conf:auto:defaults), like the statement
>
>  #USE="..." emerge ...
>
>  would have done.
>
>  3. You lazy...
>
>  Yeah, I know, all talk no code, but I'm fairly with Python, and after my
>  first look Portage seemed a little to complicated as a beginner's task
>  (at least for me). Although at the moment I have no access to a test box
>  and don't want to fry my main system...
>
>  Comments?
>  Michael

-- 
________________________________________________________
         panard@inzenet.org                http://www.inzenet.org

"Computers are like air-conditioners, they stop working properly when you open 
Windows."


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 11:34 ` Panard
@ 2003-06-30 11:39   ` Michael Kohl
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Kohl @ 2003-06-30 11:39 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

On Mon, 30 Jun 2003 13:34:29 +0200
Panard <panard@inzenet.org> wrote:

> I've done something like this a few month ago:
> look at :
> http://data.inzenet.org/gentoo

Ok, that's why I remembered something... :)

Thanks for the link, but I'd really love to see an "official" Gentoo
solution, and I think that a file in /etc/portage that works similar to
package.mask fits well with the Gentoo way of doing things.

Michael

-- 
www.cargal.org 
GnuPG-key-ID: 0x90CA09E3
Jabber-ID: citizen428 [at] cargal [dot] org
Registered Linux User #278726

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 15:27 ` Svyatogor
@ 2003-06-30 11:53   ` Michael Kohl
  2003-06-30 11:55   ` Patrick Kursawe
  1 sibling, 0 replies; 13+ messages in thread
From: Michael Kohl @ 2003-06-30 11:53 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

On 30 Jun 2003 15:27:58 +0000
Svyatogor <svyatogor@gentoo.org> wrote:

> Are you really rebuilding mod_php and others so many time that you're
> tired to write USE=..... ? 

No, but xmms has a new version once in a while (and I compile it -gnome,
unlike the rest of my system).

> but I don't get the point of the proposal.

Define it once and never think about it again unless I have to. That's
why you can put your sound card settings in make.conf so you don't have
to think about it when you emerge alsa-driver.

Michael

-- 
www.cargal.org 
GnuPG-key-ID: 0x90CA09E3
Jabber-ID: citizen428 [at] cargal [dot] org
Registered Linux User #278726

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 15:27 ` Svyatogor
  2003-06-30 11:53   ` Michael Kohl
@ 2003-06-30 11:55   ` Patrick Kursawe
  1 sibling, 0 replies; 13+ messages in thread
From: Patrick Kursawe @ 2003-06-30 11:55 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

On Mon, Jun 30, 2003 at 03:27:58PM +0000, Svyatogor wrote:
> Are you really rebuilding mod_php and others so many time that you're
> tired to write USE=..... ? I guess the packages are not supposed to be
> reinstalled every now and then. Correct me if I'm wrong, but I don't get
> the point of the proposal.

Even if I didn't propose it, I'll answer:
If there's a package for which you need special USE flags, you have
for example to be careful that you don't re-emerge it by an
emerge -u world
because it would be built with the wrong flags.
If you had a file where you could save the exceptions from the rule,
it would be more consistant and comfortable.

Bye, Patrick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
  2003-06-30 11:03 ` Patrick Kursawe
  2003-06-30 11:34 ` Panard
@ 2003-06-30 12:04 ` Thomas de Grenier de Latour
  2003-06-30 12:55 ` Alastair Tse
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Thomas de Grenier de Latour @ 2003-06-30 12:04 UTC (permalink / raw
  To: gentoo-dev

On Mon, 30 Jun 2003 18:58:55 +0800
Michael Kohl <citizen428@cargal.org> wrote:

> 2. Proposed solution:
> 
> A file /etc/portage/custom.use <snip>

Another approach would be to recall the difference between system USE
value and actual USE value when you emerge something. Assume your
system settings (default + make.conf) is USE="a b c", and you do a:
 # USE="+d -b" emerge foo/bar
Instead of only recording "a c d" in /var/db/pkg/foo/bar-x.x/USE, we
would also write "+d -b" in /var/db/pkg/foo/bar-x.x/USE_DELTA, and then,
when foo/bar has to be updated, this USE_DELTA would be added to the
default USE flag lists. This way there would be no need to edit any file
before emerging. A command line option for emerge to forget the
USE_DELTA would also probably be needed, so that: 
 # USE="+e" emerge -u foo/bar
would modify the USE_DELTA to "+d -b +e", whereas:
 # USE="+e" emerge -u --reset-use-delta foo/bar
would set it to "+e" only.

I think I've already seen this proposition (or something very close)
on a bug report, but I've not found it again.

-- 
TGL, also talking without coding.

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
                   ` (2 preceding siblings ...)
  2003-06-30 12:04 ` Thomas de Grenier de Latour
@ 2003-06-30 12:55 ` Alastair Tse
  2003-06-30 13:04   ` Michael Kohl
  2003-06-30 13:49 ` Max Kalika
  2003-06-30 15:27 ` Svyatogor
  5 siblings, 1 reply; 13+ messages in thread
From: Alastair Tse @ 2003-06-30 12:55 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]

On Mon, 2003-06-30 at 11:58, Michael Kohl wrote:
> A file /etc/portage/custom.use (or however you want to call it), that is
> somewhat similar to package.mask (or /etc/portage/package.mask for that
> matter as it overrides the standard settings), which contains one entry
> per line in the form of:
> 
> foo-bar/foobar "-foo bar"

This is very similar to what has been frequently referred to "sticky
useflags". Just a quick search on bugzilla yields this:

http://bugs.gentoo.org/show_bug.cgi?id=3252

Yes, a very old bug but a quite desirable feature.

In a nutshell, when upgrading, useflags from a previous merge are used
instead of the current useflags, unless explicitly overridden.

You proposed system requires more manual effort on the user's part to
edit the /etc/portage/use.custom. Which is good in a way because it
gives predictability.

Note that this would be useful in implementing "server" and "client"
useflags for packages.

Cheers,
-- 
Alastair 'liquidx' Tse
 >> Gentoo Developer
 >> http://www.liquidx.net/ | http://cvs.gentoo.org/~liquidx/
 >> GPG Key : http://cvs.gentoo.org/~liquidx/liquidx_gentoo_org.asc
 >> FingerPrint : 579A 9B0E 43E8 0E40 EE93  BB1C 38CE 1C7B 3907 14F6


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 12:55 ` Alastair Tse
@ 2003-06-30 13:04   ` Michael Kohl
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Kohl @ 2003-06-30 13:04 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

On 30 Jun 2003 13:55:17 +0100
Alastair Tse <liquidx@gentoo.org> wrote:

> You proposed system requires more manual effort on the user's part to
> edit the /etc/portage/use.custom. Which is good in a way because it
> gives predictability.

And this predictability is nice, isn't it? I don't think that
maintaining the file would be a large amount of work, if you really
got a lot of entries there you should start thinking about changing your
make.conf anyway...

Michael

-- 
www.cargal.org 
GnuPG-key-ID: 0x90CA09E3
Jabber-ID: citizen428 [at] cargal [dot] org
Registered Linux User #278726

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
                   ` (3 preceding siblings ...)
  2003-06-30 12:55 ` Alastair Tse
@ 2003-06-30 13:49 ` Max Kalika
  2003-06-30 15:27 ` Svyatogor
  5 siblings, 0 replies; 13+ messages in thread
From: Max Kalika @ 2003-06-30 13:49 UTC (permalink / raw
  To: gentoo-dev

Quoting Michael Kohl <citizen428@cargal.org>:

> 1. What?

I actually cooked up and have been maintaining a patch for this kind of
functionality.  It doesn't add a new file, but rather augments the current
USE="" variable syntax where you can provide a package for your use flags
as such:

  USE="blah stuff such ( cat/pkg -blah -such ) more flags"

So there are 5 global flags ("+blah +stuff +such +more +flags") except for
the specific package cat/pkg which turns off "-blah -such".

  Please see:  <http://bugs.gentoo.org/show_bug.cgi?id=13616>

---max kalika
--max@lsit.ucsb.edu
-lsit systems administrator

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Per package use flags?
  2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
                   ` (4 preceding siblings ...)
  2003-06-30 13:49 ` Max Kalika
@ 2003-06-30 15:27 ` Svyatogor
  2003-06-30 11:53   ` Michael Kohl
  2003-06-30 11:55   ` Patrick Kursawe
  5 siblings, 2 replies; 13+ messages in thread
From: Svyatogor @ 2003-06-30 15:27 UTC (permalink / raw
  To: gentoo-dev

Are you really rebuilding mod_php and others so many time that you're
tired to write USE=..... ? I guess the packages are not supposed to be
reinstalled every now and then. Correct me if I'm wrong, but I don't get
the point of the proposal.

В ?? 30.06.2003, в 10:58, Michael Kohl пишет:
> 1. What?
> 
> Ok, I've found my set of useflags, and acutally I'm pretty happy with
> it. But there are some packages which I *always* compile a little
> different then the rest of my system (e.g. and don't need every feature
> and his grandmother for my mod_php test install on my laptop). So I do
> have to 
> 
> #USE="-foo bar" emerge foo-bar
> 
> Works, but is not really that nice, especially when you're like me and
> forget things like this once in a while.
-- 
Let the Force be with us!
Sergey Kuleshov <svyatogor@gentoo.org>


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-06-30 13:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-30 10:58 [gentoo-dev] Per package use flags? Michael Kohl
2003-06-30 11:03 ` Patrick Kursawe
2003-06-30 11:12   ` Michael Kohl
2003-06-30 11:24   ` Georgi Georgiev
2003-06-30 11:34 ` Panard
2003-06-30 11:39   ` Michael Kohl
2003-06-30 12:04 ` Thomas de Grenier de Latour
2003-06-30 12:55 ` Alastair Tse
2003-06-30 13:04   ` Michael Kohl
2003-06-30 13:49 ` Max Kalika
2003-06-30 15:27 ` Svyatogor
2003-06-30 11:53   ` Michael Kohl
2003-06-30 11:55   ` Patrick Kursawe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox