aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-07-28 18:54:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-07-29 05:55:36 +0000
commitc15bfbdbeb780b1c34eff7a9d0b5943e56876471 (patch)
tree65e8353f47b7c14a6541aa02113e0086f45c5cc5
parent8c94538e91007687a4bb0f257fe4aae53b00adae (diff)
community/uhttpmock: upgrade to 0.5.3
-rw-r--r--community/uhttpmock/APKBUILD8
-rw-r--r--community/uhttpmock/only-listen-on-ipv4.patch14
2 files changed, 12 insertions, 10 deletions
diff --git a/community/uhttpmock/APKBUILD b/community/uhttpmock/APKBUILD
index 2a637ab9f79..c7f8c420072 100644
--- a/community/uhttpmock/APKBUILD
+++ b/community/uhttpmock/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uhttpmock
-pkgver=0.5.2
-pkgrel=1
+pkgver=0.5.3
+pkgrel=0
pkgdesc="HTTP web service mocking library"
url="https://gitlab.com/uhttpmock/uhttpmock"
arch="all"
@@ -35,5 +35,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="5d0976aa9bc7a55486ab31ad985c458fe1582070c4b07016b9dd1c888cb0eb82214182b3f5d75fd3d6bc30a675e0f96d964089c158a69e7d0277c098ece7eb92 uhttpmock-0.5.2.tar.xz
-1125328a45694d669e9b9e8594c022d8d1a40e5c1a07adf53a9b4002288191bf0db13ca5c5f3e60d21b56a03ebf43f9fda10aaef1d09376e818a0a0eee4a108e only-listen-on-ipv4.patch"
+sha512sums="9fccdb58ce04c1615d47bafac275c632f161a8148f0af82447286d0017d6b3946145b8a289f9abb55842bf4610ca3e5f2484bf322fb7a33dce42b3ebed45b2ee uhttpmock-0.5.3.tar.xz
+879f12d81b1e83c0e9ff52214b10737576ed4e81af021846d99a4751d00aee378f8af500591e706965f7c5923678eabed91208a1b100dab40d558a8c5ab2172a only-listen-on-ipv4.patch"
diff --git a/community/uhttpmock/only-listen-on-ipv4.patch b/community/uhttpmock/only-listen-on-ipv4.patch
index 64a43672fa1..ebb0ba27a1e 100644
--- a/community/uhttpmock/only-listen-on-ipv4.patch
+++ b/community/uhttpmock/only-listen-on-ipv4.patch
@@ -1,16 +1,18 @@
Upstream: No
Reason: Docker by default doesn't enable IPv6, so tests using this will fail on
CI and infra.
+
diff --git a/libuhttpmock/uhm-server.c b/libuhttpmock/uhm-server.c
-index 5f59a23..11b113d 100644
+index c28f30a..f1822f6 100644
--- a/libuhttpmock/uhm-server.c
+++ b/libuhttpmock/uhm-server.c
-@@ -1393,7 +1393,7 @@ uhm_server_run (UhmServer *self)
+@@ -1393,8 +1393,7 @@ uhm_server_run (UhmServer *self)
g_main_context_push_thread_default (priv->server_context);
priv->server_main_loop = g_main_loop_new (priv->server_context, FALSE);
-- soup_server_listen_local (priv->server, 0, SOUP_SERVER_LISTEN_HTTPS,
-+ soup_server_listen_local (priv->server, 0, SOUP_SERVER_LISTEN_HTTPS | SOUP_SERVER_LISTEN_IPV4_ONLY,
- &error);
+- soup_server_listen_local (priv->server, 0, (priv->tls_certificate != NULL) ? SOUP_SERVER_LISTEN_HTTPS : 0,
+- &error);
++ soup_server_listen_local (priv->server, 0, (priv->tls_certificate != NULL) ? SOUP_SERVER_LISTEN_HTTPS | SOUP_SERVER_LISTEN_IPV4_ONLY :0, &error);
g_assert_no_error (error); /* binding to localhost should never really fail */
-
+
+ g_main_context_pop_thread_default (priv->server_context);