Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-12 Thread Mark Knecht
On Sat, Dec 12, 2020 at 5:08 AM Alan Mackenzie  wrote:
>
> Hello, Mark.
>
> On Fri, Dec 11, 2020 at 12:11:02 -0700, Mark Knecht wrote:
> > On Fri, Dec 11, 2020 at 11:09 AM Alan Mackenzie  wrote:
> > 
> > > (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> > > (dependency required by "@selected" [set])
> > > (dependency required by "@world" [argument])
>
>
> > So I'm totally guessing here but as you have no other responses yet:
>
> > I'd start near the 'top', which of course is near the bottom.
>
> > What is 'bzr'?
>
> > https://packages.gentoo.org/categories/dev-vcs
>
> It is (or was) the version control system bazaar.  It was a competitor
> for mercurial and git, but just wasn't quite as good.  It was poorly
> documented, too (like git still is).  It became unmaintained maybe three
> or four years ago.  And it was written in python.
>
> > I do not see 'bzr' on this page. Is it something left over in your world
> > file, or just installed by some other app and no longer used, or moved
to
> > some other package category?
>
> I used to use bazaar until the Emacs project converted to git.  It's
> time I expunged it altogether.
>
> > If you don't know what it is and think you don't need it then if it
were me
> > I'd consider just removing it and letting emerge @world figure out how
to
> > proceed.
>
> > And all of that is just a guess. No Gentoo available right now to delve
> > further.
>
> > Best of luck,
>
> Thanks!

Hey, I got lucky! Not bad for not even having a Gentoo machine to double
check on.

Glad it worked out.

I think the lesson here is start at the bottom and work up toward the
problem. That first line is just that in the weeds computer stuff.

Cheers,
Mark


Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-12 Thread Jude DaShiell
I doubt goblins wrote any part of gentoo, from what Neil wrote me
earlier if memory serves the language is actually Portagese.

On Sat, 12 Dec 2020, Alan Mackenzie wrote:

> Date: Sat, 12 Dec 2020 09:22:40
> From: Alan Mackenzie 
> Reply-To: gentoo-user@lists.gentoo.org
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Gobbledegook error message from emerge.
>
> Hello, Neil.
>
> On Fri, Dec 11, 2020 at 21:05:48 +, Neil Bothwick wrote:
> > On Fri, 11 Dec 2020 18:08:55 +, Alan Mackenzie wrote:
>
> > > I got back a horrendously long list of packages to merge (most of them
> > > re-merges), followed by:
>
> > > emerge: there are no ebuilds built with USE flags to satisfy
> > > "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> > > !!! One of the following packages is required to complete your request:
> > > - dev-python/pycparser-2.20-r1::gentoo (Change USE:
> > > +python_targets_python3_7)
> > > - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> > > -python_targets_python3_7) (dependency required by
>
> > A required package is just a dependency. If package A depends on package
> > B then package B is required is you have A installed.
>
> OK.  I can now see that "dependency required by" just means "is a
> dependency of".  Dependency is a relationship; it is not a thing.
>
> > > "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> > > "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> > > "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required
> > > by "dev-vcs/bzr-2.7.0::gentoo" [installed])
>
> > This is part of the python cleanup/upgrade already discussed at length on
> > this list over the past week, so the answers are already available.
>
> Yes, sorry.  I've not been keeping up with the list as assiduously as I
> might.
>
> > You have had some useful replies already but one thing I noticed it
> > that this is brought about by bzr, which is no longer in portage.
> > Unless you have it installed from an overlay for a particular need of
> > yours, you should let it be depcleaned.
>
> Yes, bazaar was indeed the sticking point.  It's been unmaintained for
> quite a few years, and is written in python.  I just unmerged it, then
> the mega-merge went ahead without problems (though I excluded
> libreoffice from that merge, for now).
>
> I still amn't happy about the error message I got.  But I'm not unhappy
> enough about it to invest the time needed to get up to speed on portage
> and submit patches.  :-(
>
> Anyhow, thanks for the tip!
>
> > --
> > Neil Bothwick
>
> > A TRUE Klingon warrior does not comment his code!
>
>

-- 



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-12 Thread Alan Mackenzie
Hello, Neil.

On Fri, Dec 11, 2020 at 21:05:48 +, Neil Bothwick wrote:
> On Fri, 11 Dec 2020 18:08:55 +, Alan Mackenzie wrote:

> > I got back a horrendously long list of packages to merge (most of them
> > re-merges), followed by:

> > emerge: there are no ebuilds built with USE flags to satisfy
> > "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> > !!! One of the following packages is required to complete your request:
> > - dev-python/pycparser-2.20-r1::gentoo (Change USE:
> > +python_targets_python3_7)
> > - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> > -python_targets_python3_7) (dependency required by

> A required package is just a dependency. If package A depends on package
> B then package B is required is you have A installed.

OK.  I can now see that "dependency required by" just means "is a
dependency of".  Dependency is a relationship; it is not a thing.

> > "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> > "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> > "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required
> > by "dev-vcs/bzr-2.7.0::gentoo" [installed])

> This is part of the python cleanup/upgrade already discussed at length on
> this list over the past week, so the answers are already available.

Yes, sorry.  I've not been keeping up with the list as assiduously as I
might.

> You have had some useful replies already but one thing I noticed it
> that this is brought about by bzr, which is no longer in portage.
> Unless you have it installed from an overlay for a particular need of
> yours, you should let it be depcleaned.

Yes, bazaar was indeed the sticking point.  It's been unmaintained for
quite a few years, and is written in python.  I just unmerged it, then
the mega-merge went ahead without problems (though I excluded
libreoffice from that merge, for now).

I still amn't happy about the error message I got.  But I'm not unhappy
enough about it to invest the time needed to get up to speed on portage
and submit patches.  :-(

Anyhow, thanks for the tip!

> -- 
> Neil Bothwick

> A TRUE Klingon warrior does not comment his code!

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-12 Thread Arve Barsnes
On Fri, 11 Dec 2020 at 19:09, Alan Mackenzie  wrote:
> emerge: there are no ebuilds built with USE flags to satisfy 
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> !!! One of the following packages is required to complete your request:
> - dev-python/pycparser-2.20-r1::gentoo (Change USE: +python_targets_python3_7)
> - dev-python/cffi-1.14.0-r3::gentoo (Change USE: -python_targets_python3_7)
> (dependency required by "dev-python/cffi-1.14.0-r3::gentoo" [ebuild])
> (dependency required by "dev-python/bcrypt-3.2.0::gentoo" [installed])
> (dependency required by "dev-python/paramiko-2.7.1::gentoo" [installed])
> (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])

To solve your problem, you already have your answer (remove
dev-vcs/bzr), but I don't think you got the explanation you wanted for
the logic of this output, so I'll also give it a go.

I would really ignore the first line with all the brackets and
question marks unless you are completely unable to fix your problem,
but the logic of the rest of the lines, as I understand them, is as
follows:

Your problem has two possible solutions, either ADD py3.7
(USE="python_targets_python3_7") to dev-python/pycparser, or REMOVE
py3.7 (USE="-python_targets_python3_7") to dev-python/cffi.

This is required by dev-python/cffi-1.14.0-r3::gentoo.
Which in turn is required by dev-python/bcrypt-3.2.0::gentoo.
Which in turn is required by dev-python/paramiko-2.7.1::gentoo
Which in turn is required by dev-vcs/bzr-2.7.0::gentoo
Which in turn is required by the selected packages which the current
emerge command was given
Which in turn was found through the emerge argument @world

In other words, the "dependency of A on B" you speak about is clearly
outlined here, but it is as a chain of dependencies, and hence spread
out over multiple lines, which in my opinion for these kinds of things
actually makes it more readable. But of course, you have to first know
what is trying to express, before you can decipher the syntax.

Regards,
Arve



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-12 Thread Alan Mackenzie
Hello, Mark.

On Fri, Dec 11, 2020 at 12:11:02 -0700, Mark Knecht wrote:
> On Fri, Dec 11, 2020 at 11:09 AM Alan Mackenzie  wrote:
> 
> > (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> > (dependency required by "@selected" [set])
> > (dependency required by "@world" [argument])


> So I'm totally guessing here but as you have no other responses yet:

> I'd start near the 'top', which of course is near the bottom.

> What is 'bzr'?

> https://packages.gentoo.org/categories/dev-vcs

It is (or was) the version control system bazaar.  It was a competitor
for mercurial and git, but just wasn't quite as good.  It was poorly
documented, too (like git still is).  It became unmaintained maybe three
or four years ago.  And it was written in python.

> I do not see 'bzr' on this page. Is it something left over in your world
> file, or just installed by some other app and no longer used, or moved to
> some other package category?

I used to use bazaar until the Emacs project converted to git.  It's
time I expunged it altogether.

> If you don't know what it is and think you don't need it then if it were me
> I'd consider just removing it and letting emerge @world figure out how to
> proceed.

> And all of that is just a guess. No Gentoo available right now to delve
> further.

> Best of luck,

Thanks!

> Mark

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Neil Bothwick
On Fri, 11 Dec 2020 18:08:55 +, Alan Mackenzie wrote:

> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> !!! One of the following packages is required to complete your request:
> - dev-python/pycparser-2.20-r1::gentoo (Change USE:
> +python_targets_python3_7)
> - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> -python_targets_python3_7) (dependency required by

A required package is just a dependency. If package A depends on package
B then package B is required is you have A installed.

> "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required
> by "dev-vcs/bzr-2.7.0::gentoo" [installed])

This is part of the python cleanup/upgrade already discussed at length on
this list over the past week, so the answers are already available. You
have had some useful replies already but one thing I noticed it that this
is brought about by bzr, which is no longer in portage. Unless you have
it installed from an overlay for a particular need of yours, you should
let it be depcleaned.


-- 
Neil Bothwick

A TRUE Klingon warrior does not comment his code!


pgpg4iYLvRNpK.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Michael
On Friday, 11 December 2020 18:08:55 GMT Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> I'm angry, because I've wasted several hours trying to decypher a wholly
> unintuitive error "message" from emerge.  Because of this, it's been too
> long since I've been able to update.  Help, please!

I feel your pain, as I have often sweated over messages emerge spews out at 
me, which tends to happen mostly when I do not have the time to delve into 
fixing it!  I sometimes also find these messages to be unintuitive (for me) as 
I struggle to decipher 'portaguese'.  :-)


> The command I typed in was
> 
> # time emerge -auND @world.
> 
> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:

There was a recent python upgrade, which caused a lot of packages with python 
as a dependency requiring an update or to be rebuilt.  Other users were also 
caught up in this.  A recommendation was to run emerge with '-U', rather than 
'-N', which may produce a smaller list of packages to update.


> emerge: there are no ebuilds built with USE flags to satisfy
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7
> (-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_singl
> e_target_python3_6(-),-python_single_target_python3_7(-),-python_single_targ
> et_python3_8(-),-python_single_target_python3_9(-)]". !!! One of the
> following packages is required to complete your request: -
> dev-python/pycparser-2.20-r1::gentoo (Change USE:
> +python_targets_python3_7) - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> -python_targets_python3_7) (dependency required by
> "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required by
> "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> .  What is the syntax and semantics of that first line?  Is it explained
> somewhere in the emerge manual?  What do the square brackets mean?  What
> do the commas within these square brackes mean?  AND?  OR?  What about
> the question marks following minus signs inside parentheses?

Have a quick look at:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage

and in particular the section "Necessary USE flag changes", but also look at 
the output of the package which complains about change of USE, with eix, e.g.:

$ eix -l dev-python/pycparser
[I] dev-python/pycparser
 Available versions:  
2.20-r1 [PYTHON_TARGETS="pypy3 python3_6 python3_7 python3_8 
python3_9"] ["|| ( python_targets_pypy3 python_targets_python3_6 
python_targets_python3_7 python_targets_python3_8 python_targets_python3_9 )"]
 Installed versions:  2.20-r1(12:55:41 05/12/20)(PYTHON_TARGETS="python3_8 
-pypy3 -python3_6 -python3_7 -python3_9")
 Homepage:https://github.com/eliben/pycparser
 Description: C parser and AST generator written in Python

The output explains what USE flags the package was installed with and what 
other flags are available.  Other tools also show USE flags, e.g. 

$ equery u dev-python/pycparser

Also, taking a look at the ebuild file could reveal similarly useful info:

PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )



> What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
> suggestion to me that I should change some USE flag somewhere?  Or is it
> telling me that a changed USE flag is the reason for all the trouble?  Or
> does it mean something else?

It means the particular package was installed with some USE flag, which is now 
incompatible with the current version of the package or one of its 
dependencies.  You'll need USE="+python_targets_python3_7" to be able to build 
it.  Therefore you may need to intervene to change a previous USE flag setting 
to allow that package to rebuild/update.

In cases like this I tend to grep quickly my /etc/portage settings to see if I 
have configured manually a USE flag, which is no longer needed;  e.g. 
python3_5 - then unset it, unless you have a particular reason to force this 
USE flag for some package which you need on your system.

grep python*_ -r /etc/portage


> What is "dependency required by" supposed to mean?  I can understand a
> dependency of A on B.  I can understand A being required by B.  But a
> dependency being required?  what does this mean?

I understand "dependency required by" to refer to package B, which is a build 
time dependency of package A.  Package B also requires a change of USE flag, 
besides package A.

(If I got this wrong someone will chime in to correct me).


> Presumably to get out of the mess I've got to do something with one of
> the packages which "is required to complete your request".

I would interpret the message you got to mean:

You have set some USE flag somewhere, or have previously emer

Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread John Covici
On Fri, 11 Dec 2020 13:08:55 -0500,
Alan Mackenzie wrote:
> 
> Hello, Gentoo.
> 
> I'm angry, because I've wasted several hours trying to decypher a wholly
> unintuitive error "message" from emerge.  Because of this, it's been too
> long since I've been able to update.  Help, please!
> 
> The command I typed in was
> 
> # time emerge -auND @world.
> 
> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:
> 
> emerge: there are no ebuilds built with USE flags to satisfy 
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> !!! One of the following packages is required to complete your request:
> - dev-python/pycparser-2.20-r1::gentoo (Change USE: +python_targets_python3_7)
> - dev-python/cffi-1.14.0-r3::gentoo (Change USE: -python_targets_python3_7)
> (dependency required by "dev-python/cffi-1.14.0-r3::gentoo" [ebuild])
> (dependency required by "dev-python/bcrypt-3.2.0::gentoo" [installed])
> (dependency required by "dev-python/paramiko-2.7.1::gentoo" [installed])
> (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> .  What is the syntax and semantics of that first line?  Is it explained
> somewhere in the emerge manual?  What do the square brackets mean?  What
> do the commas within these square brackes mean?  AND?  OR?  What about
> the question marks following minus signs inside parentheses?
> 
> What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
> suggestion to me that I should change some USE flag somewhere?  Or is it
> telling me that a changed USE flag is the reason for all the trouble?  Or
> does it mean something else?
> 
> What is "dependency required by" supposed to mean?  I can understand a
> dependency of A on B.  I can understand A being required by B.  But a
> dependency being required?  what does this mean?
> 
> Presumably to get out of the mess I've got to do something with one of
> the packages which "is required to complete your request".
> 
> Surely somebody in the Gentoo portage team must see that printing human
> readable error messages is a worthwhile thing to do.  Surely?

Well, what portage is trying to tell you is that you need to change or
add a file  in your /etc/portage/package.use directory to specify
dev-python/pycparser python_targets_python3_7
and that should fix it  -- and if you have --autounmask-use =y (which
is the default) it should write the changes for you and after fixing
up your package.use file or directlry if necessary, you can proceed.

I hope that helps.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Mark Knecht
On Fri, Dec 11, 2020 at 11:09 AM Alan Mackenzie  wrote:

> (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])


So I'm totally guessing here but as you have no other responses yet:

I'd start near the 'top', which of course is near the bottom.

What is 'bzr'?

https://packages.gentoo.org/categories/dev-vcs

I do not see 'bzr' on this page. Is it something left over in your world
file, or just installed by some other app and no longer used, or moved to
some other package category?

If you don't know what it is and think you don't need it then if it were me
I'd consider just removing it and letting emerge @world figure out how to
proceed.

And all of that is just a guess. No Gentoo available right now to delve
further.

Best of luck,
Mark


[gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Alan Mackenzie
Hello, Gentoo.

I'm angry, because I've wasted several hours trying to decypher a wholly
unintuitive error "message" from emerge.  Because of this, it's been too
long since I've been able to update.  Help, please!

The command I typed in was

# time emerge -auND @world.

I got back a horrendously long list of packages to merge (most of them
re-merges), followed by:

emerge: there are no ebuilds built with USE flags to satisfy 
"dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/pycparser-2.20-r1::gentoo (Change USE: +python_targets_python3_7)
- dev-python/cffi-1.14.0-r3::gentoo (Change USE: -python_targets_python3_7)
(dependency required by "dev-python/cffi-1.14.0-r3::gentoo" [ebuild])
(dependency required by "dev-python/bcrypt-3.2.0::gentoo" [installed])
(dependency required by "dev-python/paramiko-2.7.1::gentoo" [installed])
(dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

.  What is the syntax and semantics of that first line?  Is it explained
somewhere in the emerge manual?  What do the square brackets mean?  What
do the commas within these square brackes mean?  AND?  OR?  What about
the question marks following minus signs inside parentheses?

What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
suggestion to me that I should change some USE flag somewhere?  Or is it
telling me that a changed USE flag is the reason for all the trouble?  Or
does it mean something else?

What is "dependency required by" supposed to mean?  I can understand a
dependency of A on B.  I can understand A being required by B.  But a
dependency being required?  what does this mean?

Presumably to get out of the mess I've got to do something with one of
the packages which "is required to complete your request".

Surely somebody in the Gentoo portage team must see that printing human
readable error messages is a worthwhile thing to do.  Surely?

-- 
Alan Mackenzie (Nuremberg, Germany).