Unable to update mesa from copr

I started with adding the gloriouseggroll/ mesa-aco repo file.
rpm-ostree update --preview immediatly shows the available upgrades.
rpm-ostree update afterwards lists 0 available upgrades.

$ rpm-ostree update --preview
1 metadata, 0 content objects fetched; 592 B transferred in 1 seconds; 0 bytes content written
Enabled rpm-md repositories: gloriouseggroll-mesa-aco gloriouseggroll-mesa-aco-i386 rpmfusion-nonfree code copr:copr.fedorainfracloud.org:dawid:better_fonts fedora updates rpmfusion-nonfree-updates fedora-cisco-openh264 rpmfusion-free-updates rpmfusion-free
AvailableUpdate:
       Upgraded: mesa-dri-drivers 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-filesystem 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-libEGL-devel 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-libGL 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-libOSMesa 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-libglapi 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
                 mesa-vulkan-drivers 20.2.1-2.fc33 -> 20.3.0-20201026.9c1f6ed.fc33
$ rpm-ostree update
1 metadata, 0 content objects fetched; 592 B transferred in 1 seconds; 0 bytes content written
Checking out tree 967a4b3... done
Enabled rpm-md repositories: gloriouseggroll-mesa-aco gloriouseggroll-mesa-aco-i386 rpmfusion-nonfree code copr:copr.fedorainfracloud.org:dawid:better_fonts fedora updates rpmfusion-nonfree-updates fedora-cisco-openh264 rpmfusion-free-updates rpmfusion-free
No upgrade available.

As mesa is part of the base image, you probably need to use:

$ rpm-ostree override replace <pkgs>
1 Like

As aco is part of mesa, and enabled by default, you might consider not using a patched driver.

1 Like

Unfortunatly replace with copr/repo/remote packages is not supported yet. As mesa is built up of many packages and the copr is fairly close to upstream (updated every few days) the replace with local packages isn’t optimal.

The repository includes patches (in addition to ACO) and is fairly close to upstream which is required for some modern games. It also allows me to test upstream mesa with a clean base image to provide test/issue feedback.

My bad, I thought this wasn’t based on master.

1 Like

With the upcoming launch of AMD CPUs and GPUs this feature will be essential to some. If it’s not possible with existing options can we come up with a workaround?

I’m missing an API to get the latest rpm of an copr to do it without a toolbox.

toolbox enter-> dnf download -> exit -> rpm-ostree override replace latest_local.rpm would be an option.

You could run commands in a toolbox directly with toolbox run to download the RPMs from the COPR and then rpm-ostree override replace *.rpm.

Or also download them directly from the copr (or koji, for future references in other cases)