You are not logged in.

#1 2020-12-03 13:26:10

desperado
Member
Registered: 2018-10-12
Posts: 25

[solved] Tell makepkg to redownload the source everytime the vers...

Right now, makepkg doesn't redownload the source when the version number changes and as a result, I am getting a validity error. How do you fix this?

Last edited by desperado (2020-12-03 14:43:27)

Offline

#2 2020-12-03 13:31:53

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,068
Website

Re: [solved] Tell makepkg to redownload the source everytime the vers...

man makepkg wrote:

       -C, --cleanbuild
           Remove the $srcdir before building the package.


Update
Are you talking about a VCS package?
Because non-VCS packages should have the source point to a specific release.

Otherwise if you do something like

source=("${pkgname}::git+${url}/${pkgname}-${pkgver}.tar.gz")

It will not re-download the source, if the file exists.
You can circumvent this issue by appending the respective version to the file:

source=("${pkgname}-${pkgver}::git+${url}/${pkgname}-${pkgver}.tar.gz")

Last edited by schard (2020-12-03 13:36:33)

Offline

#3 2020-12-03 13:32:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,936
Website

Re: [solved] Tell makepkg to redownload the source everytime the vers...

The short-sighted answer is to delete the existing downloaded source.  But if what you claim is really happening, the PKGBUILD should be fixed.  What package is this?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-12-03 13:58:11

desperado
Member
Registered: 2018-10-12
Posts: 25

Re: [solved] Tell makepkg to redownload the source everytime the vers...

Trilby wrote:

The short-sighted answer is to delete the existing downloaded source.  But if what you claim is really happening, the PKGBUILD should be fixed.  What package is this?

It's just a little test package I've written.

schard wrote:

Are you talking about a VCS package?

I'm picking it from the releases (so no VCS I guess). Think of it like this:

source=("${url}/${pkgname}.tar.gz")

The source doesn't have a version appended to the name. This must be why the source isn't getting downloaded.

Last edited by desperado (2020-12-03 14:30:01)

Offline

#5 2020-12-03 14:50:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 24,936
Website

Re: [solved] Tell makepkg to redownload the source everytime the vers...

It seems you missed the big red warning box here:
https://wiki.archlinux.org/index.php/PKGBUILD#Sources

(Admittedly, the context in the wiki is a source file with a version and no package name, but it applies just the same when it has the package name and no version)

Last edited by Trilby (2020-12-03 14:51:33)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB