From dacde204c91b9c5cb25ac793c17e13d287187b57 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sun, 18 Jul 2021 18:27:14 +0200 Subject: makerepropkg: use correct devtools makepkg.conf files from dist Use the recorded buildtool in order to download the matching dist package and use the appropriate makepkg.conf for reproducing the package. This is required as the flags are not recorded in the BUILDINFO hence we need to provide the matching config that declared those flags. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7b991f5..6e0b3dd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ V=20210202 +BUILDTOOLVER ?= $(V)-git PREFIX = /usr/local MANDIR = $(PREFIX)/share/man @@ -92,7 +93,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(PREFIX)/share/devtools|g" %: %.in Makefile lib/common.sh @echo "GEN $@" @$(RM) "$@" - @{ echo -n 'm4_changequote([[[,]]])'; cat $@.in; } | m4 -P --define=m4_devtools_version=$V | $(edit) >$@ + @{ echo -n 'm4_changequote([[[,]]])'; cat $@.in; } | m4 -P --define=m4_devtools_version=$(BUILDTOOLVER) | $(edit) >$@ @chmod a-w "$@" @chmod +x "$@" @bash -O extglob -n "$@" -- cgit v1.2.3-54-g00ecf