diff options
Diffstat (limited to 'recipes-sota/ostree/ostree_git.bb')
-rw-r--r-- | recipes-sota/ostree/ostree_git.bb | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/recipes-sota/ostree/ostree_git.bb b/recipes-sota/ostree/ostree_git.bb index 67b5047..84e86e2 100644 --- a/recipes-sota/ostree/ostree_git.bb +++ b/recipes-sota/ostree/ostree_git.bb | |||
@@ -8,31 +8,37 @@ INHERIT_remove_class-native = "systemd" | |||
8 | 8 | ||
9 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" | 9 | SRC_URI = "gitsm://github.com/ostreedev/ostree.git;branch=master" |
10 | 10 | ||
11 | SRCREV="37c07d2f1c90b12bcfba85a7d900f81a7c362eb4" | 11 | SRCREV="3b09620c2738bce4ed45e099cf2e4c5df7671d39" |
12 | |||
13 | PV = "2017.3-31-g3b09620c" | ||
12 | 14 | ||
13 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
14 | 16 | ||
15 | BBCLASSEXTEND = "native" | 17 | BBCLASSEXTEND = "native" |
16 | 18 | ||
17 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs" | 19 | DEPENDS += "attr libarchive glib-2.0 pkgconfig gpgme libgsystem fuse libsoup-2.4 e2fsprogs gtk-doc-native curl" |
18 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | 20 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" |
19 | |||
20 | DEPENDS_remove_class-native = "systemd-native" | 21 | DEPENDS_remove_class-native = "systemd-native" |
21 | 22 | ||
22 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap xz os-release ca-certificates" | 23 | RDEPENDS_${PN} = "python util-linux-libuuid util-linux-libblkid util-linux-libmount libcap xz bash" |
23 | RDEPENDS_${PN}_remove_class-native = "python-native os-release-native" | 24 | RDEPENDS_${PN}_remove_class-native = "python-native" |
24 | 25 | ||
25 | EXTRA_OECONF = "CFLAGS='-g' --with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man" | 26 | EXTRA_OECONF = "--with-libarchive --disable-gtk-doc --disable-gtk-doc-html --disable-gtk-doc-pdf --disable-man --with-smack --with-builtin-grub2-mkconfig --with-curl" |
26 | EXTRA_OEMAKE = "CFLAGS='-g'" | ||
27 | EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" | 27 | EXTRA_OECONF_append_class-native = " --enable-wrpseudo-compat" |
28 | 28 | ||
29 | # Path to ${prefix}/lib/ostree/ostree-grub-generator is hardcoded on the | ||
30 | # do_configure stage so we do depend on it | ||
31 | SYSROOT_DIR = "${STAGING_DIR_TARGET}" | ||
32 | SYSROOT_DIR_class-native = "${STAGING_DIR_NATIVE}" | ||
33 | do_configure[vardeps] += "SYSROOT_DIR" | ||
34 | |||
29 | SYSTEMD_REQUIRED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}" | 35 | SYSTEMD_REQUIRED = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}" |
30 | SYSTEMD_REQUIRED_class-native = "false" | 36 | SYSTEMD_REQUIRED_class-native = "" |
31 | 37 | ||
32 | SYSTEMD_SERVICE_${PN} = "ostree-prepare-root.service ostree-remount.service" | 38 | SYSTEMD_SERVICE_${PN} = "ostree-prepare-root.service ostree-remount.service" |
33 | SYSTEMD_SERVICE_${PN}_class-native = "" | 39 | SYSTEMD_SERVICE_${PN}_class-native = "" |
34 | 40 | ||
35 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | 41 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
36 | PACKAGECONFIG_class-native = "" | 42 | PACKAGECONFIG_class-native = "" |
37 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/ --with-dracut" | 43 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/ --with-dracut" |
38 | 44 | ||
@@ -42,7 +48,8 @@ export STAGING_INCDIR | |||
42 | export STAGING_LIBDIR | 48 | export STAGING_LIBDIR |
43 | 49 | ||
44 | do_configure() { | 50 | do_configure() { |
45 | NOCONFIGURE=true ./autogen.sh | 51 | unset docdir |
52 | NOCONFIGURE=1 ./autogen.sh | ||
46 | oe_runconf | 53 | oe_runconf |
47 | } | 54 | } |
48 | 55 | ||
@@ -54,11 +61,17 @@ do_compile_prepend() { | |||
54 | export SYSTEMD_REQUIRED | 61 | export SYSTEMD_REQUIRED |
55 | 62 | ||
56 | do_install_append() { | 63 | do_install_append() { |
57 | if [ "$SYSTEMD_REQUIRED" == "true" ]; then | 64 | if [ -n ${SYSTEMD_REQUIRED} ]; then |
65 | install -p -D ${S}/src/boot/ostree-prepare-root.service ${D}${systemd_unitdir}/system/ostree-prepare-root.service | ||
58 | install -p -D ${S}/src/boot/ostree-remount.service ${D}${systemd_unitdir}/system/ostree-remount.service | 66 | install -p -D ${S}/src/boot/ostree-remount.service ${D}${systemd_unitdir}/system/ostree-remount.service |
59 | fi | 67 | fi |
60 | } | 68 | } |
61 | 69 | ||
70 | do_install_append_class-native() { | ||
71 | create_wrapper ${D}${bindir}/ostree OSTREE_GRUB2_EXEC="${STAGING_LIBDIR_NATIVE}/ostree/ostree-grub-generator" | ||
72 | } | ||
73 | |||
74 | |||
62 | FILES_${PN} += " \ | 75 | FILES_${PN} += " \ |
63 | ${@'${systemd_unitdir}/system/' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ | 76 | ${@'${systemd_unitdir}/system/' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ |
64 | ${@'${libdir}/dracut/modules.d/98ostree/module-setup.sh' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ | 77 | ${@'${libdir}/dracut/modules.d/98ostree/module-setup.sh' if d.getVar('SYSTEMD_REQUIRED', True) else ''} \ |