recipes-support: libfyaml for aktualizr-lite#294
recipes-support: libfyaml for aktualizr-lite#294ldts wants to merge 3 commits intofoundriesio:masterfrom
Conversation
| FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" | ||
|
|
||
| SRC_URI = "git://github.com/pantoniou/libfyaml.git" | ||
| SRCREV = "de89df9041b3a72b258680d6c8f6df31c5cee28a" |
There was a problem hiding this comment.
Do we need to use git or using the latest known release is enough? Released snapshots are preferred (then renaming the recipe from _git.bb to _0.6.bb).
| LICENSE = "MIT" | ||
| LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=6399094fbc639a289cfca2d660c010aa" | ||
|
|
||
| FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" |
| SRC_URI = "git://github.com/pantoniou/libfyaml.git" | ||
| SRCREV = "de89df9041b3a72b258680d6c8f6df31c5cee28a" | ||
|
|
||
| DEPENDS = " pkgconf " |
There was a problem hiding this comment.
I can replace it with
inherit autotools pkgconfig
as we do in other recipe but the outcome will be the same. but will do for coherence
There was a problem hiding this comment.
yeah, that is preferred (inherit).
| S = "${WORKDIR}/git" | ||
|
|
||
| inherit autotools | ||
| PARALLEL_MAKE = "" |
There was a problem hiding this comment.
Why setting parallel_make to ""?
There was a problem hiding this comment.
someone somewhere mentioned that parallel builds might mess autoconf (I didnt validate it though, but seemed possible)
There was a problem hiding this comment.
maybe it was an old comment. is ok without it. removed!
cf5c305 to
ebe42c9
Compare
|
@rsalveti these autotools dont seem to be installing in the final image? jramirez@trex build-lmp$ find . -name "fy-tool" is this a bug or am I missing something in the recipe?? |
|
ok I'll cancel the PR until I figure out the install part. will try again later :) |
|
added it to the factory.inc....although since it is only used by aktualizr-lite perhaps they should go together. |
If used/required by aktualizr-lite, just make it a dependency of aktualizr. |
You could extend that to cover libfyaml, like: And adding fyaml to PACKAGECONFIG by default. |
|
right and I was thinking about messing with that but what would happen if other clients decide to use this tool? "And adding fyaml to PACKAGECONFIG by default." what do you mean something like the above? I am not too familiar with this bit...so is the typical use case of this construct for binaries calling other binaries? seems strange capturing dependencies between binaries in this way... |
Right, this change would need to be part of the aktualizr_%.bbappend we have in meta-lmp-base.
IIRC the syntax here is:
So you could have this as a build option in aktualizr as well if needed. Since it seems you need during runtime, you have to add it at the last block. |
| S = "${WORKDIR}/libfyaml-${PV}" | ||
|
|
||
| inherit autotools pkgconfig | ||
|
|
There was a problem hiding this comment.
Just drop this last empty line.
|
I think we need to use the release link instead. |
Seems release is not available for 0.6, sigh. In this case, use git then and use the hash from the 0.6 tag. |
Then they will need to rdepend on it as well. In our case, as we know which tool is expecting to use it, it is better to just make it a dependency the tool we're already installing, as then we don't need to change the image. |
|
the issue is that .tarball-version is missing in the tarball |
cb6c57c to
84ba704
Compare
|
I believe this should get merged rather than waiting for v.07 (or whatever version comes along). we can always bump it later |
it doesnt matter anymore...just got an update from Pantelis |
fy-tool generated during build will be consumed by aktualizr-lite to convert docker yaml to json. Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
|
@ricardosalveti Can we merge it so I can test the latest aklite dev version (deps on fy-tool) against the latest lmp. |
Merging just the recipe itself is fine, as that won't influence anything for now, let me see if I can just cherry-pick that. |
| PACKAGECONFIG += "${@bb.utils.filter('SOTA_EXTRA_CLIENT_FEATURES', 'fiovb', d)}" | ||
| PACKAGECONFIG[fiovb] = ",,,optee-fiovb aktualizr-fiovb-env-rollback" | ||
| PACKAGECONFIG[ubootenv] = ",,u-boot-fw-utils,u-boot-fw-utils u-boot-default-env aktualizr-uboot-env-rollback" | ||
| PACKAGECONFIG += "libfyaml" |
There was a problem hiding this comment.
Can you extend the first "PACKAGECONFIG +=" line instead with libfyaml?
Also please bump the rev to the one that now requires libfyaml, to avoid having an extra dependency that has no use for the rootfs.
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
|
Manually merged after resolving a minor conflict and removing one patch which was already added in v80. |
|
@ricardosalveti Thanks, so the libfyaml stuff is in the master/HEAD of lmp-manifest but is not in v80, which is the right thing to do. |
This tool (binary, not libraries) is used by aklite to convert yaml to json
Signed-off-by: Jorge Ramirez-Ortiz [email protected]