Commit Graph

1218 Commits (185fdc194782e24775db22c26a79687b1598be01)
 

Author SHA1 Message Date
Alexander Larsson 185fdc1947 Add uncrustify config 2016-05-06 15:27:19 +02:00
Alexander Larsson f17fd2a705 enter: Remove cut and paste error code 2016-05-06 15:06:17 +02:00
Alexander Larsson e12d93b069 Remove spurious ; 2016-05-06 14:23:35 +02:00
Alexander Larsson de9fe1cb6a common: Work around new glib codegen autogenerating g_autoptr support
glib master generates g_autoptr support, which causes a multiple
declaration conflict. We work around this by using a custom type.
2016-05-04 09:10:11 +02:00
Alexander Larsson 131961644d Use the userspace arch as the default, not the kernel arch
Its not super uncommon to e.g. have a 64bit kernel with 32bit userspace.
So, we default to the arch xdg-app was built for, rather than what
uname reports (the kernel version).
2016-05-04 09:00:12 +02:00
Alexander Larsson 098e3e426d build: Look for files in the same dir as the manifest, not in the CWD
This makes more sense, the CWD is not necessary a useful place.
2016-05-04 08:47:38 +02:00
Alexander Larsson 3bdae174e9 Merge pull request #153 from matthiasclasen/bubblewrap-autogen
autogen.sh: Look for bubblewrap submodule too
2016-05-04 08:35:56 +02:00
Matthias Clasen b5a997df43 autogen.sh: Look for bubblewrap submodule too
autogen.sh had code to init submodules if the libglnx directory
is empty. We should also check for bubblewrap now.
2016-05-03 17:25:54 -04:00
Alexander Larsson e908ef6788 completion: Fix typo 2016-05-03 15:03:11 +02:00
Alexander Larsson 554a0237b9 completion: Remove use of old cli commands 2016-05-03 15:02:43 +02:00
Alexander Larsson c9169c5a4f Add missing file from POTFILES.in 2016-05-03 10:29:19 +02:00
Alexander Larsson 663cfcf3a8 Fix make check if uninstalled
This uses various environment variables set during make check
to find the trigger, bwrap and xdg-app-dbusproxy from the build/source dir
rather than the installed location.
2016-05-03 10:27:36 +02:00
Alexander Larsson 1df3e4845b Fix various distcheck issues 2016-05-03 09:36:33 +02:00
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