summaryrefslogtreecommitdiffstats
path: root/recipes-sota
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@openmailbox.org>2018-01-08 14:41:22 +0100
committerAnton Gerasimov <anton.gerasimov@openmailbox.org>2018-01-08 14:41:22 +0100
commiteed239d897045a93d69461b7c093c9c928518f5f (patch)
treeca4889899d5defe9eba621bd1ee1a0c200ff83e4 /recipes-sota
parentd912df6ec53893f49c9cf5626c137bae099895e8 (diff)
downloadmeta-updater-eed239d897045a93d69461b7c093c9c928518f5f.tar.gz
Delete dependency on libsoup
It makes supporting different platforms somewhat easier
Diffstat (limited to 'recipes-sota')
-rw-r--r--recipes-sota/ostree/files/0001-Allow-building-without-libsoup.patch26
-rw-r--r--recipes-sota/ostree/ostree_git.bb7
2 files changed, 30 insertions, 3 deletions
diff --git a/recipes-sota/ostree/files/0001-Allow-building-without-libsoup.patch b/recipes-sota/ostree/files/0001-Allow-building-without-libsoup.patch
new file mode 100644
index 0000000..f45bae4
--- /dev/null
+++ b/recipes-sota/ostree/files/0001-Allow-building-without-libsoup.patch
@@ -0,0 +1,26 @@
1From 666e80acda17680e20d363ddc6fcf0a63f9c1dde Mon Sep 17 00:00:00 2001
2From: Anton Gerasimov <anton.gerasimov@openmailbox.org>
3Date: Thu, 21 Dec 2017 22:36:06 +0100
4Subject: [PATCH] Allow building without libsoup
5
6---
7 configure.ac | 3 ---
8 1 file changed, 3 deletions(-)
9
10diff --git a/configure.ac b/configure.ac
11index 92248af8..baf66e4f 100644
12--- a/configure.ac
13+++ b/configure.ac
14@@ -182,9 +182,6 @@ AM_COND_IF(BUILDOPT_TRIVIAL_HTTPD,
15 [AC_DEFINE([BUILDOPT_ENABLE_TRIVIAL_HTTPD_CMDLINE], 1, [Define if we are enabling ostree trivial-httpd entrypoint])]
16 )
17
18-AS_IF([test x$with_curl = xyes && test x$with_soup = xno], [
19- AC_MSG_ERROR([Curl enabled, but libsoup is not; libsoup is needed for tests])
20-])
21 AM_CONDITIONAL(USE_CURL_OR_SOUP, test x$with_curl != xno || test x$with_soup != xno)
22 AS_IF([test x$with_curl != xno || test x$with_soup != xno],
23 [AC_DEFINE([HAVE_LIBCURL_OR_LIBSOUP], 1, [Define if we have soup or curl])])
24--
252.15.0
26
diff --git a/recipes-sota/ostree/ostree_git.bb b/recipes-sota/ostree/ostree_git.bb
index 724976a..9ef4478 100644
--- a/recipes-sota/ostree/ostree_git.bb
+++ b/recipes-sota/ostree/ostree_git.bb
@@ -6,7 +6,8 @@ inherit autotools-brokensep pkgconfig systemd gobject-introspection
6 6
7INHERIT_remove_class-native = "systemd" 7INHERIT_remove_class-native = "systemd"
8 8
9SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" 9SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master \
10 file://0001-Allow-building-without-libsoup.patch"
10 11
11SRCREV="ae61321046ad7f4148a5884c8c6c8b2594ff840e" 12SRCREV="ae61321046ad7f4148a5884c8c6c8b2594ff840e"
12 13
@@ -16,14 +17,14 @@ S = "${WORKDIR}/git"
16 17
17BBCLASSEXTEND = "native" 18BBCLASSEXTEND = "native"
18 19
19DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs gtk-doc-native curl xz" 20DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse e2fsprogs gtk-doc-native curl xz"
20DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" 21DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
21DEPENDS_remove_class-native = "systemd-native" 22DEPENDS_remove_class-native = "systemd-native"
22 23
23RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash" 24RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap bash"
24RDEPENDS_${PN}_remove_class-native = "python-native" 25RDEPENDS_${PN}_remove_class-native = "python-native"
25 26
26EXTRA_OECONF = "--with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man --with-smack --with-builtin-grub2-mkconfig --with-curl" 27EXTRA_OECONF = "CFLAGS='-Wno-error=missing-prototypes' --with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man --with-smack --with-builtin-grub2-mkconfig --with-curl --without-soup"
27EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" 28EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat"
28 29
29# Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the 30# Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the