Skip to content

Problem with AUR

Hi, I'm new to Arch Linux. When I tried to install Librewolf using yay or compiling from pkgbuild, the installation was taking a very, very long time and consumed 6 to 7 GB of space and didn't seem to be completing. I was so excited that AUR has everything I needed. Am I doing it something wrong?

Edit: Thank you all! It is working fine now after trying librewolf-bin.

Edited 12 Sep 2021. We only hold this version.

79 points24 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
79 · 91% up
Kind
Text
ID
pmolye

Author

1
posts
5
comments
0
media
View profile

26 comments

unknown author4 hidden

Deleted before we saved it.

77 points
unknown author2 hidden

Yeah, try to use bins when given the chance. Compiling is a feat, but you rarely need it.

13 points

Installing librewolf will download the source and compile it which takes a long time because browsers are huge.

You want librewolf-bin

63 points

If you ever built a browser like Firefox from source, you understand you're not doing anything wrong and it might take a long while depending on your system.

I have 16 core AMD Ryzen and it took maybe an hour to compile Firefox from source ( this was before Firefox was default wayland compatible and I wanted a Wayland version)

25 points

This happened with other very small packages as well. That's why

7 points

Don't tell me the other "small" package is Brave
this take even longer than LibreWolf to compile

8 points

also if you want to compile yourself, edit the line MAKEFLAGS in /etc/makepkg.conf with the -j flag: uncomment it and put the number of your cpu threads next to it (example: -j12)

6 points

You are doing something wrong, takes around 20 minutes with a Ryzen 3700X.

Edit: since I'm getting downvoted, firefox compilation is not getting faster, they add more and more rust/cargo crates over the time and this is making the builds slower. The only reason I could see this taking an hour on a 16 core CPU is if you are actually not building with 16threads or you use a slow HDD for storage.

Source: I've been updating firefox on voidlinux, therefor building firefox releases for for different architectures and libc implementations to test them: https://github.com/void-linux/void-packages/commits/master?branch=master&path[]=srcpkgs&path[]=firefox&path[]=template

1 points

Do you use ccache or anything? Or just the default build settings. 20 minutes seems quite fast to me.

6 points

Is there a reason Mozilla doesn't make the Rust code compile concurrently? It takes maybe 4 minutes with my 5950X to compile the C stuff and then 15 minutes to compile the Rust code

2 points

Yeah as a rule of thumb, if something you're trying to install from AUR is taking forever to compile, look for a -bin version for a pre-compiled binary.

10 points

Browsers are basically operating systems when it comes to code comexity, so this is to be expected. As was pointed out here already, the AUR normally doesn't use pre-compiled packes like the official repos, but instead compiles them from source. The AUR is mostly just a collection of PKGBUILD files, which are scripts for automatically compiling the programs.

4 points

Relatively common AUR packages that have long compilation times have a "-bin" alternative in the AUR that packages a precompiled binary. If you don't want to deal with long compilation times you can check for these.

7 points

Sounds like the same mistake I made when trying to download firefox-kde-opensuse, I was like why the hell is this taking hours?

1 points

Librewolf has trouble on almost every distro. Install it via flatpak instead

1 points

Don't mean to be stupid and all, but have you tried getting all your needed base-devel and software updates?

if not:

​

sudo pacman -Syuu

and

sudo pacmac -S -needed base-devel

Sometimes a conflict with the older versions of some repo/program you may have. I had AUR installation errors because pacman and yay had some conflict and I had to do some digging before finding out what happened!

-5 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.