offload-build expects a debug package, even if none are created.
offload-build
expects all artifacts from --packagelist
present and hard fails if they are not present. The use case is if debug
packages are unconditionally added to all packages and not all packages are expected to produce a debug package.
λ python-wheel master» git diff .
diff --git a/python-wheel/PKGBUILD b/python-wheel/PKGBUILD
index 21c0cb4..ebd7c68 100644
--- a/python-wheel/PKGBUILD
+++ b/python-wheel/PKGBUILD
@@ -16,6 +16,7 @@ optdepends=('python-keyring: for wheel.signatures'
makedepends=('python-setuptools')
checkdepends=('python-jsonschema' 'python-pytest' 'python-keyring' 'python-keyrings-alt'
'python-xdg' 'python-pytest-cov')
+options=('strip' 'debug')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz")
sha512sums=('9493db2f29e16d17ca06a4d47854b3df5dfd17f21c77efd42befd54470858256fd59f56aa9585cbf0a09830927b657d546324f793e1b1153665bf0b74d0c0457')
λ python-wheel master» makepkg --packagelist /home/fox/.cache/makepkg/pkgdest/python-wheel-0.37.1-1-any.pkg.tar.zst /home/fox/.cache/makepkg/pkgdest/python-wheel-debug-0.37.1-1-any.pkg.tar.zst
λ python-wheel master» PKGDEST="${PWD}" offload-build ==> Making package: python-wheel 0.37.1-1 (Thu 06 Jan 2022 05:51:23 PM CET) [....] ==> Creating package "python-wheel"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: python-wheel 0.37.1-1 (Thu 06 Jan 2022 04:51:47 PM UTC) [No debug package created because there is nothing to strip] [....] -> build complete /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/PKGBUILD /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/PKGBUILD-namcap.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-any.pkg.tar.zst /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-any.pkg.tar.zst-namcap.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-x86_64-build.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-x86_64-check.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-x86_64-package.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1-1-x86_64-prepare.log /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-0.37.1.tar.gz -> copying files... python-wheel-0.37.1-1-any.pkg.tar.zst 100% 46KB 494.0KB/s 00:00 scp: /home/foxboron/.cache/offload-build/tmp.4QvINZAi7D/python-wheel-debug-0.37.1-1-any.pkg.tar.zst: No such file or directory PKGBUILD 100% 1696 42.3KB/s 00:00