Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gnet/files: gnet-2.0.8-unittest-service.patch gnet-2.0.8-test-existing-domain.patch gnet-2.0.8-fix-pkgconfig-abuse.patch gnet-2.0.8-unittest-build.patch
Date: Sat, 27 Sep 2014 16:06:36
Message-Id: 20140927160631.62B8166D9@oystercatcher.gentoo.org
1 eva 14/09/27 16:06:31
2
3 Added: gnet-2.0.8-unittest-service.patch
4 gnet-2.0.8-test-existing-domain.patch
5 gnet-2.0.8-fix-pkgconfig-abuse.patch
6 gnet-2.0.8-unittest-build.patch
7 Log:
8 Fix build with recent check version, bug #498046. Apply a fix to pkgconfig from Debian. Update to EAPI=5 and team guidelines.
9
10 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key C6085806)
11
12 Revision Changes Path
13 1.1 net-libs/gnet/files/gnet-2.0.8-unittest-service.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-unittest-service.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-unittest-service.patch?rev=1.1&content-type=text/plain
17
18 Index: gnet-2.0.8-unittest-service.patch
19 ===================================================================
20 Disable unittests requiring a running HTTP server on port 80.
21
22 --- a/tests/check/gnet/gnetinetaddr.c.old 2014-09-27 17:56:51.130350306 +0200
23 +++ b/tests/check/gnet/gnetinetaddr.c 2014-09-27 17:57:23.396114568 +0200
24 @@ -443,7 +443,7 @@
25
26 GNET_START_TEST (test_inetaddr_list_async)
27 {
28 - do_test_inetaddr_list_async ("localhost");
29 +/* do_test_inetaddr_list_async ("localhost"); */
30 /* FIXME: these might not work right yet because of the timings in the test
31 #ifdef GNET_ENABLE_NETWORK_TESTS
32 do_test_inetaddr_list_async ("www.google.com");
33 @@ -573,7 +573,7 @@
34
35 GNET_START_TEST (test_inetaddr_name_async)
36 {
37 - do_test_inetaddr_name_async ("localhost");
38 +/* do_test_inetaddr_name_async ("localhost"); */
39
40 /* FIXME: these might not work right yet because of the timings in the test
41 #ifdef GNET_ENABLE_NETWORK_TESTS
42 @@ -798,7 +798,7 @@
43
44 GNET_START_TEST (test_inetaddr_reverse_async)
45 {
46 - do_test_inetaddr_reverse_async ("localhost");
47 +/* do_test_inetaddr_reverse_async ("localhost"); */
48
49 #ifdef GNET_ENABLE_NETWORK_TESTS
50 do_test_inetaddr_reverse_async ("gabe.freedesktop.org");
51
52
53
54 1.1 net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-test-existing-domain.patch?rev=1.1&content-type=text/plain
58
59 Index: gnet-2.0.8-test-existing-domain.patch
60 ===================================================================
61 From 1825f69b1a149cd3f2daa5f6c3333a32f0470f0a Mon Sep 17 00:00:00 2001
62 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim.muller@××××××××××××.uk>
63 Date: Sat, 16 Oct 2010 23:10:15 +0100
64 Subject: tests: update GConnHttp unit test to not use inactive domains
65
66 www.gnetlibrary.org has been abandoned.
67
68 diff --git a/tests/check/gnet/gnetconnhttp.c b/tests/check/gnet/gnetconnhttp.c
69 index b1cecce..4316f74 100644
70 --- a/tests/check/gnet/gnetconnhttp.c
71 +++ b/tests/check/gnet/gnetconnhttp.c
72 @@ -487,7 +487,7 @@ GNET_END_TEST;
73
74 GNET_START_TEST (test_gnet_http_get)
75 {
76 - const gchar *urls[] = {"http://www.gnetlibrary.org/src/",
77 + const gchar *urls[] = {"http://www.gnome.org/",
78 "http://www.heise.de" };
79 guint i;
80
81 @@ -514,7 +514,7 @@ GNET_END_TEST;
82
83 GNET_START_TEST (test_get_binary)
84 {
85 - gchar *uris[] = { "http://www.gnetlibrary.org/gnet.png" };
86 + gchar *uris[] = { "http://www.gnome.org/img/logo/foot-16.png" };
87 guint i;
88
89 for (i = 0; i < G_N_ELEMENTS (uris); ++i) {
90 --
91 cgit v0.10.1
92
93
94
95
96 1.1 net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch
97
98 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch?rev=1.1&view=markup
99 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-fix-pkgconfig-abuse.patch?rev=1.1&content-type=text/plain
100
101 Index: gnet-2.0.8-fix-pkgconfig-abuse.patch
102 ===================================================================
103 Bug-Debian: http://bugs.debian.org/652165
104 Author: Julien Cristau <jcristau@××××××.org>
105
106 use pkg-config to get the glib include path, not hardcode it.
107
108 --- gnet-2.0.8.orig/gnet-2.0.pc.in
109 +++ gnet-2.0.8/gnet-2.0.pc.in
110 @@ -6,5 +6,6 @@
111 Name: Gnet
112 Description: A network compatibility layer library
113 Version: @VERSION@
114 -Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ @GLIB_LIBS@ @GTHREAD_LIBS@
115 -Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@
116 +Libs: -L${libdir} -lgnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@
117 +Requires.private: glib-2.0 gthread-2.0
118 +Cflags: -I${includedir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@ -I${libdir}/gnet-@GNET_MAJOR_VERSION@.@GNET_MINOR_VERSION@/include/
119
120
121
122 1.1 net-libs/gnet/files/gnet-2.0.8-unittest-build.patch
123
124 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-unittest-build.patch?rev=1.1&view=markup
125 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnet/files/gnet-2.0.8-unittest-build.patch?rev=1.1&content-type=text/plain
126
127 Index: gnet-2.0.8-unittest-build.patch
128 ===================================================================
129 Fix build failure with newer releases of check library.
130
131 --- a/tests/check/gnetcheck.h 2014-09-27 15:32:17.088312230 +0200
132 +++ b/tests/check/gnetcheck.h 2014-09-27 15:32:35.728239492 +0200
133 @@ -281,7 +281,7 @@
134 _gnet_check_expecting_log = TRUE; \
135 _gnet_check_raised_critical = FALSE; \
136 code; \
137 - _fail_unless (_gnet_check_raised_critical, __FILE__, __LINE__, \
138 + (_gnet_check_raised_critical) ? _mark_point(__FILE__, __LINE__) : _ck_assert_failed (__FILE__, __LINE__, \
139 "Expected g_critical, got nothing", NULL); \
140 _gnet_check_expecting_log = FALSE; \
141 } G_STMT_END
142 @@ -291,7 +291,7 @@
143 _gnet_check_expecting_log = TRUE; \
144 _gnet_check_raised_warning = FALSE; \
145 code; \
146 - _fail_unless (_gnet_check_raised_warning, __FILE__, __LINE__, \
147 + (_gnet_check_raised_warning) ? _mark_point(__FILE__, __LINE__) : _ck_assert_failed (__FILE__, __LINE__, \
148 "Expected g_warning, got nothing", NULL); \
149 _gnet_check_expecting_log = FALSE; \
150 } G_STMT_END