Difficult to use GNOME in Fedora 43 at the moment (mutter)

Hi guys,

There are 2 versions of mutter package at the moment in f43: 49.1.1 and 49.1. Version 49.1.1 has this bug and version 49.1 has this bug.

Both bugs make it pretty difficult for me to use GNOME. Any suggestions, guys?

1 Like

If these are the two upstream versions and they both have bugs, I’m afraid there’s not a lot downstream distributions like Fedora can do. We’ll just have to wait for upstream to release a fix so we can update the package :frowning:

Downgrade, or take the opportunity to discover a WM like Niri or Sway.

The linked discussion points to a specific commit:
core: Consume also key release for keybindings triggering on press (5d357fcc) · Commits · GNOME / mutter · GitLab

You can undo it and build the packages in Copr:

# Set up Copr CLI
sudo dnf install copr-cli
xdg-open https://copr.fedorainfracloud.org/api/

# Create own repo
COPR_NAME="hotfix"
COPR_PKG="mutter"
COPR_SRC="https://src.fedoraproject.org/rpms/${COPR_PKG}"
COPR_BR="f43"
COPR_GIT="https://github.com/GNOME/${COPR_PKG}"
COPR_REV="5d357fccec8b87d840e65509a81ada6aeef4bc35"

copr create ${COPR_NAME} \
--chroot fedora-43-$(arch) \
--enable-net on

copr add-package-custom ${COPR_NAME} \
--name ${COPR_PKG} \
--script-builddeps git-core \
--script /dev/stdin << EOI
git clone -b "${COPR_BR}" "${COPR_SRC}".git .
git clone "${COPR_GIT}".git "${COPR_PKG}"
git -C "${COPR_PKG}" diff "${COPR_REV}" \
"${COPR_REV}"~1 > undo-"${COPR_REV}".patch
sed -i -e "
/^Release:/s|%autorelease|2%{?dist}|
/^Source0:/s|http:|https:|
/^Patch:/a Patch1: undo-${COPR_REV}.patch
" "${COPR_PKG}".spec
EOI

copr build-package ${COPR_NAME} \
--name ${COPR_PKG}
4 Likes

Thanks @vgaetera for the solution! I have just completed rebuilding it from sources myself, but the patch approach is way easier! :+1:

If anyone needs the patched version of mutter:

sudo dnf copr enable jsnjack/hotfix 
sudo dnf update -y
4 Likes