Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
more portage behavior I don't understand
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1639

PostPosted: Sun Jul 06, 2014 9:31 pm    Post subject: more portage behavior I don't understand Reply with quote

I recently did emerge -DN system, and afterwards decided to check it with emerge -ep system. One package was missed:

Code:

$ emerge -DN system

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; quitting.



$ emerge -p file

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/file-5.17  USE="zlib -python -static-libs" PYTHON_TARGETS="python3_3 (-python2_6) -python2_7 -python3_2 (-pypy2_0%)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB



$ grep sys-apps/file /usr/portage/profiles/base/packages
*sys-apps/file


File is indeed a "system" package. Why isn't it being picked up?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47118
Location: 56N 3W

PostPosted: Sun Jul 06, 2014 9:45 pm    Post subject: Reply with quote

curmudgeon,

Code:
[ebuild   R    ]
means nothing has changed.

Its already built without pypy2_0 which is new and forced off, so there is no change to the installed binary.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6877

PostPosted: Sun Jul 06, 2014 9:47 pm    Post subject: Reply with quote

Because you asked portage to update packages with changed use flags and that one only changes the number of flags you don't have set. That's what the ()s mean.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1639

PostPosted: Mon Jul 07, 2014 3:37 am    Post subject: Reply with quote

This appears similar (but I do notice that in this case the "-pypy2_0%" has a star at the end. The difference is not clear to me (in practice, at least - I did look up that the asterisk means "transition to or from the enabled state", but I am not sure why there is an asterisk in the example below).

Code:

$ emerge -DNp world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-lang/python-exec-2.0.1-r1:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy) (python2_6) (python2_7) (python3_2) (python3_3) (-python3_4) (-pypy2_0%*)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6877

PostPosted: Mon Jul 07, 2014 6:07 pm    Post subject: Reply with quote

(-...%*) means a masked [(...)] flag changed state [*] to being unset [-] because it no longer exists [%] (presumably because that pypy flag replaces it).
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2277
Location: Bardowick, Germany

PostPosted: Tue Jul 08, 2014 10:41 am    Post subject: Reply with quote

A little hint:
Code:
 # man emerge
       --verbose [ y | n ] (-v short option)
              Tell  emerge  to  run in verbose mode.  Currently this flag causes emerge to
              print out GNU info errors, if any, and to show the USE flags that will be used
              for each package when pretending. The following symbols are affixed to USE
              flags in order to indicate their status:


              Symbol   Location    Meaning
              ──────────────────────────────────────────────────────────────

              -        prefix      not enabled (either disabled or removed)
              *        suffix      transition to or from the enabled state
              %        suffix      newly added or removed
              ()       circumfix   forced, masked, or removed
              {}       circumfix   state is bound to FEATURES settings
I know the man pages of portage, emerge and make.conf are huge, but reading them at least once briefly can save many hours of puzzlement. ;)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum