Skip to content

Commit

Permalink
Only set DEB_BUILD_OPTIONS and DEB_BUILD_PROFILES for cross-building …
Browse files Browse the repository at this point in the history
…when unset

Adapted from sbuild.
  • Loading branch information
jtdor committed May 18, 2024
1 parent fefc90c commit f5b23c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/build_packages
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ if [ -n "$INPUT_HOST_ARCH" ]; then
if [ -z "${CONFIG_SITE-}" ]; then
export CONFIG_SITE="/etc/dpkg-cross/cross-config.$INPUT_HOST_ARCH"
fi
export DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS:+$DEB_BUILD_OPTIONS }nocheck"
export DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES:+$DEB_BUILD_PROFILES }cross nocheck"
if [ -z "${DEB_BUILD_OPTIONS-}" ]; then
export DEB_BUILD_OPTIONS='nocheck'
fi
if [ -z "${DEB_BUILD_PROFILES-}" ]; then
export DEB_BUILD_PROFILES='cross nocheck'
fi
INPUT_BUILDPACKAGE_OPTS="$INPUT_BUILDPACKAGE_OPTS --host-arch=$INPUT_HOST_ARCH"
fi

Expand Down

0 comments on commit f5b23c4

Please sign in to comment.