You are not logged in.

#1 2020-03-17 23:34:25

Registered: 2020-03-17
Posts: 2

Can't upgrade AUR package because of circular(?) dependency

Hello, new to these forums so apologies if there's an existing answer that I didn't find while searching.

I'm trying to upgrade a package installed through AUR. I did a git pull and a makepkg -sri which fails. The reason given is that it can't upgrade a required package because the current version of my package requires a specific version of the dependency.

Specifically, I cannot upgrade dfhack from 0.44.12-r1 to 0.47.04-1, because the former requires dwarffortress =0.44.12 and so pacman won't upgrade it to the version required by the latter.

the relevant output:

[thuban@arch dfhack]$ makepkg -sri
==> Making package: dfhack 0.47.04-1 (Tue 17 Mar 2020 07:14:29 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for thuban: 
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing dwarffortress (0.47.04-1) breaks dependency 'dwarffortress=0.44.12' required by dfhack
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> dwarffortress=0.47.04

I imagine I could work around this by first manually forcing the install of dwarffortress, and then installing dfhack, OR by uninstalling dfhack, upgrading the other, and then reinstalling.

What I'd like to know is, is there a canonical best practice for this situation, and are there drawbacks to either of the approaches I'm considering?

Last edited by thuban87 (2020-03-18 00:46:36)


#2 2020-03-17 23:47:32

Inspector Parrot
Registered: 2011-11-29
Posts: 22,818

Re: Can't upgrade AUR package because of circular(?) dependency

If there actually was a circular dependency, then you'd just build both of them, then install them together.  But there isn't a circular dependency: dfhack just depends on dwarffortress.  So just build and install dwarffortress first.

EDIT: ah, there is a versioned dependency in both the new and old version of dfhack.  This is not a circular dependency, but the solution is the same.  Build the new version of each package, then install them in the same transaction.

EDIT2: oops, dwarffortress is a repo package.  Unfortunately repo and local packages can't easily be installed in the same transaction, so the advice below is good.  You could set up your own local repo, then they could be installed at the same time: this would make future updates easier, but would take a little bit of time up front.

Last edited by Trilby (2020-03-17 23:56:13)

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman


#3 2020-03-17 23:48:12

From: Serbia
Registered: 2009-03-19
Posts: 717

Re: Can't upgrade AUR package because of circular(?) dependency

Uninstall dfhack, upgrade system, install dfhack again.
dfhack is an AUR package, such situations are rather expected, and as stated frequently, it is up to user of any AUR package to take care and deal with depandancies and all else


#4 2020-03-17 23:52:29

Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,510

Re: Can't upgrade AUR package because of circular(?) dependency

Mod note: Moving to AUR Issues.

Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.


#5 2020-03-18 00:47:59

Registered: 2020-03-17
Posts: 2

Re: Can't upgrade AUR package because of circular(?) dependency

Thanks both of you for the help. All is working well now.


#6 2020-03-18 13:12:41

Forum Moderator
Registered: 2012-01-15
Posts: 3,031

Re: Can't upgrade AUR package because of circular(?) dependency

Please remember to mark your thread [SOLVED] (edit the title of your first post).


#7 2020-03-19 01:27:15

From: Dutch living in Malaysia
Registered: 2015-11-11
Posts: 17

Re: Can't upgrade AUR package because of circular(?) dependency

After you update, you need to remove the .dwarffortress drectory (copy any save games you want to keep). This will make dwarffortress regenerate the settings when run first time. If not, new features will not work correctly.


Board footer

Powered by FluxBB