forked from Mirrors/flatpak-builder
Update README and clean out NEWS
parent
d2b238dc36
commit
2af37012f9
53
README.md
53
README.md
|
@ -1,18 +1,16 @@
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://github.com/flatpak/flatpak/blob/master/flatpak.png?raw=true" alt="Flatpak icon"/>
|
<img src="https://github.com/flatpak/flatpak/blob/master/flatpak.png?raw=true" alt="Flatpak icon"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
Flatpak is a system for building, distributing and running sandboxed
|
Flatpak-builder is a tool for building flatpaks from sources.
|
||||||
desktop applications on Linux.
|
|
||||||
|
|
||||||
See http://flatpak.org/ for more information.
|
See http://flatpak.org/ for more information.
|
||||||
|
|
||||||
Read documentation for the flatpak [commandline tools](http://flatpak.github.io/flatpak/flatpak-docs.html) and for the libflatpak [library API](http://flatpak.github.io/flatpak/reference/html/index.html).
|
Read documentation for the flatpak-builder [commandline tools](http://flatpak.github.io/flatpak/flatpak-docs.html).
|
||||||
|
|
||||||
# INSTALLATION
|
# INSTALLATION
|
||||||
|
|
||||||
Flatpak uses a traditional autoconf-style build mechanism. To build just do
|
Flatpak-builder uses a traditional autoconf-style build mechanism. To build just do
|
||||||
```
|
```
|
||||||
./configure [args]
|
./configure [args]
|
||||||
make
|
make
|
||||||
|
@ -22,47 +20,4 @@ Flatpak uses a traditional autoconf-style build mechanism. To build just do
|
||||||
Most configure arguments are documented in `./configure --help`. However,
|
Most configure arguments are documented in `./configure --help`. However,
|
||||||
there are some options that are a bit more complicated.
|
there are some options that are a bit more complicated.
|
||||||
|
|
||||||
Flatpak relies on a project called
|
Flatpak-builder relies on flatpak, so it must be installed first.
|
||||||
[Bubblewrap](https://github.com/projectatomic/bubblewrap) for the
|
|
||||||
low-level 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
|
|
||||||
has 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 or setuid mode. 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 are 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 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,
|
|
||||||
you can often use the system installed helper instead - at least
|
|
||||||
if the two versions are close in versions.
|
|
||||||
|
|
Loading…
Reference in New Issue