Go to file
Philip Withnall 9989188a1e tests: Add support for collection IDs to test-repo.sh
This adds variable support for collection IDs: they can either be
enabled on the server, on the server and client, or not at all. If
enabled on the server, apps and runtimes are built with collection IDs
and the repository has one set. If enabled on the client, the remote
config is added to the local repository with a collection ID and GPG
verification enabled. They are controlled with
USE_COLLECTIONS_IN_{SERVER,CLIENT}={yes,no}.

These variables are used in the new wrapper tests,
test-repo-collections.sh and test-repo-collections-server-only.sh.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-08-18 14:23:03 +02:00
app repo-update: Disallow changing collection IDs 2017-08-18 14:23:03 +02:00
bubblewrap@30548332a7 Update to bubblewrap 0.1.8 for die-with-parent 2017-05-04 10:40:29 +02:00
builder builder: Add collection ID support to the flatpak builder 2017-08-18 14:23:03 +02:00
buildutil spelling: progressive 2016-05-27 06:45:16 +00:00
ci ci/build.sh: also install git 2017-08-14 16:05:59 +02:00
common common: Prevent pulling ostree-metadata unless gpg-verify is true 2017-08-18 14:23:03 +02:00
completion Add more completions 2016-05-30 14:54:22 +02:00
data document store: Document as-needed functionality of AddFull 2017-05-29 09:43:35 -04:00
dbus-proxy Merge pull request #900 from pwithnall/lan-and-usb-preparation 2017-07-08 20:54:28 -04:00
dbus.service.d install dbus systemd service file snippet 2016-07-26 13:33:31 -04:00
doc common/utils: Allow collection-id to be updated from repo config 2017-08-18 14:23:03 +02:00
document-portal Merge pull request #907 from smcv/metadata 2017-07-07 17:50:15 -04:00
env.d Get the system installation dir right in XDG_DATA_DIRS 2016-05-20 09:21:19 +02:00
lib lib/remote: Add getter/setter for collection IDs 2017-08-18 14:23:03 +02:00
libglnx@2f8fdf80ec Update to latest libglnx and use the new GLnxTmpFile API 2017-05-22 09:08:49 +02:00
m4 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
permission-store Merge pull request #900 from pwithnall/lan-and-usb-preparation 2017-07-08 20:54:28 -04:00
po Update POTFILES.in 2017-07-30 15:25:17 +02:00
profile Improve and simplify profile snippet 2017-03-14 21:48:58 +01:00
scripts scripts: Fix flatpak-bisect log 2017-05-02 15:01:19 +02:00
session-helper Merge pull request #900 from pwithnall/lan-and-usb-preparation 2017-07-08 20:54:28 -04:00
system-helper system-helper: Fix incorrect whitespace 2017-08-18 14:23:03 +02:00
tests tests: Add support for collection IDs to test-repo.sh 2017-08-18 14:23:03 +02:00
triggers Pass location of exports to triggers as arg1 2016-02-09 14:50:35 +01:00
.gitignore .gitignore: Ignore all generated man pages 2017-06-30 21:17:54 +02:00
.gitmodules Add bubblewrap submodule 2016-04-29 15:38:20 +02:00
.papr.yml ci: bump tests to use F26 host & container 2017-08-14 16:05:59 +02:00
COPYING Add COPYING to reflect license headers 2015-03-31 15:36:29 +01:00
Makefile.am build: Add -std=gnu99 to libglnx CFLAGS 2017-07-12 15:58:50 +01:00
NEWS Update NEWS for release 2017-06-30 22:56:43 +02:00
README.md Remove extra bracket 2017-02-04 10:25:54 +01:00
acinclude.m4 Add AX_COMPARE_VERSION to acinclude.m4 2016-09-09 10:03:27 +02:00
autogen.sh Use upstream gettext 2016-07-15 11:58:46 -04:00
configure.ac build: Add an --enable-p2p configure option for the peer to peer feature 2017-08-18 14:23:03 +02:00
flatpak.pc.in Drop libgsystem dependency 2016-08-22 16:00:33 +02:00
flatpak.png Add the logo to README.md 2016-06-02 18:05:22 -04:00
uncrustify.cfg Add uncrustify config 2016-05-06 15:27:19 +02:00
uncrustify.sh Add uncrustify config 2016-05-06 15:27:19 +02:00

README.md

Flatpak icon

Flatpak is a system for building, distributing and running sandboxed desktop applications on Linux.

See http://flatpak.org/ for more information.

Read documentation for the flatpak commandline tools and for the libflatpak library API.

INSTALLATION

Flatpak uses a traditional autoconf-style build mechanism. To build just do

 ./configure [args]
 make
 make install

Most configure arguments are documented in ./configure --help. However, there are some options that are a bit more complicated.

Flatpak relies on a project called bubblewrap for the lowlevel sandboxing. By default, an in-tree copy of this is built (distributed in the tarball or using git submodules in the git tree). This will build a helper called flatpak-bwrap. If your system have a recent enough version of bubblewrap already, you can use --with-system-bubblewrap to use that instead.

Bubblewrap can run in two modes, either using unprivileged user namespaces. This requires that the kernel supports this, which some distributions disable. For instance, Arch completely disables user namespaces, while Debian supports unprivileged user namespaces, but only if you turn on the kernel.unprivileged_userns_clone sysctl.

If unprivileged user namespaces is not available, then bubblewrap must be built as setuid root. This is believed to be safe, as it is designed to do this. Any build of bubblewrap supports both unprivileged and setuid mode, you just need to set the setuid bit for it to change mode.

However, this it does complicate the installation a bit. If you pass --with-priv-mode=setuid to configure (of flatpak or bubblewrap) then make install will try to set the setuid bit. However that means you have to run make install as root. Alternatively, you can pass --enable-sudo to configure and it will call sudo when setting the setuid bit. Alternatively you can enable setuid completely outside of the installation, which is common for example when packaging bubblewrap in a .deb or .rpm.

There are some complications when building flatpak to a different prefix than the system-installed version. First of all, the newly built flatpak will look for system-installed flatpaks in $PREFIX/var/lib/flatpak, which will not match existing installed flatpaks. You can use --with-system-install-dir=/var/lib/flatpak to make both installations use the same location.

Secondly, flatpak ships with a root-privileged policykit helper for system-installation, called flatpak-system-helper. This is dbus activated (on the system-bus) and if you install in a non-standard location it is likely that this will not be found by dbus and policykit. However, if the system installation is synchronized it you can often use the system installed helper instead. At least if the two versions are close in versions.