public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Multiple occurences of flags in use.local.desc
@ 2016-07-16  0:06 waltdnes
  2016-07-16  4:58 ` Ulrich Mueller
  0 siblings, 1 reply; 2+ messages in thread
From: waltdnes @ 2016-07-16  0:06 UTC (permalink / raw
  To: Gentoo Developers

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

  Another day, another thread about multiple occurences of a flag in
use.local.desc.  Howsabout a serious overall look at the situation?
Start with the following short script...

#!/bin/bash
rm -rf flagcount0.txt
sed "s/:/ /" /usr/portage/profiles/use.local.desc | \
   cut -d \  -f 2 | \
   sort -u > /dev/shm/flags.txt
while read flag
do
   echo -n "${flag} " >> flagcount0.txt
   grep -c ":${flag} " /usr/portage/profiles/use.local.desc >>
flagcount0.txt
done < /dev/shm/flags.txt
sort -n -r -k2,2 flagcount0.txt > flagcount.txt

  The final result is that flagcount.txt has a count, in descending
order, of each flag in use.local.desc.  It does need some manual
cleaning up, which I've done.  It's file-attached.  I've included all
flags with 5 or more occurences, as well as stuff that looks like it is,
or should be, a USE_expand var.  The developers may want to look at the
issue of hyphens versus underscores.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications

[-- Attachment #2: flagcount.txt.gz --]
[-- Type: application/octet-stream, Size: 3698 bytes --]

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

* Re: [gentoo-dev] Multiple occurences of flags in use.local.desc
  2016-07-16  0:06 [gentoo-dev] Multiple occurences of flags in use.local.desc waltdnes
@ 2016-07-16  4:58 ` Ulrich Mueller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Mueller @ 2016-07-16  4:58 UTC (permalink / raw
  To: gentoo-dev

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

>>>>> On Fri, 15 Jul 2016, waltdnes  wrote:

>   Another day, another thread about multiple occurences of a flag in
> use.local.desc.  Howsabout a serious overall look at the situation?
> [...]

>   The final result is that flagcount.txt has a count, in descending
> order, of each flag in use.local.desc.  It does need some manual
> cleaning up, which I've done.  It's file-attached.  I've included
> all flags with 5 or more occurences, as well as stuff that looks
> like it is, or should be, a USE_expand var.  The developers may want
> to look at the issue of hyphens versus underscores.

> pax_kernel 25

Underscores are considered reserved for USE_EXPAND, so presumably this
one should be renamed.

>   I assume the following groups are all USE_expand variables.

AFAICS, only apache2_modules_*, collectd_plugins_*, and
enlightenment_modules_* are USE_EXPAND, i.e. have an entry in
make.defaults of some profile. (Plus linguas_*, which is on its way
out of the tree though.)

>   if not, then look into making it so...

fbcon_frontend_*, strongswan_plugins_*, and ups_drivers_* look like
candidates. Not sure about the rest.

Anything that isn't a USE_EXPAND shouldn't have an underscore in its
name, though ...

Ulrich

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

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

end of thread, other threads:[~2016-07-16  4:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16  0:06 [gentoo-dev] Multiple occurences of flags in use.local.desc waltdnes
2016-07-16  4:58 ` Ulrich Mueller

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