Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Add support for downloading crates from a mirror registry. #75

Closed
zoumi opened this issue Jun 17, 2018 · 4 comments
Closed

Add support for downloading crates from a mirror registry. #75

zoumi opened this issue Jun 17, 2018 · 4 comments

Comments

@zoumi
Copy link

zoumi commented Jun 17, 2018

I have to use cargo behind a mirror registry, because I can't fully access github.com.
But it seems cargo-vendor can only fetch data from github.com now.

I have tried to build cargo-vendor myself, but it failed. So I'm using the prebuild binary.

The cargo install output:

  Installing cargo-vendor v0.1.15
   Compiling libgit2-sys v0.7.3
   Compiling libz-sys v1.0.18
   Compiling idna v0.1.4
   Compiling num-traits v0.2.4
   Compiling winapi v0.3.5
   Compiling miniz-sys v0.1.10
   Compiling synstructure v0.6.1
   Compiling syn v0.14.2
   Compiling regex v0.2.11
   Compiling regex v1.0.0
   Compiling serde_json v1.0.21
   Compiling toml v0.4.6
   Compiling serde_ignored v0.0.4
   Compiling semver v0.9.0
   Compiling flate2 v1.0.1
   Compiling libssh2-sys v0.2.7
   Compiling curl-sys v0.4.5
   Compiling failure_derive v0.1.1
   Compiling backtrace v0.3.8
   Compiling wincolor v0.1.6
   Compiling socket2 v0.3.6
   Compiling same-file v1.0.2
   Compiling atty v0.2.10
   Compiling rand v0.4.2
   Compiling remove_dir_all v0.5.1
   Compiling crypto-hash v0.3.1
   Compiling home v0.3.3
   Compiling fs2 v0.4.3
   Compiling globset v0.4.0
   Compiling serde_derive v1.0.66
   Compiling url v1.7.0
   Compiling termcolor v0.3.6
   Compiling walkdir v2.1.4
   Compiling miow v0.3.1
   Compiling clap v2.31.2
   Compiling failure v0.1.1
   Compiling jobserver v0.1.11
   Compiling tempfile v3.0.2
   Compiling env_logger v0.5.10
   Compiling ignore v0.4.2
   Compiling docopt v1.0.0
error: failed to compile `cargo-vendor v0.1.15`, intermediate artifacts can be found at `E:\rustdir\target`

Caused by:
  failed to run custom build command for `curl-sys v0.4.5`
process didn't exit successfully: `E:\rustdir\target\release\build\curl-sys-5ab39a6299e0fab6\build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-search=native=E:\rustdir\target\release\build\curl-sys-7b6b46dfe328d7c1\out/lib
cargo:rustc-link-lib=static=curl
cargo:root=E:\rustdir\target\release\build\curl-sys-7b6b46dfe328d7c1\out
cargo:include=E:\rustdir\target\release\build\curl-sys-7b6b46dfe328d7c1\out/include
cargo:rustc-link-lib=ws2_32
cargo:rustc-link-lib=crypt32
OPT_LEVEL = Some("3")
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
TARGET = Some("i686-pc-windows-gnu")
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
CC_i686-pc-windows-gnu = None
CC_i686_pc_windows_gnu = None
HOST_CC = None
CC = Some("gcc")
TARGET = Some("i686-pc-windows-gnu")
HOST = Some("i686-pc-windows-gnu")
CFLAGS_i686-pc-windows-gnu = None
CFLAGS_i686_pc_windows_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "sh" "/e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/configure" "--with-winssl" "--with-zlib=/e/rustdir/target/release/build/libz-sys-74fea49f048e46b2/out" "--enable-static=yes" "--enable-shared=no" "--enable-optimize" "--prefix=/e/rustdir/target/release/build/curl-sys-7b6b46dfe328d7c1/out" "--without-nghttp2" "--without-librtmp" "--without-libidn2" "--without-libssh2" "--without-libpsl" "--disable-ldap" "--disable-ldaps" "--disable-ftp" "--disable-rtsp" "--disable-dict" "--disable-telnet" "--disable-tftp" "--disable-pop3" "--disable-imap" "--disable-smtp" "--disable-gopher" "--disable-manual" "--disable-smb" "--disable-sspi" "--disable-manual" "--disable-unix-sockets" "--disable-versioned-symbols" "--enable-hidden-symbols" "--disable-libcurl-option"
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ar... /e/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking curl version... 7.54.0-DEV
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for sys/types.h... yes
checking for stdint.h... yes
checking for inttypes.h... yes
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... yes
checking if cpp -P is needed... yes
checking if cpp -P works... yes
checking size of long... 4
checking size of void*... 4
checking for 64-bit curl_off_t data type... int64_t
checking size of curl_off_t... 8
checking formatting string directive for curl_off_t... "I64d"
checking formatting string directive for unsigned curl_off_t... "I64u"
checking constant suffix string for curl_off_t... LL
checking constant suffix string for unsigned curl_off_t... ULL
checking if OS is AIX (to define _ALL_SOURCE)... no
checking if _THREAD_SAFE is already defined... no
checking if _THREAD_SAFE is actually needed... no
checking if _THREAD_SAFE is onwards defined... no
checking if _REENTRANT is already defined... yes
checking if _REENTRANT is onwards defined... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... E:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin\ld.exe
checking if the linker (E:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin\ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /e/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin/nm -B
checking the name lister (/e/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-pc-mingw64 file names to x86_64-pc-mingw64 format... func_convert_file_msys_to_w32
checking how to convert x86_64-pc-mingw64 file names to toolchain format... func_convert_file_msys_to_w32
checking for E:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin\ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /e/mingw-w64/i686-5.3.0-posix-dwarf-rt_v4-rev0/mingw32/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (E:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin\ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether to build shared libraries with -version-info... yes
checking whether to build shared libraries with -no-undefined... yes
checking whether to build shared libraries with -mimpure-text... no
checking whether to build shared libraries with PIC... yes
checking whether to build static libraries with PIC... no
checking whether to build shared libraries only... no
checking whether to build static libraries only... yes
checking for inline... inline
checking if compiler is DEC/Compaq/HP C... no
checking if compiler is HP-UX C... no
checking if compiler is IBM C... no
checking if compiler is Intel C... no
checking if compiler is clang... no
checking if compiler is GNU C... yes
checking if compiler is LCC... no
checking if compiler is SGI MIPSpro C... no
checking if compiler is SGI MIPS C... no
checking if compiler is SunPro C... no
checking if compiler is Tiny C... no
checking if compiler is Watcom C... no
checking if compiler accepts some basic options... yes
configure: compiler options added: -Werror-implicit-function-declaration
checking if compiler accepts debug disabling options... yes
configure: compiler options added:
checking if compiler accepts optimizer enabling options... yes
configure: compiler options added: -O2
checking if compiler accepts strict warning options... yes
configure: compiler options added: -Wno-system-headers
checking if compiler halts on compilation errors... yes
checking if compiler halts on negative sized arrays... yes
checking if compiler halts on function prototype mismatch... yes
checking if compiler supports hiding library internal symbols... yes
checking for windows.h... yes
checking whether build target is a native Windows one... yes
checking for winsock.h... yes
checking for winsock2.h... yes
checking for ws2tcpip.h... yes
checking for winldap.h... yes
checking for winber.h... yes
checking whether build target supports WIN32 file API... yes (large file enabled)
checking for good-to-use Mac CFLAGS... no
checking whether to support http... yes
checking whether to support ftp... no
checking whether to support file... yes
checking whether to support ldap... no
checking whether to support ldaps... no
checking whether to support rtsp... no
checking whether to support proxies... yes
checking whether to support dict... no
checking whether to support telnet... no
checking whether to support tftp... no
checking whether to support pop3... no
checking whether to support imap... no
checking whether to support smb... no
checking whether to support smtp... no
checking whether to support gopher... no
checking whether to provide built-in manual... no
checking whether to enable generation of C code... no
checking whether to use libgcc... no
checking if X/Open network library is required... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... no
checking for gethostbyname in -lsocket... no
checking for gethostbyname in -lwatt... no
checking for gethostbyname with both nsl and socket libs... no
checking for gethostbyname in -lws2_32... yes
checking for windows.h... (cached) yes
checking for winsock.h... (cached) yes
checking for winsock2.h... (cached) yes
checking for connect in libraries... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for monotonic clock_gettime... yes
checking for clock_gettime in libraries... no additional lib required
checking if monotonic clock_gettime works... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
configure: found both libz and libz.h header
checking whether to enable IPv6... yes
checking if struct sockaddr_in6 has sin6_scope_id member... yes
checking if argv can be written to... yes
checking if GSS-API support is requested... no
checking whether to enable Windows native SSL/TLS (Windows native builds only)... yes
checking whether to enable Apple OS native SSL/TLS... no
checking default CA cert bundle/path... no
checking whether to use builtin CA store of SSL library... no
checking whether versioned symbols are wanted... no
checking whether to enable Windows native IDN (Windows native builds only)... no
checking whether to build with libidn2... no
checking for ANSI C header files... (cached) yes
checking for malloc.h... yes
checking for memory.h... no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/select.h... no
checking for sys/socket.h... no
checking for sys/ioctl.h... no
checking for sys/uio.h... no
checking for assert.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for limits.h... yes
checking for arpa/inet.h... no
checking for net/if.h... no
checking for netinet/in.h... no
checking for sys/un.h... no
checking for netinet/tcp.h... no
checking for netdb.h... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking for sys/param.h... yes
checking for termios.h... no
checking for termio.h... no
checking for sgtty.h... no
checking for fcntl.h... yes
checking for alloca.h... no
checking for time.h... (cached) yes
checking for io.h... yes
checking for pwd.h... no
checking for utime.h... yes
checking for sys/utime.h... yes
checking for sys/poll.h... no
checking for poll.h... no
checking for socket.h... no
checking for sys/resource.h... no
checking for libgen.h... yes
checking for locale.h... yes
checking for errno.h... yes
checking for stdbool.h... yes
checking for arpa/tftp.h... no
checking for sys/filio.h... no
checking for sys/wait.h... no
checking for setjmp.h... yes
checking for an ANSI C-conforming const... yes
checking for compiler support of C99 variadic macro style... yes
checking for compiler support of old gcc variadic macro style... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for struct timeval... yes
checking run-time libs availability... fine
checking size of size_t... 4
checking size of long... (cached) 4
checking size of int... 4
checking size of short... 2
checking size of time_t... 4
checking size of off_t... 8
checking for long long... yes
checking if numberLL works... yes
checking for ssize_t... yes
checking for bool... yes
checking for windows.h... (cached) yes
checking for winsock2.h... (cached) yes
checking for ws2tcpip.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for curl_socklen_t data type... socklen_t
checking size of curl_socklen_t... 4
checking for sys/types.h... (cached) yes
checking for poll.h... (cached) no
checking for sys/poll.h... (cached) no
checking for in_addr_t... no
checking for in_addr_t equivalent... unsigned long
checking for struct sockaddr_storage... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sig_atomic_t... yes
checking if sig_atomic_t is already defined as volatile... no
checking return type of signal handlers... void
checking for sys/select.h... (cached) no
checking for sys/socket.h... (cached) no
checking for select... yes
checking types of args and return type for select... int,fd_set *,struct timeval *,int
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for recv... yes
checking types of args and return type for recv... SOCKET,char *,int,int,int
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for send... yes
checking types of args and return type for send... SOCKET,const char *,int,int,int
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for MSG_NOSIGNAL... no
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking if alarm can be linked... yes
checking if alarm is prototyped... no
checking if alarm might be used... no
checking for sys/types.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for libgen.h... (cached) yes
checking if basename can be linked... yes
checking if basename is prototyped... yes
checking if basename is compilable... yes
checking if basename usage allowed... yes
checking if basename might be used... yes
checking for sys/types.h... (cached) yes
checking for socket.h... (cached) no
checking if closesocket can be linked... yes
checking if closesocket is prototyped... yes
checking if closesocket is compilable... yes
checking if closesocket usage allowed... yes
checking if closesocket might be used... yes
checking if CloseSocket can be linked... no
checking if CloseSocket might be used... no
checking if connect can be linked... yes
checking if connect is prototyped... yes
checking if connect is compilable... yes
checking if connect usage allowed... yes
checking if connect might be used... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking if fcntl can be linked... no
checking if fcntl might be used... no
checking for sys/types.h... (cached) yes
checking for stdio.h... yes
checking if fdopen can be linked... yes
checking if fdopen is prototyped... yes
checking if fdopen is compilable... yes
checking if fdopen usage allowed... yes
checking if fdopen might be used... yes
checking for sys/types.h... (cached) yes
checking for netdb.h... (cached) no
checking if freeaddrinfo can be linked... yes
checking if freeaddrinfo is prototyped... yes
checking if freeaddrinfo is compilable... yes
checking if freeaddrinfo usage allowed... yes
checking if freeaddrinfo might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for netinet/in.h... (cached) no
checking for ifaddrs.h... no
checking if freeifaddrs can be linked... no
checking if freeifaddrs might be used... no
checking for sys/types.h... (cached) yes
checking for sys/xattr.h... no
checking if fsetxattr can be linked... no
checking if fsetxattr might be used... no
checking if ftruncate can be linked... yes
checking if ftruncate is prototyped... yes
checking if ftruncate is compilable... yes
checking if ftruncate usage allowed... yes
checking if ftruncate might be used... yes
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking if getaddrinfo can be linked... yes
checking if getaddrinfo is prototyped... yes
checking if getaddrinfo is compilable... yes
checking if getaddrinfo seems to work... yes
checking if getaddrinfo usage allowed... yes
checking if getaddrinfo might be used... yes
checking if getaddrinfo is threadsafe... yes
checking if gai_strerror can be linked... no
checking if gai_strerror might be used... no
checking if gethostbyaddr can be linked... yes
checking if gethostbyaddr is prototyped... yes
checking if gethostbyaddr is compilable... yes
checking if gethostbyaddr usage allowed... yes
checking if gethostbyaddr might be used... yes
checking if gethostbyaddr_r can be linked... no
checking if gethostbyaddr_r might be used... no
checking if gethostbyname can be linked... yes
checking if gethostbyname is prototyped... yes
checking if gethostbyname is compilable... yes
checking if gethostbyname usage allowed... yes
checking if gethostbyname might be used... yes
checking if gethostbyname_r can be linked... no
checking if gethostbyname_r might be used... no
checking if gethostname can be linked... yes
checking if gethostname is prototyped... yes
checking if gethostname is compilable... yes
checking for gethostname arg 2 data type... int
checking if gethostname usage allowed... yes
checking if gethostname might be used... yes
checking if getifaddrs can be linked... no
checking if getifaddrs might be used... no
checking if getservbyport_r can be linked... no
checking if getservbyport_r might be used... no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking if gmtime_r can be linked... no
checking if gmtime_r might be used... no
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for netinet/in.h... (cached) no
checking for arpa/inet.h... (cached) no
checking if inet_ntoa_r can be linked... no
checking if inet_ntoa_r might be used... no
checking if inet_ntop can be linked... no
checking if inet_ntop might be used... no
checking if inet_pton can be linked... no
checking if inet_pton might be used... no
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for sys/ioctl.h... (cached) no
checking for stropts.h... no
checking if ioctl can be linked... no
checking if ioctl might be used... no
checking if ioctlsocket can be linked... yes
checking if ioctlsocket is prototyped... yes
checking if ioctlsocket is compilable... yes
checking if ioctlsocket usage allowed... yes
checking if ioctlsocket might be used... yes
checking if ioctlsocket FIONBIO is compilable... yes
checking if ioctlsocket FIONBIO usage allowed... yes
checking if ioctlsocket FIONBIO might be used... yes
checking if IoctlSocket can be linked... no
checking if IoctlSocket might be used... no
checking if localtime_r can be linked... no
checking if localtime_r might be used... no
checking if memrchr can be linked... no
checking if memrchr seems a macro... no
checking if memrchr might be used... no
checking if poll can be linked... no
checking if poll might be used... no
checking if setsockopt can be linked... yes
checking if setsockopt is prototyped... yes
checking if setsockopt is compilable... yes
checking if setsockopt usage allowed... yes
checking if setsockopt might be used... yes
checking if setsockopt SO_NONBLOCK is compilable... no
checking if setsockopt SO_NONBLOCK might be used... no
checking for sys/types.h... (cached) yes
checking for signal.h... (cached) yes
checking if sigaction can be linked... no
checking if sigaction might be used... no
checking if siginterrupt can be linked... no
checking if siginterrupt might be used... no
checking if signal can be linked... yes
checking if signal is prototyped... yes
checking if signal is compilable... yes
checking if signal usage allowed... yes
checking if signal might be used... yes
checking for sys/types.h... (cached) yes
checking for setjmp.h... (cached) yes
checking if sigsetjmp can be linked... no
checking if sigsetjmp seems a macro... no
checking if sigsetjmp might be used... no
checking if socket can be linked... yes
checking if socket is prototyped... yes
checking if socket is compilable... yes
checking if socket usage allowed... yes
checking if socket might be used... yes
checking if socketpair can be linked... no
checking if socketpair might be used... no
checking if strcasecmp can be linked... yes
checking if strcasecmp is prototyped... yes
checking if strcasecmp is compilable... yes
checking if strcasecmp usage allowed... yes
checking if strcasecmp might be used... yes
checking if strcmpi can be linked... yes
checking if strcmpi is prototyped... yes
checking if strcmpi is compilable... yes
checking if strcmpi usage allowed... yes
checking if strcmpi might be used... yes
checking if strdup can be linked... yes
checking if strdup is prototyped... yes
checking if strdup is compilable... yes
checking if strdup usage allowed... yes
checking if strdup might be used... yes
checking if strerror_r can be linked... no
checking if strerror_r might be used... no
checking if stricmp can be linked... yes
checking if stricmp is prototyped... yes
checking if stricmp is compilable... yes
checking if stricmp usage allowed... yes
checking if stricmp might be used... yes
checking if strncasecmp can be linked... yes
checking if strncasecmp is prototyped... yes
checking if strncasecmp is compilable... yes
checking if strncasecmp usage allowed... yes
checking if strncasecmp might be used... yes
checking if strncmpi can be linked... no
checking if strncmpi might be used... no
checking if strnicmp can be linked... yes
checking if strnicmp is prototyped... yes
checking if strnicmp is compilable... no
checking if strnicmp might be used... no
checking if strstr can be linked... yes
checking if strstr is prototyped... yes
checking if strstr is compilable... yes
checking if strstr usage allowed... yes
checking if strstr might be used... yes
checking if strtok_r can be linked... yes
checking if strtok_r is prototyped... yes
checking if strtok_r is compilable... yes
checking if strtok_r usage allowed... yes
checking if strtok_r might be used... yes
checking if strtoll can be linked... yes
checking if strtoll is prototyped... yes
checking if strtoll is compilable... yes
checking if strtoll usage allowed... yes
checking if strtoll might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/uio.h... (cached) no
checking if writev can be linked... no
checking if writev might be used... no
checking for fork... no
checking deeper for fork... but still no
checking for geteuid... no
checking deeper for geteuid... but still no
checking for getpass_r... no
checking deeper for getpass_r... but still no
checking for getppid... no
checking deeper for getppid... but still no
checking for getprotobyname... no
checking deeper for getprotobyname... but still no
checking for getpwuid... no
checking deeper for getpwuid... but still no
checking for getpwuid_r... no
checking deeper for getpwuid_r... but still no
checking for getrlimit... no
checking deeper for getrlimit... but still no
checking for gettimeofday... yes
checking for if_nametoindex... no
checking deeper for if_nametoindex... but still no
checking for inet_addr... no
checking deeper for inet_addr... but still no
checking for perror... yes
checking for pipe... no
checking deeper for pipe... but still no
checking for setlocale... yes
checking for setmode... yes
checking for setrlimit... no
checking deeper for setrlimit... but still no
checking for uname... no
checking deeper for uname... but still no
checking for utime... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for netdb.h... (cached) no
checking for getnameinfo... no
checking deeper for getnameinfo... but still no
checking deeper and deeper for getnameinfo... yes
checking types of arguments for getnameinfo... const struct sockaddr *,socklen_t,DWORD,int
checking for stdio.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) no
checking for netdb.h... (cached) no
checking for netinet/in.h... (cached) no
checking for arpa/inet.h... (cached) no
checking for working NI_WITHSCOPEID... no
checking how to set a socket into non-blocking mode... ioctlsocket FIONBIO
checking for perl... /usr/bin/perl
checking for gnroff... no
checking for nroff... no
checking whether to enable the threaded resolver... no
checking whether to use POSIX threads for threaded resolver... auto
checking whether to enable verbose strings... yes
checking whether to enable SSPI support (Windows native builds only)... yes
checking whether to enable cryptographic authentication methods... yes
checking whether to enable NTLM delegation to winbind's helper... no
checking whether to enable TLS-SRP authentication... yes
checking whether to enable Unix domain sockets... no
checking whether to enable support for cookies... yes
checking whether hiding of library internal symbols will actually happen... no
checking whether to enforce SONAME bump... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/examples/Makefile
config.status: creating docs/libcurl/Makefile
config.status: creating docs/libcurl/opts/Makefile
config.status: creating docs/cmdline-opts/Makefile
config.status: creating include/Makefile
config.status: creating include/curl/Makefile
config.status: creating src/Makefile
config.status: creating lib/Makefile
config.status: creating scripts/Makefile
config.status: creating lib/libcurl.vers
config.status: creating tests/Makefile
config.status: creating tests/certs/Makefile
config.status: creating tests/certs/scripts/Makefile
config.status: creating tests/data/Makefile
config.status: creating tests/server/Makefile
config.status: creating tests/libtest/Makefile
config.status: creating tests/unit/Makefile
config.status: creating packages/Makefile
config.status: creating packages/Win32/Makefile
config.status: creating packages/Win32/cygwin/Makefile
config.status: creating packages/Linux/Makefile
config.status: creating packages/Linux/RPM/Makefile
config.status: creating packages/Linux/RPM/curl.spec
config.status: creating packages/Linux/RPM/curl-ssl.spec
config.status: creating packages/Solaris/Makefile
config.status: creating packages/EPM/curl.list
config.status: creating packages/EPM/Makefile
config.status: creating packages/vms/Makefile
config.status: creating packages/AIX/Makefile
config.status: creating packages/AIX/RPM/Makefile
config.status: creating packages/AIX/RPM/curl.spec
config.status: creating curl-config
config.status: creating libcurl.pc
config.status: creating lib/curl_config.h
config.status: creating include/curl/curlbuild.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: amending lib/Makefile
configure: amending src/Makefile
configure: amending tests/unit/Makefile
configure: amending tests/server/Makefile
configure: amending tests/libtest/Makefile
configure: amending docs/examples/Makefile
configure: Configured to build curl/libcurl:

  curl version:     7.54.0-DEV
  Host setup:       x86_64-pc-mingw64
  Install prefix:   /e/rustdir/target/release/build/curl-sys-7b6b46dfe328d7c1/out
  Compiler:         gcc
  SSL support:      enabled (Windows-native)
  SSH support:      no      (--with-libssh2)
  zlib support:     enabled
  GSS-API support:  no      (--with-gssapi)
  TLS-SRP support:  no      (--enable-tls-srp)
  resolver:         default (--enable-ares / --enable-threaded-resolver)
  IPv6 support:     enabled
  Unix sockets support: no      (--enable-unix-sockets)
  IDN support:      no      (--with-{libidn2,winidn})
  Build libcurl:    Shared=no, Static=yes
  Built-in manual:  no      (--enable-manual)
  --libcurl option: no
  Verbose errors:   enabled (--disable-verbose)
  SSPI support:     enabled
  ca cert bundle:   no
  ca cert path:     no
  ca fallback:      no
  LDAP support:     no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
  LDAPS support:    no      (--enable-ldaps)
  RTSP support:     no      (--enable-rtsp)
  RTMP support:     no      (--with-librtmp)
  metalink support: no      (--with-libmetalink)
  PSL support:      no      (--with-libpsl)
  HTTP2 support:    disabled (--with-nghttp2)
  Protocols:        FILE HTTP HTTPS

running: "make" "-j8"
CDPATH="${ZSH_VERSION+.}:" && cd /e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl && E:/Program Files/Git/usr/bin/sh.exe /e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/missing autoconf
Makefile:816: recipe for target '/e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/configure' failed
 cd /e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl && E:/Program Files/Git/usr/bin/sh.exe /e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/missing automake-1.15 --foreign Makefile
Makefile:789: recipe for target '/e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/Makefile.in' failed

--- stderr
fatal: Not a git repository (or any of the parent directories): .git
configure: WARNING: disabling built-in manual
/usr/bin/sh: E:/Program: No such file or directory
make: *** [/e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/configure] Error 127
make: *** Waiting for unfinished jobs....
/usr/bin/sh: line 11: E:/Program: No such file or directory
make: *** [/e/rustdir/registry/src/github.com-1ecc6299db9ec823/curl-sys-0.4.5/curl/Makefile.in] Error 127
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2

build script failed, must exit now', E:\rustdir\registry\src\github.com-1ecc6299db9ec823\curl-sys-0.4.5\build.rs:224:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

my rustup show:

Default host: x86_64-pc-windows-gnu

nightly-2018-06-01-i686-pc-windows-gnu (default)
rustc 1.28.0-nightly (1ffb32147 2018-05-31)

I'm using mingw-w64 --> i686-5.3.0-posix-dwarf-rt_v4-rev0

@alexcrichton
Copy link
Owner

Yes currently cargo-vendor (nor Cargo) has a lot of support to download from mirrors. Once Cargo gets it though I can definitely add it to cargo-vendor!

@samanpa
Copy link

samanpa commented May 7, 2019

@alexcrichton Is there a plan to support it now that alternative registries are a thing?

@alexcrichton
Copy link
Owner

I don't have a ton of time to implement it myself right now but PRs are always welcome!

@alexcrichton
Copy link
Owner

This crate is now included natively in Cargo as of rust-lang/cargo#6869 and today's nightly Rust. I'm closing all issues in this repository before I archive the repository, but if you're still interested in seeing this issue fixed then please feel free to file an issue with Cargo itself!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants