Skip to content

Commit

Permalink
build: Correct xz submodule url and openssl download url (osquery#8383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smjert authored Jul 29, 2024
1 parent 953a10b commit 988f6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url = https://github.com/arangodb/linenoise-ng
[submodule "libraries/cmake/source/lzma/src"]
path = libraries/cmake/source/lzma/src
url = https://git.tukaani.org/xz.git
url = https://github.com/tukaani-project/xz
[submodule "libraries/cmake/source/rapidjson/src"]
path = libraries/cmake/source/rapidjson/src
url = https://github.com/Tencent/rapidjson
Expand Down
5 changes: 1 addition & 4 deletions libraries/cmake/formula/openssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,9 @@ function(opensslMain)
list(APPEND openssl_c_flags ${OSQUERY_FORMULA_CFLAGS})
string(REPLACE ";" " " openssl_c_flags "${openssl_c_flags}")

string(REGEX MATCH "[0-9]\.[0-9]\.[0-9]" OPENSSL_VERSION_NO_PATCH "${OPENSSL_VERSION}")

if("${OSQUERY_OPENSSL_ARCHIVE_PATH}" STREQUAL "")
set(openssl_urls
"https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"
"https://www.openssl.org/source/old/${OPENSSL_VERSION_NO_PATCH}/openssl-${OPENSSL_VERSION}.tar.gz"
"https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz"
)
else()
if(NOT EXISTS "${OSQUERY_OPENSSL_ARCHIVE_PATH}" OR IS_DIRECTORY "${OSQUERY_OPENSSL_ARCHIVE_PATH}")
Expand Down

0 comments on commit 988f6db

Please sign in to comment.