1 |
commit: 8b160c7a4ec1f63d76c9cb0781a0c26e4d8194d6 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 25 18:00:46 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 25 18:01:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b160c7a |
7 |
|
8 |
media-libs/gstreamer: fix gsturi test with glib-2.60 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/690940 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
13 |
|
14 |
.../files/1.14-glib-2.60-tests-compat.patch | 56 ++++++++++++++++++++++ |
15 |
media-libs/gstreamer/gstreamer-1.14.4.ebuild | 4 ++ |
16 |
2 files changed, 60 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/gstreamer/files/1.14-glib-2.60-tests-compat.patch b/media-libs/gstreamer/files/1.14-glib-2.60-tests-compat.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..ca74bf0cc2e |
21 |
--- /dev/null |
22 |
+++ b/media-libs/gstreamer/files/1.14-glib-2.60-tests-compat.patch |
23 |
@@ -0,0 +1,56 @@ |
24 |
+From 4a7739f4b6442814696bbd0706ab9a1ce1462d80 Mon Sep 17 00:00:00 2001 |
25 |
+From: Havard Graff <havard.graff@×××××.com> |
26 |
+Date: Wed, 31 Oct 2018 10:27:23 +0100 |
27 |
+Subject: [PATCH] tests/uri: fix test after GHashTable changes in GLib 2.59 |
28 |
+ |
29 |
+Maybe the implementation should not be dependent on a "random" hash-table |
30 |
+ordering, but at least this shows the problem clearly. |
31 |
+--- |
32 |
+ tests/check/gst/gsturi.c | 16 +++++++++++++++- |
33 |
+ 1 file changed, 15 insertions(+), 1 deletion(-) |
34 |
+ |
35 |
+diff --git a/tests/check/gst/gsturi.c b/tests/check/gst/gsturi.c |
36 |
+index ee623dbcf..fa87c7c77 100644 |
37 |
+--- a/tests/check/gst/gsturi.c |
38 |
++++ b/tests/check/gst/gsturi.c |
39 |
+@@ -414,7 +414,11 @@ static const struct URITest url_presenting_tests[] = { |
40 |
+ {.uri = {"scheme", "user:pass", "host", 1234, "/path/to/dir", |
41 |
+ {{"query", NULL}, {"key", "value"}}, "fragment"}, |
42 |
+ .str = |
43 |
++#if GLIB_CHECK_VERSION(2, 59, 0) |
44 |
++ "scheme://user:pass@host:1234/path/to/dir?key=value&query#fragment"}, |
45 |
++#else |
46 |
+ "scheme://user:pass@host:1234/path/to/dir?query&key=value#fragment"}, |
47 |
++#endif |
48 |
+ |
49 |
+ /* IPv6 literal should render in square brackets */ |
50 |
+ {.uri = {"scheme", "user:pass", "12:34:56:78:9a:bc:de:f0", 1234, |
51 |
+@@ -977,14 +981,24 @@ GST_START_TEST (test_url_get_set) |
52 |
+ |
53 |
+ fail_unless (gst_uri_set_query_value (url, "key", "value")); |
54 |
+ tmp_str = gst_uri_to_string (url); |
55 |
++#if GLIB_CHECK_VERSION(2, 59, 0) |
56 |
++ fail_unless_equals_string (tmp_str, |
57 |
++ "//example.com/path/to/file/there/segment?key=value&query#fragment"); |
58 |
++#else |
59 |
+ fail_unless_equals_string (tmp_str, |
60 |
+- "//example.com/path/to/file/there/segment?query&key=value#fragment"); |
61 |
++ "//example.com/path/to/file/there/segment?query&key=value#fragment"); |
62 |
++#endif |
63 |
+ g_free (tmp_str); |
64 |
+ |
65 |
+ fail_unless (gst_uri_set_query_value (url, "key", NULL)); |
66 |
+ tmp_str = gst_uri_to_string (url); |
67 |
++#if GLIB_CHECK_VERSION(2, 59, 0) |
68 |
++ fail_unless_equals_string (tmp_str, |
69 |
++ "//example.com/path/to/file/there/segment?key&query#fragment"); |
70 |
++#else |
71 |
+ fail_unless_equals_string (tmp_str, |
72 |
+ "//example.com/path/to/file/there/segment?query&key#fragment"); |
73 |
++#endif |
74 |
+ g_free (tmp_str); |
75 |
+ |
76 |
+ fail_unless (!gst_uri_set_query_value (NULL, "key", "value")); |
77 |
+-- |
78 |
+2.20.1 |
79 |
+ |
80 |
|
81 |
diff --git a/media-libs/gstreamer/gstreamer-1.14.4.ebuild b/media-libs/gstreamer/gstreamer-1.14.4.ebuild |
82 |
index 7bb095742b0..19677ed3d4f 100644 |
83 |
--- a/media-libs/gstreamer/gstreamer-1.14.4.ebuild |
84 |
+++ b/media-libs/gstreamer/gstreamer-1.14.4.ebuild |
85 |
@@ -34,6 +34,10 @@ DEPEND="${RDEPEND} |
86 |
" |
87 |
# gtk-doc-am to install API docs |
88 |
|
89 |
+PATCHES=( |
90 |
+ "${FILESDIR}"/1.14-glib-2.60-tests-compat.patch |
91 |
+) |
92 |
+ |
93 |
src_configure() { |
94 |
if [[ ${CHOST} == *-interix* ]] ; then |
95 |
export ac_cv_lib_dl_dladdr=no |