You are not logged in.

#1 2021-07-21 15:25:14

jlw
Member
Registered: 2020-11-19
Posts: 6

[SOLVED] Installing mutter-git when gnome/mutter is already installed?

I'm trying to install mutter-git from the AUR to get around an issue with it (specially this one: https://gitlab.gnome.org/GNOME/mutter/-/issues/1686). However, I already have gnome and mutter installed which causes conflicts during the installation. I've tried removing mutter and all its dependencies, then installing mutter-git, but reinstalling gnome then also causes conflicts.

Is there a way of installing mutter-git with mutter already installed, effectively replacing it?

Last edited by jlw (2021-07-21 20:40:06)

Offline

#2 2021-07-21 15:39:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

Please post the actual errors you get, in between code tags.

https://bbs.archlinux.org/viewtopic.php?id=57855
https://wiki.archlinux.org/title/Genera … s_and_code

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2021-07-21 17:18:22

jlw
Member
Registered: 2020-11-19
Posts: 6

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

Absolutely. And thank you for moving the post to where it is supposed to be.

Running makepkg -i in the cloned repo ends with the following warning:

==> Finished making: mutter-git 40.1+234+g7bc476343-1 (Wed 21 Jul 2021 06:27:33 PM CEST)
==> Installing package mutter-git with pacman -U...
[sudo] password for jlw: 
loading packages...
resolving dependencies...
looking for conflicting packages...
:: mutter-git and mutter are in conflict. Remove mutter? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing mutter breaks dependency 'libmutter-8.so=0-64' required by gnome-shell
==> WARNING: Failed to install built package(s).

Removing mutter with all its dependencies (sudo pacman -Rc mutter) removes gnome-shell, gnome-shell-extensions and gdm. mutter-git then installs correctly (using makepkg -i). However, when I reinstall the removed packages ( sudo pacman -S gnome-shell gnome-shell-extensions gdm) I get the following error:

resolving dependencies...
looking for conflicting packages...
:: mutter and mutter-git are in conflict. Remove mutter-git? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: mutter and mutter-git are in conflict

Last edited by jlw (2021-07-21 17:36:55)

Offline

#4 2021-07-21 19:55:13

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

jlw did you try building mutter not mutter-git locally with the sed change added? That would preserve the compatibility with gnome-shell.
Otherwise you need to switch gnome-shell to gnome-shell-git to match mutter-git.  There may be other packages that need to changed to there git versions as well.
Edit:
Or revert the commit that introduced the issue:

git diff
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 857ee98..c2e989c 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -29,6 +29,7 @@ pkgver() {
 
 prepare() {
   cd $pkgname
+  git revert -n b2b66aa8c6068bce2024e6256cfbc6d2788382e1
 }
 
 build() {

Last edited by loqs (2021-07-21 20:09:19)

Offline

#5 2021-07-21 20:39:42

jlw
Member
Registered: 2020-11-19
Posts: 6

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

That did indeed work -- thanks a bunch! (Ended up building and installing the git version of all packages that depend on mutter.) I was unaware that I had to use the git versions throughout.

I'm supposing that the easiest way of managing this is through an AUR helper. However, as you suspected, I have added the sed change in the PKGBUILD file for mutter. Is there a convenient way of making sure this addition stays or is reapplied to new commits?

Offline

#6 2021-07-21 23:14:36

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

git stash # store the local change
git pull # Incorporate changes from upstream PKGBUILD
git stash pop # Add the local changes back

If the local changes can not be merged cleanly

git mergetool

-git packages auto update and generally need less changes to the PKGBUILD than none VCS packages.  That allows to rebuild -git packages without the above steps.

Offline

#7 2021-07-22 19:47:46

jlw
Member
Registered: 2020-11-19
Posts: 6

Re: [SOLVED] Installing mutter-git when gnome/mutter is already installed?

That looks promising -- thanks again!

Offline

Board footer

Powered by FluxBB