this post was submitted on 10 Aug 2023
2 points (75.0% liked)

Debian operating system

2724 readers
2 users here now

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

founded 4 years ago
MODERATORS
2
submitted 1 year ago* (last edited 1 year ago) by yote_zip@pawb.social to c/debian@lemmy.ml
 

Edit: Solved for now, going to use Flatpak Steam and Flatpak Lutris to automatically use recent Mesa versions from freedesktop-sdk.

I recently switched from Arch to Debian Stable and so far I've been able to get updates for everything I actually need to keep modern from Flatpaks, Homebrew, personal backporting, compiling from source, etc. It's going well, and I think that stable base + a dozen cutting edge pieces of software is a better strategy for a modern desktop in general than something like Arch, where the entire system is bleeding edge.

The one thing I'm not sure about is getting a recent Mesa version - right now it doesn't matter much, but the Mesa that shipped with Bookworm was already half a year old on launch, so it might be 2.5 years old by the next release. If I end up wanting a newer Mesa version at some point before the next release, is there a recommended way to do it? I've read that backporting Mesa doesn't work very well, so it's probably not going to be a backport in the future.

I've found this script to build a local Mesa environment and allow arbitrary applications to use it instead of the system version, and it seemed to work well in a VM with some tests. You can specify which Mesa version to build, so I'm planning on building the latest stable Mesa branch if needed (e.g. not an x.x.0 release).

It seems like this is the way to go, but I'm wondering if anyone else has dealt with this problem before, and what the recommended path to solve it is if so. As before, I'm not sure I'll need a new Mesa in the next 2 years, but if I do I want to have a plan ready that doesn't push me to move to Sid or a new distro.

top 7 comments
sorted by: hot top controversial new old
[–] suprjami@lemmy.sdf.org 1 points 1 year ago (1 children)

If you're using Flatpak then you'll be using their Mesa, which is updated with the runtime. You can also use Mesa-git which is updated much more frequently.

I am doing this and not worrying about the Debian installed Mesa.

[–] yote_zip@pawb.social 1 points 1 year ago* (last edited 1 year ago) (1 children)

I'm not always using Flatpaks for gaming, e.g. through Lutris with Blizzard games. I know Steam will use Flatpak Mesa automatically but I'm not sure if Flatpak Lutris would do the same thing, or if it's possible to use the Mesa Flatpak with arbitrary non-Flatpak commands.

Edit: Just tested Flatpak Lutris and when spawning a glxinfo terminal it looks like it's using Mesa 23.1.4 instead of the system version of 22.3.6. It seems like this is the most stable solution.

I looked through the Mesa Flatpak's changelog and it seems like they update Mesa sort of aggressively but intentionally skip x.x.0 releases of Mesa, which is the main thing I'm looking for, so this seems good enough for me. I'm not sure if the mesa-git Flatpak is really that useful, since they seem to track pretty tightly against Mesa releases.

[–] suprjami@lemmy.sdf.org 2 points 1 year ago (1 children)

iiuc any Flatpak application must use the Flatpak runtime Mesa. If a library doesn't exist in the Flatpak runtime then the application must package the library itself. No system library is used at all.

[–] Holzkohlen@feddit.de 2 points 1 year ago (1 children)

Well, I thought it would just kinda "connect" to the system one. I use Nvidia and I have at least two nvidia flatpak packages installed, but I highly doubt those are actual drivers. It just installs the version that matches your system installed one and acts like an interface I'd wager. So it's different for mesa?

[–] suprjami@lemmy.sdf.org 1 points 1 year ago

No idea, I'm only interested in open source AMD and Intel.

[–] r0b0@sopuli.xyz 0 points 1 year ago (1 children)

Mesa is usually included in the backports repository some time after a release

[–] yote_zip@pawb.social 1 points 1 year ago

It doesn't look like Bullseye ever got it backported: https://backports.debian.org/changes/bullseye-backports.html

Buster got it backported, but it was backported a few days after Bullseye released, so largely pointless for normal users: https://tracker.debian.org/pkg/mesa/news/?page=3

Stretch got it backported halfway through its release in 2018, which is more acceptable: https://tracker.debian.org/pkg/mesa/news/?page=8

Are there different places to look if this isn't the case? Still learning how to track the Debian pipeline.