You are not logged in.

#1 2023-03-10 21:01:14

Monero
Member
Registered: 2022-04-18
Posts: 25

Applying patch to AUR

Hi, could someone help me out with installing a program?

I'm trying to install this:

https://aur.archlinux.org/packages/cctv-viewer-git

Of course it fails:

error while loading shared libraries: libavformat.so.59: cannot open shared object file: No such file or directory

I'm trying to apply the patch that is listed on the AUR page, but have no idea how. Also I am not sure this fixes it anyways, because the problem seems to stem from ffmpeg. And I don't know which version of ffmpeg I'd need to install to make this work either.

Any ideas? Thanks!

Offline

#2 2023-03-10 21:09:28

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

Re: Applying patch to AUR

Did you rebuild cctv-viewer-git after you updated to ffmpeg 2:6.0-3?  I just built the package and the binary cctv-viewer was not linked to libavformat.so.59 but only to libavformat.so.60.

Last edited by loqs (2023-03-10 21:09:45)

Offline

#3 2023-03-10 22:10:48

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

Re: Applying patch to AUR

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

#4 2023-03-11 12:48:40

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Applying patch to AUR

Save the patch as a file and run "git apply" on it. But in this case it might be easier to jast add

sed -i "s/Qt6//g" "${srcdir}/cctv-viewer/CMakeLists.txt"

to the prepare function of the PKGBUILD using a text editor.

Offline

#5 2023-03-11 17:56:34

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

Re: Applying patch to AUR

As the PKGBUILD only uses qt5 packages a clean chroot build would avoid qt6 being used without requiring patching.

What is the connection between qt6 and  libavformat.so.59?  Why would a fix for a build failure from before the ffmpeg 6 update be relevant to a runtime failure indicating the package has not been rebuilt?

Last edited by loqs (2023-03-11 17:56:45)

Offline

Board footer

Powered by FluxBB