Skip to content

Commit

Permalink
packaging/ubuntu-16.04: use FIPS toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo authored and Meulengracht committed Sep 10, 2024
1 parent 73efe2e commit f64d328
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/ubuntu-16.04/control
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Build-Depends: autoconf,
gcc-multilib [amd64],
gettext,
gnupg2,
golang-go (>=2:1.18~) [!powerpc] | golang-1.18 [!powerpc],
golang-go (>=2:1.18~) [!powerpc] | golang-1.18 [!powerpc] | golang-1.20,
grub-common,
indent,
init-system-helpers,
Expand Down
7 changes: 6 additions & 1 deletion packaging/ubuntu-16.04/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export DH_GOLANG_GO_GENERATE=1
export PATH:=${PATH}:${CURDIR}
# make sure that correct go version is found on xenial
export PATH:=/usr/lib/go-1.18/bin:${PATH}
ifneq (,$(filter fips,$(DEB_BUILD_OPTIONS)))
# when building with FIPS, use Go 1.20 which is also declared in build
# dependencies
export PATH:=/usr/lib/go-1.20/bin:${PATH}
endif
# GOCACHE is needed by go-1.13+
export GOCACHE:=/tmp/go-build

Expand Down Expand Up @@ -91,7 +96,7 @@ ifneq (,$(filter testkeys,$(DEB_BUILD_OPTIONS)))
_TAGS := withtestkeys,withbootassetstesting,faultinject
_SNAP_TAGS := nomanagers,withtestkeys,faultinject
else
_SNAP_TAGS=-tags nomanagers
_SNAP_TAGS=nomanagers
endif

ifneq (,$(filter fips,$(DEB_BUILD_OPTIONS)))
Expand Down

0 comments on commit f64d328

Please sign in to comment.