Forums

Skip to content

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

libdrm keeps wanting extra video cards? [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Illiander
Apprentice
Apprentice
Posts: 258
Joined: Tue Feb 22, 2011 2:11 pm

libdrm keeps wanting extra video cards? [SOLVED]

  • Quote

Post by Illiander » Sun Aug 27, 2023 9:25 pm

I'm doing a clean install on new hardware, and I'm at the point of installing desktop applications, some of which need gtk+.

Which needs libdrm.

Which keeps wanting USE flags for a bunch of graphics cards that I don't have. Sometimes it asks for what looks like every graphics card USE flag.

How do I make it not do that?

Or is it safe to give libdrm the extra flags, and it won't break my nvidia-drivers? (I'm running proprietary nvidia)
Last edited by Illiander on Mon Aug 28, 2023 11:50 am, edited 1 time in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Sun Aug 27, 2023 11:11 pm

Please show the entire output you are questioning.

Also, what does grep -ri video_cards /etc/portage/ output?
Top
Illiander
Apprentice
Apprentice
Posts: 258
Joined: Tue Feb 22, 2011 2:11 pm

  • Quote

Post by Illiander » Sun Aug 27, 2023 11:19 pm

Emerge output:

Code: Select all

# emerge @preserved-rebuild
Calculating dependencies... done!
Dependency resolution took 2.54 s.

[ebuild   R    ] x11-libs/libdrm-2.4.115  VIDEO_CARDS="amdgpu* nouveau* radeon*" 
[ebuild   R    ] x11-drivers/xf86-video-amdgpu-23.0.0 
[ebuild   R    ] x11-drivers/xf86-video-ati-22.0.0 
[ebuild   R    ] x11-drivers/xf86-video-nouveau-1.0.17 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-ati-22.0.0::gentoo
# required by @preserved-rebuild (argument)
>=x11-libs/libdrm-2.4.115 video_cards_nouveau video_cards_radeon video_cards_amdgpu

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.
grep output:

Code: Select all

# grep -ri video_cards /etc/portage/
/etc/portage/package.use/nvidia:media-libs/mesa -video_cards_amdgpu -video_cards_intel -video_cards_nouveau -video_cards_radeon
/etc/portage/make.conf:USE="-kde -qt4 -mono -systemd -gnome -video_cards_amdgpu -video_cards_intel -video_cards_nouveau -video_cards_radeon aalib acpi apache2 atm bash-completion bidi caps cddb cdinstall cgi cjk css cups curl cvs cxx dga djvu dv dvb dvd dist-kernel dvdr emacs encode exif expat fbcon ffmpeg fltk freetds freewnn ftp gd geoip gimp git gsm gstreamer hardened hddtemp idn ieee1394 imagemagick imap ipv6 java javascript joystick jpeg jpeg2k kerberos latex libwww lirc lmsensors lua lz4 mad magic matroska mikimod mmap mng mp3 mp4 mpeg mtp musepack musicbrainz mysql mysqli ncurses nntp nocd nsplugin offensive openexr php portaudio postscript pulseaudio python qmail-spp quicktime raw readline rss samba sasl scanner session smp sockets socks5 sound source sox spell ssl subversion svga tcl theora unicode v4l vcd videos vulkan wavpack wmf x264 xine xinerama amp xscreensaver zeroconf zsh-completion"
/etc/portage/make.conf:VIDEO_CARDS="nvidia"
I probably don't need all those use flags explicitly turned on since I'm on a desktop profile if I'm being honest. Holdovers from previous systems.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon Aug 28, 2023 12:05 am

You should complete a full update, e.g. emerge -avuDU @world, followed up by a depclean, emerge -ac, before trying to target @preserved-rebuild.

This will likely remove the need for the changes and may omit the need for @preserved-rebuild.
Top
Illiander
Apprentice
Apprentice
Posts: 258
Joined: Tue Feb 22, 2011 2:11 pm

  • Quote

Post by Illiander » Mon Aug 28, 2023 11:49 am

That sorted it, thanks.

Any ideas why it started in the first place?
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon Aug 28, 2023 12:23 pm

Illiander wrote:Any ideas why it started in the first place?
Just order of operations. @preserved-rebuild should be last as it can hold on to libraries which are attached to packages scheduled to be removed. Doing a depclean (aka -c) of the system first, often removes messages for @preserved-rebuild in many cases.

If such calls for @preserved-rebuild remain after a --depclean, then it is worth running.
Top
Post Reply

6 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