Skip to content

Commit

Permalink
Merge pull request zeromq#2243 from stephan57160/master
Browse files Browse the repository at this point in the history
Problem: Sync with zproject (Android build failures when <dependency>_ROOT is specified)
  • Loading branch information
bluca authored Oct 18, 2022
2 parents 7339450 + a4d3dab commit 1a28bb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bindings/jni/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ else
rm -f $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz")
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz
tar -xzf $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz")
mkdir -p "$(dirname "${LIBMICROHTTPD_ROOT}")"
mv $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz" .tar.gz) $LIBMICROHTTPD_ROOT
echo "CZMQ - LIBMICROHTTPD extracted under under '${LIBMICROHTTPD_ROOT}'."
fi
Expand All @@ -74,6 +75,7 @@ if [ -d "${LIBZMQ_ROOT}" ] ; then
echo "CZMQ - Cleaning LIBZMQ folder '${LIBZMQ_ROOT}' ..."
( cd "${LIBZMQ_ROOT}" && ( make clean || : ))
else
mkdir -p "$(dirname "${LIBZMQ_ROOT}")"
echo "CZMQ - Cloning 'https://github.com/zeromq/libzmq.git' (default branch) under '${LIBZMQ_ROOT}' ..."
$CI_TIME git clone --quiet --depth 1 https://github.com/zeromq/libzmq.git $LIBZMQ_ROOT
fi
Expand Down Expand Up @@ -102,6 +104,7 @@ if [ -d "${LIBCURL_ROOT}" ] ; then
echo "CZMQ - Cleaning LIBCURL folder '${LIBCURL_ROOT}' ..."
( cd "${LIBCURL_ROOT}" && ( make clean || : ))
else
mkdir -p "$(dirname "${LIBCURL_ROOT}")"
echo "CZMQ - Cloning 'https://github.com/curl/curl.git' (default branch) under '${LIBCURL_ROOT}' ..."
$CI_TIME git clone --quiet --depth 1 https://github.com/curl/curl.git $LIBCURL_ROOT
fi
Expand Down
3 changes: 2 additions & 1 deletion builds/android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ fi
&& android_show_configure_opts "LIBCZMQ" "${CONFIG_OPTS[@]}" \
&& $CI_TIME ./configure "${CONFIG_OPTS[@]}" \
&& $CI_TIME make -j 4 \
&& $CI_TIME make install) || exit 1
&& $CI_TIME make install
) || exit 1
}

##
Expand Down
5 changes: 4 additions & 1 deletion builds/android/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ fi
rm -rf /tmp/tmp-deps
mkdir -p /tmp/tmp-deps

if [ -d "${LIBMICROHTTPD_root}" ] ; then
if [ -d "${LIBMICROHTTPD_ROOT}" ] ; then
echo "CZMQ - Cleaning LIBMICROHTTPD folder '${LIBMICROHTTPD_ROOT}' ..."
( cd "${LIBMICROHTTPD_ROOT}" && ( make clean || : ))
else
echo "CZMQ - Downloading LIBMICROHTTPD from 'http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz' ..."
rm -f $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz")
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz
tar -xzf $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz")
mkdir -p "$(dirname "${LIBMICROHTTPD_ROOT}")"
mv $(basename "http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.44.tar.gz" .tar.gz) $LIBMICROHTTPD_ROOT
echo "CZMQ - LIBMICROHTTPD extracted under under '${LIBMICROHTTPD_ROOT}' ..."
fi
Expand All @@ -55,6 +56,7 @@ if [ -d "${LIBZMQ_ROOT}" ] ; then
echo "CZMQ - Cleaning LIBZMQ folder '${LIBZMQ_ROOT}' ..."
( cd "${LIBZMQ_ROOT}" && ( make clean || : ))
else
mkdir -p "$(dirname "${LIBZMQ_ROOT}")"
echo "CZMQ - Cloning 'https://github.com/zeromq/libzmq.git' (default branch) under '${LIBZMQ_ROOT}' ..."
git clone --quiet --depth 1 https://github.com/zeromq/libzmq.git "${LIBZMQ_ROOT}"
( cd ${LIBZMQ_ROOT} && git log --oneline -n 1 )
Expand All @@ -64,6 +66,7 @@ if [ -d "${LIBCURL_ROOT}" ] ; then
echo "CZMQ - Cleaning LIBCURL folder '${LIBCURL_ROOT}' ..."
( cd "${LIBCURL_ROOT}" && ( make clean || : ))
else
mkdir -p "$(dirname "${LIBCURL_ROOT}")"
echo "CZMQ - Cloning 'https://github.com/curl/curl.git' (default branch) under '${LIBCURL_ROOT}' ..."
git clone --quiet --depth 1 https://github.com/curl/curl.git "${LIBCURL_ROOT}"
( cd ${LIBCURL_ROOT} && git log --oneline -n 1 )
Expand Down

0 comments on commit 1a28bb9

Please sign in to comment.