steamdeck-linux / decker

A Package Restore Helper for the Steam Deck.
GNU General Public License v3.0
32 stars 1 forks source link

Adding chaotic-aur repository to pacman and update glibc automaticaly. #14

Open NightHammer1000 opened 2 years ago

NightHammer1000 commented 2 years ago

SteamOS ships with alot of stripped packages that makes building anything from AUR a real pain in the ass.

So using a prebuilt AUR Repository like chaotic-aur is the way to go.

https://aur.chaotic.cx/

This Requires you to install an up to date glibc tho, because most of the chaotic-aur packages are built against a newer Version than SteamOS ships.

These can be installed manually tho through: sudo pacman -U https://america.mirror.pkgbuild.com/core/os/x86_64/glibc-2.35-6-x86_64.pkg.tar.zst https://america.mirror.pkgbuild.com/core/os/x86_64/lib32-glibc-2.35-6-x86_64.pkg.tar.zst

This allows Steam Deck users to install things like vkbasalt that wont build under stock SteamOS

moxvallix commented 2 years ago

I'm not used to using other AUR repositories, might need some help setting Decker up to use this.

As we currently use Paru to download from the AUR, is it possible to change it to use this repo?

NightHammer1000 commented 2 years ago

It isnt actually an AUR as the Name suggest. Chaotic AUR provides Prebuilt AUR Packages and is added just like any other Pacman Repository.

Instructions are found under the Link I posted above.

moxvallix commented 2 years ago

Hmm, so we would need to edit pacman.conf to achieve this?

Maybe we can make it an option to automatically add the repo to pacman.conf? People might not want us changing the pacman.conf by default.

NightHammer1000 commented 2 years ago

Yep. Optional is best.

Keep in mind that an edit to pacman.conf survives Updates as its not part of the Read Only Filesystem

But I can tell you that supporting building AURs yourself is going to be a nightmare. Valve stripped everything not necessary out of the Installed Packages. Almost non of the Libs needed for building stuff are missing. You would have to reinstall every single installed package to get all the Stuff needed for that. I, personally, gave up on building AURs.

They even stripped additional Languages out of glibc.

There isn't a single AUR that is not a bin that I could get to build on this thing.

moxvallix commented 2 years ago

That would explain the problems I was having getting people to build my patched Evdi driver.