Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/makerepropkg.in
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2021-06-21 20:46:16 +0200
committerLevente Polyak <anthraxx@archlinux.org>2021-07-17 22:56:11 +0200
commit0a0e66a784d4831c4139bf646b5329bff54465d7 (patch)
tree10c0aae49fcd0c08fb999a35c0d3933e4a73d524 /makerepropkg.in
parent60e96c9d4bc22062f4633fbc1faa57a2947d0605 (diff)
feat: support exposing buildtool to aid reproducible builds configs
This helps to map the correct build tool configs that are required to reproduce a specific package and have the appropriate *FLAGS etc.
Diffstat (limited to 'makerepropkg.in')
-rwxr-xr-xmakerepropkg.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/makerepropkg.in b/makerepropkg.in
index 6ce50d4..1b1987b 100755
--- a/makerepropkg.in
+++ b/makerepropkg.in
@@ -178,6 +178,8 @@ parse_buildinfo < <(bsdtar -xOqf "${splitpkgs[0]}" .BUILDINFO)
export SOURCE_DATE_EPOCH="${buildinfo[builddate]}"
PACKAGER="${buildinfo[packager]}"
BUILDDIR="${buildinfo[builddir]}"
+BUILDTOOL="${buildinfo[buildtool]}"
+BUILDTOOLVER="${buildinfo[buildtoolver]}"
PKGEXT=${splitpkgs[0]#${splitpkgs[0]%.pkg.tar*}}
# nuke and restore reproducible testenv
@@ -201,7 +203,7 @@ makechrootpkg -r "${buildroot}" -l "${chroot}" -- --packagelist || exit 1
# set detected makepkg.conf options
{
- for var in PACKAGER BUILDDIR PKGEXT; do
+ for var in PACKAGER BUILDDIR BUILDTOOL BUILDTOOLVER PKGEXT; do
printf '%s=%s\n' "${var}" "${!var@Q}"
done
printf 'OPTIONS=(%s)\n' "${buildopts[*]@Q}"