Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Klinkovský <lahwaacz@archlinux.org>2024-02-11 13:37:49 +0100
committerJakub Klinkovský <lahwaacz@archlinux.org>2024-02-11 13:37:49 +0100
commit98bd7e376091ef8a19d848f865521cb13fdfb577 (patch)
tree614f8748f567f01942405978b5cdc0504b388db9
parent3e79cb8f4a92d26d643b4138bd4b8e69d655a6bb (diff)
fix(build): explicitly add --nosign when building a srcpkg
We should explicitly instruct makepkg to not sign the source package, even when the BUILDENV array in makepkg.conf contains 'sign'. The devtools workflow is to always sign separately from building, which is different from makepkg and it should not depend on its configuration. Furthermore, this function is currently used only in offload-build to collect sources that are transferred to the server before the build itself. Signing this source package does not provide any benefits.
-rw-r--r--src/lib/util/makepkg.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/util/makepkg.sh b/src/lib/util/makepkg.sh
index adb3af6..22df247 100644
--- a/src/lib/util/makepkg.sh
+++ b/src/lib/util/makepkg.sh
@@ -28,7 +28,9 @@ makepkg_source_package() {
export LIBMAKEPKG_SRCINFO_SH=1
write_srcinfo() { print_srcinfo; }
- set +e -- -F --source
+ # explicitly instruct makepkg to not sign the source package, even when
+ # the BUILDENV array in makepkg.conf contains 'sign'
+ set +e -- -F --source --nosign
# shellcheck source=/usr/bin/makepkg
source "$(command -v makepkg)"
)