Fix the build

This commit is contained in:
Kalev Lember 2016-09-16 14:40:43 +02:00
parent 5eeb45bb57
commit 03bfb29ae9
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 3a6268f60712aafd2f007426e5d646c8ce237657 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
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

View File

@ -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 \