Skip to content

Commit

Permalink
Merge pull request #295 from hashicorp/libswap
Browse files Browse the repository at this point in the history
Swap in libicu for libidn2
  • Loading branch information
chrisroberts authored Jul 1, 2024
2 parents c16ed8f + e834fe9 commit 6c5db3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion substrate/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ libgcrypt_version="1.10.3"
libgmp_version="6.3.0"
libgpg_error_version="1.48"
libiconv_version="1.17"
libidn2_version="2.3.7"
libicu_version="74_2"
libpsl_version="0.21.5"
# Need up update gcc version to use libssh2 1.9.0+
libssh2_version="1.11.0"
Expand Down
22 changes: 11 additions & 11 deletions substrate/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ libgcrypt_file="libgcrypt-${libgcrypt_version}.tar.bz2" # https://gnupg.org
libgmp_file="gmp-${libgmp_version}.tar.bz2" # https://ftp.gnu.org/gnu/gmp/gmp-${libgmp_version}.tar.bz2
libgpg_error_file="libgpg-error-${libgpg_error_version}.tar.bz2" # https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${libgpg_error_version}.tar.bz2
libiconv_file="libiconv-${libiconv_version}.tar.gz" # https://mirrors.kernel.org/gnu/libiconv/libiconv-${libiconv_version}.tar.gz
libidn2_file="libidn2-${libidn2_version}.tar.gz" # https://ftp.gnu.org/gnu/libidn/
libicu_file="icu4c-${libicu_version}-src.tgz" # https://github.com/unicode-org/icu/releases
libpsl_file="libpsl-${libpsl_version}.tar.gz" # https://github.com/rockdaboot/libpsl/releases/tag/
# Need up update gcc version to use libssh2 1.9.0+
libssh2_file="libssh2-${libssh2_version}.tar.gz" # https://www.libssh2.org/download/libssh2-${libssh2_version}.tar.gz
Expand Down Expand Up @@ -634,19 +634,19 @@ if needs_build "${tracker_file}" "libunistring"; then
popd > /dev/null || exit
fi

# libidn2
if needs_build "${tracker_file}" "libidn2"; then
info " -> Building libidn2..."
libidn2_url="${dep_cache}/${libidn2_file}"
curl -f -L -s -o libidn2.tar.gz "${libidn2_url}" ||
error "libidn2 download error encountered"
tar -xzf libidn2.tar.gz || exit
pushd libidn2-* > /dev/null || exit
# libicu
if needs_build "${tracker_file}" "libicu"; then
info " -> Building libcu..."
libicu_url="${dep_cache}/${libicu_file}"
curl -f -L -s -o libicu.tar.gz "${libicu_url}" ||
error "libicu download error encountered"
tar -xzf libicu.tar.gz || exit
pushd icu* > /dev/null || exit
./configure --prefix="${embed_dir}" --enable-shared --disable-static \
--disable-doc "${cross_configure[@]}" || exit
"${cross_configure[@]}" || exit
make || exit
make install || exit
mark_build "${tracker_file}" "libidn2"
mark_build "${tracker_file}" "libicu"
popd > /dev/null || exit
fi

Expand Down

0 comments on commit 6c5db3b

Please sign in to comment.