diff options
Diffstat (limited to 'recipes-sota/ostree/ostree_git.bb')
-rw-r--r-- | recipes-sota/ostree/ostree_git.bb | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/recipes-sota/ostree/ostree_git.bb b/recipes-sota/ostree/ostree_git.bb index 659ee83..0e53d25 100644 --- a/recipes-sota/ostree/ostree_git.bb +++ b/recipes-sota/ostree/ostree_git.bb | |||
@@ -4,24 +4,35 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | |||
4 | 4 | ||
5 | inherit autotools-brokensep pkgconfig systemd | 5 | inherit autotools-brokensep pkgconfig systemd |
6 | 6 | ||
7 | INHERIT_remove_class-native = "systemd" | ||
8 | |||
7 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" | 9 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" |
8 | SRCREV="v2016.9" | 10 | SRCREV="v2016.9" |
9 | 11 | ||
10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
11 | 13 | ||
14 | BBCLASSEXTEND = "native" | ||
15 | |||
12 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs systemd" | 16 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs systemd" |
17 | DEPENDS_remove_class-native = "systemd-native" | ||
18 | |||
19 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap xz" | ||
20 | RDEPENDS_${PN}_remove_class-native = "python-native" | ||
13 | 21 | ||
14 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap liblzma" | 22 | EXTRA_OECONF = "--with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man" |
23 | |||
24 | SYSTEMD_REQUIRED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}" | ||
25 | SYSTEMD_REQUIRED_class-native = "" | ||
26 | |||
27 | SYSTEMD_SERVICE_${PN} = "ostree-prepare-root.service ostree-remount.service" | ||
28 | SYSTEMD_SERVICE_${PN}_class-native = "" | ||
15 | 29 | ||
16 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | 30 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
31 | PACKAGECONFIG_class-native = "" | ||
17 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,," | 32 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,," |
18 | 33 | ||
19 | EXTRA_OECONF = "--with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man" | ||
20 | |||
21 | FILES_${PN} += "${libdir}/ostree/ ${libdir}/ostbuild" | 34 | FILES_${PN} += "${libdir}/ostree/ ${libdir}/ostbuild" |
22 | 35 | ||
23 | BBCLASSEXTEND = "native" | ||
24 | |||
25 | export STAGING_INCDIR | 36 | export STAGING_INCDIR |
26 | export STAGING_LIBDIR | 37 | export STAGING_LIBDIR |
27 | 38 | ||
@@ -35,19 +46,18 @@ do_compile_prepend() { | |||
35 | export HOST_SYS="${HOST_SYS}" | 46 | export HOST_SYS="${HOST_SYS}" |
36 | } | 47 | } |
37 | 48 | ||
49 | export SYSTEMD_REQUIRED | ||
50 | |||
38 | do_install_append() { | 51 | do_install_append() { |
39 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 52 | if [ -n ${SYSTEMD_REQUIRED} ]; then |
40 | install -p -D ${S}/src/boot/ostree-prepare-root.service ${D}${systemd_unitdir}/system/ostree-prepare-root.service | 53 | install -p -D ${S}/src/boot/ostree-prepare-root.service ${D}${systemd_unitdir}/system/ostree-prepare-root.service |
41 | install -p -D ${S}/src/boot/ostree-remount.service ${D}${systemd_unitdir}/system/ostree-remount.service | 54 | install -p -D ${S}/src/boot/ostree-remount.service ${D}${systemd_unitdir}/system/ostree-remount.service |
42 | fi | 55 | fi |
43 | } | 56 | } |
44 | 57 | ||
45 | SYSTEMD_SERVICE_${PN} = "ostree-prepare-root.service ostree-remount.service" | ||
46 | FILES_${PN} += " \ | 58 | FILES_${PN} += " \ |
47 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/', '', d)} \ | 59 | ${@'${systemd_unitdir}/system/' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ |
48 | ${datadir}/gir-1.0 \ | 60 | ${datadir}/gir-1.0 \ |
49 | ${datadir}/gir-1.0/OSTree-1.0.gir \ | 61 | ${datadir}/gir-1.0/OSTree-1.0.gir \ |
50 | ${libdir}/dracut/ \ | ||
51 | ${libdir}/girepository-1.0 \ | ||
52 | ${libdir}/girepository-1.0/OSTree-1.0.typelib \ | ||
53 | " | 62 | " |
63 | |||