You are not logged in.

#1 2020-01-21 16:44:29

berocs
Member
Registered: 2018-04-02
Posts: 7

Problem updating package with AUR helper

As you can see in the comments at https://aur.archlinux.org/packages/clon … ent-715902, updating the clonehero package to 0.23.2.1 produces sha1sums errors in the "clonehero-linux.tar.gz" file. Downloading it and building it with `makepkg -sic` worked just fine. In my case, using pamac, doing a `sudo rm -rf /opt/clonehero/Custom/README.txt /opt/clonehero/README.txt` before installing with the AUR helper fixed the problem. In another, using pacaur, removing the offending "clonehero-linux.tar.gz" file solved the problem, as seen here: https://aur.archlinux.org/packages/clon … ent-725453. That same comment recommends a way of solving the issue. My question is, is that the recommended way to solve it? Is the issue happening because the downloaded archive has the same name as the previous one? I doubt it, because other updates were fine, and the Clone Hero developers always name their release archives "clonehero-linux.tar.gz". Plus, I solved it by just removing the READMEs. Maybe then it's because the README isn't present in the 0.23.2.1 release as in previous releases?

Offline

#2 2020-01-21 16:52:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: Problem updating package with AUR helper

AUR helpers are by principle not supported and it isn't an inherent issue with the package if it breaks with AUR helpers.

However what I suppose you should do regardless is to rename the downloaded tar.xz and append the version string, see the warning in: https://wiki.archlinux.org/index.php/PKGBUILD#source for the reason why and the proper resolution of this.

Last edited by V1del (2020-01-21 16:53:18)

Offline

#3 2020-01-21 18:01:48

berocs
Member
Registered: 2018-04-02
Posts: 7

Re: Problem updating package with AUR helper

Wow great, thanks!

Offline

#4 2020-01-21 20:03:39

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

Re: Problem updating package with AUR helper

source=("${pkgname}-${pkgver}.tar.gz"::"http://dl.clonehero.net/clonehero-v.23.2.2/clonehero-linux.tar.gz"

Renaming the source to be unique is a good step.

Another good step is not hardcoding "v.23.2.2"; instead, use this to remove the first 0. component of the pkgver:

source=("${pkgname}-${pkgver}.tar.gz"::"http://dl.clonehero.net/clonehero-v.${pkgver#*.}/clonehero-linux.tar.gz"

(maybe the developers should add the 0 to the download name anyway, then again do you think you can get them to change...)


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

Offline

Board footer

Powered by FluxBB