On 12/4/20 11:40 PM, Jack wrote:
You seem to not really understand how gentoo works.


Yes, that's absolutely true.


Most of the time, yes, you do need to do a depclean.  It's pretty
common to do it after every world update.  In general, it gets rid of
things emerged as a dependency of something else, and no longer
needed, either because you explicitly removed what pulled them in, or
that package was modified to no longer need it.


Yes, I've read that many times.  It's just this line in emerge(1) that
unsettles:

     WARNING: Inexperienced users are advised to use --pretend or --ask
with this
              option in order to see a preview of which packages will
be uninstalled.  Al-
              ways study the list of packages to be cleaned for any
obvious mistakes. Note
              that packages listed in package.provided (see portage(5))
may be removed  by
              depclean, even if they are part of the world set.



Do you understand why it shows separate lines for "selected" and
"omitted"


No.  Did I miss that in my readings of the documentation?



You need to check this list carefully.  If it is going to remove
anything you really want to keep, add it to the world file.  In cases
where it is removing old version(s), you should be fine, unless you
know some reason the old one is still necessary for you, but this
seems unlikely.

All selected packages: =sys-kernel/gentoo-sources-5.4.66
=media-libs/glu-9.0.1 =sys-devel/llvm-8.0.1 =app-text/openjade-1.3.2-r9
=media-libs/portmidi-217-r3 =virtual/cargo-1.37.0
=dev-python/sqlalchemy-1.3.3 =sys-devel/gcc-8.3.0-r1
=sys-devel/llvm-9.0.1 =dev-python/sphinxcontrib-websupport-1.1.0
=sys-devel/clang-runtime-8.0.1 =x11-libs/wxGTK-3.0.4-r2
=media-gfx/potrace-1.15 =x11-drivers/xf86-video-dummy-0.3.8
=sys-apps/rescan-scsi-bus-1.57-r1 =dev-libs/libcroco-0.6.13
=dev-go/blackfriday-1.2_p20150720 =sys-devel/gcc-9.2.0-r2
=app-admin/metalog-20181125 =sys-libs/cracklib-2.9.7
=sys-kernel/gentoo-sources-5.4.60 =sys-devel/clang-runtime-10.0.0
=sys-kernel/gentoo-sources-5.4.38 =dev-python/typing-3.7.4.3
=dev-lang/vala-0.42.7 =media-libs/gegl-0.3.34
=media-gfx/mypaint-brushes-1.3.0-r1 =virtual/shadow-0
=dev-python/bz2file-0.98 =sys-libs/compiler-rt-10.0.0
=dev-python/asn1crypto-0.22.0 =virtual/glu-9.0-r2
=sys-devel/binutils-2.32-r1 =sys-apps/sg3_utils-1.42
=sys-kernel/gentoo-sources-4.19.72 =virtual/python-enum34-2
=x11-drivers/xf86-video-intel-2.99.917_p20190301 =dev-lang/mujs-1.0.5
=app-editors/nano-4.2 =dev-python/pyblake2-1.1.2
=app-admin/killproc-2.13-r1 =sys-libs/compiler-rt-sanitizers-10.0.0
=dev-python/whoosh-2.7.4 =x11-drivers/xf86-video-vesa-2.4.0
=sys-libs/compiler-rt-8.0.1 =dev-python/sphinx_rtd_theme-0.2.4
=sys-fs/btrfs-progs-4.19 =sys-devel/clang-8.0.1 =virtual/libffi-3.3_rc0
=sys-devel/clang-runtime-9.0.1 =x11-libs/libXScrnSaver-1.2.3
=sys-devel/clang-9.0.1 =virtual/modutils-0 =sys-apps/sdparm-1.10
=media-libs/freeglut-3.2.1 =dev-lang/vala-0.46.7
=x11-drivers/xf86-input-keyboard-1.9.0
=x11-drivers/xf86-video-nouveau-1.0.16
=dev-go/sanitized-anchor-name-0_pre20151027
=x11-drivers/xf86-video-fbdev-0.5.0 =x11-drivers/xf86-input-mouse-1.9.3
=app-text/docbook-sgml-dtd-3.0-r4 =sys-libs/compiler-rt-9.0.1
=dev-libs/iniparser-3.1-r1 =sys-devel/binutils-2.33.1-r1
=virtual/python-typing-0-r1 =sys-libs/compiler-rt-sanitizers-8.0.1
=dev-python/pyxattr-0.6.0-r1 =app-text/docbook-dsssl-stylesheets-1.79-r4
=dev-libs/libpthread-stubs-0.4-r1 =virtual/python-ipaddress-1.0-r1
=sys-libs/compiler-rt-sanitizers-9.0.1


"You need to check this list carefully. "  I haven't a clue what to
check for.  I didn't add any of those.  I presume that anything I
explicitly added would be in the world file.

Is the point here that I should write a script that always ensures that
nothing in my world file has crept into this list somehow?

I'm sure there's lots of things that I need that I didn't explicitly
add.  But I wouldn't know what they are, in order to check for them. 
... okay, I see gcc up there.  I know I need gcc.  Presumably, it's just
one slot that's going to be removed. So I need to check if another slot
will remain populated.  That's presumably in the previous emerge output
somewhere.  Is that the point?

I mean, at one point of time or another, everything there was needed,
whether I recognize it or not.  That's not a sufficient test - whether
it's obvious to me or not.


>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Explicitly stated, just so you know.


Okay, indeed, I did miss that and it's significance.  I'll look again
and see if I dare doing a depclean.


Jack


Reply via email to