Alexander Larsson
bffaa12301
Remove old gtester references
2016-05-03 09:25:05 +02:00
Tristan Van Berkom
51e387159b
build-export: Add --arch option
...
This patch adds the --arch option to the build-export builtin command.
Previously build-export derives this from the metadata and then falls back
to xdg_app_get_arch(), except that this does not work when the metadata does
not specify an arch (such as with extensions like .Debug or .Locale).
https://bugs.freedesktop.org/show_bug.cgi?id=95226
2016-05-03 09:05:56 +02:00
Alexander Larsson
4d21107f1c
Rename configure.test to test-configure
...
Otherwise it is ignored with the other *.test generated files
2016-05-02 17:18:00 +02:00
Alexander Larsson
36d0a2fe2a
Add xdg_app_installed_ref_get_subpaths
...
This was in the header, but not the code
2016-05-02 16:50:37 +02:00
Alexander Larsson
b3d854f507
tests: Fix installed tests
2016-05-02 16:26:47 +02:00
Alexander Larsson
d680da8d59
Added xdg-app-builder test
2016-05-02 15:49:18 +02:00
Alexander Larsson
dcfb950c31
make-test-runtime.sh: Make this a bit more generic
...
We pass the id and contents on the commandline
2016-05-02 14:15:32 +02:00
Alexander Larsson
df4deecccc
tests: Test --default-arch
2016-05-02 12:39:30 +02:00
Alexander Larsson
a68e3bba50
tests: Add tests for list/info commands
2016-05-02 12:38:12 +02:00
Alexander Larsson
e5fad0714e
tests: Add namespace and overrides tests
2016-05-02 11:41:32 +02:00
Alexander Larsson
123f32015d
tests/test-run.sh: Add tests for proper installation
2016-05-02 10:47:59 +02:00
Alexander Larsson
2f465215e2
Add some missing files from the tests
2016-05-02 10:46:51 +02:00
Alexander Larsson
e7cc0c3db9
tests: Move run tests to separate file
...
Also adds a --help test to test-basic.
2016-05-02 09:52:58 +02:00
Alexander Larsson
1963957253
cli: Remove old deprecated xdg-app commands
...
Its been long enough so nothing should be using these, lets drop them.
2016-05-02 09:46:56 +02:00
Tristan Van Berkom
aa69c1afef
xdg-app-builder: Add --arch command line option
...
This is only useful for building for architectures which are
compatible with the build host, e.g. building i686 binaries on
an x86_64 build host.
2016-05-02 08:46:52 +02:00
Alexander Larsson
126d805e90
oci: Use /bin/sh, not sh as the default command
...
runc doesn't look in PATH for this
2016-04-29 17:07:19 +02:00
Alexander Larsson
5e06e18e6a
run: Always use --unshare-user
...
This is the default if bwrap is unprivileged, but we want to use
it also if its setuid.
2016-04-29 16:12:54 +02:00
Alexander Larsson
f55bb0edc9
Remove xdg-app-helper
2016-04-29 15:52:47 +02:00
Alexander Larsson
4c3bf179e2
Use bubblewrap instead of xdg-app-helper
...
Bubblewrap is a new tool from project atomic. Its similar to the old
xdg-app-helper, but even more minimal, and a bit more generic. Its designed
to be easy to git submodule install, but at some point we will probably
support using the system installed version too.
Using bubblewraps lets us share the load of security mainainance and
allows other people to use bubblewrap to do their own unprivileged
sandboxes.
2016-04-29 15:52:44 +02:00
Alexander Larsson
ee7be7f82d
Build bwrap
2016-04-29 15:38:23 +02:00
Alexander Larsson
27642b3d6d
Add bubblewrap submodule
2016-04-29 15:38:20 +02:00
Alexander Larsson
6112eb1470
oci: Move the extra files (ref/metadata/commit) too rootfs
...
Saving them in the image means they will be transferred with it, increasing
the chances that the commit can be recreated from the image.
2016-04-28 20:43:27 +02:00
Alexander Larsson
c0f2304f81
Experimental version of OCI support
...
This lets you export and import a runtime or an application into a tarball
that explodes to match the oci runtime spec. This goal of this is to interchange
xdg-app apps with other systems that support OCI.
Note that this is highly experimental, because the oci specs are in flux, and
in fact we should probably use the OCI image spec instead of the runtime spec,
but its not yet finished enough for us to use it. So, don't rely on this for
now other than to experiment with it.
2016-04-28 20:29:49 +02:00
Alexander Larsson
acd84a454a
Fix install with installed tests disabled
2016-04-28 17:00:41 +02:00
Alexander Larsson
337f81048c
test-basic: Verify the right version
2016-04-28 13:12:43 +02:00
Alexander Larsson
b330368761
Make installed tests work better
...
This involves e.g. having our own session bus with only our services in.
2016-04-28 13:04:14 +02:00
Alexander Larsson
327f432219
tests: Add a basic test that just runs an app
2016-04-27 21:23:42 +02:00
Alexander Larsson
3d3ebf814d
Support installed tests
2016-04-27 16:37:15 +02:00
Tristan Van Berkom
bc7bfeef6f
BuilderSourceFile: Delete destination file
...
Sometimes you want to replace an existing file, like a config.sub,
and sometimes that existing config.sub does not have the writable
bits set. Just delete the file if we intend to replace it anyway.
2016-04-27 14:15:05 +02:00
Alexander Larsson
f37b3261d6
Add support for disabled remotes
...
If this is set we don't list them by default, and we don't
automatically update apps from them.
2016-04-27 13:39:34 +02:00
Alexander Larsson
7fd926f07e
lib: Add xdg_app_get_default_arch
2016-04-27 13:13:26 +02:00
Alexander Larsson
e471231414
common: Remove unused xdg_app_dir_get_installed_size
2016-04-27 13:10:32 +02:00
Alexander Larsson
b3b5da71c9
lib: Use deploydata file directly
...
This means we seek a lot less. Also, we get the cached installed
size rather than recalculating it all the time.
2016-04-27 13:09:34 +02:00
Alexander Larsson
4b0621cfb0
info: Use deploy_data
2016-04-27 13:01:54 +02:00
Alexander Larsson
5789c5c99d
list: Use deploy data to avoid lots of seeks
2016-04-27 12:58:55 +02:00
Alexander Larsson
ffb6670332
deploy: Deploy to temporary directory and rename at the end
2016-04-27 12:58:31 +02:00
Alexander Larsson
64669a9a96
common: Write and use the new deploydata file
...
Instead of separate "origin", "subpaths" and eventually "installed-size"
files we store a single (extensible) gvariant with all this info, which
means we need to seek less to get it.
Also, we move this file into the deploy dir as some of the data
differs for each deploy, and that way we can rely on the the active
symlink to make the update atomic.
2016-04-27 12:41:41 +02:00
Alexander Larsson
b8b3d319d4
common: Add xdg_app_variant_save
2016-04-27 12:33:47 +02:00
Alexander Larsson
74c0689843
commont: Add deploy data GVariant
...
This is a single file for the per-deploy data in the deploy dir.
We want this so we can avoid stat:ing a lot of separate files to get
data like origin, subpaths and eventually cached installed size.
2016-04-27 11:49:39 +02:00
Alexander Larsson
e4d3a7da5a
list: Show installed size and subpaths
2016-04-27 10:23:04 +02:00
Alexander Larsson
be71ceb31f
xdg_app_dir_get_installed_size: Implement without using ostree sizes
...
This is slightly slower, but actually works since we stopped
collecting sizes in the commits. Further work will make this more performant.
2016-04-27 10:02:49 +02:00
Alexander Larsson
02c3cae33f
xdg_app_repo_collect_sizes: Don't collect unrequested sizes.
2016-04-27 10:02:00 +02:00
Alexander Larsson
9624dd67da
common: Export xdg_app_repo_collect_sizes
2016-04-27 09:41:14 +02:00
Alexander Larsson
a304b786f4
installation_fetch_remote_size_sync: Always fail with deprecation error
...
This is not supported anymore since it was replaced with the summary cache.
Remove the code so nothing accidentally uses it.
2016-04-27 09:29:48 +02:00
Alexander Larsson
965530c143
helper: Don't try to mount /.oldroot into the sandbox
...
This will conflict with the internal .oldroot
2016-04-27 08:49:23 +02:00
Alexander Larsson
eeece1a789
Merge branch 'privileged-helper'
2016-04-26 17:01:18 +02:00
Alexander Larsson
839e17abf0
session-helper: Forgot to remove some of the dead gresource code
2016-04-26 16:58:20 +02:00
Alexander Larsson
07e5b4a219
Move system-helper use into xdg_app_dir_install/update()
...
This way we don't need to keep state in XdgAppDir for the child
repo, which is not threadsafe.
2016-04-26 16:48:18 +02:00
Alexander Larsson
2a46f3277c
Add xdg_app_dir_install/update helpers
...
These don't do much atm, but will let us clean up the child_repo handling
2016-04-26 16:24:09 +02:00
Alexander Larsson
64a28a9e7c
XdgAppDir helper: Update system_helper threadsafely
2016-04-26 15:45:44 +02:00