terraform: Fix build

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-09-16 09:13:04 +09:00 committed by xtkoba
parent 264888cf79
commit 40c3321f59
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ termux_step_make() {
chmod 0755 "$(dirname "$f")"
chmod 0644 "${f}"
patch --silent -p1 -d "$(dirname "$f")" <"${TERMUX_PKG_TMPDIR}"/patch1
# The patch above does not fix build issue for some reason.
# Alternative workaround:
rm -f "${f}"
echo "package pq" > "${f}"
done
local GO_LDFLAGS="-X 'github.com/hashicorp/terraform/version.Prerelease='"