Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Grub pulls in pulseaudio, xorg, nvidia-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 493
Location: Russia

PostPosted: Tue Oct 13, 2020 4:56 pm    Post subject: [Solved] Grub pulls in pulseaudio, xorg, nvidia-drivers Reply with quote

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 etnull on Thu Oct 15, 2020 10:45 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Moderator
Moderator


Joined: 08 Mar 2003
Posts: 26014
Location: here

PostPosted: Tue Oct 13, 2020 4:59 pm    Post subject: Reply with quote

Can you post emerge output adding -t option?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 17023

PostPosted: Tue Oct 13, 2020 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2790
Location: Frankfurt, Germany

PostPosted: Tue Oct 13, 2020 6:49 pm    Post subject: Reply with quote

You may want to disable the USE flags 'fonts', 'themes' and 'truetype' for sys-boot/grub.
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1799

PostPosted: Tue Oct 13, 2020 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
GDH-gentoo
l33t
l33t


Joined: 20 Jul 2019
Posts: 707
Location: South America

PostPosted: Tue Oct 13, 2020 8:57 pm    Post subject: Reply with quote

/etc/portage/package.use
Code:
sys-boot/grub -sdl

I keep saying to myself that I should file a bug about this, and then end up not doing it :P
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 493
Location: Russia

PostPosted: Thu Oct 15, 2020 10:44 am    Post subject: Reply with quote

GDH-gentoo, thank you.
Back to top
View user's profile Send private message
GDH-gentoo
l33t
l33t


Joined: 20 Jul 2019
Posts: 707
Location: South America

PostPosted: Tue Oct 20, 2020 11:10 pm    Post subject: Reply with quote

GDH-gentoo wrote:
/etc/portage/package.use
Code:
sys-boot/grub -sdl

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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