Commit Graph

3350 Commits (master)
 

Author SHA1 Message Date
Mathieu Velten 21356f8616 manifest: use the sdk branch from the sdk ref specified by the user
install_extension_deps now takes the sdk branch as param as a side effect

Closes: #266
Approved by: alexlarsson
2019-02-04 09:52:04 +00:00
Alexander Larsson e845219468 Bump version to 1.0.3 2019-01-28 12:52:30 +01:00
Alexander Larsson daf21f7c1d Update NEWS for release 2019-01-28 12:52:20 +01:00
Alexander Larsson 00f63cfe7e manifest: Add default-branch key
This is similar to branch and used if branch is not set. However, this
key (as opposed to branch) is overridden by the --default-branch option.

The idea is that most apps in flathub would use default-branch=stable, so
that a standart flatpak-builder command will build a "stable" release.
However, when building a test build we can use --default-branch=test to
override that. Then special cases like theme extensions and other things
that require a specific branch value to work at all can use branch="1.0".

Closes: #264
Approved by: alexlarsson
2019-01-26 03:16:27 +00:00
Alexander Larsson 09b2736693 Compress changes when stored in cache commit metadata
The libreoffice cache failed because > 10mb commit object...

Closes: #263
Approved by: alexlarsson
2019-01-25 14:54:54 +00:00
Alexander Larsson ed4c440063 utils: Add flatpak_variant_[un]compress helpers
Closes: #263
Approved by: alexlarsson
2019-01-25 14:54:54 +00:00
Matthias Clasen e040f26d87 docs: Clarify that command: is only for flatpak run
This may not otherwise be obvious.

Closes: #258
Approved by: alexlarsson
2019-01-16 11:42:07 +00:00
Alexander Larsson 359a7f450b CI: Add dconf-devel 2019-01-16 12:41:19 +01:00
Alexander Larsson d4f0f5e115 Update version to 1.0.2 2019-01-15 16:18:02 +01:00
Alexander Larsson 93a7b35dce Update NEWS for release 2019-01-15 16:17:19 +01:00
Alexander Larsson 1b546771c5 Allow overriding SOURCE_DATE_EPOCH via env option
We apply this variable before the env options so we can clear this.

Closes: #257
Approved by: alexlarsson
2019-01-14 10:31:42 +00:00
Alexander Larsson 4d2ff1a196 build-options: Allow null values to unset env vars
Closes: #257
Approved by: alexlarsson
2019-01-14 10:31:42 +00:00
Alexander Larsson feb839944f yaml: Allow null nodes, for example as dict values
We want this for overriding env vars. If you need a "null" string you
will have to quote it.

Closes: #257
Approved by: alexlarsson
2019-01-14 10:31:42 +00:00
Alexander Larsson eb41d1dd01 post-process: Handle python 3.7 header formats
Python 3.7 adds a flags field which modified the offset of the mtime,
as well as adds a new non-mtime based check mode.

Fixes #247

Closes: #256
Approved by: alexlarsson
2019-01-14 10:17:47 +00:00
Alexander Larsson 51fc2cb07b Set SOURCE_DATE_EPOCH to the mtime of the manifest
This will help make reproducible builds.

Closes: #255
Approved by: alexlarsson
2019-01-11 15:40:43 +00:00
Matthias Clasen 02c69e65d1 Check the flatpak version
Before using --noninteractive, check that we are dealing
with a new-enough flatpak to understand that option.

Closes: #254
Approved by: alexlarsson
2019-01-11 14:53:08 +00:00
Matthias Clasen d5d6debdce Pass --noninteractive to flatpak install
This produces output more suitable for flatpak-builder.

Closes: #254
Approved by: alexlarsson
2019-01-11 14:53:08 +00:00
Olaf Leidinger 81996ddaed Mention git via SSH
Closes: #253
Approved by: alexlarsson
2019-01-10 11:25:53 +00:00
eszlari 673a00c0b1 add .txz archive suffix
Closes: #249
Approved by: TingPing
2018-12-31 13:53:09 +00:00
Matthew Leeds 348c7dd9e2 Add a GitHub issue template 2018-12-05 21:59:29 -08:00
Marius Gedminas 29e4dd332a Mention YAML as an alternative manifest format 2018-11-02 19:46:12 +01:00
Ryan Gonzalez 44c9b69898 Print a warning when a YAML document has a float-like string value
Closes: #221
Approved by: alexlarsson
2018-10-16 06:10:26 +00:00
TingPing 669f82094f
docs: Fix typo in example 2018-10-10 17:01:55 -04:00
Alexander Larsson 6177844736 Bump version to 1.0.1 2018-10-04 15:00:03 +02:00
Alexander Larsson 204e8b7af6 Update NEWS for 1.0.1 2018-10-04 14:59:48 +02:00
Alexander Larsson fb43fa0e00 mirror-screenshots: Run appstream-util "mirror-screenshots in the sandbox
This way we don't rely on the host appstream-glib which could be old.
We already rely on it in the runtime for appstream-compose.

Closes: #217
Approved by: alexlarsson
2018-09-26 12:40:11 +00:00
Alexander Larsson 050e075b81 mirror-screenshots: Don't modify cache object
appstream-util mirror-screenshots rewrites the xml file in-place, so
we need to break hardlinks the before running it, otherwise it will
modify the cache object in place, breaking the repo.

Closes: #217
Approved by: alexlarsson
2018-09-26 12:40:11 +00:00
Alexander Larsson 05dd2c68d9 cache: Make sure we escape stage names when we mark them as done
We need to to this, because they are also escaped as refs in the cache.

Fixes https://github.com/flatpak/flatpak-builder/issues/214

Closes: #215
Approved by: alexlarsson
2018-09-26 08:57:36 +00:00
Alexander Larsson 5bb3e5801b Bump version to 1.0.0 2018-08-20 11:04:05 +02:00
Alexander Larsson d03f12f006 Update NEWS for release 2018-08-20 11:03:28 +02:00
Alexander Larsson 0dad44b214 patch source: Add paths option to specify multiple patches
In many cases you have a list of patches to apply, with the same
args. This allows you to do that by just listing the patches in
order, thus making the manifest more compact.

Closes: #204
Approved by: alexlarsson
2018-08-17 10:22:17 +00:00
Alexander Larsson fd802105c5 Keep x-* properties in manifest.json
This add custom (de)serialization code for the source, module and manifest
objects so that properties starting with "x-" are kep and then put back
in the manifest.

We also add a checksum of the manifest to the "finish" phase so that
if you change them the manifest is re-generated.

Closes: #203
Approved by: TingPing
2018-08-15 16:39:06 +00:00
eszlari e64943f2ff doc: add FLATPAK_BUILDER_BUILDDIR
Closes: #202
Approved by: TingPing
2018-08-13 18:02:24 +00:00
Alexander Larsson b1045432a4 Post-release version bump to 0.99.4 2018-08-13 12:16:31 +02:00
Bastien Nocera dda576d899 builder: Ensure committer is set when running git-commit
Otherwise buildbots, and other non-interactive/clean-room builds might
not have git committer information set, and make it impossible to
successfully commit, and git erroring out with:
*** Please tell me who you are.

Closes: #183
Approved by: alexlarsson
2018-08-11 10:34:34 +00:00
Alexander Larsson 147d19fba1 rofiles-fuse: Unmount lazily
This has a better chance of succeeding

Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson d7200a4af4 host_spawn: Force kill f-b after forwarding INT/TERM
Otherwise we will just re-enter after INT and forward a TERM.

Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson a594fed33f builder_host_spawnv: NULL dir means cwd
Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson b664e2fc32 Support --run in a sandbox
Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson 00f38fece3 builder_maybe_host_spawnv: Pass on flags in the host case
Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson 12c29dc5ab builder_host_spawnv: Support G_SUBPROCESS_FLAGS_STDIN_INHERIT
We used to always inherit stdin when calling to the host, but only
do so when requested.

Closes: #195
Approved by: alexlarsson
2018-08-08 14:02:32 +00:00
Alexander Larsson 42d4a14af4 Take arch into account for --skip-if-unchanged
This fixes https://github.com/flatpak/flatpak-builder/issues/130

Closes: #197
Approved by: alexlarsson
2018-08-08 13:52:24 +00:00
Robert McQueen b9584e7fb1 main: ensure mirror URLs are /-terminated
The mirror URL is composed with the file we want using soup_uri_new_with_base,
which means a mirror path that is not /-terminated will have it's last element
stripped off. When parsing the list of sources URI arguments, add a / if needed
before the Soup base URI object is created.

Closes: #198
Approved by: alexlarsson
2018-08-08 12:47:50 +00:00
Alexander Larsson d0a489d90c Make X-Flatpak-RenamedFrom a list so that we can handle multiple renames
Fixes https://github.com/flatpak/flatpak-builder/issues/184

Closes: #193
Approved by: alexlarsson
2018-08-08 12:10:15 +00:00
Alexander Larsson 1a01c7bc61 Warn about using deprecated cmake property.
Closes: #192
Approved by: alexlarsson
2018-08-08 08:42:09 +00:00
Yi-Soo An e4f4cbe220 doc: Replace git.gnome.org with gitlab.gnome.org
Closes: #194
Approved by: mwleeds
2018-08-08 03:48:11 +00:00
Roddy Shuler 31a1bdcc05 Fix inline "data:" URLs
Once we detect that a URL is inline text, we must not try to
actually download it.

Closes: #191
Approved by: mwleeds
2018-08-03 21:34:23 +00:00
Bastien Nocera 4618b50395 module: Respect "no-parallel-make" with ninja
ninja defaults to running in a highly parallel mode, but some bugs in
meson, such as:
https://github.com/mesonbuild/meson/issues/1994
require building serially.

This change makes the cmake-ninja and meson buildsystems respect
"no-parallel-make" during building.

Closes: #190
Approved by: TingPing
2018-08-01 22:09:08 +00:00
Bastien Nocera 1188992d15 Revert "module: Respect "no-parallel-make" with ninja"
This reverts commit 3f2a24df98.
2018-08-01 16:24:30 +02:00
Bastien Nocera 3f2a24df98 module: Respect "no-parallel-make" with ninja
ninja defaults to running in a highly parallel mode, but some bugs in
meson, such as:
https://github.com/mesonbuild/meson/issues/1994
require building serially.

This change makes the cmake-ninja and meson buildsystems respect
"no-parallel-make" during building.
2018-08-01 16:20:30 +02:00