@Thyraios The combination of TrialnError's fix to arch= and Ukreskowane's source URL fixes worked! Thanks. Below is a patch, including both fixes, that can be applied to the PKGBUILD:
15,17c15,17
< source=("https://files.dyne.org/?file=tomb/releases/Tomb-$pkgver.tar.gz"
< "https://files.dyne.org/?file=tomb/releases/Tomb-$pkgver.tar.gz.sha"
< "https://files.dyne.org/?file=tomb/releases/Tomb-$pkgver.tar.gz.asc"
---
> source=("https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz"
> "https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz.sha"
> "https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz.asc"
65c65
< arch=('i686' 'x86_64')
---
> arch=('any')
@jcdenton Try to fix also the source list as Ukreskowane suggested ie removing ?file= in each source link.
After attempting TrailnError's suggested fix, I get past the "Overriden arch" error, but the sha256sum check fails:
==> Validating source files with sha256sums...
Tomb-2.13.tar.gz ... FAILED
Tomb-2.13.tar.gz.sha ... FAILED
Tomb-2.13.tar.gz.asc ... Skipped
_tomb ... Passed
==> ERROR: One or more files did not pass the validity check!
I tried with a fresh download of the snapshot, but I still get the same error message.
It's the other way around now.
Globally needs to be changed to 'i686' 'x86_64', the arch line in package_tomb-kdf be removed and arch=('any') added to package_tomb.
Reading the respective MR it seems the solution is to add all architectures to the global var. And set for every split package the respective one local architecture. So package_tomb needs arch=('any') and the global one should look like arch=('any' 'i686' 'x86_64'). Will test that later for the git based one.
Edit: Haha, no. Because of Can not use 'any' architecture with other architectures
Split PKGBUILDS cannot be of different architectures anymore? How annoying.
Switching it to any is wrong though. any is only for packages, which can be compiled on architecture x and this package will work on any other architecture. The global arch=('any') needs to be changed to 'i686' 'x86_64'.
Looking at the changeset or the comments therein it should imo be a valid case, that if global is any every split package valid for the current CARCH should be build.
Build Failed with message :
==> ERROR : Overridden arch in package_tomb-kdf() contains value not in global directive: 'i686'
==> ERROR : Overridden arch in package_tomb-kdf() contains value not in global directive: 'x86_64'
I got it working by replacing :
- arch=('i686' 'x86_64')
+ arch=('any')
in package_tomb-kdf().
On my box the error seems to be triggered by a recent check, validate_arch_override(), added to libmakepkg :
https://gitlab.archlinux.org/pacman/pacman/-/commit/2b281d7124ee510d389d251bd60d4b9cee1e83ab
Hello. I noticed the source is broken, valid urls are:
source=("https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz"
"https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz.sha"
"https://files.dyne.org/tomb/releases/Tomb-$pkgver.tar.gz.asc"
"_tomb")
Please use spdx license identifier.