Bug 9452 - [meta-swupd] update to latest swupd and adapt to changes
Summary: [meta-swupd] update to latest swupd and adapt to changes
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: meta-swupd (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M2
Assignee: Joshua Lock
QA Contact: Libertad
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-12 20:38 UTC by Joshua Lock
Modified: 2016-10-28 06:21 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock 2016-04-12 20:38:02 UTC
swupd-server 3.2.0 (though we'll want the 3.2.1 brown bag release) and swupd-client 3.4.0 introduce changes which will necessitate adaptations to the way the packages are installed and perhaps the way the images are generated which has resulted in Clear Linux increasing the format file version from format3 to format4.

Furthermore swupd-client now has configurable default content and version urls via files in /usr/share/defaults/swupd which match the variable name and contain a single line, the value for the setting i.e:

/usr/share/defaults/swupd/versionurl
/usr/share/defaults/swupd/contenturl

See the commit logs for more info, i.e:

https://github.com/clearlinux/swupd-client/commit/9bca07e76348f3a596c4e537d9976f6838563e3a

We'll want to be able to include appropriate configuration files in our swupd-based images either via swupd-image.bbclass or a swupd-config recipe.
Comment 1 Patrick Ohly 2016-05-02 08:10:26 UTC
Please make sure that the next update of the 3.x recipes include this bug fix:
https://github.com/clearlinux/swupd-client/commit/d4a96fedf61

A new release including it should be ready.

For Ostro, switching to the 3.x recipes should be our next step with regard to swupd, so this is important.
Comment 2 Joshua Lock 2016-07-14 12:05:52 UTC
Thanks to a patch from Igor we now have latest swupd-client
Comment 3 Aaron Zinghini 2016-10-25 19:13:21 UTC
There are newer versions of swupd. Will the server 3.2.9 and client 3.6.6 versions be used for the next release?
Comment 4 Patrick Ohly 2016-10-25 20:18:33 UTC
Aaron, there are no regular releases of meta-swupd. Are you using meta-swupd in production and/or do you need regular releases together with OE-core?

Having said that, I happened to work on master at the moment with an eye towards also updating the versions of client and server.

Beware that updating implies a format change, and currently there is no procedure in place how that can be done in combination with meta-swupd.
Comment 5 Aaron Zinghini 2016-10-27 23:01:54 UTC
Hi Patrick,

We currently are not using it in production but are evaluating it and very likely to use it in a new product for OTA updates. I was just curious if meta-swupd would be updated to keep in line with the releases from ClearLinux (https://github.com/clearlinux/swupd-server). Whether it is a separate release or as part of the YP 2.2 schedule.
Comment 6 Patrick Ohly 2016-10-28 06:21:18 UTC
Aaron, good to know. Keep in mind during your evaluation that the current meta-swupd integration of swupd isn't complete yet and leaves a lot of room for improvements. So if you run into issues or have questions, please post on the Yocto mailing list.