Commit Graph

159 Commits (5823533bd7b780478ade2e57ccf6b950797470ed)

Author SHA1 Message Date
Alexander Larsson 9d1f1ed59c Delete non-builder files 2017-08-25 09:27:42 +02:00
Alexander Larsson 3ac5747e39 Bump version to 0.9.8 2017-08-21 18:15:26 +02:00
Philip Withnall 655e7ce5c3 build: Add an --enable-p2p configure option for the peer to peer feature
A series of following commits will introduce a peer to peer feature for
pulling apps and runtimes from LAN peers and USB sticks without needing
an internet connection. This requires experimental API in libostree
(which needs to have been configured with --enable-experimental-api), so
needs to be hidden behind a configure option in flatpak too. It’s called
--enable-p2p, and bumps our libostree dependency to 2017.8 with
experimental API required too.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-08-18 14:23:03 +02:00
Alexander Larsson 85ba1f75eb Require ostree 2017.10
This includes a change in how ostree reports missing gpg signatures
which makes the test-suite pass. Additionally that change requires
us to change how we detect such missing gpg signatures in one place.

We could try to support both versions, but the easiest fix is to just
require the latest ostree.
2017-08-15 18:41:44 +02:00
Alexander Larsson 67a568d513 Bump version to 0.9.7 2017-06-30 22:56:59 +02:00
Simon McVittie 8776d3c1f8 build: Check for system extensions before any other C compiling
AC_USE_SYSTEM_EXTENSIONS issues warnings unless it is the first
attempt to compile C code.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2017-06-30 21:18:22 +02:00
Alexander Larsson 5e893f7e4a Update version to 0.9.6 2017-06-20 14:45:27 +02:00
Colin Walters 1e07f79b57 Use new libostree APIs to reject world-writable/suid content
This uses the new libostree APIs that landed recently to ensure
that we reject any files with mode outside of `0775` for system
helper pulls, and we also mask directory modes during checkout.

However, this does *not* fix up any already downloaded content.
For that, one could uninstall/reinstall; or a future patch could
do a one-time fixup pass.

Note that I am not aware of a way for flatpak applications to escalate their
privileges directly with this flaw; the bubblewrap `PR_SET_NO_NEW_PRIVS` turns
of setuid. However, in combination with code execution on the host via another
mechanism (e.g. unsandboxed app), a setuid app injected could be used to gain
full host privileges.

At this time we're not aware of any flatpak content exploiting this issue.

Closes: https://github.com/flatpak/flatpak/issues/845
2017-06-15 16:40:17 +02:00
Alexander Larsson ce2b51e729 Bump version to 0.9.5 2017-06-05 13:36:16 +02:00
Alexander Larsson dbf52de6fd Bump version to 0.9.4
This is in preparation for a release to come, but also
to let you check for new features in configure.
2017-05-22 14:37:41 +02:00
Alexander Larsson fcb59afe7a Require ostree 2017.6 for the new progress APIs 2017-05-18 11:30:18 +02:00
Alexander Larsson e3db39ea8f Require latest flatpak (2017.5)
This allows us to rely on the new BARE_USER_ONLY mode, as
well as the fixes to progress reporting. Also, it has a lot
of bugfixes that are nice. If you need an old ostree you can
run the old flatpak series.
2017-05-12 16:30:14 +02:00
Alexander Larsson 3e9bc8ba7a Rewrite exported mimetype files
We only allow globs, not magic matches, and we drop the glob
priority to a very low level (weight=5) which means that its
hard for app-installed mimetypes to override the system installed
ones. That should make exporting mimetypes pretty safe.
2017-05-11 18:16:13 +02:00
Alexander Larsson 24cdbf51b9 Update to bubblewrap 0.1.8 for die-with-parent
This requires 0.1.8 if you use the system build and
updates the submodule to 0.1.8.
2017-05-04 10:40:29 +02:00
Alexander Larsson 00a75c48b6 Bump version to 0.9.3 2017-04-24 22:14:05 +02:00
Alexander Larsson 6c5a662da7 Bump version to 0.9.2 2017-04-05 09:52:30 +02:00
Simon McVittie af3e9ecffd Build with large file support
gpgme is built with large file support by default, and checks that
its ABI (size of off_t) matches the ABI expected by library users
like flatpak. This caused build failures on Debian i386 and powerpc.

Signed-off-by: Simon McVittie <smcv@debian.org>
2017-04-04 12:17:28 +02:00
Alexander Larsson ea803f1f80 OCI: Add flatpak_oci_sign_data 2017-03-29 17:14:36 +02:00
Alexander Larsson 7b906ce8ea Drop -Werror for aggregate-returns
gvdb is using this, so the CI was failing
2017-03-27 12:44:54 +02:00
Alexander Larsson 7d5767333a Fix build if libdwarf dir missing
I was getting errors from -Werror=missing-include-dirs due to
$includedir/libdwarf not existing when builing in a different
prefix than /usr.
2017-03-27 10:55:40 +02:00
Colin Walters 2618a19716 Import ostree's compiler warnings, fix up callers
In ostree I maintain what I consider a "baseline" set of compiler
warnings that should *always* be fatal for a modern C project.

I noticed while working on a previous patch that a `-Werror=format`
warning wasn't fatal.

There are a few that are really, really important like
`-Werror=missing-prototypes`. I also take some like `-Werror=misleading-indentation`
which already caught some bugs.  See also https://lwn.net/Articles/678019/
2017-03-27 10:42:36 +02:00
Alexander Larsson afc2dd3d75 Update minimal automake to 1.13.4
It doesn't build on the current minimum of 1.11.
Fixes https://github.com/flatpak/flatpak/issues/621
2017-03-15 09:54:37 +01:00
Alexander Larsson dcccb3c807 Bump glib dependency to 2.44
This is required for e.g. G_DECLARE_FINAL_TYPE, and most current
distros have this now.

This fixes https://github.com/flatpak/flatpak/issues/622

For distributions that want to build against older glib, see
the issue above, it has patches to make that work.
2017-03-15 09:44:28 +01:00
Alexander Larsson 55553af813 Remove old --with-priv-mode=caps
This doesn't work anymore
2017-01-30 12:11:55 +01:00
Ikey Doherty 3b64fbc4f5 profile: Support alternative profile.d locations
Typically Linux distributions employ /etc/profile.d for system wide
environment manipulation prior to multi-user initialisation. Modern
distribution efforts split the vendor configuration from the local
sysadmin configuration and data, by not using the /etc/ directories,
for example.

To enable this stateless pattern, this change adds a new --with-profile-dir
option to use an alternative location, such as within /usr/share/. This
ensures that the data (not configuration) is owned through the update
process, and does not conflict with changes made locally to the system,
enforcing domains of ownership.

To preserve backwards compatible behaviour, the default directory remains
set to /etc/profile.d.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-01-19 10:05:13 +01:00
Ikey Doherty ca107ebb16 system-helper: Allow configuration of dbus configuration directory
Newer versions of dbus support stateless directories, and many distributions
now use /usr/share/dbus-1/system.d for the vendor configuration files, as
opposed to the legacy /etc/dbus-1/system.d directory.

To enable this, we add a new --with-dbus-config-dir option to control the
configuration directory, whilst retaining backwards compatibility for those
still using older versions of dbus.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-01-19 10:05:13 +01:00
Alexander Larsson afda4e6900 Update to version 0.9.1 for unstable branch 2017-01-18 17:06:42 +01:00
Alexander Larsson 84f0b90af7 Bump version to 0.8.1 2017-01-18 16:34:26 +01:00
Michal Rostecki 2860c0c4ad configure: Look for the libdwarf headers also in /usr/include/libdwarf
Before this change, configure script looked for them only in
$includedir, which doesn't work well with jhbuild.

Fixes #471
2017-01-12 11:52:05 +01:00
Alexander Larsson bef52f4ee7 Update version to 0.8.0 2016-12-20 16:44:22 +01:00
Alexander Larsson 6d0af18df1 Require system bwrap 0.1.5
This is the latest stable release
2016-12-19 10:51:43 +01:00
Alexander Larsson cc85b93584 build-finish: Add --require-version and handling of it
This means that clients will refuse to install or update to your
new app if the flatpak version they are using is too old.
2016-12-14 13:48:51 +01:00
Alexander Larsson 109698c6b0 Release 0.6.14 2016-11-29 10:44:32 +01:00
Alexander Larsson c7776d0a6f Require new ostree and drop old workaroung
OSTree 2016.4 fixes the scanning and purging issues that
forced us to do a double-pull during sudir installs.
2016-11-28 12:25:59 +01:00
Alexander Larsson 6e31932221 OCI: Generate an oci image dir structure instead of a runtime 2016-10-31 20:11:14 +01:00
Alexander Larsson f0380434e1 Remove check for OstreeRepoExportArchiveOptions.path_prefix
We now hard-depend on a recent enough ostree that has this.
2016-10-28 11:02:40 +02:00
Alexander Larsson 32d5418605 Don't use the system-helper if disabled
I.e. if there is a system-installed helper, then we should not use
it if flatpak was built without the system helper.
2016-10-24 15:27:42 +02:00
Alexander Larsson 173897c544 Require OStree 2016.12 for new features and fixes
We want to use the new transactioned detached metadata support,
multi-subdirs pull, and inherit-transactions on pull. Also, there are
some fixes we like.
2016-10-22 10:11:09 +02:00
Alexander Larsson 274e30310b Post-release version bump 2016-10-17 08:54:22 +02:00
Alexander Larsson 9792ee1d4a post release version bump 2016-09-20 16:26:59 +02:00
Alexander Larsson 38a6b8d5e4 Post-release version bump 2016-09-13 15:13:20 +02:00
Alexander Larsson da38fc544c Update version/news to 0.6.10 2016-09-12 13:27:47 +02:00
Alexander Larsson cd3cccf136 Require OSTree 2016.10 for mtime revert
It seems OSTree switched back to 0 for mtimes, so we have to switch
back too. We need to depend on this release to ensure that all
created repos gets things right.
2016-09-09 09:13:20 +02:00
Alexander Larsson a46f8ed1d3 Require bubblewrap 0.1.2 for system bwrap and update git submodule to that 2016-09-09 09:07:15 +02:00
Alexander Larsson 837dd35234 Update versin to 0.6.9 2016-08-25 13:46:22 +02:00
Alexander Larsson 6578d37984 Drop libgsystem dependency 2016-08-22 16:00:33 +02:00
Alexander Larsson f93cd615b3 Update for 0.6.8 2016-07-31 00:01:27 +02:00
Alexander Larsson cbe20d3a6c Require ostree 2016.7 to get fix for issue #144
The new ostree has a fix for delta updates that lets us
re-enable these for updates via the system helper.
2016-07-29 01:20:40 +02:00
Alexander Larsson 003ef9ee2e Revert "Set up logging to the journal" 2016-07-29 00:24:43 +02:00
Matthias Clasen 9583e0ddb4 Add a configure summary 2016-07-28 15:02:40 -04:00