Commit Graph

3187 Commits (4510aa2359f44dffe0bb42c21e13a8d4f77e3f50)
 

Author SHA1 Message Date
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
Christian Hergert 1929fd1cc6 utils: clear GUnixFDList before entering main loop
If we do not clear the FDList before entering the main loop, the splice
async command may not complete because the pipe fd is still held. This
fixes an issue where builder_maybe_host_spawnv() hangs indefinitely when
run inside a Flatpak application.

Closes: #100
Approved by: alexlarsson
2018-01-12 10:06:12 +00:00
Alexander Larsson 63e0722cb0 git: When mirroring a new repo, use a temporary destination
This way, if anything fails during the initial pull we can remove it
and not be confused by a partial repo on the next run.

Closes: #98
Approved by: alexlarsson
2018-01-11 09:30:42 +00:00
Alexander Larsson 9b4f14cd45 Add flatpak_file_rename
Closes: #98
Approved by: alexlarsson
2018-01-11 09:30:42 +00:00
Alexander Larsson cd0c9da8f3 Fix --disable-updates for git sources
We lost the ability to not update if a git repo was already checked out.
This fixes that again.

Closes: #98
Approved by: alexlarsson
2018-01-11 09:30:42 +00:00
Will Thompson c06ee375c3 docs: fix "concatinated" and "inbetween" typos
"In between" is two separate words, but I think rewording it is clearer.

Closes: #94
Approved by: pwithnall
2018-01-08 10:54:53 +00:00
Alexander Larsson 543f25e8e3 --install: Fix path != NULL assertion when not using --repo
Closes: #86
Approved by: alexlarsson
2017-12-20 10:18:27 +00:00
Alexander Larsson d869c778ce --install: Fix double unref when --repo is not installed
export_repo is an autopr, so we have to ref it.

Closes: #86
Approved by: alexlarsson
2017-12-20 10:18:27 +00:00
Alexander Larsson 0ee2315818 Update NEWS for release 2017-12-15 14:32:30 +01:00
Alexander Larsson 48c504af8f Bump version to 0.10.6 2017-12-15 14:26:36 +01:00
Alexander Larsson 471adbaf21 Update requirements to flatpak 0.10.2 and ostree 2017.14 2017-12-15 14:25:02 +01:00
Alexander Larsson 5305a17915 --install: Always pass --reinstall
Otherwise the second --install failes

Closes: #85
Approved by: alexlarsson
2017-12-15 13:04:20 +00:00
Alexander Larsson 07240bf3a7 --install: Warn if --require-changes and --install interact badly
If there were no change we didn't export and there might be nothing
to install, so print a notice that we're ignoring the install.

Closes: #85
Approved by: alexlarsson
2017-12-15 13:04:20 +00:00
Alexander Larsson be191a57f1 --install: Don't pass relative path to flatpak install
That is parsed as a remote name, so ensure we pass the absolute pathname.

Closes: #85
Approved by: alexlarsson
2017-12-15 13:04:20 +00:00