Skip to content

Commit b674942

Browse files
committed
Fixed build issues [docker_verify]
1 parent 060d4ce commit b674942

7 files changed

Lines changed: 13 additions & 43 deletions

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
61
name: "Code Analysis using CodeQL"
72

83
on:
@@ -11,7 +6,6 @@ on:
116
pull_request:
127
branches: [ master ]
138

14-
# This is what will cancel the workflow
159
concurrency:
1610
group: ${{ github.workflow }}-${{ github.ref }}
1711
cancel-in-progress: true
@@ -24,49 +18,21 @@ jobs:
2418
strategy:
2519
fail-fast: false
2620
matrix:
27-
# Override automatic language detection by changing the below list
28-
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
2921
language: ['cpp']
30-
# Learn more...
31-
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3222

3323
steps:
3424
- name: Checkout repository
3525
uses: actions/checkout@v4
3626
with:
37-
# We must fetch at least the immediate parents so that if this is
38-
# a pull request then we can checkout the head.
3927
fetch-depth: 2
4028

41-
# If this run was triggered by a pull request event, then checkout
42-
# the head of the pull request instead of the merge commit.
43-
- run: git checkout HEAD^2
44-
if: ${{ github.event_name == 'pull_request' }}
45-
46-
# Initializes the CodeQL tools for scanning.
4729
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v1
30+
uses: github/codeql-action/init@v2
4931
with:
5032
languages: ${{ matrix.language }}
51-
# If you wish to specify custom queries, you can do so here or in a config file.
52-
# By default, queries listed here will override any specified in a config file.
53-
# Prefix the list here with "+" to use these queries and those in the config file.
54-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
#- name: Autobuild
59-
# uses: github/codeql-action/autobuild@v1
60-
61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 https://git.io/JvXDl
63-
64-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65-
# and modify them (or add more) to build your code if your project
66-
# uses a compiled language
6733

6834
- run: |
69-
sudo apt update -yqq && sudo apt install --no-install-recommends -yqq ninja-build libpq-dev libcurl4-openssl-dev autoconf-archive unzip uuid-dev odbc-postgresql unixodbc unixodbc-dev apache2 apache2-dev libapr1-dev libaprutil1-dev memcached libmemcached-dev redis-server libssl-dev zlib1g-dev cmake make clang-format-11 ninja-build libjsoncpp-dev libjansson-dev libc-ares-dev libboost-all-dev
35+
sudo apt update -yqq && sudo apt install --no-install-recommends -yqq ninja-build libpq-dev libcurl4-openssl-dev autoconf-archive unzip uuid-dev odbc-postgresql unixodbc unixodbc-dev apache2 apache2-dev libapr1-dev libaprutil1-dev memcached libmemcached-dev redis-server libssl-dev zlib1g-dev cmake make clang-format ninja-build libjsoncpp-dev libjansson-dev libc-ares-dev libboost-all-dev
7036
pushd /tmp
7137
wget -q https://github.com/efficient/libcuckoo/archive/master.zip
7238
unzip master.zip

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ if(MOD_SDORM_SQL)
577577
set(CMAKE_REQUIRED_LIBRARIES "pq")
578578
check_symbol_exists(PQenterBatchMode "libpq-fe.h" HAVE_LIBPQ_BATCH)
579579
check_symbol_exists(PQenterPipelineMode "libpq-fe.h" HAVE_LIBPQ_PIPELINE)
580+
set(CMAKE_REQUIRED_LIBRARIES "")
580581
endif()
581582
include_directories("${CMAKE_SOURCE_DIR}/modules/sdorm/sql" "${CMAKE_SOURCE_DIR}/modules/sdorm/sql/libpq")
582583
else()
@@ -616,7 +617,7 @@ if(MOD_SDORM_MONGO)
616617
set(CMAKE_REQUIRED_INCLUDES "/usr/include/libmongoc-1.0" "/usr/include/libbson-1.0" "/usr/local/include/libmongoc-1.0" "/usr/local/include/libbson-1.0")
617618
include_directories("/usr/include/libmongoc-1.0" "/usr/include/libbson-1.0" "/usr/local/include/libmongoc-1.0" "/usr/local/include/libbson-1.0")
618619
if(APPLE)
619-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/opt/homebrew/include/libmongoc-1.0 -I/opt/homebrew/include/libbson-1.0 ")
620+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/opt/homebrew/include/libmongoc-1.0 -I/opt/homebrew/include/libbson-1.0")
620621
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/opt/homebrew/include/libmongoc-1.0 -I/opt/homebrew/include/libbson-1.0")
621622
set(CMAKE_REQUIRED_INCLUDES "/opt/homebrew/include/libmongoc-1.0" "/opt/homebrew/include/libbson-1.0")
622623
include_directories("/opt/homebrew/include/libmongoc-1.0" "/opt/homebrew/include/libbson-1.0")

docker/build-android-openssl.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ echo "https://www.openssl.org/source/${LIB_NAME}.tar.gz"
5151
DEVELOPER=
5252
SDK_VERSION=
5353
#rm -rf "${LIB_DEST_DIR}" "${LIB_NAME}"
54-
[ -f "${LIB_NAME}.tar.gz" ] || curl https://www.openssl.org/source/${LIB_NAME}.tar.gz >${LIB_NAME}.tar.gz
54+
#[ -f "${LIB_NAME}.tar.gz" ] || curl https://www.openssl.org/source/${LIB_NAME}.tar.gz >${LIB_NAME}.tar.gz
55+
wget -q https://www.openssl.org/source/${LIB_NAME}.tar.gz
5556

5657
set_android_toolchain_bin
5758

docker/cross-build-deps.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ build_curl() {
104104
LD=$TOOLCHAIN/bin/ld RANLIB=$TOOLCHAIN/bin/llvm-ranlib STRIP=$TOOLCHAIN/bin/llvm-strip LIBS="-lssl -lcrypto" \
105105
LDFLAGS="-L${STAGE_DIR}/lib" CPPFLAGS="-I${STAGE_DIR}/include" ./configure --build=`./config.guess` --target="${TARGET}" --host="${TARGET}" --prefix=${STAGE_DIR} \
106106
--with-ssl=${STAGE_DIR} --with-zlib --disable-ftp --disable-gopher --disable-file --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy \
107-
--disable-rtsp --disable-smtp --disable-telnet --disable-tftp --without-gnutls --without-libidn --without-librtmp --disable-dict
107+
--disable-rtsp --disable-smtp --disable-telnet --disable-tftp --without-gnutls --without-libidn --without-librtmp --disable-dict --without-nghttp2 --without-libidn2 \
108+
--without-libpsl --disable-ldap --disable-ldaps --enable-shared --disable-dependency-tracking
108109
else
109110
env NM=${TARGET}-nm AS=${TARGET}-as LD=${TARGET}-ld CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
110111
LDFLAGS="-L${STAGE_DIR}/lib" CPPFLAGS="-I${STAGE_DIR}/include" ./configure --build=`./config.guess` --target="${TARGET}" --host="${TARGET}" --prefix=${STAGE_DIR} \
111112
--with-ssl=${STAGE_DIR} --with-zlib --disable-ftp --disable-gopher --disable-file --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy \
112-
--disable-rtsp --disable-smtp --disable-telnet --disable-tftp --without-gnutls --without-libidn --without-librtmp --disable-dict
113+
--disable-rtsp --disable-smtp --disable-telnet --disable-tftp --without-gnutls --without-libidn --without-librtmp --disable-dict --without-nghttp2 --without-libidn2 \
114+
--without-libpsl --disable-ldap --disable-ldaps --enable-shared --disable-dependency-tracking
113115
fi
114116
make -j"$(nproc)" > /dev/null
115117
make install

docker/dockcross-build-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ build_curl() {
5353
#curl -sLo- https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz | tar xz -C ${BUILD_DIR}
5454
git clone https://github.com/curl/curl && mv curl ${BUILD_DIR}/curl-${CURL_VERSION}
5555
pushd ${BUILD_DIR}/curl-${CURL_VERSION}
56-
cmake -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX=${STAGE_DIR} .
56+
cmake -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DUSE_NGHTTP2=OFF -DUSE_LDAP=OFF -DUSE_LIBIDN2=OFF -DUSE_LIBPSL=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_CURL_EXE=OFF -DCURL_USE_OPENSSL=ON -DCMAKE_INSTALL_PREFIX=${STAGE_DIR} .
5757
make install
5858
popd
5959
}

docker/os-based/DockerFile-OpenSuse-x64-ffead-cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM opensuse/leap
22

3-
RUN zypper in -y autoconf-archive autoconf automake libtool perl gcc gcc-c++ make cmake postgresql-devel libcurl-devel openssl libopenssl-devel libmemcached-devel zlib-devel libuuid-devel unixODBC unixODBC-devel unzip wget netcat-openbsd tar gzip
3+
RUN zypper in -y autoconf-archive autoconf automake procps libtool perl gcc gcc-c++ make cmake postgresql-devel libcurl-devel openssl libopenssl-devel libmemcached-devel zlib-devel libuuid-devel unixODBC unixODBC-devel unzip wget netcat-openbsd tar gzip
44

55
#Install libcuckoo headers
66
WORKDIR /tmp

docker/os-based/DockerFile-OpenSuse-x64-ffead-cpp_autoconf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM opensuse/leap
22

3-
RUN zypper in -y autoconf-archive autoconf automake libtool perl gcc gcc-c++ make cmake postgresql-devel libcurl-devel openssl openssl-devel libmemcached-devel zlib-devel libuuid-devel unixODBC unixODBC-devel unzip wget netcat-openbsd tar gzip
3+
RUN zypper in -y autoconf-archive autoconf automake procps libtool perl gcc gcc-c++ make cmake postgresql-devel libcurl-devel openssl openssl-devel libmemcached-devel zlib-devel libuuid-devel unixODBC unixODBC-devel unzip wget netcat-openbsd tar gzip
44

55
#Install libcuckoo headers
66
WORKDIR /tmp

0 commit comments

Comments
 (0)