Skip to content

Commit 87fd89c

Browse files
committed
Tell libsodium not to download code from savannah.gnu.org in autogen.sh.
1 parent 84bdc62 commit 87fd89c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

autogen.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ case "$1" in
2020
;;
2121
esac
2222

23+
# NB: the DO_NOT_UPDATE_CONFIG_SCRIPTS variable is here to inform libsodium not
24+
# to download a fresh config.sub and config.guess from git.savannah.gnu.org
25+
# (which is sometimes offline).
26+
#
27+
# This variable was how you disable the update in libsodium up to version
28+
# 1.0.18; but in master they have changed this, so on the next libsodium
29+
# submodule bump we'll want to change the code here to the new interface
30+
# (running `autogen.sh -b` in the libsodium directory)
2331

2432
case "${skip_submodules}" in
2533
0|no|false|"")
@@ -28,7 +36,7 @@ case "${skip_submodules}" in
2836
autogen=$(find . -name autogen.sh)
2937
if [ -x "$autogen" ]; then
3038
cd $(dirname "$autogen")
31-
./autogen.sh
39+
DO_NOT_UPDATE_CONFIG_SCRIPTS=1 ./autogen.sh
3240
fi
3341
'
3442
;;

0 commit comments

Comments
 (0)