* [gentoo-dev] Add more local USE flags
@ 2010-03-18 12:39 Dmitry Bashkatov
2010-03-18 12:47 ` Samuli Suominen
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Bashkatov @ 2010-03-18 12:39 UTC (permalink / raw
To: gentoo-dev
Hello, gentoo devs! I have a little story about USE flags.
Almost every package in gentoo has USE flags. Many of them have clear
meaning. For example: <doc> builds package documentation, <qt> or
<gtk> build GUI frontend. Meaning of this flags is one for all
packages in portage. And this is described in use.desc file. But there
are many USE flags with fuzzy meaning. For example <java> USE flag of
package net-print/cups. What does it mean? Description file says "java
- Adds support for Java". But what kind of support is it? Build Java
bindings or build some optional tools written on Java? <python> flag —
"Adds support/bindings for the Python language" also doesn't asks on
my question about kind of support. Only ways to find out answer are
read ebuild and "./configure --help" or use other sources of
information like google. But this takes time. Very very many time when
installing system first time. Also this work already done by package
maintainer and there is no reason to repeat this for every user.
My suggestion is to take out all this per package USE flag vagueness
to use.local.desc file, so you can use
$ equery uses net-print/cups
+ + java : build java printing web-application
+ + python : build python bindings to libcups
This is only example, I really don't know what this flags mean here. =)
Another my suggestion is to extend ebuild format so package maintainer
can easily add use flag description.
What can you say about this? May be this is my delirium? And may be
only my gentooic brain need this sort of information about USE flags.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 12:39 [gentoo-dev] Add more local USE flags Dmitry Bashkatov
@ 2010-03-18 12:47 ` Samuli Suominen
2010-03-18 13:07 ` Dmitry Bashkatov
0 siblings, 1 reply; 9+ messages in thread
From: Samuli Suominen @ 2010-03-18 12:47 UTC (permalink / raw
To: gentoo-dev
On 03/18/2010 02:39 PM, Dmitry Bashkatov wrote:
> Hello, gentoo devs! I have a little story about USE flags.
> Almost every package in gentoo has USE flags. Many of them have clear
> meaning. For example: <doc> builds package documentation, <qt> or
> <gtk> build GUI frontend. Meaning of this flags is one for all
> packages in portage. And this is described in use.desc file. But there
> are many USE flags with fuzzy meaning. For example <java> USE flag of
> package net-print/cups. What does it mean? Description file says "java
> - Adds support for Java". But what kind of support is it? Build Java
> bindings or build some optional tools written on Java? <python> flag —
> "Adds support/bindings for the Python language" also doesn't asks on
> my question about kind of support. Only ways to find out answer are
> read ebuild and "./configure --help" or use other sources of
> information like google. But this takes time. Very very many time when
> installing system first time. Also this work already done by package
> maintainer and there is no reason to repeat this for every user.
>
> My suggestion is to take out all this per package USE flag vagueness
> to use.local.desc file, so you can use
> $ equery uses net-print/cups
> + + java : build java printing web-application
> + + python : build python bindings to libcups
> This is only example, I really don't know what this flags mean here. =)
> Another my suggestion is to extend ebuild format so package maintainer
> can easily add use flag description.
>
> What can you say about this? May be this is my delirium? And may be
> only my gentooic brain need this sort of information about USE flags.
>
This is already supported by metadata.xml local use flags, you can add
extended information as local use flag in addition to global use flag.
So I take this as a friendly reminder that maintainers should start
using the feature.
-Samuli
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 12:47 ` Samuli Suominen
@ 2010-03-18 13:07 ` Dmitry Bashkatov
2010-03-18 13:12 ` Samuli Suominen
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Bashkatov @ 2010-03-18 13:07 UTC (permalink / raw
To: gentoo-dev
> This is already supported by metadata.xml local use flags, you can add
> extended information as local use flag in addition to global use flag.
>
> So I take this as a friendly reminder that maintainers should start
> using the feature.
>
> -Samuli
It's cool! I did not know about this feature.
Is there a user friendly way to read this information from
metadata.xml? It seems that euse reads only use.desc and
use.local.desc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 13:07 ` Dmitry Bashkatov
@ 2010-03-18 13:12 ` Samuli Suominen
2010-03-18 13:13 ` Dmitry Bashkatov
2010-03-18 13:17 ` Thomas Kahle
0 siblings, 2 replies; 9+ messages in thread
From: Samuli Suominen @ 2010-03-18 13:12 UTC (permalink / raw
To: gentoo-dev
On 03/18/2010 03:07 PM, Dmitry Bashkatov wrote:
>> This is already supported by metadata.xml local use flags, you can add
>> extended information as local use flag in addition to global use flag.
>>
>> So I take this as a friendly reminder that maintainers should start
>> using the feature.
>>
>> -Samuli
>
> It's cool! I did not know about this feature.
> Is there a user friendly way to read this information from
> metadata.xml? It seems that euse reads only use.desc and
> use.local.desc.
>
use.local.desc is automatically generated from metadata.xml files, so
it's the same thing
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 13:12 ` Samuli Suominen
@ 2010-03-18 13:13 ` Dmitry Bashkatov
2010-03-18 13:17 ` Thomas Kahle
1 sibling, 0 replies; 9+ messages in thread
From: Dmitry Bashkatov @ 2010-03-18 13:13 UTC (permalink / raw
To: gentoo-dev
2010/3/18 Samuli Suominen <ssuominen@gentoo.org>:
> On 03/18/2010 03:07 PM, Dmitry Bashkatov wrote:
>>> This is already supported by metadata.xml local use flags, you can add
>>> extended information as local use flag in addition to global use flag.
>>>
>>> So I take this as a friendly reminder that maintainers should start
>>> using the feature.
>>>
>>> -Samuli
>>
>> It's cool! I did not know about this feature.
>> Is there a user friendly way to read this information from
>> metadata.xml? It seems that euse reads only use.desc and
>> use.local.desc.
>>
>
> use.local.desc is automatically generated from metadata.xml files, so
> it's the same thing
>
>
Thanks for your answers
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 13:12 ` Samuli Suominen
2010-03-18 13:13 ` Dmitry Bashkatov
@ 2010-03-18 13:17 ` Thomas Kahle
2010-03-19 1:06 ` Mike Frysinger
1 sibling, 1 reply; 9+ messages in thread
From: Thomas Kahle @ 2010-03-18 13:17 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
> use.local.desc is automatically generated from metadata.xml files, so
> it's the same thing
And this will soon be properly documented:
http://bugs.gentoo.org/show_bug.cgi?id=309963
--
Thomas Kahle
The fundamental theorem of algebra is open source. Like any other
mathematical theorem it can be applied free of charge and everybody
has access to its proof and can convince himself how it works. Why
should software be any different?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 380 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-18 13:17 ` Thomas Kahle
@ 2010-03-19 1:06 ` Mike Frysinger
2010-03-19 13:31 ` Thomas Kahle
0 siblings, 1 reply; 9+ messages in thread
From: Mike Frysinger @ 2010-03-19 1:06 UTC (permalink / raw
To: gentoo-dev; +Cc: Thomas Kahle
[-- Attachment #1: Type: Text/Plain, Size: 322 bytes --]
On Thursday 18 March 2010 09:17:43 Thomas Kahle wrote:
> > use.local.desc is automatically generated from metadata.xml files, so
> > it's the same thing
>
> And this will soon be properly documented:
> http://bugs.gentoo.org/show_bug.cgi?id=309963
funny, it's in my `man portage` and has been for a while
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-19 1:06 ` Mike Frysinger
@ 2010-03-19 13:31 ` Thomas Kahle
2010-03-20 2:08 ` Zac Medico
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Kahle @ 2010-03-19 13:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
On 03/19/2010 02:06 AM, Mike Frysinger wrote:
> On Thursday 18 March 2010 09:17:43 Thomas Kahle wrote:
>>> use.local.desc is automatically generated from metadata.xml files, so
>>> it's the same thing
>>
>> And this will soon be properly documented:
>> http://bugs.gentoo.org/show_bug.cgi?id=309963
>
> funny, it's in my `man portage` and has been for a while
I must admit that I did not look there (I tend to use internet search),
but it is also not in my current manpage (=sys-apps/portage-2.1.7.17)
use.local.desc
All local USE flags must be listed here along with the package and a
description.
Format:
- comments begin with # (no inline comments)
- package:use flag - description
Not a word of metadata.xml or auto-generation.
--
Thomas Kahle
The fundamental theorem of algebra is open source. Like any other
mathematical theorem it can be applied free of charge and everybody
has access to its proof and can convince himself how it works. Why
should software be any different?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 380 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Add more local USE flags
2010-03-19 13:31 ` Thomas Kahle
@ 2010-03-20 2:08 ` Zac Medico
0 siblings, 0 replies; 9+ messages in thread
From: Zac Medico @ 2010-03-20 2:08 UTC (permalink / raw
To: gentoo-dev
On 03/19/2010 06:31 AM, Thomas Kahle wrote:
> On 03/19/2010 02:06 AM, Mike Frysinger wrote:
>> On Thursday 18 March 2010 09:17:43 Thomas Kahle wrote:
>>>> use.local.desc is automatically generated from metadata.xml files, so
>>>> it's the same thing
>>>
>>> And this will soon be properly documented:
>>> http://bugs.gentoo.org/show_bug.cgi?id=309963
>>
>> funny, it's in my `man portage` and has been for a while
>
> I must admit that I did not look there (I tend to use internet search),
> but it is also not in my current manpage (=sys-apps/portage-2.1.7.17)
>
>
> use.local.desc
>
> All local USE flags must be listed here along with the package and a
> description.
>
> Format:
> - comments begin with # (no inline comments)
> - package:use flag - description
>
>
> Not a word of metadata.xml or auto-generation.
I'm not sure what Mike meant, but after seeing his message I went
and updated the man page:
http://sources.gentoo.org/viewcvs.py/portage/main/trunk/man/portage.5?r1=15795&r2=15834&makepatch=1&diff_format=h
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-03-20 2:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 12:39 [gentoo-dev] Add more local USE flags Dmitry Bashkatov
2010-03-18 12:47 ` Samuli Suominen
2010-03-18 13:07 ` Dmitry Bashkatov
2010-03-18 13:12 ` Samuli Suominen
2010-03-18 13:13 ` Dmitry Bashkatov
2010-03-18 13:17 ` Thomas Kahle
2010-03-19 1:06 ` Mike Frysinger
2010-03-19 13:31 ` Thomas Kahle
2010-03-20 2:08 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox