Updated openssh build script to v8.6p1

This commit is contained in:
takeshix 2021-04-19 15:28:36 +02:00
parent 0dc37eb390
commit 73ddc59fab

View file

@ -1,19 +1,23 @@
#!/bin/bash #!/bin/bash
set -e if [ -z "$GITHUB_WORKSPACE" ];then
set -x echo "GITHUB_WORKSPACE environemnt variable not set!"
set -o pipefail exit 1
fi
if [ "$#" -ne 1 ];then if [ "$#" -ne 1 ];then
echo "Usage: ${0} [x86|x86_64|armhf|aarch64]" echo "Usage: ${0} [x86|x86_64|armhf|aarch64]"
echo "Example: ${0} x86_64" echo "Example: ${0} x86_64"
exit 1 exit 1
fi fi
set -e
set -o pipefail
set -x
source $GITHUB_WORKSPACE/build/lib.sh source $GITHUB_WORKSPACE/build/lib.sh
init_lib $1 init_lib $1
build_openssh() { build_openssh() {
fetch "https://github.com/openssh/openssh-portable.git" "${BUILD_DIRECTORY}/openssh-portable" git fetch "https://github.com/openssh/openssh-portable.git" "${BUILD_DIRECTORY}/openssh-portable" git
cd "${BUILD_DIRECTORY}/openssh-portable" cd "${BUILD_DIRECTORY}/openssh-portable"
git checkout V_7_9 git checkout V_8_6_P1
git clean -fdx git clean -fdx
autoreconf -i autoreconf -i
CC="gcc ${GCC_OPTS}" \ CC="gcc ${GCC_OPTS}" \