Alexander Larsson
90aaed7f7b
builder: Build runtimes in /run/build-runtime
...
This way we the runtime build dir doesn't conflict with the app dir.
Which is good if we want debuginfo with sources for both.
2016-02-23 14:12:20 +01:00
Alexander Larsson
22d997e712
builder: Add builder_get_debuginfo_file_references
2016-02-23 12:44:01 +01:00
Alexander Larsson
5f96507913
Add a file header to bundles
2016-02-23 09:44:18 +01:00
Alexander Larsson
b9368753fa
docs: Add docs for shell sources
2016-02-22 16:26:46 +01:00
Alexander Larsson
40feb18556
Set xdg-app as the log domain
2016-02-22 08:46:49 +01:00
Alexander Larsson
1e83b2c021
Fix xml printing of nodes with no children
2016-02-19 14:57:53 +01:00
Alexander Larsson
6307910c2f
Release 0.4.12
2016-02-19 12:32:48 +01:00
Alexander Larsson
593bca9fb9
When deploying, always make /etc/resolve.conf a symlink into the monitor dir
...
This way we can use the deployed etc dir instead of having to create
our own.
2016-02-19 11:31:18 +01:00
Alexander Larsson
01bfb2e996
helper: Put monitor path in /run/host instead of /run/user/$uid
...
This means we can always find it in a fixed place, and thus we can
have a static symlink pointing to this.
2016-02-19 11:24:32 +01:00
Alexander Larsson
eb2edc578a
Fix use after free
2016-02-19 09:48:18 +01:00
Alexander Larsson
d62a731cd4
Always create /etc/passwd,group,resolve.conf,machine-id when deploying
...
This means we can rely on these and bind-mount on top of them when
running.
2016-02-18 22:43:14 +01:00
Alexander Larsson
f98f565df0
Add support for separated locales when creating platforms
2016-02-18 21:49:13 +01:00
Alexander Larsson
f1d401e6cd
Migrate locales after importing parent runtime
2016-02-18 21:48:33 +01:00
Alexander Larsson
b44bbc13c3
Move migrate_locales to builder-utils.c
2016-02-18 21:47:29 +01:00
Alexander Larsson
d5d47aa458
builder: Support separating out locale data
2016-02-18 19:22:34 +01:00
Alexander Larsson
6b6e4b213a
Add docs for appstream-compose option.
2016-02-18 17:35:11 +01:00
Alexander Larsson
6428fcce45
common: Add XDG_APP_CP_FLAGS_MOVE support
2016-02-18 17:31:43 +01:00
Alexander Larsson
abdbb17a72
Remove all appstream checkouts and mirrored refs when deleting remote
2016-02-18 12:54:40 +01:00
Alexander Larsson
3d18255ba3
Add xdg_app_installation_get_remote_by_name
2016-02-18 11:40:48 +01:00
Alexander Larsson
5a7e894edd
appstream: Add runtime, sdk and tags to appstream xml
2016-02-17 16:21:20 +01:00
Alexander Larsson
c01ec3fae5
deploy: Add metadata tags to exported desktop files.
2016-02-17 15:24:30 +01:00
Alexander Larsson
bb4d67b086
builder: Support tags
2016-02-17 14:54:16 +01:00
Alexander Larsson
be97206c7b
build-init: Support --tag=FOO
2016-02-17 14:50:34 +01:00
Alexander Larsson
71259fa711
builder: Support local archives with path property
2016-02-17 14:50:01 +01:00
Alexander Larsson
6c5feb4e05
builder: Add support for --run to start a command in the build dir
2016-02-17 10:26:35 +01:00
Alexander Larsson
c07b1807d1
builder: Move CFLAGS/CXXFLAGS handling into BuilderOptions
2016-02-17 10:26:35 +01:00
Alexander Larsson
e233705379
builder: Add build_context_get_build_dir()
2016-02-17 10:26:32 +01:00
Alexander Larsson
393163200d
builder: Always create unversioned symlinks while building modules
...
This way if things go wrong you can always find the latest build
2016-02-17 08:43:29 +01:00
Alexander Larsson
e0b08161d7
lib: Add xdg_app_installation_get_path
2016-02-16 16:30:33 +01:00
Alexander Larsson
ac851cae9e
lib: Return GBytes from xdg_app_installed_ref_load_metadata()
...
This is an ABI break, but nothing uses this yet.
2016-02-16 16:11:01 +01:00
Alexander Larsson
faecde5da5
builder: Report errors if eu_strip fails
...
This was ignoring errors and causing "set-on-top-of-existing-GError"
messages.
2016-02-16 14:45:23 +01:00
Alexander Larsson
be4b6b8013
helper: drop caps in launcher
...
We don't need any capabilities in the launcher when waiting for the child
to die, so drop them as early as possible.
2016-02-15 10:54:49 +01:00
Alexander Larsson
e26bf79857
Make system repo bare-user too, to avoid any chance of creating setuid bits
...
There is no real reason for the system repo to be plain "bare" anyway,
bare-user works fine for us.
2016-02-12 17:17:36 +01:00
Alexander Larsson
83d71fb110
info: Fix support for system installed runtimes (typo)
2016-02-12 14:07:04 +01:00
Alexander Larsson
c0a18e38c8
Work around race when doing first initial appstream checkout.
...
Whenever we finish the first update of appstream for a remote we
touch the toplevel appstream directory. This avoids an race-like issue
where you can't put a watch on the non-existant timestamp file for
a remote before it is created.
2016-02-12 13:03:24 +01:00
Alexander Larsson
1fa367199a
Allow overriding XDG_APP_BINDIR using make vars
2016-02-11 13:36:34 +01:00
Alexander Larsson
767b89cd71
Revert "When rewriting Exec lines, don't use full bindir"
...
This is not right, dbus service files need an absolute path.
This reverts commit 23cd97a919
.
2016-02-11 13:31:05 +01:00
Alexander Larsson
23cd97a919
When rewriting Exec lines, don't use full bindir
...
This breaks for instance when installing an app from inside a sandbox,
or when installing it with an out-of-tree xdg-app build that would not
necessary be used later. Instead rely on the PATH to pick up the right one.
2016-02-11 11:30:41 +01:00
Alexander Larsson
fc986d7814
helper: If stdout is a tty, mount tty as /dev/console
...
This means ttyname() works in the sandbox. We already have access
to the tty via stdin, so this will not elevate privs.
2016-02-10 14:48:56 +01:00
Alexander Larsson
ea176cd63a
builder: Put all builds in a .xdg-app-builder/build subdir
...
I.e. instead of .xdg-app-builder/build-foo it will be
.xdg-app-builder/build/foo. This makes it easier to separate these
out, and it allows you to symlink this directory to /run/build to pick
up all sources when you use --keep-build-dirs.
2016-02-10 10:15:25 +01:00
Alexander Larsson
93006c5a40
Update exports on uninstall via library too
2016-02-09 16:17:02 +01:00
Alexander Larsson
0c9d1538c9
Add option to disable sandbox triggers
...
This is not something you should normally do, but the gnome-software
app needs this, as recursive sandboxes don't work.
2016-02-09 15:02:56 +01:00
Alexander Larsson
5dfc59ee02
Pass location of exports to triggers as arg1
...
This changes nothing but is a preparation for later changes
2016-02-09 14:50:35 +01:00
Alexander Larsson
0bfb064030
Update exports on uninstall too
2016-02-09 14:50:20 +01:00
Alexander Larsson
0a916c1dee
Release 0.4.11
2016-02-09 11:50:53 +01:00
Alexander Larsson
51fcc6e281
install: Fix assertion on runtime install
2016-02-09 11:48:33 +01:00
Alexander Larsson
7704d27d14
Updated for release
2016-02-09 10:35:39 +01:00
Alexander Larsson
8f6e6c0dab
Make sure we export files during install
...
is_data was never set to true, so we didn't run the exports
during install.
2016-02-09 10:32:36 +01:00
Alexander Larsson
9c6d6242a9
builder: Avoid reusing set GError
...
my_error was used twice, without clearing inbetween, which can
cause issues.
2016-02-08 16:21:28 +01:00
Alexander Larsson
32e9502675
Fix some g_propagate_error typos
2016-02-08 16:16:38 +01:00