[pacman-dev] [PATCH] Add pkgarch to .BUILDINFO

Robin Broda robin at broda.me
Thu May 3 07:39:16 UTC 2018


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 at broda.me>
---
 doc/BUILDINFO.5.txt   | 3 +++
 scripts/makepkg.sh.in | 2 ++
 2 files changed, 5 insertions(+)

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
-- 
2.17.0


More information about the pacman-dev mailing list