summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/ostree/ostree_2019.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/ostree/ostree_2019.4.bb')
-rw-r--r--meta-oe/recipes-extended/ostree/ostree_2019.4.bb45
1 files changed, 40 insertions, 5 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree_2019.4.bb b/meta-oe/recipes-extended/ostree/ostree_2019.4.bb
index 505c9fcccc..f438b35ebe 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2019.4.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2019.4.bb
@@ -25,8 +25,12 @@ PREMIRRORS = ""
25SRC_URI = " \ 25SRC_URI = " \
26 gitsm://github.com/ostreedev/ostree \ 26 gitsm://github.com/ostreedev/ostree \
27 file://0001-macros-Add-TEMP_FAILURE_RETRY-for-musl.patch \ 27 file://0001-macros-Add-TEMP_FAILURE_RETRY-for-musl.patch \
28 file://0001-Always-enable-trivial-httpd-for-tests.patch \ 28 file://run-ptest \
29 file://0002-Gate-ostree-trivial-httpd-on-BUILDOPT_TRIVIAL_HTTPD.patch \ 29 file://0001-tests-core-Fallback-to-en_US.UTF-8-locale.patch \
30 file://0001-tests-Handle-EPIPE-failures-when-head-terminates.patch \
31 file://0002-tests-core-Assume-C.UTF-8-if-locale-isn-t-found.patch \
32 file://0003-tests-Avoid-musl-failure-with-cp-a.patch \
33 file://0001-build-create-tests-directory-for-split-builds.patch \
30" 34"
31SRCREV = "9d39e7d91e8497987cad69a3fbed5c5fc91eebdc" 35SRCREV = "9d39e7d91e8497987cad69a3fbed5c5fc91eebdc"
32 36
@@ -34,9 +38,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+)"
34 38
35S = "${WORKDIR}/git" 39S = "${WORKDIR}/git"
36 40
37inherit autotools bash-completion gobject-introspection gtk-doc pkgconfig systemd 41inherit autotools bash-completion gobject-introspection gtk-doc pkgconfig ptest-gnome systemd
38 42
39# package configuration - match ostree defaults, but without rofiles-fuse 43# Package configuration - match ostree defaults, but without rofiles-fuse
40# otherwise we introduce a dependendency on meta-filesystems 44# otherwise we introduce a dependendency on meta-filesystems
41PACKAGECONFIG ??= " \ 45PACKAGECONFIG ??= " \
42 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \ 46 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
@@ -107,6 +111,7 @@ PACKAGES += " \
107 ${PN}-grub \ 111 ${PN}-grub \
108 ${PN}-mkinitcpio \ 112 ${PN}-mkinitcpio \
109 ${PN}-switchroot \ 113 ${PN}-switchroot \
114 ${PN}-trivial-httpd \
110" 115"
111 116
112FILES_${PN} = " \ 117FILES_${PN} = " \
@@ -118,7 +123,6 @@ FILES_${PN} = " \
118 ${libdir}/girepository-1.0 \ 123 ${libdir}/girepository-1.0 \
119 ${libdir}/lib*${SOLIBS} \ 124 ${libdir}/lib*${SOLIBS} \
120 ${libdir}/tmpfiles.d/ostree-tmpfiles.conf \ 125 ${libdir}/tmpfiles.d/ostree-tmpfiles.conf \
121 ${libexecdir}/libostree/ostree-trivial-httpd \
122 ${sysconfdir}/ostree/remotes.d \ 126 ${sysconfdir}/ostree/remotes.d \
123 ${systemd_unitdir}/system-generators/ostree-system-generator \ 127 ${systemd_unitdir}/system-generators/ostree-system-generator \
124 ${systemd_unitdir}/system/ostree-finalize-staged.path \ 128 ${systemd_unitdir}/system/ostree-finalize-staged.path \
@@ -141,17 +145,48 @@ FILES_${PN}-switchroot = " \
141 ${libdir}/ostree/ostree-prepare-root \ 145 ${libdir}/ostree/ostree-prepare-root \
142 ${systemd_unitdir}/system/ostree-prepare-root.service \ 146 ${systemd_unitdir}/system/ostree-prepare-root.service \
143" 147"
148FILES_${PN}-trivial-httpd = " \
149 ${libexecdir}/libostree/ostree-trivial-httpd \
150"
144 151
152RDEPENDS_${PN} = " \
153 ${@bb.utils.contains('PACKAGECONFIG', 'trivial-httpd-cmdline', '${PN}-trivial-httpd', '', d)} \
154"
145RDEPENDS_${PN}-dracut = "bash" 155RDEPENDS_${PN}-dracut = "bash"
146RDEPENDS_${PN}-mkinitcpio = "bash" 156RDEPENDS_${PN}-mkinitcpio = "bash"
147RDEPENDS_${PN}_class-target = " \ 157RDEPENDS_${PN}_class-target = " \
148 gnupg \ 158 gnupg \
149 ${PN}-switchroot \ 159 ${PN}-switchroot \
150" 160"
161RDEPENDS_${PN}-ptest += " \
162 attr \
163 bash \
164 coreutils \
165 cpio \
166 diffutils \
167 findutils \
168 grep \
169 python3-core \
170 python3-multiprocessing \
171 python3-pyyaml \
172 ${PN}-trivial-httpd \
173"
174RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils glibc-localedata-en-us"
151 175
152RRECOMMENDS_${PN} += "kernel-module-overlay" 176RRECOMMENDS_${PN} += "kernel-module-overlay"
177RRECOMMENDS_${PN}-ptest += "strace"
153 178
154SYSTEMD_SERVICE_${PN} = "ostree-remount.service ostree-finalize-staged.path" 179SYSTEMD_SERVICE_${PN} = "ostree-remount.service ostree-finalize-staged.path"
155SYSTEMD_SERVICE_${PN}-switchroot = "ostree-prepare-root.service" 180SYSTEMD_SERVICE_${PN}-switchroot = "ostree-prepare-root.service"
156 181
157BBCLASSEXTEND = "native" 182BBCLASSEXTEND = "native"
183
184python __anonymous() {
185 if bb.utils.contains('PTEST_ENABLED', '1', 'True', 'False', d):
186 if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split():
187 raise bb.parse.SkipRecipe('ptest requires meta-python to be present.')
188 elif 'soup' not in d.getVar('PACKAGECONFIG').split():
189 raise bb.parse.SkipRecipe('ptest requires soup enabled in PACKAGECONFIG.')
190 elif not oe.utils.any_distro_features(d, "xattr"):
191 raise bb.parse.SkipRecipe('ptest requires xattr enabled in DISTRO_FEATURES.')
192}