From 03bfb29ae9047fe2ac8e23f8bf61be17b95d14e1 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 16 Sep 2016 14:40:43 +0200 Subject: [PATCH] Fix the build --- ...-fix-build-due-wrong-format-in-debug.patch | 26 +++++++++++++++++++ grilo.spec | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 0001-build-fix-build-due-wrong-format-in-debug.patch diff --git a/0001-build-fix-build-due-wrong-format-in-debug.patch b/0001-build-fix-build-due-wrong-format-in-debug.patch new file mode 100644 index 0000000..d738eac --- /dev/null +++ b/0001-build-fix-build-due-wrong-format-in-debug.patch @@ -0,0 +1,26 @@ +From 3a6268f60712aafd2f007426e5d646c8ce237657 Mon Sep 17 00:00:00 2001 +From: Dominique Leuenberger +Date: Sat, 10 Sep 2016 23:51:38 +0200 +Subject: [PATCH] build: fix build due wrong format in debug + +Introduced in commit f3ccf55 +--- + tests/lib-net.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/lib-net.c b/tests/lib-net.c +index d1eb73e..0608083 100644 +--- a/tests/lib-net.c ++++ b/tests/lib-net.c +@@ -86,7 +86,7 @@ soup_server_throttling_cb (SoupServer *server, + SoupClientContext *client, + gpointer user_data) + { +- gchar *response = g_strdup_printf ("%lu", g_get_monotonic_time()); ++ gchar *response = g_strdup_printf ("%" G_GINT64_FORMAT, g_get_monotonic_time()); + + soup_message_set_response (message, "text/plain", SOUP_MEMORY_TAKE, response, strlen(response)); + soup_message_set_status (message, SOUP_STATUS_OK); +-- +2.7.4 + diff --git a/grilo.spec b/grilo.spec index 8865fe7..ebadf68 100644 --- a/grilo.spec +++ b/grilo.spec @@ -9,6 +9,8 @@ Summary: Content discovery framework License: LGPLv2+ URL: https://wiki.gnome.org/Projects/Grilo Source0: https://download.gnome.org/sources/grilo/%{release_version}/grilo-%{version}.tar.xz +# Backported from upstream +Patch0: 0001-build-fix-build-due-wrong-format-in-debug.patch BuildRequires: chrpath BuildRequires: gnome-common @@ -46,6 +48,7 @@ general and API documentation. %prep %setup -q +%patch0 -p1 %build %configure \