You are not logged in.

#1 2017-01-17 13:59:51

lviggiani
Member
Registered: 2014-02-28
Posts: 141

[SOLVED] Prevent pacman from overwrting some files

Node WebKit SDK (nwjs-sdk AUR) comes with a "free" version of libffmpeg.so that does not support .mp3 files (for example).
That lib is installed under

/opt/nwjs-sdk/lib/

.
I have manually replaced it with a prebuild version of the same lib that does support all media formats. The issue is that every time the package is upgraded, that lib is overwritten with the default one.
Is the a way to lock that file only?

Last edited by lviggiani (2017-01-17 14:14:05)

Offline

#2 2017-01-17 14:11:29

hoerbert
Member
Registered: 2013-04-03
Posts: 87

Re: [SOLVED] Prevent pacman from overwrting some files

Offline

#3 2017-01-17 14:12:52

lviggiani
Member
Registered: 2014-02-28
Posts: 141

Re: [SOLVED] Prevent pacman from overwrting some files

Great thanks!

Offline

#4 2017-01-17 15:24:10

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Prevent pacman from overwrting some files

pacman's NoExtract option prevents files from being extracted from an updated version, but it doesn't prevent pacman from deleting the old copy in preparation for the upgrade. The file is still listed as belonging to that package.

Since this is an AUR package, it makes far more sense to modify the PKGBUILD itself. Although really, the PKGBUILD should not be arbitrarily restricting what ffmpeg can do. Actually, it should be using the system ffmpeg if it comes to that. wink


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB