Skip to content

recipes-sota: Bump aktualizr-lite#430

Merged
ricardosalveti merged 1 commit intofoundriesio:masterfrom
doanac:aklite-api
Sep 24, 2021
Merged

recipes-sota: Bump aktualizr-lite#430
ricardosalveti merged 1 commit intofoundriesio:masterfrom
doanac:aklite-api

Conversation

@doanac
Copy link
Copy Markdown
Member

@doanac doanac commented Sep 23, 2021

This brings in a new version of aktualizr-lite that can be built as
an api and shared library for custom clients to extend.

Other changes include:

  • 68325ced - Fix hwinfo reporting on x86

Signed-off-by: Andy Doan [email protected]

@doanac doanac mentioned this pull request Sep 23, 2021
FILES_${PN}-lite += "${nonarch_libdir}/tmpfiles.d/aktualizr-lite.conf"

FILES_${PN}-lite-lib = "${libdir}/libaktualizr_lite.so"
FILES_${PN}-dev += "${includedir}/${PN}-lite ${includedir}/json"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly are we installing under ${includedir}/json? Just curious because this is a generic path that has a potential to conflict with other packages.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, there is a recipe for that in OE already, do we want to use the version available as a submodule or should we just handle it as an external dependency and build using the jsoncpp recipe instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the need for json headers doesn't become a problem until you build a custom client. i thought about making my custom client recipe try and pull in jsoncpp as a dependency. However, then I fear you'd get into version mismatch issues.

i also thought about making it "aktualizr-lite/json/json.h" but that causes friction when doing local aklite/aktualizr development.

Not sure this would work, but what if we had this recipe depend on jsoncpp and do some compile_prepend type hack that replaces aktualizr/third_party/jsoncpp with OE's?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the upstream project is not doing that many releases lately, so not sure if we should be concerned with version mismatch, but will let that one for you as you are consuming it.

From the OE perspective I would just add jsoncpp as a build dependency in aktualizr-lite if used by the project, otherwise I would not install anything here and let the client have jsoncpp as a build dependency, as this is just another generic third-party dependency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To some extend this case is similar to aklite dependency on dockerd, docker and docker-compose. Test and dev flow uses the utilities installed in the test container and a dev local/container host and a version of these utilities doesn't always match the version defined in LmP. Thus, the final testing happens on actual device/VM, so it could be the same for jsoncpp dependency.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've force pushed a change that drops the HEAD commit in aklite: foundriesio/aktualizr-lite@87fde29

I think we should just revert that change. I've built my custom client with a DEPENDS on jsoncpp and things work fine

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, then better to just drop the jsoncpp piece.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops - i forgot to git-push yesterday. fixed now.

This brings in a new version of aktualizr-lite that can be built as
an api and shared library for custom clients to extend.

Other changes include:
 * 68325ced - Fix hwinfo reporting on x86

Signed-off-by: Andy Doan <[email protected]>
Copy link
Copy Markdown
Contributor

@mike-sul mike-sul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this commit should be removed foundriesio/aktualizr-lite@87fde29

@doanac
Copy link
Copy Markdown
Member Author

doanac commented Sep 24, 2021

I guess this commit should be removed foundriesio/aktualizr-lite@87fde29

Yep, i'm going to do a git-revert PR for that in a bit.

doanac referenced this pull request in doanac/aktualizr-lite Sep 24, 2021
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ricardosalveti ricardosalveti merged commit b58685b into foundriesio:master Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants