You are not logged in.

#1 2024-09-13 09:45:19

lhy7889678
Member
Registered: 2024-07-22
Posts: 7

Elegant way of modifying the version of an installed AUR package?

Sometimes, there is an update to an AUR package, but I'm not willing to upgrade it, because the update makes no difference at all.

For example, there was an update to the whisper.cpp-model-large-v3 package a few days ago, but it was just some minor refactors to the PKGBUILD file. The upstream did not release a new model file as well, just some minor tweaks to the download script (unrelated to Arch Linux). As a result, I believe that the updated PKGBUILD will yield exactly the same contents as my previously installed package.

Rebuilding the package requires downloading and packaging ~3GB files, which will take up lots of time and disk space. Therefore, I would like to declare that the current installed package is identical to the updated one, and ignore the update.

Is there an elegant way of doing this?

(By the way, the package maintainer bumped the version number from 1-2 to 2-1. I'm not sure if this is the correct behavior...)

Offline

#2 2024-09-13 10:06:09

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,794

Re: Elegant way of modifying the version of an installed AUR package?

lhy7889678 wrote:

Is there an elegant way of doing this?

Not possible or desired, but this package has severe issues .

It seems to use pkgver to determine which version upstream provides and then downloads that specific version in prepare .

That makes the pkgver shown on aur absolutely useless .

You did notice its description ?

This is an autogenerated file, please see https://github.com/hrehfeld/archlinux-whisper.cpp-model

Checking that site

https://github.com/hrehfeld/archlinux-whisper.cpp-model wrote:

I couldn’t figure out how not to download all sources before building, and you really don’t wanna do that with multiple gigabytes of data.

Looking at upstream

https://github.com/ggerganov/whisper.cpp# wrote:

Quick start

First clone the repository:

git clone https://github.com/ggerganov/whisper.cpp.git

Then, download one of the Whisper models converted in ggml format. For example:

bash ./models/download-ggml-model.sh base.en

Looks like the whisper.cpp packages need to be rewritten from scratch.

Last edited by Lone_Wolf (2024-09-13 10:07:42)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-09-13 13:23:54

lhy7889678
Member
Registered: 2024-07-22
Posts: 7

Re: Elegant way of modifying the version of an installed AUR package?

Lone_Wolf wrote:

You did notice its description ?

This is an autogenerated file, please see https://github.com/hrehfeld/archlinux-whisper.cpp-model

Looks like the PKGBUILD files of the latest version of whisper.cpp-model-* are not using the template provided in the repository.

Maybe they were crafted by hand, and the maintainer forgot to remove the description...

Lone_Wolf wrote:

Looks like the whisper.cpp packages need to be rewritten from scratch.

Apart from the model files, the main whisper.cpp{,-cublas,-clblas,-openvino} packages are also problematic.

Their dependencies are shared, so even if I just want to build the cublas version, I have to install the useless openvino package as a depencency.

Looks like these packages share the same PKGBUILD file. I'm not really familiar with this case, and I don't know what's happening inside...

Offline

#4 2024-09-13 13:31:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,234
Website

Re: Elegant way of modifying the version of an installed AUR package?

This is an AUR package ... why would you need to change the version number of what's installed to avoid upgrading to the new one?  Upgrading AUR packages is a manual process.  Just don't upgrade to the new one.

Now I gather that the real question has to do with whatever AUR helper you are using, and you want that helper to ignore a version of this package.  Some helpers have options for this - but which one are you using?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-09-13 13:37:02

lhy7889678
Member
Registered: 2024-07-22
Posts: 7

Re: Elegant way of modifying the version of an installed AUR package?

Trilby wrote:

which one are you using?

I'm using yay.

I just want to ignore the single version (declared as 2-1 currently) and receive other updates to avoid missing "real" updates. Is this possible?

Offline

#6 2024-09-13 13:44:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,234
Website

Re: Elegant way of modifying the version of an installed AUR package?

Yay reads pacman.conf and honors IgnorePkg for any AUR packages.  But (AFAIK) you cannot specify versions in IgnorePkg, you just ignore certain packages entirely.  So you'd need to remove this again later when you were ready to update it again.

You could also directly edit the local pacman db file - these are just text files under /var/lib/pacman/local/.  You'd need to modify the version number in the 'desc' file, then rename the package directory to change the version number in the directory name as well.

Last edited by Trilby (2024-09-13 13:50:34)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2024-09-13 15:54:11

lhy7889678
Member
Registered: 2024-07-22
Posts: 7

Re: Elegant way of modifying the version of an installed AUR package?

Trilby wrote:

But (AFAIK) you cannot specify versions in IgnorePkg, you just ignore certain packages entirely.

OK, then I will try editing the database manually. Thanks for your help!

Offline

Board footer

Powered by FluxBB