Re: [gentoo-user] [OT] emerge default opts

2017-10-19 Thread Michael Orlitzky
On 10/15/2017 04:39 PM, Rich Freeman wrote:
>>> On 10/14/2017 09:30 PM, Dale wrote:

 While at it.  Is there a tool that tells when USE flags in make.conf is
 either no longer used or doesn't even exist anymore?
>>>
> 
> Or you could just use portpeek...
> 

portpeek doesn't check make.conf...

On the other hand, now would be a good time for me to clean all of the
positive USE flags out of my make.conf.




Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Bill Kenworthy
On 16/10/17 04:39, Rich Freeman wrote:
> On Sun, Oct 15, 2017 at 11:47 AM, Alan McKinnon  
> wrote:
>> On 15/10/2017 16:31, Michael Orlitzky wrote:
>>> On 10/14/2017 09:30 PM, Dale wrote:

 While at it.  Is there a tool that tells when USE flags in make.conf is
 either no longer used or doesn't even exist anymore?
>>>
>>> I don't know of one. It doesn't *sound* hard, but you would have to
>>> consider local use flags, flags from overlays, USE_EXPAND flags,
>>> wildcards, USE_ORDER, etc. -- so maybe it's actually hard/slow to do it.
>>>
>>> I found this feature request,
>>>
>>>   https://github.com/vaeth/eix/issues/38
>>>
>>> and I guess that confirms that it's harder than it looks. Checking for
>>> nonexistent flags would be easier than checking for redundant flags
>>> because the latter depends on your package manager configuration.
>>>
>>
>> There is a suitable tool. It's called grep, copious use of.
>> A suitably complex solution for the complexity of the problem!
>>
> 
> Or you could just use portpeek...
> 


moriah ~ # euse -i flag
global use flags (searching: flag)

no matching entries found

local use flags (searching: flag)

no matching entries found
moriah ~ #

BillK



Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Rich Freeman
On Sun, Oct 15, 2017 at 11:47 AM, Alan McKinnon  wrote:
> On 15/10/2017 16:31, Michael Orlitzky wrote:
>> On 10/14/2017 09:30 PM, Dale wrote:
>>>
>>> While at it.  Is there a tool that tells when USE flags in make.conf is
>>> either no longer used or doesn't even exist anymore?
>>
>> I don't know of one. It doesn't *sound* hard, but you would have to
>> consider local use flags, flags from overlays, USE_EXPAND flags,
>> wildcards, USE_ORDER, etc. -- so maybe it's actually hard/slow to do it.
>>
>> I found this feature request,
>>
>>   https://github.com/vaeth/eix/issues/38
>>
>> and I guess that confirms that it's harder than it looks. Checking for
>> nonexistent flags would be easier than checking for redundant flags
>> because the latter depends on your package manager configuration.
>>
>
> There is a suitable tool. It's called grep, copious use of.
> A suitably complex solution for the complexity of the problem!
>

Or you could just use portpeek...

-- 
Rich



Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Alan McKinnon
On 15/10/2017 16:31, Michael Orlitzky wrote:
> On 10/14/2017 09:30 PM, Dale wrote:
>>
>> While at it.  Is there a tool that tells when USE flags in make.conf is
>> either no longer used or doesn't even exist anymore? 
> 
> I don't know of one. It doesn't *sound* hard, but you would have to
> consider local use flags, flags from overlays, USE_EXPAND flags,
> wildcards, USE_ORDER, etc. -- so maybe it's actually hard/slow to do it.
> 
> I found this feature request,
> 
>   https://github.com/vaeth/eix/issues/38
> 
> and I guess that confirms that it's harder than it looks. Checking for
> nonexistent flags would be easier than checking for redundant flags
> because the latter depends on your package manager configuration.
> 

There is a suitable tool. It's called grep, copious use of.
A suitably complex solution for the complexity of the problem!

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Neil Bothwick
On Sun, 15 Oct 2017 09:46:26 -0500, Dale wrote:

> I was thinking it may be harder than one thinks since I don't know of a
> way to do it but have seen some who want something that does it.  I'd be
> happy if it just told me what USE flags no longer exist at all.  My USE
> line in make.conf is quite lengthy.  I'm certain a lot of it could be
> gone.  Some may not have existed for years. 

How about something like this?

source /etc/portage/make.conf
for flag in $USE; do
grep -q '^${flag} ' $PORTDIR/profile/use.desc || \
  grep -q ':${flag} ' $PORTDIR/profile/use.local.desc || \
  echo "${flag} not found in use.desc or use.local.desc"
fi


-- 
Neil Bothwick

OPERATOR ERROR: Nyah, Nyah, Nyah, Nyah, Nyah!


pgpzIAbUdkyFH.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Dale
Michael Orlitzky wrote:
> On 10/14/2017 09:30 PM, Dale wrote:
>> While at it.  Is there a tool that tells when USE flags in make.conf is
>> either no longer used or doesn't even exist anymore? 
> I don't know of one. It doesn't *sound* hard, but you would have to
> consider local use flags, flags from overlays, USE_EXPAND flags,
> wildcards, USE_ORDER, etc. -- so maybe it's actually hard/slow to do it.
>
> I found this feature request,
>
>   https://github.com/vaeth/eix/issues/38
>
> and I guess that confirms that it's harder than it looks. Checking for
> nonexistent flags would be easier than checking for redundant flags
> because the latter depends on your package manager configuration.
>
>


I was thinking it may be harder than one thinks since I don't know of a
way to do it but have seen some who want something that does it.  I'd be
happy if it just told me what USE flags no longer exist at all.  My USE
line in make.conf is quite lengthy.  I'm certain a lot of it could be
gone.  Some may not have existed for years. 

Maybe one day.  Just maybe. 

Thanks

Dale

:-)  :-) 



Re: [gentoo-user] [OT] emerge default opts

2017-10-15 Thread Michael Orlitzky
On 10/14/2017 09:30 PM, Dale wrote:
> 
> While at it.  Is there a tool that tells when USE flags in make.conf is
> either no longer used or doesn't even exist anymore? 

I don't know of one. It doesn't *sound* hard, but you would have to
consider local use flags, flags from overlays, USE_EXPAND flags,
wildcards, USE_ORDER, etc. -- so maybe it's actually hard/slow to do it.

I found this feature request,

  https://github.com/vaeth/eix/issues/38

and I guess that confirms that it's harder than it looks. Checking for
nonexistent flags would be easier than checking for redundant flags
because the latter depends on your package manager configuration.



Re: [gentoo-user] [OT] emerge default opts

2017-10-14 Thread Dale
Michael Orlitzky wrote:
> On 10/14/2017 07:25 AM, Dale wrote:
>> EMERGE_DEFAULT_OPTS="--with-bdeps y ...
> You probably don't need this one any more... you'll have to consult a
> lawyer to figure out what `man emerge` says on the matter, but IIRC, the
> --with-bdeps-auto flag (enabled by default) now does the sensible thing,
> by default, for both updates and depcleans.
>
>


My make.conf is old.  Some of the entries there could be over a decade
old.  I also have commented out a lot of really old stuff, just to see
if it does anything.   I'll go check man emerge and friends and then see
if google does anything useful.  We all know how google is.  ;-)

While at it.  Is there a tool that tells when USE flags in make.conf is
either no longer used or doesn't even exist anymore?  I googled that a
while back and didn't find anything.  I don't think the eix tools does
that either.  It does for the other /etc/portage/ files but I don't
think it touches make.conf. 

Thanks for the heads up. 

Dale

:-)  :-) 



Re: [gentoo-user] [OT] emerge default opts

2017-10-14 Thread Michael Orlitzky
On 10/14/2017 07:25 AM, Dale wrote:
> 
> EMERGE_DEFAULT_OPTS="--with-bdeps y ...

You probably don't need this one any more... you'll have to consult a
lawyer to figure out what `man emerge` says on the matter, but IIRC, the
--with-bdeps-auto flag (enabled by default) now does the sensible thing,
by default, for both updates and depcleans.