diff mbox

[pacman-dev] Add pkgarch to .BUILDINFO

Message ID f526ef15-bf42-f3ca-acc1-4d35521b03ac@broda.me
State Accepted, archived
Headers show

Commit Message

Robin Broda May 3, 2018, 7:39 a.m. UTC
Architecture information is required for repro tooling

This is a revised version of https://patchwork.archlinux.org/patch/475/

Signed-off-by: Robin Broda <robin@broda.me>
---
 doc/BUILDINFO.5.txt   | 3 +++
 scripts/makepkg.sh.in | 2 ++
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/doc/BUILDINFO.5.txt b/doc/BUILDINFO.5.txt
index bac6d49f..a7e6b2e4 100644
--- a/doc/BUILDINFO.5.txt
+++ b/doc/BUILDINFO.5.txt
@@ -38,6 +38,9 @@  BUILDINFO file format.
 *pkgver*::
 	The version of the package including pkgrel and epoch.
 
+*pkgarch*::
+	The architecture of the package.
+
 *pkgbuild_sha256sum*::
 	The sha256sum in hex format of the PKGBUILD used to build the package.
 
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c9111078..17591c4b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -687,6 +687,8 @@  write_buildinfo() {
 	local fullver=$(get_full_version)
 	write_kv_pair "pkgver" "$fullver"
 
+	write_kv_pair "pkgarch" "$pkgarch"
+
 	local sum="$(sha256sum "${BUILDFILE}")"
 	sum=${sum%% *}
 	write_kv_pair "pkgbuild_sha256sum" $sum