summaryrefslogtreecommitdiffstats
path: root/meta-gpe
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-05-06 10:33:46 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2012-05-06 10:34:16 +0200
commitac3f69755e0e6a0d9c1ebd49594cca2140e02c5b (patch)
treed47a47e7972b63fa3eb63ca0ab53c39ae8b9af8c /meta-gpe
parentfd0343f3b67ae3c4917b18a394bc4361a5599735 (diff)
downloadmeta-openembedded-ac3f69755e0e6a0d9c1ebd49594cca2140e02c5b.tar.gz
gpe-scap: migrate to use libsoup-2.4 instead of libsoup-2.2 API
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gpe')
-rw-r--r--meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch42
-rw-r--r--meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb8
2 files changed, 47 insertions, 3 deletions
diff --git a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch
new file mode 100644
index 000000000..3cfe5d724
--- /dev/null
+++ b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch
@@ -0,0 +1,42 @@
1diff -uNr gpe-scap-1.4.orig/configure.ac gpe-scap-1.4/configure.ac
2--- gpe-scap-1.4.orig/configure.ac 2009-03-05 18:53:53.000000000 +0100
3+++ gpe-scap-1.4/configure.ac 2012-05-06 10:18:29.348308322 +0200
4@@ -24,7 +24,7 @@
5 AC_SUBST(LDFLAGS)
6
7 dnl libraries
8-GTK_MODULES="gtk+-2.0 >= 2.6.0 gthread-2.0 libsoup-2.2"
9+GTK_MODULES="gtk+-2.0 >= 2.6.0 gthread-2.0 libsoup-2.4"
10 PKG_CHECK_MODULES(GTK, $GTK_MODULES)
11 AC_SUBST(GTK_CFLAGS)
12 AC_SUBST(GTK_LIBS)
13diff -uNr gpe-scap-1.4.orig/src/scr-shot-common.c gpe-scap-1.4/src/scr-shot-common.c
14--- gpe-scap-1.4.orig/src/scr-shot-common.c 2009-03-05 12:13:20.000000000 +0100
15+++ gpe-scap-1.4/src/scr-shot-common.c 2012-05-06 10:30:52.299371576 +0200
16@@ -182,12 +182,12 @@
17 /* create session and message */
18 session = soup_session_sync_new ();
19 message = soup_message_new ("POST", url);
20- soup_message_add_header (message->request_headers, "User-Agent", "gpe-scap/" VERSION);
21- soup_message_add_header (message->request_headers, "Accept",
22+ soup_message_headers_append (message->request_headers, "User-Agent", "gpe-scap/" VERSION);
23+ soup_message_headers_append (message->request_headers, "Accept",
24 "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");
25-/* soup_message_add_header (message->request_headers, "Accept-Charset", "Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7");
26- soup_message_add_header (message->request_headers, "Keep-Alive", "100");
27- soup_message_add_header (message->request_headers, "Connection", "keep-alive");
28+/* soup_message_headers_append (message->request_headers, "Accept-Charset", "Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7");
29+ soup_message_headers_append (message->request_headers, "Keep-Alive", "100");
30+ soup_message_headers_append (message->request_headers, "Connection", "keep-alive");
31 soup_message_wire add_header (message->request_headers, "Accept-Encoding", "gzip,deflate");
32 */
33 /* build message body */
34@@ -207,7 +207,7 @@
35 memcpy (body + strlen (cmd) + len, tail, strlen (tail));
36
37 soup_message_set_request (message, "multipart/form-data; boundary="SEP,
38- SOUP_BUFFER_SYSTEM_OWNED, body, content_len);
39+ SOUP_MEMORY_TAKE, body, content_len);
40
41 soup_session_send_message (session, message);
42
diff --git a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb
index 9577f2f19..c416ff5dd 100644
--- a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb
+++ b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb
@@ -4,9 +4,9 @@ SECTION = "gpe"
4LICENSE = "GPLv2" 4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 5LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
6 6
7DEPENDS = "glib-2.0 gtk+ libgpewidget libglade libsoup" 7DEPENDS = "glib-2.0 gtk+ libgpewidget libglade libsoup-2.4"
8 8
9PR = "r2" 9PR = "r3"
10 10
11SRC_URI[md5sum] = "eaf545561b0ad981c9d01833f30fcf95" 11SRC_URI[md5sum] = "eaf545561b0ad981c9d01833f30fcf95"
12SRC_URI[sha256sum] = "762778421fae7c62d5ec6a9d27986166c0dbbe2ff51fc10bb9b8baff5c367534" 12SRC_URI[sha256sum] = "762778421fae7c62d5ec6a9d27986166c0dbbe2ff51fc10bb9b8baff5c367534"
@@ -15,7 +15,9 @@ GPE_TARBALL_SUFFIX = "bz2"
15 15
16inherit gpe autotools 16inherit gpe autotools
17 17
18SRC_URI += "file://0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch" 18SRC_URI += "file://0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch \
19 file://use.libsoup-2.4.patch \
20"
19 21
20RREPLACES_${PN} = "gpe-screenshot" 22RREPLACES_${PN} = "gpe-screenshot"
21 23