Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@klihub
Copy link
Contributor

@klihub klihub commented Jun 12, 2017

No description provided.

avalluri and others added 16 commits June 6, 2017 12:23
Flatpack based refkit application framework demands merging of root
folders(/bin, /sbin, /lib*) to their /usr counterparts. This requires the
changes to default bitbake configuration to point all base_{lib,bin,sbin}dir
variables to /usr.

Upstream patches put on hold:
  http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133169.html
  http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133170.html

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Prepare the root symlinks required for runtime at the time of rootfs creation.
The assumption is that in usrmerged distro, no package installs files in
/bin,/sbin and /lib* folders.

Upstream Patches:
  http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133166.html

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Get rid of conflicting /usr/sbin/nologin when usrmerge DISTRO_FEATURE
is enabled.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Set MOUNT_FUSE_PATH explicitly to ${base_sbindir} before configure.
Making this explicit will let people override base_sbindir with the
desired effect, for instance when ussrmerge DISTRO_FEATURE is enabled.

Upstream-Status: Submitted [openembedded-devel@lists.openembedded.org]

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
quilts autodetection of awk seems to incorrectly pick up gawk
(haven't checked but I guess from the host) even when we don't
have gawk enabled. Override autodetection by manually setting
it to /usr/bin/awk.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
…ing).

Added bbappends with native support (where needed), and declared as
supported recipes gpgme and gnupg along with its missing dependencies
libksba, npth, and pinentry. These are necessary to support signing
commits in ostree.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added bbappends to provide native packages and declared as supported
recipes. These are needed by ostree-native.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for ostree and declared it as a supported recipes.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for bubblewrap and declared it as a supported recipe.
It is needed by flatpak.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added recipe for flatpak and declared it as a supported recipe.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a native-only recipe for gnupg1. We'll use this to generate
keys and sign (ostree) repository commits during bitbake/image
building in connection with ostree and flatpak repositories.

While gnupg2 can be beaten to working obedience with hacks, it is
somewhat of a PITA to use both in non-interactive batch mode and
in the Yocto relocated native environment. Instead of dealing with
those problems we generate/import signing keys and sign repository
commits using gnupg1, and check signatures on client devices using
gnupg2.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a script for generating GPG keys, primarily intended for
generating signing keys for ostree/flatpak repositories.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a class for generating or importing signing keys using GPG.
Currently we use this to generate signing keys for flatpak ostree
repositories.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added a workhorse script for generating/populating a primary flatpak
repository for an image. The script can also replicate this repository
to another archive-z2 repository which can then be exposed over HTTP
for consumption by flatpak clients. This will be necessary for building
flatpaks for/against a flatpak-enabled refkit image.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added basic flatpak packagegroup. Only pulls in flatpak with its
dependencies. We'll add another dedicated one (probably along with
a dedicated DISTRO_FEATURE) for flatpak-session.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Added three classes for supporting building flatpak-enabled images, and
creating/publishing repositories with flatpak platform and SDK runtimes
for such images.

flatpak-config.bbclass contains the flatpak-related bitbake/configuration
variables. It is separated to a class of its own because we'll probably
need to inherit it in a recipe which will support pre-populating an image
with pre-declared flatpak application repositories.

flatpak-image-variants.bbclass declares two image variants: flatpak-
runtime and flatpak-sdk. flatpak-runtime is our flatpak-enabled runtime
image variant. It is supposed to get flashed to client devices that need
flatpak support. flatpak-sdk is a corresponding image which we use to
populate a flatpak repository with a flatpak SDK runtime which can then
be used to compile/generate flatpaks for the flatpak-runtime variant.

flatpak-repository.bbclass takes care of the details of populating and
exporting flatpak repositories with images.

Signed-off-by: Krisztian Litkey <kli@iki.fi>
@klihub
Copy link
Contributor Author

klihub commented Jun 13, 2017

Test this please.

@klihub
Copy link
Contributor Author

klihub commented Jun 13, 2017

test this please

If included/required, enable DISTRO_FEATURES (usrmerge, pam, flatpak)
necessary for basic flatpak support, and set user-session PACKAGECONFIG
for D-Bus.

Signed-off-by: Krisztian Litkey <kli@iki.fi>
klihub and others added 4 commits June 14, 2017 11:14
…port.

If flatpak DISTRO_FEATURE is on inherit flatpak-image-variant and
flatpak-repository to enable building flatpak-enabled images and
generating corresponding flatpak repositories.

Signed-off-by: Krisztian Litkey <kli@iki.fi>
Added a recipe for flatpak-image-runtime, a simple systemd service
which emulates a flatpak runtime for the currently running image
using a bunch of read-only bind mounts. Also added the recipe to the
flatpak packagegroup and declared it as a supported recipe.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Enable also flatpak support if refkit config is enabled.

Signed-off-by: Krisztian Litkey <kli@iki.fi>
…bbclass.

Added a variant of systemd.bbclass which checks that systemd is among
DISTRO_FEATURES. This can be used by recipes that not only support
systemd but require it to save an extra explicit required distro
feature check.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
klihub added 3 commits June 14, 2017 15:53
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@mythi
Copy link
Contributor

mythi commented Jun 15, 2017

superseded by #188

@mythi mythi closed this Jun 15, 2017
@klihub klihub deleted the flatpak branch August 21, 2017 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants