You are not logged in.

#1 2024-04-26 05:01:37

Zatena
Member
Registered: 2023-08-06
Posts: 33

[SOLVED] Avoid Time and CPU intensive compilation or add root password

Hello,
I've enabled the NVIDIA graphics card on my DELL 9570 Notebook. However, when I update my system using yay --devel, it prompts me to compile electron and brave-browser. Starting this process results in all CPU threads being utilized at 100% for over 10 hours, and always, the compilation fails because I don't enter the root password quickly enough.

Is there a way to change this compilation process to decrease the processor utilization or configure Arch Linux to not request the root password during this operation?

BR

Last edited by Zatena (2024-04-26 14:58:53)

Offline

#2 2024-04-26 07:48:09

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Afaict "yay --devel" should not update anything but cause an error…

The *compilation* doesn't fail because you're not entering your PW fast enough, only the installation of the package. They'll still be around in some yay cache?

There're packages of precompiled brave versions in the AUR, https://aur.archlinux.org/packages?O=0&K=brave
Alternatively, don't use yay. You can update your system with pacman and rebuild AUR packages when required. Not every single time.

Offline

#3 2024-04-26 08:24:17

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

seth wrote:

There're packages of precompiled brave versions in the AUR, https://aur.archlinux.org/packages?O=0&K=brave

I am not sure if I understand you correctly. I am not as experienced as I wish to be.

If I use yay -Si brave I get the following output

yay -Si brave-bin
Repository                    : aur
Name                          : brave-bin
Version                       : 1:1.65.122-1
Beschreibung                  : Web browser that blocks ads and trackers by default (binary release)
URL                           : [url]https://brave.com[/url]
Lizenzen                      : BSD  custom:chromium  MPL2
Gruppen                       : Keine
Bietet                        : brave=1.65.122  brave-browser
Ist abhängig von              : alsa-lib  gtk3  libxss  nss  ttf-font
Optionale Abhängigkeiten      : cups  libgnome-keyring  libnotify
Abhängigkeiten herstellen     : Keine
Prüfe Abhängigkeiten          : Keine
Ist in Konflikt mit           : brave
Ersetzt                       : Keine
AUR-URL                       : [url]https://aur.archlinux.org/packages/brave-bin[/url]
Erstmals eingereicht          : Wed 06 Apr 2016 03:16:04 PM CEST
Stichworte                    : brave  browser
Zuletzt geändert              : Thu 25 Apr 2024 07:29:31 AM CEST
Betreuer                      : alerque
Beliebtheit                   : 14.080115
Stimmen                       : 763
Veraltet                      : No

For me it seems to be that I already use the recommended brave-bin version. Am I correct ?


Furthermore, do I understand you correct that when I change the used graphic card the system should not build brave from scratch. In the past the system compiled brave within 1-3 minutes and now it took hours, I thought this is because of the graphic card change.

Last edited by Zatena (2024-04-26 08:25:07)

Offline

#4 2024-04-26 08:28:31

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Stop using yay.

pacman -Qs 'electron|brave'

Offline

#5 2024-04-26 08:31:22

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

The output for this command is:

pacman -Qs 'electron|brave'
local/brave-bin 1:1.65.114-1
    Web browser that blocks ads and trackers by default (binary release)
local/electron22 22.3.27-5
    Build cross platform desktop apps with web technologies
local/electron25 25.9.8-5
    Build cross platform desktop apps with web technologies
local/electron27 27.3.11-2
    Build cross platform desktop apps with web technologies
local/electron28 28.3.1-2
    Build cross platform desktop apps with web technologies

Does the "local" mean that I compile it by myself instead of using the pre-compiled ?
What is the best way to change this ?

A general question. Why do you recommend pacman instead of yay ?

Last edited by Zatena (2024-04-26 08:32:51)

Offline

#6 2024-04-26 08:39:48

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

https://wiki.archlinux.org/title/AUR_he … n_wrappers
The worst part is that they blend AUR and repos.

pacman -Qi electron25 # cause that's not in the repos

Edit:

Does the "local" mean that I compile it by myself instead of using the pre-compiled ?

No.

Last edited by seth (2024-04-26 08:40:11)

Offline

#7 2024-04-26 09:15:27

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Hello seth,

I understand that for repos pacman is the best way to update/install.
What would you recommendation for updating/installing AUR ?

Offline

#8 2024-04-26 09:18:21

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

https://wiki.archlinux.org/title/AUR_helpers - see the warning on the top.
It doesn't matter what AU helper you use, just need to be aware of the implications and not *rely* on any of them.

Did you figure why you've electron25 installed?

Offline

#9 2024-04-26 09:34:50

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

I am sorry for asking so stupid question but I am really happy for your hints.

I used the pacman -Qi command, the dependencies looks like, which seems to me a high amount of application that requires electron25:

Hängt ab von             : c-ares  gcc-libs  glibc  gtk3  libgtk-3.so=0-64  libevent  libffi  libffi.so=8-64  nss  zlib  libz.so=1-64  fontconfig  libfontconfig.so=1-64  woff2  libwoff2dec.so=1.0.2-64  brotli  libjpeg
                           libjpeg.so=8-64  icu  libicui18n.so=74-64  libicuuc.so=74-64  dav1d  libdav1d.so=7-64  flac  libFLAC.so=12-64  snappy  libxml2  libxml2.so=2-64  ffmpeg  libwebp  libwebpdemux.so=2-64
                           libwebpmux.so=3-64  libwebp.so=7-64  minizip  opus  libopus.so=0-64  harfbuzz  libharfbuzz.so=0-64  libharfbuzz-subset.so=0-64  jsoncpp  libjsoncpp.so=25-64  libxslt  libxslt.so=1-64  libpng
                           libpng16.so=16-64  freetype2  libfreetype.so=6-64
Optionale Abhängigkeiten : kde-cli-tools: file deletion support (kioclient5)
                           pipewire: WebRTC desktop sharing under Wayland [Installiert]
                           qt5-base: enable Qt5 with --enable-features=AllowQt [Installiert]
                           trash-cli: file deletion support (trash-put)
                           xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open) [Installiert]

Offline

#10 2024-04-26 09:41:29

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

That is what electron25 (optionally) requires, not why it's installed.

Last edited by seth (2024-04-26 09:41:49)

Offline

#11 2024-04-26 09:45:12

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

I am sorry I don't know why it is installed, I didn't install it on purpose. It might be that it was installed when I installed discord but I don't know exactly.

The reason why I installed brave in this way was the description at the brave homepage: https://brave.com/linux/

Last edited by Zatena (2024-04-26 09:50:23)

Offline

#12 2024-04-26 09:55:01

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

When I updated the system using yay the system ask for updating jdk, does this help ?

yay --devel
:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 sublime-text ist aktuell
:: Durchsuche AUR nach Updates...
:: Prüfe Entwicklungspakete...
:: Es sind 13 Anbieter für java-runtime-headless verfügbar:
:: Repository extra
    1) jdk-openjdk 2) jdk11-openjdk 3) jdk17-openjdk 4) jdk21-openjdk 5) jre-openjdk 6) jre-openjdk-headless 7) jre11-openjdk 8) jre11-openjdk-headless 9) jre17-openjdk 10) jre17-openjdk-headless 11) jre21-openjdk 12) jre21-openjdk-headless 13) jre8-openjdk-headless 

Geben Sie eine Zahl ein (Vorgabe=1):
==> 1
:: Durchsuche Datenbanken nach Updates...
:: 14 dependency wird für diesen Vorgang ebenfalls installiert.
    extra/clang                 -> 17.0.6-1
    (make dependency of electron25)
    extra/gn                    -> 0.2157.22581fb4-1
    (make dependency of electron25)
    extra/gperf                 -> 3.1-5
    (make dependency of electron25)
    extra/http-parser           -> 2.9.4-2
    (make dependency of electron25)
    extra/jdk-openjdk           -> 22.0.1.u0-1
    (make dependency of electron25)
    extra/lld                   -> 17.0.6-1
    (make dependency of electron25)
    extra/llvm                  -> 17.0.6-2
    (make dependency of electron25)
    extra/ninja                 -> 1.11.1-3
    (make dependency of electron25)
    extra/nodejs-lts-hydrogen   -> 18.18.2-2
    (make dependency of electron25)
    extra/npm                   -> 10.5.2-1
    (make dependency of electron25)
    extra/patchutils            -> 0.4.2-2
    (make dependency of electron25)
    extra/python-httplib2       -> 0.22.0-4
    (make dependency of electron25)
    extra/python-pyparsing      -> 3.1.2-1
    (make dependency of electron25)
    extra/yarn                  -> 1.22.22-1
    (make dependency of electron25)

:: 2 Pakete zu upgraden/installieren.
2  aur/brave-bin   1:1.65.114-1 -> 1:1.65.122-1
1  aur/electron25  25.9.8-5     -> 25.9.8-6

Offline

#13 2024-04-26 09:55:05

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

pacman -Qi is actually telling you why it's installed - if you look at the output instead of posting random, irrelevant parts of it, this might actually go somewhere...

Offline

#14 2024-04-26 10:02:31

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Ok, this is the output for pacman -Qi

pacman -Qi electron25
Name                     : electron25
Version                  : 25.9.8-5
Beschreibung             : Build cross platform desktop apps with web technologies
Architektur              : x86_64
URL                      : https://electronjs.org
Lizenzen                 : MIT  BSD-3-Clause
Gruppen                  : Nichts
Stellt bereit            : Nichts
Hängt ab von             : c-ares  gcc-libs  glibc  gtk3  libgtk-3.so=0-64  libevent  libffi  libffi.so=8-64  nss  zlib  libz.so=1-64  fontconfig  libfontconfig.so=1-64  woff2  libwoff2dec.so=1.0.2-64  brotli  libjpeg
                           libjpeg.so=8-64  icu  libicui18n.so=74-64  libicuuc.so=74-64  dav1d  libdav1d.so=7-64  flac  libFLAC.so=12-64  snappy  libxml2  libxml2.so=2-64  ffmpeg  libwebp  libwebpdemux.so=2-64
                           libwebpmux.so=3-64  libwebp.so=7-64  minizip  opus  libopus.so=0-64  harfbuzz  libharfbuzz.so=0-64  libharfbuzz-subset.so=0-64  jsoncpp  libjsoncpp.so=25-64  libxslt  libxslt.so=1-64  libpng
                           libpng16.so=16-64  freetype2  libfreetype.so=6-64
Optionale Abhängigkeiten : kde-cli-tools: file deletion support (kioclient5)
                           pipewire: WebRTC desktop sharing under Wayland [Installiert]
                           qt5-base: enable Qt5 with --enable-features=AllowQt [Installiert]
                           trash-cli: file deletion support (trash-put)
                           xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open) [Installiert]
Benötigt von             : Nichts
Optional für             : Nichts
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
Installationsgröße       : 201,63 MiB
Packer                   : Caleb Maclennan <alerque@archlinux.org>
Erstellt am              : Mo 04 Mär 2024 14:10:56 CET
Installiert am           : Mo 04 Mär 2024 19:33:35 CET
Installationsgrund       : Installiert als Abhängigkeit eines anderen Pakets
Installations-Skript     : Nein
Verifiziert durch        : Signatur

I assume you refer to "Benötigt von (Required by) : Nichts"
"Nichts" means nothing.

But "Installationsgrund: Installiert als Abhängigkeit eines anderen Pakets" means "Installreason: Installed because of dependencies with another package"

Last edited by Zatena (2024-04-26 10:34:14)

Offline

#15 2024-04-26 12:17:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,903
Website

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#16 2024-04-26 12:31:25

loqs
Member
Registered: 2014-03-06
Posts: 17,454

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

electron25 was installed as a dependency of another package that is no longer installed on the system?

Offline

#17 2024-04-26 12:53:28

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

And it probably fell out of fashion w/ https://aur.archlinux.org/cgit/aur.git/ … bcc5967e1e and into the AUR - where yay happily picked it up.

Offline

#18 2024-04-26 13:13:34

loqs
Member
Registered: 2014-03-06
Posts: 17,454

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

A combination of the use of yay and not checking for orphans and dropped packages leading to wasted CPU time and user frustration.

Offline

#19 2024-04-26 14:38:41

Zatena
Member
Registered: 2023-08-06
Posts: 33

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Thank you very much for the description and your help.

I did "sudo pacman -R $(pacman -Qtdq)" multiple times in order to delete the unused packages.
Afterwards the update was done within minutes.

Offline

#20 2024-04-26 14:43:29

seth
Member
Registered: 2012-09-03
Posts: 51,764

Re: [SOLVED] Avoid Time and CPU intensive compilation or add root password

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB