From b4733a29378eebd693ac6479fe983c5cde141354 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 21 Jun 2019 20:32:55 +0200 Subject: [PATCH] xbps: add EADDRNOTAVAIL patch --- ...2cc3573df496752c3698ce9949300e61d9c6.patch | 21 +++++++++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/patches/7e762cc3573df496752c3698ce9949300e61d9c6.patch diff --git a/srcpkgs/xbps/patches/7e762cc3573df496752c3698ce9949300e61d9c6.patch b/srcpkgs/xbps/patches/7e762cc3573df496752c3698ce9949300e61d9c6.patch new file mode 100644 index 00000000000..72d62f5d13c --- /dev/null +++ b/srcpkgs/xbps/patches/7e762cc3573df496752c3698ce9949300e61d9c6.patch @@ -0,0 +1,21 @@ +commit 7e762cc3573df496752c3698ce9949300e61d9c6 +Author: Duncaen +Date: Fri Jun 21 20:23:55 2019 +0200 + + lib/fetch.c: ignore EADDRNOTAVAIL and try next ip + +diff --git lib/fetch/common.c lib/fetch/common.c +index 6bd8f510..df7f33dd 100644 +--- lib/fetch/common.c ++++ lib/fetch/common.c +@@ -580,6 +580,10 @@ happy_eyeballs_connect(struct addrinfo *res0, int verbose) + unreach |= UNREACH_IPV6; + } + continue; ++ } else if (errno == EADDRNOTAVAIL) { ++ err = errno; ++ close(sd); ++ continue; + } else { + err = errno; + rv = -1; diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index aaaa11d2db4..c1aab76d02f 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.55 -revision=3 +revision=4 bootstrap=yes build_style=configure short_desc="XBPS package system utilities"