Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

cleaning up llvm, clang etc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

cleaning up llvm, clang etc

  • Quote

Post by snIP3r » Fri Jul 11, 2025 6:17 am

hi all!

after my recent system update i encountered, that i have some very old versions of clang, llvm and depending packages installed. but i am not sure how to clean this without breaking my system. e.g. clang:
emerge --ask --depclean --verbose clang

Calculating dependencies... done!
llvm-core/clang-15.0.7-r1 pulled in by:
llvm-core/clang-toolchain-symlinks-15-r2 requires llvm-core/clang:15

llvm-core/clang-16.0.6 pulled in by:
llvm-core/clang-common-16.0.6-r2 requires llvm-core/clang:*
llvm-core/clang-toolchain-symlinks-16-r2 requires llvm-core/clang:16
llvm-runtimes/compiler-rt-10.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-10.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-11.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-12.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-12.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-13.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-13.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-14.0.4 requires llvm-core/clang
llvm-runtimes/compiler-rt-14.0.6-r1 requires llvm-core/clang
llvm-runtimes/compiler-rt-15.0.3 requires llvm-core/clang
llvm-runtimes/compiler-rt-15.0.5 requires llvm-core/clang
llvm-runtimes/compiler-rt-15.0.6 requires llvm-core/clang
llvm-runtimes/compiler-rt-15.0.7 requires llvm-core/clang
llvm-runtimes/compiler-rt-16.0.6 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-10.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-10.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-11.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-12.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-12.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-13.0.0 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-13.0.1 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-14.0.4 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-14.0.6 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-15.0.3 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-15.0.5 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-15.0.6 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-15.0.7 requires llvm-core/clang
llvm-runtimes/compiler-rt-sanitizers-16.0.6 requires llvm-core/clang

>>> Calculating removal order...

>>> These are the packages that would be unmerged:

llvm-core/clang
selected: 12.0.1 13.0.1 14.0.6-r1
protected: none
omitted: 15.0.7-r1 16.0.6
so i would deplean in this order:
1. clang
2. clang-runtime
3. compiler-rt
4. compiler-rt-sanitizers
5. llvm
6. binutils

may this be the right order or am i completely wrong?
any help would be greatly appreciated!

thx in advance
snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Fri Jul 11, 2025 7:02 am

You can cleanup your world favorite file ( /var/lib/portage/world) with a text editor, or with "emerge --deselect cat/pkg"
and then run

Code: Select all

emerge -a --depclean
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Fri Jul 11, 2025 7:07 am

thx @josef.95 but i do not want to cleanup the entire system but just clang/llvm...
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jul 11, 2025 9:26 am

snIP3r,

I suspect you have world pollution.
Either some of those old versions ane in world, because you forgot --oneshot, or they are dependencies of something else in world.
That's fine, if that's what you want ... until portage wants to rebuild something that has been removed from the repo.
Then you have to dig out and maybe update the old ebuild.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Fri Jul 11, 2025 9:38 am

hi neddyseagoon!

i think so too, but i alway updated as i was used to: emerge --sync and then emerge -uavDN world

removed clang and other mentioned packages version 10 and 11 and did a emerge -uavDN world and emerge @preserved-rebuild and everything seems to be fine so far.
so i think i can savely continue?

actually emerge --depclean clang shows me this:
llvm-core/clang
selected: 12.0.1 13.0.1 14.0.6-r1
protected: none
omitted: 15.0.7-r1 16.0.6
so i will keep 15.0.7-r1 and 16.0.6 as suggested

thx snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jul 11, 2025 9:46 am

snIP3r,

Yes, that's correct. Something in world needs them.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jul 11, 2025 10:08 am

snIP3r wrote:
so i will keep 15.0.7-r1 and 16.0.6 as suggested

thx snIP3r
Stable version is 20. You really need to clem up world, as suggested above. If you don't feel confident doing that yourself, post it here.
But first, as an exercise, I recommend going through it and think about every entry, if you know what it's doing there. You should have in world only entries that you explicitly want on your system. They should not be dependencies of something else, unless they can be used independently.

Best Regards,
Georgi
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Fri Jul 18, 2025 6:19 am

@logrusx: thx for the help. as suggested i unmerged older version. but i cannot update to clang version 20 altthough it is noticed:

Code: Select all

 llvm-core/clang
      Latest version available: 20.1.7
      Latest version installed: 16.0.6
      Size of files: 144,084 KiB
      Homepage:      https://llvm.org/
      Description:   C language family frontend for LLVM
      License:       Apache-2.0-with-LLVM-exceptions UoI-NCSA MIT


greets
snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jul 18, 2025 6:24 am

Post emerge output, emerge --info and the contents of /var/lib/portage/world
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Fri Jul 18, 2025 7:22 am

if i explicitly emerge llvm-core/clang i get:

Code: Select all

emerge -av llvm-core/clang

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

Calculating dependencies... done!
Dependency resolution took 4.81 s (backtrack: 0/20).

[ebuild     U  ] llvm-core/clang-common-20.1.7::gentoo [16.0.6-r2::gentoo] USE="cet%* -bootstrap-prefix% -default-compiler-rt -default-libcxx -default-lld -hardened -llvm-libunwind -verify-sig" 143,795 KiB
[ebuild     U  ] llvm-runtimes/openmp-20.1.7:0/20.1::gentoo [16.0.6:0/16::gentoo] USE="-debug -gdb-plugin -hwloc -ompt -test -verify-sig (-offload%)" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="(-AMDGPU%) (-NVPTX%)" PYTHON_SINGLE_TARGET="python3_13%* -python3_11* -python3_12 (-python3_14) (-python3_10%)" 0 KiB
[ebuild  NS    ] llvm-core/llvm-20.1.7:20/20.1::gentoo [14.0.6-r2:14::gentoo, 15.0.7-r3:15::gentoo, 16.0.6:16::gentoo] USE="binutils-plugin libffi xml zstd* -debug (-debuginfod) -doc -exegesis -libedit -test -verify-sig -z3 (-ncurses%*) (-xar%)" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV*) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" 290 KiB
[ebuild  NS    ] llvm-core/llvm-toolchain-symlinks-20-r1:20::gentoo [15-r1:15::gentoo, 16-r1:16::gentoo] USE="native-symlinks -multilib-symlinks" 0 KiB
[ebuild     U  ] llvm-core/llvmgold-20::gentoo [16::gentoo] 0 KiB
[ebuild  NS    ] llvm-core/clang-20.1.7:20/20.1::gentoo [15.0.7-r1:15/15g1::gentoo, 16.0.6:16::gentoo] USE="extra (pie) static-analyzer xml -debug -doc (-ieee-long-double) -test -verify-sig" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (SPIRV*) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -Xtensa" PYTHON_SINGLE_TARGET="python3_13%* -python3_11* -python3_12 (-python3_14) (-python3_10%)" 0 KiB
[ebuild  NS    ] llvm-core/clang-toolchain-symlinks-20:20::gentoo [15-r2:15::gentoo, 16-r2:16::gentoo] USE="native-symlinks -gcc-symlinks -multilib-symlinks" 0 KiB
[ebuild  NS    ] llvm-runtimes/compiler-rt-20.1.7:20::gentoo [15.0.6:15.0.6::gentoo, 15.0.7:15.0.7::gentoo, 16.0.6:16::gentoo] USE="atomic-builtins%* (clang) -debug -test -verify-sig" ABI_X86="32 (64)" 0 KiB
[ebuild  NS    ] llvm-runtimes/compiler-rt-sanitizers-20.1.7:20::gentoo [15.0.6:15.0.6::gentoo, 15.0.7:15.0.7::gentoo, 16.0.6:16::gentoo] USE="asan cfi (clang) ctx-profile%* dfsan gwp-asan hwasan libfuzzer lsan memprof msan nsan%* orc profile rtsan%* safestack scudo tsan ubsan xray -debug (-shadowcallstack) -test -verify-sig" ABI_X86="32 (64)" 0 KiB
[ebuild  NS    ] llvm-core/clang-runtime-20.1.7:20::gentoo [15.0.6:15.0.6::gentoo, 15.0.7:15.0.7::gentoo, 16.0.6:16::gentoo] USE="compiler-rt openmp sanitize -default-compiler-rt% -default-libcxx% -default-lld% -libcxx -llvm-libunwind% -offload% -polly%" ABI_X86="32 (64) (-x32)" 0 KiB

Total: 10 packages (3 upgrades, 7 in new slots), Size of downloads: 144,084 KiB

!!! The following installed packages are masked:
- sys-libs/binutils-libs-2.40-r7::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas K. Hüttel <dilfridge@gentoo.org> (2017-05-21)
# (and others, updated later)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

but if i do a regular emerge -uavDN world i get:

Code: Select all

 emerge -uavDN world

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

Calculating dependencies... done!
Dependency resolution took 17.10 s (backtrack: 0/20).


Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.
so i assume there is something wrong?

greets
snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jul 18, 2025 9:24 am

wgetpaste -ic 'emerge -pvc llvm-core/* llvm-runtime/*'
wgetpaste /var/lib/portage/world
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Fri Jul 18, 2025 9:46 am

here is the output:

Code: Select all

area52 ~ # emerge -pvc llvm-core/* llvm-runtime/*

Calculating dependencies... done!
  llvm-core/clang-16.0.6 pulled in by:
    llvm-core/clang-common-16.0.6-r2 requires llvm-core/clang:*
    llvm-core/clang-toolchain-symlinks-16-r2 requires llvm-core/clang:16
    llvm-runtimes/compiler-rt-15.0.6 requires llvm-core/clang
    llvm-runtimes/compiler-rt-15.0.7 requires llvm-core/clang
    llvm-runtimes/compiler-rt-16.0.6 requires llvm-core/clang
    llvm-runtimes/compiler-rt-sanitizers-15.0.6 requires llvm-core/clang
    llvm-runtimes/compiler-rt-sanitizers-15.0.7 requires llvm-core/clang
    llvm-runtimes/compiler-rt-sanitizers-16.0.6 requires llvm-core/clang

  llvm-core/clang-common-16.0.6-r2 pulled in by:
    llvm-core/clang-16.0.6 requires >=llvm-core/clang-common-16.0.6

  llvm-core/clang-runtime-16.0.6 pulled in by:
    llvm-core/clang-16.0.6 requires ~llvm-core/clang-runtime-16.0.6

  llvm-core/clang-toolchain-symlinks-16-r2 pulled in by:
    llvm-core/clang-16.0.6 requires llvm-core/clang-toolchain-symlinks:16

  llvm-core/llvm-15.0.7-r3 pulled in by:
    llvm-core/llvm-toolchain-symlinks-15-r1 requires llvm-core/llvm:15
    llvm-runtimes/compiler-rt-15.0.6 requires llvm-core/llvm:15
    llvm-runtimes/compiler-rt-15.0.7 requires llvm-core/llvm:15
    llvm-runtimes/compiler-rt-sanitizers-15.0.6 requires llvm-core/llvm:15
    llvm-runtimes/compiler-rt-sanitizers-15.0.7 requires llvm-core/llvm:15

  llvm-core/llvm-16.0.6 pulled in by:
    llvm-core/clang-16.0.6 requires ~llvm-core/llvm-16.0.6[llvm_targets_X86], ~llvm-core/llvm-16.0.6[llvm_targets_Hexagon], ~llvm-core/llvm-16.0.6[llvm_targets_WebAssembly], ~llvm-core/llvm-16.0.6[llvm_targets_Lanai], ~llvm-core/llvm-16.0.6[llvm_targets_Sparc], ~llvm-core/llvm-16.0.6[llvm_targets_RISCV], ~llvm-core/llvm-16.0.6:16/16=[-debug,abi_x86_64(-)], ~llvm-core/llvm-16.0.6[llvm_targets_AVR], ~llvm-core/llvm-16.0.6[llvm_targets_Mips], ~llvm-core/llvm-16.0.6[llvm_targets_NVPTX], ~llvm-core/llvm-16.0.6[llvm_targets_XCore], ~llvm-core/llvm-16.0.6:16=[-debug,abi_x86_64(-)], ~llvm-core/llvm-16.0.6[llvm_targets_PowerPC], ~llvm-core/llvm-16.0.6[llvm_targets_AMDGPU], ~llvm-core/llvm-16.0.6[llvm_targets_MSP430], ~llvm-core/llvm-16.0.6[llvm_targets_LoongArch], ~llvm-core/llvm-16.0.6[llvm_targets_SystemZ], ~llvm-core/llvm-16.0.6[llvm_targets_AArch64], ~llvm-core/llvm-16.0.6[llvm_targets_BPF], ~llvm-core/llvm-16.0.6[llvm_targets_ARM], ~llvm-core/llvm-16.0.6[llvm_targets_VE]
    llvm-core/llvm-toolchain-symlinks-16-r1 requires llvm-core/llvm:16
    llvm-core/llvmgold-16 requires llvm-core/llvm:16[binutils-plugin]
    llvm-runtimes/compiler-rt-16.0.6 requires llvm-core/llvm:16
    llvm-runtimes/compiler-rt-sanitizers-16.0.6 requires llvm-core/llvm:16

  llvm-core/llvm-common-16.0.6 pulled in by:
    llvm-core/llvm-15.0.7-r3 requires llvm-core/llvm-common
    llvm-core/llvm-16.0.6 requires llvm-core/llvm-common

  llvm-core/llvm-toolchain-symlinks-15-r1 pulled in by:
    llvm-core/llvm-15.0.7-r3 requires llvm-core/llvm-toolchain-symlinks:15

  llvm-core/llvm-toolchain-symlinks-16-r1 pulled in by:
    llvm-core/llvm-16.0.6 requires llvm-core/llvm-toolchain-symlinks:16

  llvm-core/llvmgold-16 pulled in by:
    llvm-core/llvm-15.0.7-r3 requires >=llvm-core/llvmgold-15
    llvm-core/llvm-16.0.6 requires >=llvm-core/llvmgold-16

>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 llvm-core/llvm
    selected: 14.0.6-r2
   protected: none
     omitted: 15.0.7-r3 16.0.6

 llvm-core/clang-runtime
    selected: 15.0.6
   protected: none
     omitted: 16.0.6

llvm-core/clang-toolchain-symlinks
    selected: 15-r2
   protected: none
     omitted: 16-r2

 llvm-core/clang
    selected: 15.0.7-r1
   protected: none
     omitted: 16.0.6

 llvm-core/clang-runtime
    selected: 15.0.7
   protected: none
     omitted: 16.0.6

All selected packages: =llvm-core/clang-runtime-15.0.7 =llvm-core/clang-runtime-15.0.6 =llvm-core/clang-15.0.7-r1 =llvm-core/clang-toolchain-symlinks-15-r2 =llvm-core/llvm-14.0.6-r2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   984
Packages in world:    260
Packages in system:   50
Required packages:    979
Number to remove:     5

and

Code: Select all

less /var/lib/portage/world
acct-user/spamd
app-admin/apache-tools
app-admin/augeas
app-admin/eselect
app-admin/logrotate
app-admin/perl-cleaner
app-admin/pwgen
app-admin/ranpwd
app-admin/sudo
app-admin/syslog-ng
app-admin/webapp-config
app-antivirus/clamav
app-arch/cabextract
app-arch/lz4
app-arch/rar
app-arch/unrar
app-benchmarks/i7z
app-crypt/acme
app-crypt/certbot
app-crypt/certbot-apache
app-crypt/easy-rsa
app-crypt/gnupg
app-crypt/pinentry
app-crypt/rhash
app-editors/nano
app-editors/vim
app-misc/ca-certificates
app-misc/screen
app-misc/wipe
app-portage/elogv
app-portage/gemato
app-portage/gentoolkit
app-portage/mirrorselect
app-portage/portage-utils
app-shells/bash
app-text/ghostscript-gpl
app-text/multitail
app-text/wgetpaste
app-text/xmlto
app-vim/gentoo-syntax
dev-build/autoconf
dev-build/automake
dev-build/automake-wrapper
dev-build/libtool
dev-build/meson
dev-build/netsurf-buildsystem
dev-build/ninja
dev-db/lmdb
dev-db/redis
dev-db/sqlite
dev-lang/perl
dev-lang/php
dev-lang/python-exec
dev-lang/python:2.7
dev-lang/tcl
dev-libs/apr
dev-libs/apr-util
dev-libs/boost
dev-libs/cyrus-sasl
dev-libs/geoip
dev-libs/glib
dev-libs/icu
dev-libs/ivykis
dev-libs/libbsd
dev-libs/libltdl
dev-libs/libmspack
dev-libs/libtasn1
dev-libs/libunistring
dev-libs/libutf8proc
dev-libs/mpc
dev-libs/mpfr
dev-libs/oniguruma
dev-libs/openssl
dev-perl/CGI
dev-perl/DBD-SQLite
dev-perl/Data-Validate-IP
dev-perl/DateTime
dev-perl/DateTime-Locale
dev-perl/DateTime-TimeZone
dev-perl/Error
dev-perl/Exporter-Tiny
dev-perl/File-Scan-ClamAV
dev-perl/IO-Socket-SSL
dev-perl/LWP-Protocol-https
dev-perl/Mail-DKIM
dev-perl/Mail-SPF
dev-perl/MailTools
dev-perl/Module-Build
dev-perl/Net-CIDR-Lite
dev-perl/Net-DNS-Resolver-Programmable
dev-perl/Net-DNS-SEC
dev-perl/Net-HTTP
dev-perl/Net-SMTP-SSL
dev-perl/NetAddr-IP
dev-perl/Params-Validate
dev-perl/PlRPC
dev-perl/SGMLSpm
dev-perl/Socket6
dev-perl/TermReadKey
dev-perl/Text-Unidecode
dev-perl/TimeDate
dev-perl/URI
dev-perl/WWW-RobotRules
dev-perl/XML-RSS
dev-perl/XML-SAX
dev-perl/XML-XPath
dev-perl/libintl-perl
dev-perl/libwww-perl
dev-php/pecl-apcu
dev-php/pecl-imagick
dev-php/pecl-memcached
dev-python/cffi
dev-python/cryptography
dev-python/ensurepip-pip
dev-python/ensurepip-setuptools
dev-python/feedparser
dev-python/pbr
dev-python/rarfile
dev-python/sabctools
dev-python/setuptools
dev-python/virtualenv
dev-tcltk/expect
dev-util/cmocka
dev-util/glib-utils
dev-util/re2c
dev-vcs/git
dev-vcs/subversion
mail-client/mutt
mail-client/neomutt
mail-filter/procmail
mail-filter/pyzor
mail-filter/razor
mail-filter/spamassassin
mail-mta/postfix
media-libs/faad2
media-libs/flac
media-libs/fontconfig
media-libs/freetype
media-libs/gd
media-libs/libexif
media-libs/libjpeg-turbo
media-libs/libmad
media-libs/libogg
media-libs/libpng
media-libs/libvorbis
media-libs/openjpeg
media-libs/tiff
media-libs/xvid
media-sound/streamripper
media-sound/teamspeak-server
media-tv/linuxtv-dvb-apps
media-tv/tvheadend
media-tv/w_scan
media-video/ffmpeg
net-analyzer/iftop
net-analyzer/nmap
net-analyzer/tcpdump
net-analyzer/traceroute
net-dns/bind-tools
net-dns/c-ares
net-dns/ddclient
net-dns/dnsmasq
net-dns/libidn
net-fs/cifs-utils
net-fs/nfs-utils
net-fs/samba
net-libs/courier-authlib
net-libs/gnutls
net-libs/serf
net-mail/courier-imap
net-mail/fetchmail
net-mail/mailutils
net-mail/metamail
net-misc/curl
net-misc/dhcpcd
net-misc/ifenslave
net-misc/memcached
net-misc/minidlna
net-misc/netifrc
net-misc/openntpd
net-misc/openssh
net-misc/wakeonlan
net-nds/openldap
net-nntp/sabnzbd
net-proxy/privoxy
net-proxy/squid
net-vpn/openvpn
net-vpn/tor
sys-apps/busybox
sys-apps/dmidecode
sys-apps/ethtool
sys-apps/gptfdisk
sys-apps/groff
sys-apps/hd-idle
sys-apps/hdparm
sys-apps/help2man
sys-apps/lm-sensors
sys-apps/mlocate
sys-apps/openrc
sys-apps/pciutils
sys-apps/portage
sys-apps/smartmontools
sys-apps/sysvinit
sys-apps/usbutils
sys-auth/pambase
sys-boot/efibootmgr
sys-boot/grub
sys-devel/binutils
sys-devel/binutils-config
sys-devel/bison
sys-devel/gcc
sys-devel/gcc-config
sys-fs/cryptsetup
sys-fs/extundelete
sys-fs/f2fs-tools
sys-fs/fuse
sys-fs/fuse-common
sys-fs/lvm2
sys-fs/mdadm
sys-fs/ntfs3g
sys-fs/udev
sys-fs/xfsprogs
sys-kernel/genkernel
sys-kernel/gentoo-sources
sys-kernel/linux-firmware
sys-kernel/linux-headers
sys-libs/efivar
sys-libs/glibc
sys-libs/ldb
sys-libs/liburing
sys-libs/pam
sys-libs/readline
sys-libs/talloc
sys-libs/tdb
sys-libs/tevent
sys-libs/timezone-data
sys-libs/zlib
sys-power/apcupsd
sys-power/cpupower
sys-power/powertop
sys-process/cronie
sys-process/iotop
sys-process/lsof
virtual/cron
virtual/dev-manager
virtual/editor
virtual/man
virtual/perl-File-Spec
virtual/perl-IO-Socket-IP
virtual/perl-Storable
virtual/perl-libnet
virtual/perl-podlators
virtual/perl-version
virtual/ssh
www-apache/mod_perl
www-apache/mod_security
www-apache/modsecurity-crs
www-servers/apache
x11-misc/shared-mime-info
x11-misc/xdg-user-dirs
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Fri Jul 18, 2025 11:30 am

Go through all of the *-libs and dev-* categories. If you don't know why something is there, remove it. Then run emerge -ca and see if there's something you want to keep. If there is, emerge --noreplace it and repeat. When you clean up the system, post the new contents of world.

acct-user stuff should not be in world as well as binutils, I think some of the app-crypt stuff too, bash as well, dev-build should be mostly pulled in by other stuff so if you don't recognize something from that category, remove it as well.

Some of the sys-apps should go as well, for example openrc, as i should be pulled in by the profile, I'm not sure about busybox, if you don't know why it's there, it probably shouldn't be, portage as well, sysvinit.

Gcc shouldn't be there as well, virtual/perl-* stuff is suspicious.

Also go through your package.use and see if there's something related to clang/llvm. Also check if you have something in package.mask that may be related.

And finally, I recall a circular dependency between llvm components, so they should be explicitly listed on the command line, but let's doe the above first.

Best Regards,
Georgi
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jul 18, 2025 11:34 am

snIP3r,

Your world file contains a lot of junk. This indicates that you have not been using --oneshot with emerge when building for trouble shooting.
Members of the @system set, libraries and virtuals should never appear. There are a few exceptions, as always.

Code: Select all

virtual/cron
virtual/dev-manager
virtual/editor
virtual/man
virtual/perl-File-Spec
virtual/perl-IO-Socket-IP
virtual/perl-Storable
virtual/perl-libnet
virtual/perl-podlators
virtual/perl-version
virtual/ssh 
can all go. Virtuals are a trick that portage uses to perform dependency resolution when one of several packages are required.
If any in the list are installed, the virtual is satisfied. When none are installed, the first named package in the list is installed.
Consumers depend on the virtual. dependencies of other packages should never be in world. Hence my opening statement.

Code: Select all

dev-build/autoconf
dev-build/automake
dev-build/automake-wrapper
dev-build/libtool
dev-build/meson
dev-build/netsurf-buildsystem ??
dev-build/ninja 
Should all be @system set members or dependencies of other things. As a result, removing them from world should not allow portage to uninstall them.

Code: Select all

dev-libs/apr
dev-libs/apr-util
dev-libs/boost
dev-libs/cyrus-sasl
dev-libs/geoip
dev-libs/glib
dev-libs/icu
dev-libs/ivykis
dev-libs/libbsd
dev-libs/libltdl
dev-libs/libmspack
dev-libs/libtasn1
dev-libs/libunistring
dev-libs/libutf8proc
dev-libs/mpc
dev-libs/mpfr
dev-libs/oniguruma
dev-libs/openssl 
...
dev-perl/libintl-perl
dev-perl/libwww-perl 
...
media-libs/faad2
media-libs/flac
media-libs/fontconfig
media-libs/freetype
media-libs/gd
media-libs/libexif
media-libs/libjpeg-turbo
media-libs/libmad
media-libs/libogg
media-libs/libpng
media-libs/libvorbis
media-libs/openjpeg
media-libs/tiff
media-libs/xvid
...
net-libs/courier-authlib
net-libs/gnutls
net-libs/serf
...
sys-libs/efivar
sys-libs/glibc
sys-libs/ldb
sys-libs/liburing
sys-libs/pam
sys-libs/readline
sys-libs/talloc
sys-libs/tdb
sys-libs/tevent
sys-libs/timezone-data
sys-libs/zlib 
Are all libraries, so should probably not be in world. There are a few oddballs, like libvirt, which is not a library, so go carefully.
That's the easy ones done.

Code: Select all

dev-perl/<module>
should all be depended on by consumers, so they are candidates for removal from world.

Code: Select all

app-editors/nano
Is free with virtual/editor. If you have another text editor installed,

Code: Select all

app-editors/vim
portage will offer no remove nano. It needs to be here to keep nano.

Code: Select all

app-shells/bash 
is in @system.

Code: Select all

dev-lang/python:2.7 
Portage won't use that. If you need it, keep it.

Code: Select all

sys-apps/portage
sys-apps/sysvinit
sys-devel/binutils
sys-devel/binutils-config
sys-devel/bison
sys-devel/gcc
sys-devel/gcc-config 
are @system set members.
sys-apps/sysvinit is only included in non systemd profiles.

I'm sure that there are more candidates for removal too. That's a scan with Mk1 eyeball.

There is or was a script on the wiki to do a test. It's very slow as it goes through world, one package at a time and pretends to remove it
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
snIP3r
l33t
l33t
Posts: 866
Joined: Fri May 21, 2004 6:21 pm
Location: germany

  • Quote

Post by snIP3r » Tue Jul 22, 2025 11:04 am

hi all!

i think i messed up something. first, what i have done:
before start cleaning i backed up the old world file.
then i deleted some entries as suggested and after a deletion i did:

Code: Select all

emerge -uavDN world
revdep-rebuild
emerge @preserved-rebuild
after this i did an

Code: Select all

emerge -ca
went through the list and deleted packages i think not needed anymore.

after some cycles i saw packages in the list for deletion i am sure they are needed (e.g. rust-bin)
but also clang/llvm would be completely whiped off my system:

Code: Select all

llvm-core/clang
    selected: 16.0.6
   protected: none
     omitted: none

 llvm-core/llvm
    selected: 16.0.6
   protected: none
     omitted: none

 llvm-core/clang
    selected: 15.0.7-r1
   protected: none
     omitted: none
ok, so i got panic and recopied the backed up org. world file and repeated emerge -ca. but now, clang/llvm will also be removed completely....

what am i doing wrong here?
hope someone can help me with this mess....

greets
snIP3r
Intel i3-4130T on ASUS P9D-X
Kernel 6.6.52-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3539
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Tue Jul 22, 2025 3:47 pm

Don't panic, nothing that's needed will be depcleaned, put your new world back, maybe share it here, emerge --noreplace rust-bin, run full world update and and then share emerge -pc output.

Best Regards,
Georgi
Top
Post Reply

16 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic