Commit Graph

3350 Commits (master)
 

Author SHA1 Message Date
Alexander Larsson 8af638bdd8 flatpak_spawn: Always spawn children untranslated
We need this as we sometimes (like flatpak info) parse the command output.

Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00
Bartłomiej Piotrowski 4b81e2d7ad docs: Mention qmake buildsystem
Closes: #144
Approved by: barthalion
2018-05-03 18:00:09 +00:00
Alexander Larsson a6afcda4ca Add bison to CI
Closes: #145
Approved by: alexlarsson
2018-05-03 15:43:41 +00:00
Alexander Larsson 1fcd849ce3 When using --download-only skip some checks
When downloading only we will not be building, so we can skip all the checks for dependencies
and for the state-dir properties.

Closes: #145
Approved by: alexlarsson
2018-05-03 15:43:41 +00:00
Alexander Larsson 82f2de0936 tests: dist the yaml test files 2018-04-26 15:31:58 +02:00
Alexander Larsson 45a983f865 Bump version to 0.10.10 2018-04-26 12:03:06 +02:00
Alexander Larsson 2dcf397f95 Update NEWS for release 2018-04-26 12:02:55 +02:00
Alexander Larsson 87ff0ef94f docs: Mention yaml support 2018-04-26 11:51:59 +02:00
Alexander Larsson 7ea5de35c4 docs: Add build environment to manifest doc 2018-04-26 11:51:59 +02:00
Alexander Larsson 2391d046c3 Set FLATPAK_BUILDER_N_JOBS in build env
This is set to what flatpak itself would otherwise use for make -jN
and can be used in e.g. buildsystem simple modules.
2018-04-26 11:51:59 +02:00
Alexander Larsson 2d80983775 Add directory source
This adds a source type that copies an entire directory, optionally skipping
some files. Additionally it also skips the .flatpak-directory dir and
the build dir to avoid weird recursion.

Since we can't really checksum an entire directory a dir source is always
rebuilt.

Closes: #136
Approved by: alexlarsson
2018-04-26 07:15:38 +00:00
Alexander Larsson fa37c55e9c cache: Add builder_cache_checksum_random()
This is helpful when you have a source that should trigger a rebuild every time.

Closes: #136
Approved by: alexlarsson
2018-04-26 07:15:38 +00:00
Alexander Larsson aa2601dbb3 flatpak_cp_a: Add support for skipping some source files
Closes: #136
Approved by: alexlarsson
2018-04-26 07:15:38 +00:00
Alexander Larsson 4510aa2359 Add SVN source type
Closes: #135
Approved by: alexlarsson
2018-04-25 17:07:44 +00:00
Alexander Larsson c9df9b89fc Always pass --unshare=network when building sandboxed
It may be the case that we've e.g. specified a custom metadata file that
has network access, so always disable it explicitly during the builds.
2018-04-25 15:41:02 +02:00
Cosimo Cecchi 842b6400b7 doc: fix typo
Closes: #134
Approved by: mwleeds
2018-04-24 22:49:37 +00:00
Sam Spilsbury 6db7bbca71 doc: s/occurr/occur/
Closes: #132
Approved by: alexlarsson
2018-04-23 22:49:52 +00:00
Alexander Larsson ed2eabc65b --run: bind-mount both /run/build and /run/build-runtime
We need /run/build-runtime if what we're building was a runtime, and
its not clear what we're building, so just bind both.
2018-04-23 14:19:26 +02:00
Alexander Larsson e779d3c485 Support using app-extensions during the build
This adds add-build-extensions which is similar to add-extensions
except the extension is added at build-init time, so can be
used during the build. It can also optionally be removed after
the build is done.

This depends on the flatpak work in:
  https://github.com/flatpak/flatpak/pull/1598

With this I was able to build the following app which runs 32bit binaries
in a 64bit build:

```
{
    "app-id": "org.example.Multilib",
    "runtime": "org.freedesktop.Platform",
    "sdk": "org.freedesktop.Sdk",
    "runtime-version": "1.6",
    "command": "/usr/bin/true",
    "add-build-extensions": {
        "org.freedesktop.Platform.Compat32": {
            "directory": "lib/32bit",
            "add-ld-path": "lib",
            "version": "1.6"
        }
    },
    "modules": [
        {
            "name": "test 32bit",
            "buildsystem": "simple",
            "build-commands": [
                "ln -s /app/lib/32bit/lib/ld-linux.so.2 /app/lib/ld-linux.so.2",
                "/app/lib/32bit/bin/echo echoing from 32bit world"
            ]
        }
    ]
}
```

Closes: #129
Approved by: alexlarsson
2018-04-23 07:06:07 +00:00
Alexander Larsson 0de0b8d615 Fix non-yaml build 2018-04-19 15:50:49 +02:00
Alexander Larsson 3d62f01610 Record the built extensions in the metadata
This adds a section to the main metadata like:
```
[Build]
built-extension=org.the.App.Locale;
```

This can be used to figure out what refs where built that are
related to the app, for example if you want to bundle them all.

Closes: #128
Approved by: alexlarsson
2018-04-19 12:54:02 +00:00
Alexander Larsson 28984bcd81 Add libyaml-devel to CI install set
Closes: #127
Approved by: alexlarsson
2018-04-19 12:44:38 +00:00
Ryan Gonzalez e24c2218f1 Add YAML support as an alternative to JSON (closes #2)
Closes: #127
Approved by: alexlarsson
2018-04-19 12:44:38 +00:00
Sam Spilsbury 8eabc27920 manifest: Add support for "extension-tag"
This passes an --extension-tag to flatpak build-init which will
set the "tag" option on the ExtensionOf section in the metadata.

Closes: #126
Approved by: alexlarsson
2018-04-19 11:25:13 +00:00
Alexander Larsson cbca5b5dce Fix --install to not pass --subpath= to flatpak install
This isn't really right, as install doesn't handle an empty subpath
like that. In fact, doing so will break exports.

Closes: #124
Approved by: alexlarsson
2018-04-06 14:25:39 +00:00
Matthew Leeds d8e1ef8fb9 flatpak-builder(1): Add a missing comma 2018-03-30 18:32:00 -07:00
Alexander Larsson c844563f7d Don't warn for // and __ key prefixes
This means you can make valid json comments like so:

 "//": "Some comment",

Closes: #122
Approved by: alexlarsson
2018-03-27 14:12:39 +00:00
Alexander Larsson 1619ef1861 Add inherit-sdk-extensions property
This is similar to inherit-extensions, but the extensions
are not also inherited into the platform when it is created.

Closes: #121
Approved by: alexlarsson
2018-03-27 14:10:15 +00:00
Alexander Larsson 7b042c61e6 Add --no-shallow-clone for git mirroring
This is useful e.g. when doing mirroring only, or if your git
has issues with shallow clones.

Closes: #120
Approved by: alexlarsson
2018-03-27 13:41:42 +00:00
Alexander Larsson b9a143cc9c build options: Add prepend-*-path options
This is useful for example if you're using a sdk-extension that
is supposed to override some binaries from /usr/bin.

Closes: #119
Approved by: alexlarsson
2018-03-27 13:18:09 +00:00
Alexander Larsson cd32a386fb ccache: Enforce disabled if not enabled
This makes sure that ccache is disabled if you don't enable
it on the commandline. This makes sense, because we don't
have any persistant location for the ccache files anyway.

Additionally this is done to work around a race condition initializing
~/.ccache/ccache.conf that causes meson builds to error out.

Closes: #118
Approved by: alexlarsson
2018-03-27 12:54:11 +00:00
eyelash d329cef849 fix a typo 2018-02-19 13:49:15 +01:00
Alexander Larsson 1b9efca966 Update NEWS 2018-02-19 10:37:08 +01:00
Alexander Larsson 5aae9184f2 Update to latest libglnx with memfd_create build fix 2018-02-19 10:35:57 +01:00
Alexander Larsson dc05cd7999 Bump version to 0.10.9 2018-02-19 10:29:42 +01:00
Alexander Larsson fbebb8e672 Update NEWS for release 2018-02-19 10:29:30 +01:00
Alexander Larsson 099bb87b77 git: Look for the correct cache
When cloning a new repo the mirror_dir has a temporary basename, so
use real_mirror_dir when looking for the cached repo.
2018-02-16 11:39:09 +01:00
Alexander Larsson 52c17219eb Add support for -y, passed on to all install commands
This allows you to run --install-from-deps=foo -y to always install all
dependencies. Useful for auto-builders like flathub.

Closes: #107
Approved by: mwleeds
2018-02-16 07:49:17 +00:00
Matthew Leeds 86268f0cbc README: Fix docs link
Fixes https://github.com/flatpak/flatpak-builder/issues/104
2018-02-14 23:11:58 -08:00
Alexander Larsson a7ba67912a Bump to 0.10.8 2018-02-14 18:46:23 +01:00
Alexander Larsson 2b17cfea31 Update for release 2018-02-14 18:46:23 +01:00
Alexander Larsson dad7bc71ce configure: Call LIBGLNX_CONFIGURE
This includes the libglnx configure checks

This fixes detection of e.g. copy_file_range
2018-02-14 18:46:23 +01:00
Alexander Larsson 9f72237f3f Update to latest libglnx 2018-02-14 18:46:20 +01:00
Alexander Larsson 0632b550f9 Update version to 0.10.7 2018-02-14 11:56:49 +01:00
Alexander Larsson ab08050721 Update NEWS for release 2018-02-14 11:56:42 +01:00
Alexander Larsson 1f15907893 Add --socket=fallback-x11 support
This requires a recent flatpak to actually work.
2018-02-14 11:49:33 +01:00
Christian Hergert dce8981162 utils: use g_debug() for debug information
Closes: #100
Approved by: alexlarsson
2018-01-12 10:06:12 +00:00
Christian Hergert 551d245207 manifest: run flatpak on the host if inside of flatpak
This allows us to be run from inside of a flatpak application and
successfully build by proxying the flatpak commands to the host.

Closes: #100
Approved by: alexlarsson
2018-01-12 10:06:12 +00:00
Christian Hergert 1bb6925481 utils: don't pass stderr if silence was requested
Closes: #100
Approved by: alexlarsson
2018-01-12 10:06:12 +00:00
Christian Hergert 897fe1b768 utils: add GSubprocessFlags parameter
This allows us to pass it through in the case we're running in the same
pid namespace as the flatpak-builder process.

Closes: #100
Approved by: alexlarsson
2018-01-12 10:06:12 +00:00