Skip to content

Commit caa5e38

Browse files
Merge pull request #580 from appdevforall/fix/K2GO-414-rsync-disable-idn
K2GO-414 fix(proot-builder): disable rsync IDN in the static build (missing libidn2)
2 parents 447ec8e + 9c04f61 commit caa5e38

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tools/proot-builder/build_static.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ termux_step_pre_configure() {
314314
mv $TERMUX_PREFIX/lib/libiconv.so* $TERMUX_PREFIX/lib/hidden_so/ 2>/dev/null || true
315315
316316
LDFLAGS+=" -static -ffunction-sections -fdata-sections -Wl,--gc-sections"
317-
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-lz4 --disable-zstd --disable-xxhash --disable-openssl --disable-year2038"
317+
# K2GO-414: rsync's configure enables IDN by default and needs libidn2 (idn2_lookup_ul),
318+
# which this static build does not provide -> configure aborts. IDN (internationalized
319+
# hostnames) is not needed for K2Go's local-IP clone/sync, so disable it (rsync's own
320+
# configure error recommends --disable-idn).
321+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-lz4 --disable-zstd --disable-xxhash --disable-openssl --disable-idn --disable-year2038"
318322
319323
export ac_cv_func_lchmod=no
320324
export ac_cv_func_lutimes=no

0 commit comments

Comments
 (0)