diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-07-13 23:44:55 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-07-13 23:44:55 +0200 |
commit | c3cf9d36e40713212ffc9d75aa2324ab7bad4f9b (patch) | |
tree | 1d04f8c542b78e1510a8d29163e578fe2538d81e /gnu/packages/patches/glib-tests-newnet.patch | |
parent | 314a83ef1e80b47b44debc1118e38d7f761e0e7f (diff) | |
parent | ca9ea1a849d685db46adcb92449dff36427c48bd (diff) |
Merge branch 'bug-17853'
Diffstat (limited to 'gnu/packages/patches/glib-tests-newnet.patch')
-rw-r--r-- | gnu/packages/patches/glib-tests-newnet.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gnu/packages/patches/glib-tests-newnet.patch b/gnu/packages/patches/glib-tests-newnet.patch deleted file mode 100644 index 324b8ae68f..0000000000 --- a/gnu/packages/patches/glib-tests-newnet.patch +++ /dev/null @@ -1,30 +0,0 @@ -Since guix-daemon runs in a separate networking name space, the only -interface available is "lo". However its index is incremented by one -at each build, so it can end up being greater than 255, leading to an -assertion failure in 'find_ifname_and_index'. - -Work around that by directly querying the index of "lo". - ---- glib-2.38.0/gio/tests/network-address.c 2013-09-17 20:47:14.000000000 +0200 -+++ glib-2.38.0/gio/tests/network-address.c 2013-10-16 21:52:42.000000000 +0200 -@@ -117,7 +117,7 @@ test_parse_host (gconstpointer d) - #define SCOPE_ID_TEST_PORT 99 - - #ifdef HAVE_IF_INDEXTONAME --static char SCOPE_ID_TEST_IFNAME[IF_NAMESIZE]; -+static char SCOPE_ID_TEST_IFNAME[] = "lo"; - static int SCOPE_ID_TEST_INDEX; - #else - #define SCOPE_ID_TEST_IFNAME "1" -@@ -131,11 +131,7 @@ find_ifname_and_index (void) - return; - - #ifdef HAVE_IF_INDEXTONAME -- for (SCOPE_ID_TEST_INDEX = 1; SCOPE_ID_TEST_INDEX < 255; SCOPE_ID_TEST_INDEX++) { -- if (if_indextoname (SCOPE_ID_TEST_INDEX, SCOPE_ID_TEST_IFNAME)) -- break; -- } -- g_assert_cmpstr (SCOPE_ID_TEST_IFNAME, !=, ""); -+ SCOPE_ID_TEST_INDEX = if_nametoindex (SCOPE_ID_TEST_IFNAME); - #endif - } |