You are not logged in.

#1 2016-07-23 21:29:10

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

[SOLVED] Correct way to fix dependency issue on system upgrade?

I have the AUR package ffmpeg-git installed. Today's system upgrade included an update to x265 which caused the upgrade to fail with:

error: failed to prepare transaction (could not satisfy dependencies)
:: ffmpeg-git: installing x265 (2.0-1) breaks dependency 'libx265.so=79-64'

I thought about building ffmpeg-git again, but how could I build it against the new x265 when I can't install the new x265? What I ended up doing was to force the upgrade with:

sudo pacman -Syudd

Then, with the new x265 already installed, I re-built ffmpeg-git. Was there a better way to do this upgrade? Is there something wrong with the PKGBUILD of ffmpeg-git?

Last edited by colinkeenan (2016-07-27 17:26:57)

Offline

#2 2016-07-23 21:46:00

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

Re: [SOLVED] Correct way to fix dependency issue on system upgrade?

You can:
1) build the updated package in a clean chroot, or
2) you can remove the package, update your system, then build the updated package, or
3) do what you did (not recommended).

Your solution isn't good because you're skipping all dependency checks for a full system upgrade. Of the other two solutions, using a clean chroot is the best option, if only because you don't have to remove the existing package to update it. You also get the added bonus of the package not having any hidden dependencies (due to 'greedy' configure scripts)


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 2016-07-23 21:50:18

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [SOLVED] Correct way to fix dependency issue on system upgrade?

Thanks.

I tried option 2 before doing what I did, but could not remove ffmpeg-git due to all the dependency issues. I also could not replace ffmpeg-git with ffmpeg because of the x265 issue. I suppose it would've been better to use the "dd" option on the removal of ffmpeg-git instead of on the full system upgrade. Next time, I'll look into the clean chroot method which I've never done before.

Also, I was not successful in rebuilding ffmpeg-git and ended up just replacing it with ffmpeg anyway. So, another option would've been to use the "dd" option on installing ffmpeg then doing the upgrade.

Last edited by colinkeenan (2016-07-23 21:52:09)

Offline

#4 2016-07-23 22:32:49

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: [SOLVED] Correct way to fix dependency issue on system upgrade?

Thanks again. I just successfully built ffmpeg-git  in a clean chroot. So, I've got ffmpeg-git installed again. I'll be using this method from now on.

Offline

Board footer

Powered by FluxBB