Alexander Larsson
0be93ed1dc
extensions: Always create a tmpfs for subdirectory extensions.
...
This makes sure we can actually create a directory as needed, and not
having to have every subdirectory pre-created in the runtime.
2016-06-29 15:56:28 +02:00
Alexander Larsson
f1a2f30e41
Add tests for extensions
2016-06-29 12:54:08 +02:00
Alexander Larsson
853227a3d6
extensions: Minor cleanup
...
We now store the path to the extension files in the FlatpakExtension
returned from list_extensions instead of having each called look
them up.
2016-06-29 12:20:16 +02:00
Alexander Larsson
ab64f70c59
tests: Test install/updates with static deltas
2016-06-28 17:36:54 +02:00
Alexander Larsson
3d534a864a
Merge pull request #157 from joaquimrocha/fix_leak
...
Fix leak in flatpak-installed-ref
2016-06-28 15:28:07 +02:00
Alexander Larsson
c6aa8376b1
tests/test-builder.sh: Re-silence flatpak-builder
...
The > /dev/null was accidentally dropped
2016-06-28 15:26:16 +02:00
Alexander Larsson
de8d8a36c2
Merge pull request #158 from hadess/wip/use-git-patch
...
Add "use-git" option for patch source types
2016-06-28 15:24:49 +02:00
Bastien Nocera
b9da048096
tests: Add test for "use-git" patch application
2016-06-28 15:23:44 +02:00
Alexander Larsson
b00dbed3bd
builder: Report errors to stderr, not stdout
2016-06-28 15:08:09 +02:00
Alexander Larsson
7070dbf96c
Make journal always available in the sandbox
...
I don't think it makes sense to have to enable this for everything.
It should be safe in the sense that you can't ever do more than
the user can do anyway, and there is no way to use this to communicate
with the rest of the system because you can't read from it.
The worst this could ever cause is to overload the system, but the
sandbox doesn't protect against that in any other way anyway.
2016-06-28 15:05:01 +02:00
Bastien Nocera
c646f386eb
builder: Add "use-git" option for patch source type
...
Closes #6
2016-06-28 14:24:16 +02:00
Bastien Nocera
2facf8bbf0
utils: Add flatpak_spawnv() helper
...
This will allow callers to easily add new parameters without tearing
their hair out with varargs.
2016-06-28 14:24:16 +02:00
Joaquim Rocha
84043767fb
Fix leak in flatpak-installed-ref
...
The latest_commit string needs to be freed.
2016-06-28 13:14:35 +02:00
Alexander Larsson
44b6c31efc
fix warning
2016-06-28 11:41:35 +02:00
Alexander Larsson
5217885108
Update to latest libglnx with lock release fix
2016-06-28 11:41:35 +02:00
Alexander Larsson
9f047ff58e
Merge pull request #154 from smcv/test-locale
...
test-basic: do not fail in non-English locales
2016-06-27 12:55:39 +02:00
Alexander Larsson
43dbf96f7c
Merge pull request #148 from matthiasclasen/journal
...
make journal logging work in the sandbox
2016-06-27 11:14:11 +02:00
Alexander Larsson
5f73b1f2da
Merge pull request #155 from smcv/system-bwrap
...
Add BWRAP and --with-system-bubblewrap configure arguments
2016-06-27 10:58:14 +02:00
Simon McVittie
a41ecc5254
test-basic: do not fail in non-English locales
...
One of the variations tested on Debian's reproducible build
infrastructure is that the second build is done in a French locale.
This test fails there, because it doesn't see "Usage:" in the help.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-26 16:56:42 +01:00
Simon McVittie
ee99e8afff
Add BWRAP and --with-system-bubblewrap configure arguments
...
This lets distributors share a system copy of bubblewrap (>= 0.1.0)
between Flatpak and any other projects that benefit from it, if they are
careful to keep new versions in sync. The default is still to use the
bundled submodule, ensuring compatibility and simplifying dependencies.
Enable $PATH search everywhere that runs bwrap, so that $BWRAP doesn't
necessarily need to be a fully-qualified path.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-26 11:09:03 +01:00
matthiasclasen
5eede39078
Merge pull request #146 from matthiasclasen/document-d
...
gdb in sandbox doesn't work
2016-06-24 21:14:33 -04:00
matthiasclasen
d2c7c1b953
Merge pull request #152 from smcv/docportal
...
document portal: don't reply to GetMountPoint() until ready
2016-06-24 21:13:29 -04:00
matthiasclasen
9b0f0f94e0
Merge pull request #153 from smcv/tests
...
Various test fixes
2016-06-24 21:11:05 -04:00
Simon McVittie
6f9915eade
Run tests with a private XDG_RUNTIME_DIR
...
Otherwise, service activation will start a new xdg-document-portal
(because we're using a private DBUS_SESSION_BUS_ADDRESS), but because
XDG_RUNTIME_DIR is shared with the real system, it won't be able to
mount its filesystem.
We need to unmount the document portal before removing the private
XDG_RUNTIME_DIR.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-25 00:45:10 +01:00
Simon McVittie
c59fba9be3
tests: don't treat helper scripts as though they were tests
...
We shouldn't install .test metadata for these, and run them as TAP
test scripts. In glib-tap.mk jargon that makes them "extra scripts".
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-25 00:45:09 +01:00
Simon McVittie
58bd3e3ec8
Downgrade failure to get document portal from warning to message
...
Otherwise, the tests all abort when run without FUSE.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-25 00:45:09 +01:00
Simon McVittie
dab1d99c46
document portal: don't reply to GetMountPoint() until ready
...
As soon as we get our D-Bus name, we can start receiving method calls. If
we reply immediately, callers will think our mount point is ready.
In particular, if FUSE is unavailable, we want "flatpak run" to proceed
with no document portal; it currently tries and fails to bind-mount the
nonexistent document portal mount-point into the container.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-06-24 21:07:57 +01:00
matthiasclasen
6d3d781654
Merge pull request #151 from anssih/fix/doc-builddir
...
Fix builddir option type in flatpak-builder documentation
2016-06-24 08:20:20 -04:00
Anssi Hannula
3fb031582e
Fix builddir option type in flatpak-builder documentation
2016-06-24 11:33:02 +03:00
Matthias Clasen
f6af5702db
Document new socket option
2016-06-24 02:01:05 -04:00
Matthias Clasen
5fb066bf90
Add an option for journal sockets
...
Untested, I couldn't find a runtime that has systemd-cat or a similar
tool in it.
2016-06-24 01:52:55 -04:00
Matthias Clasen
c195c4197d
Expand the flatpak run --devel docs
...
Mention that --devel also affects the seccomp profile.
Took me a while to find that out.
2016-06-23 14:31:40 -04:00
Alexander Larsson
b7972acf74
Update NEWS
0.6.6
2016-06-23 13:23:46 +02:00
Alexander Larsson
769f19fd30
Bump version number to 0.6.6
2016-06-23 13:19:17 +02:00
Alexander Larsson
640bf9e69c
remote-ls: Better multiarch support
...
By default, only show supported refs. Use --arch to limit it
to a specific arch, or --arch=* to list all.
2016-06-23 13:08:12 +02:00
Alexander Larsson
db192586de
make-current: Use find_installed_ref()
...
This means you don't have to specify the arch if you don't want.
It will still find supported apps.
2016-06-23 12:54:45 +02:00
Alexander Larsson
f9ce1b16ed
Make finding refs handle multi-arch
...
If opt_arch is not specified:
* find_xxx_refs now return refs for all supported arches
* find_xxx_ref looks at each supported arch in prio order
2016-06-23 12:52:55 +02:00
Alexander Larsson
9915e3740b
Disable static deltas for system-helper updates
...
Due to an issue with ostree (https://github.com/ostreedev/ostree/pull/362 )
applying non-from-scratch deltas fail when using parent_repo such as
in the system-helper case. We fix this temporarily by disabling the
use of deltas for that case.
2016-06-23 12:16:02 +02:00
Alexander Larsson
2966b25ba0
update: Always look at all existing apps when updating
...
Currently if you specified some of branch/name we used
find_installed_ref, but even in that case we want to
support updating two arches.
2016-06-23 11:36:51 +02:00
Alexander Larsson
34faddfa8f
common: Make some internal functions static
2016-06-23 11:31:19 +02:00
Alexander Larsson
8740a9ded3
Add flatpak --supported-arches
2016-06-23 11:12:28 +02:00
Alexander Larsson
fa6fb1033f
lib: Add flatpak_get_supported_arches
2016-06-23 11:05:49 +02:00
Alexander Larsson
bde74d25d4
common: Add flatpak_get_arches() helper
2016-06-23 11:05:42 +02:00
Matthias Clasen
0c873100b7
Document the flatpak-builder var support
2016-06-23 10:06:53 +02:00
Matthias Clasen
d3629b8e72
builder: Add support for a var runtime
...
flatpak build-init as a --var option - support this as a
"var" key in the json.
2016-06-23 10:01:40 +02:00
Alexander Larsson
e7a04b36af
Merge pull request #133 from heftig/master
...
system-helper: Reorder flatpak_authorize_method_handler
2016-06-21 09:06:35 +02:00
Jan Alexander Steffens (heftig)
599f8b963d
system-handler: Don't leak path string
...
Without &, ^ay dups the string.
2016-06-20 23:42:22 +02:00
Jan Alexander Steffens (heftig)
55e26c296f
system-helper: Reorder flatpak_authorize_method_handler
...
Reduces code duplication.
2016-06-20 23:42:01 +02:00
Alexander Larsson
0fffc8ec4c
system-helper: Use org.freedesktop.DBus.Error.AccessDenied on polkit auth fail
...
This makes more sense than some unmapped permission error.
2016-06-20 11:16:10 +02:00
Alexander Larsson
c43a7b93af
Merge pull request #128 from matthiasclasen/document-command-docs
...
Clarify the documentation a bit
2016-06-20 09:32:07 +02:00