From 73002e8ebbd52b3187b08c1217524407073c2eb4 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Thu, 1 Feb 2024 15:11:45 +0200 Subject: [PATCH] Upgrade libs * OpenSSL 3.0.13 * OpenLDAP 2.6.7 * Qt 6.6.2 IB-7954, IB-7956, IB-7984 Signed-off-by: Raul Metsma --- .github/workflows/build.yml | 2 +- client/CMakeLists.txt | 1 + prepare_osx_build_environment.sh | 31 +++++++++++++++---------------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9712a9bc..09212bbf5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -180,7 +180,7 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v3 with: - version: 6.6.1 + version: 6.6.2 arch: win64_msvc2019_64 modules: qt5compat - name: Setup dev env diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 2594007aa..39a35ae8f 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -1,5 +1,6 @@ add_executable( TSLDownload TSLDownload.cpp ) target_link_libraries(TSLDownload Qt${QT_VERSION_MAJOR}::Network) +set_target_properties(TSLDownload PROPERTIES AUTOMOC OFF) get_target_property(qtCore_install_prefix Qt${QT_VERSION_MAJOR}::qmake IMPORTED_LOCATION) get_filename_component(qtCore_install_prefix ${qtCore_install_prefix} DIRECTORY) add_custom_command( diff --git a/prepare_osx_build_environment.sh b/prepare_osx_build_environment.sh index ea9802b27..88c35924c 100755 --- a/prepare_osx_build_environment.sh +++ b/prepare_osx_build_environment.sh @@ -4,9 +4,9 @@ set -e ######### Versions of libraries/frameworks to be compiled -QT_VER="6.6.1" -OPENSSL_VER="3.0.12" -OPENLDAP_VER="2.6.6" +QT_VER="6.6.2" +OPENSSL_VER="3.0.13" +OPENLDAP_VER="2.6.7" REBUILD=false BUILD_PATH=~/cmake_builds : ${MACOSX_DEPLOYMENT_TARGET:="11.0"} @@ -68,28 +68,31 @@ ORANGE='\033[0;33m' RED='\033[0;31m' RESET='\033[0m' +mkdir -p ${BUILD_PATH} +pushd ${BUILD_PATH} + if [[ ! -d ${OPENSSL_PATH} ]] ; then echo -e "\n${ORANGE}##### Building OpenSSL ${OPENSSL_VER} ${OPENSSL_PATH} #####${RESET}\n" - mkdir -p ${BUILD_PATH} && cd ${BUILD_PATH} if [ ! -f openssl-${OPENSSL_VER}.tar.gz ]; then curl -O -L https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz fi rm -rf openssl-${OPENSSL_VER} tar xf openssl-${OPENSSL_VER}.tar.gz - cd openssl-${OPENSSL_VER} + pushd openssl-${OPENSSL_VER} for ARCH in x86_64 arm64; do ./Configure darwin64-${ARCH} --prefix=${OPENSSL_PATH} shared no-autoload-config no-module no-tests enable-ec_nistp_64_gcc_128 make -s > /dev/null make install_sw - mv ${OPENSSL_PATH} ${OPENSSL_PATH}.${ARCH} + mv ${OPENSSL_PATH}{,.${ARCH}} make distclean done - cp -a ${OPENSSL_PATH}.x86_64 ${OPENSSL_PATH} - cd ${OPENSSL_PATH}.arm64 + popd + cp -a ${OPENSSL_PATH}{.x86_64,} + pushd ${OPENSSL_PATH}.arm64 for i in lib/lib*3.dylib; do lipo -create ${OPENSSL_PATH}.x86_64/${i} ${i} -output ${OPENSSL_PATH}/${i} done - cd - + popd else echo -e "\n${GREY} OpenSSL not built${RESET}" fi @@ -98,8 +101,6 @@ if [[ "$REBUILD" = true || ! -d ${QT_PATH} ]] ; then qt_ver_parts=( ${QT_VER//./ } ) QT_MINOR="${qt_ver_parts[0]}.${qt_ver_parts[1]}" echo -e "\n${ORANGE}##### Building Qt ${QT_VER} ${QT_PATH} #####${RESET}\n" - mkdir -p ${BUILD_PATH} - pushd ${BUILD_PATH} for PACKAGE in qtbase-everywhere-src-${QT_VER} qtsvg-everywhere-src-${QT_VER} qttools-everywhere-src-${QT_VER} qt5compat-everywhere-src-${QT_VER}; do if [ ! -f ${PACKAGE}.tar.xz ]; then curl -O -L http://download.qt.io/official_releases/qt/${QT_MINOR}/${QT_VER}/submodules/${PACKAGE}.tar.xz @@ -113,19 +114,16 @@ if [[ "$REBUILD" = true || ! -d ${QT_PATH} ]] ; then ${QT_PATH}/bin/qt-configure-module . fi cmake --build . --parallel - cmake --build . --target install + cmake --install . popd rm -rf ${PACKAGE} done - popd else echo -e "\n${GREY} Qt not built${RESET}" fi if [[ "$REBUILD" = true || ! -d ${OPENLDAP_PATH} ]] ; then echo -e "\n${ORANGE}##### Building OpenLDAP ${OPENLDAP_VER} ${OPENLDAP_PATH} #####${RESET}\n" - mkdir -p ${BUILD_PATH} - pushd ${BUILD_PATH} if [ ! -f openldap-${OPENLDAP_VER}.tgz ]; then curl -O -L http://mirror.eu.oneandone.net/software/openldap/openldap-release/openldap-${OPENLDAP_VER}.tgz fi @@ -139,7 +137,8 @@ if [[ "$REBUILD" = true || ! -d ${OPENLDAP_PATH} ]] ; then make make install popd - popd else echo -e "\n${GREY} OpenLDAP not built${RESET}" fi + +popd