kozyilmaz / zcash-apple

Zcash for Apple platforms
78 stars 21 forks source link

tools build fails when ftp.gnu.org is down #33

Closed jamesstout closed 6 years ago

jamesstout commented 6 years ago

ftp.gnu.org is currently down so a clean build of tools fails:

$ PRINT_DEBUG=y make
  CLONE      autoconf
if [ ! -f "autoconf-"2.69".tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/autoconf/autoconf-"2.69".tar.gz; fi
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:14 --:--:--     0curl: (7) Failed to connect to ftp.gnu.org port 80: Operation timed out
make[2]: *** [autoconf_clone] Error 7
make[1]: *** [clone] Error 1
make: *** [autoconf_all] Error 2

A bit of network analysis here. Site is down and also maybe one of the name servers.

Is there any downside to changing the hostname to the generic GNU mirror address as suggested here? Or utilising an env var to set the hostname for the 9 affected URLs?

$ ack --nobreak ftp.gnu.org tools/*/Makefile
tools/autoconf/Makefile:9:  if [ ! -f "autoconf-$(AUTOCONF_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/autoconf/autoconf-$(AUTOCONF_VERSION).tar.gz; fi
tools/automake/Makefile:9:  if [ ! -f "automake-$(AUTOMAKE_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/automake/automake-$(AUTOMAKE_VERSION).tar.gz; fi;
tools/coreutils/Makefile:9: if [ ! -f "coreutils-$(COREUTILS_VERSION).tar.xz" ]; then curl -OL https://ftp.gnu.org/gnu/coreutils/coreutils-$(COREUTILS_VERSION).tar.xz; fi;
tools/gmp/Makefile:9:   if [ ! -f "gmp-$(GMP_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/gmp/gmp-$(GMP_VERSION).tar.bz2; fi;
tools/gnugcc/Makefile:9:    if [ ! -f "gcc-$(GCC_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/gcc-$(GCC_VERSION).tar.gz; fi;
tools/libtool/Makefile:9:   if [ ! -f "libtool-$(LIBTOOL_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/libtool/libtool-$(LIBTOOL_VERSION).tar.gz; fi;
tools/m4/Makefile:9:    if [ ! -f "m4-$(M4_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/m4/m4-$(M4_VERSION).tar.gz; fi
tools/mpc/Makefile:9:   if [ ! -f "mpc-$(MPC_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/mpc/mpc-$(MPC_VERSION).tar.gz; fi;
tools/mpfr/Makefile:9:  if [ ! -f "mpfr-$(MPFR_VERSION).tar.gz" ]; then curl -OL http://ftp.gnu.org/gnu/mpfr/mpfr-$(MPFR_VERSION).tar.bz2; fi;

Thanks

kozyilmaz commented 6 years ago

Hi @jamesstout, thank you for pointing out the correct way to do it. I already updated the edge branch and attached the patch ftpgnu-master.diff.txt for the master branch for the time being.

Please rename the attached file to ftpgnu-master.diff and patch zcash-apple like below, I'll fetch those changes from edge branch asap

# copy ftpgnu-master.diff.txt in zcash-apple root dir
$ mv ftpgnu-master.diff.txt ftpgnu-master.diff
$ patch -d tools/ -p2 < ftpgnu-master.diff 
jamesstout commented 6 years ago

Thanks v. much.

kozyilmaz commented 6 years ago

master branch fixed with https://github.com/kozyilmaz/zcash-apple/commit/66110330075aa3a46701d9a2ecd9bd10085eae1e , closing!