View previous topic :: View next topic |
Author |
Message |
389292 Guru
Joined: 26 Mar 2019 Posts: 504
|
Posted: Tue Oct 13, 2020 4:56 pm Post subject: [Solved] Grub pulls in pulseaudio, xorg, nvidia-drivers |
|
|
During new install Grub pulls-in: alsa, pulseaudio, xorg, nvidia-drivers, and tons of other things from media-libs/* like xvid, x264, dav1d, flac, to name a few, why is that? Why it needs xorg, it's not a graphical application, and sound, and nvidia??? Here is what was in the make.conf of that (in the end ditched) install:
Code: | # Please consult /usr/share/portage/config/make.conf.example for a more detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j10 -l10"
PORTAGE_NICENESS="1"
EMERGE_DEFAULT_OPTS="--jobs=10 --load-average=10 --with-bdeps=y --complete-graph=y"
FEATURES="news unmerge-orphans parallel-fetch parallel-install"
VIDEO_CARDS="nvidia"
GRUB_PLATFORMS="pc"
INPUT_DEVICES="libinput keyboard mouse wacom"
MICROCODE_SIGNATURES="-s 0x000206c2"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
LANG="en_US.UTF-8" ## english language
LC_NUMERIC="en_US.UTF-8" ## . instead of ,
LC_MESSAGES="en_US.UTF-8" ## default terminal output
LC_TIME="en_DK.UTF-8" ## YYYYMMDD
LC_PAPER="ru_RU.UTF-8" ## A4 format, mm,cm
LC_MONETARY="ru_RU.UTF-8" ## rubles ₽
LC_MEASUREMENT="ru_RU.UTF-8" ## metric
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/ https://gentoo-mirror.alexxy.name/"
USE="djvu ffmpeg pulseaudio"
USE="${USE} -accessibility -aqua -bindist -bluetooth -branding -cdda -cddb -cdr -consolekit -doc -dvb -dvd -dvdr -flickr -ftp -geoclue -geoip -geolocation -gnome -gnome-keyring -googledrive -gps -handbook -ios -ipod -kde -kwallet -lastfm -libav -libnotify -mysql -networkmanager -notification -notify -plasma -python_targets_python2_7 -samba -sndfile -startup-notification -systemd -wayland -xscreensaver -zeroconf"
CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
ACCEPT_LICENSE="-* @FREE"
ACCEPT_KEYWORDS="~amd64" |
For Grub itself there were two local useflags "mount" and "device-mapper".
Last edited by 389292 on Thu Oct 15, 2020 10:45 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
Posted: Tue Oct 13, 2020 4:59 pm Post subject: |
|
|
Can you post emerge output adding -t option? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21489
|
Posted: Tue Oct 13, 2020 6:26 pm Post subject: |
|
|
Most likely, grub pulled in some utility that has optional sound or GUI support. That optional support was enabled, which in turn pulled in pulseaudio or Xorg. Xorg then pulled in nVidia drivers. Grub itself doesn't need pulseaudio, Xorg, or nVidia drivers, but indirectly pulled in something that did. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Oct 13, 2020 6:49 pm Post subject: |
|
|
You may want to disable the USE flags 'fonts', 'themes' and 'truetype' for sys-boot/grub. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2702
|
Posted: Tue Oct 13, 2020 6:56 pm Post subject: |
|
|
In case of nvidia-drivers, it defaults to USE="X gtk3 tools" regardless of profile to build nvidia-settings. It's optional but it'll be pulling a lot of X and GUI-related stuff as-is. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1505 Location: South America
|
Posted: Tue Oct 13, 2020 8:57 pm Post subject: |
|
|
/etc/portage/package.use
I keep saying to myself that I should file a bug about this, and then end up not doing it |
|
Back to top |
|
|
389292 Guru
Joined: 26 Mar 2019 Posts: 504
|
Posted: Thu Oct 15, 2020 10:44 am Post subject: |
|
|
GDH-gentoo, thank you. |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1505 Location: South America
|
Posted: Tue Oct 20, 2020 11:10 pm Post subject: |
|
|
GDH-gentoo wrote: | /etc/portage/package.use
|
As of today, this should be no longer needed. Hopefully new Gentoo users that happened to choose a desktop profile will no longer have to wonder why Portage is building Mesa and LLVM if they only wanted a bootloader |
|
Back to top |
|
|
|