Commit Graph

3350 Commits (master)
 

Author SHA1 Message Date
P. F. Chimento 895fe4744a manpage: More info about extension metadata.
This refers to the flatpak-metadata manpage for more info on the extension
metadata properties, as well as clarifying a key piece of information about
the directory property.

See flatpak#1341.
Closes: #187
Approved by: TingPing
2018-07-26 14:16:01 +00:00
Kalev Lember a9f7e137c2 Update to latest libglnx
This pulls in the renameat2() fix that's required for building with
latest glibc (e.g. Fedora rawhide).

Closes: #182

Closes: #185
Approved by: alexlarsson
2018-07-21 08:35:31 +00:00
Alexander Larsson 4794eaf75c Bump version to 0.99.3 2018-07-10 19:56:42 +02:00
Alexander Larsson 13f788717a Update NEWS for release 2018-07-10 19:56:19 +02:00
Alexander Larsson cfcbf75cd7 rename-desktop-file: Add X-Flatpak-RenamedFrom key
This way desktop environment can handle the case
where a desktop file was renamed and avoid showing
two icons.

Closes: #181
Approved by: alexlarsson
2018-07-10 16:46:08 +00:00
Matthew Leeds 89f1fd534a doc: Point to the source of the generated HTML
When you're looking at the Flatpak Builder Command Reference on
docs.flatpak.org, it's not clear that it was generated from the
flatpak-builder repo. So add a notice to the docbook that's used to
generate the HTML. This was pointed out by
https://github.com/flatpak/flatpak-docs/pull/134
2018-07-07 17:26:22 +02:00
Alexander Larsson bfd599cd4e Set FLATPAK_BUILDER_BUILDDIR in env when building module
This is set to the /run/build/$module directory name so that you
can easily refer to it in the build.

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

Closes: #180
Approved by: alexlarsson
2018-07-05 07:54:08 +00:00
Martin Pilarski 7cfdec0538 Use GInputStream for checksum computation of source files & archives
Using g_load_contents () for the checksum computation uses a lot of memory
(for large files) and actually fails for files larger than 4 GiB. Instead,
this implementation uses GInputStream to read the file in small buffers
and feeds the GChecksum manually.

Closes: #165
Approved by: alexlarsson
2018-07-02 07:53:19 +00:00
Matthew Leeds c94db14939 doc: Uncomment P2P docs
Now that P2P support is enabled unconditionally, uncomment the
P2P-related parts of the man pages.
2018-06-29 11:03:07 -07:00
Alexander Larsson 99a5356bfb Make p2p support non-optional, now that we depend on 0.99.1
Closes: #175
Approved by: alexlarsson
2018-06-28 11:22:24 +00:00
Alexander Larsson b86c9449ba build-require flatpak 0.99.1 with p2p support
Closes: #175
Approved by: alexlarsson
2018-06-28 11:22:24 +00:00
Alexander Larsson afb7b0f8bb Bump version to 0.99.2 2018-06-27 16:36:23 +02:00
Alexander Larsson 464d720fd6 Update NEWS for release 2018-06-27 16:35:55 +02:00
Bastien Nocera d5cfd1e873 builder: Add "use-git-am" option to apply patches with git-am
So that git-formatted patches are used to their full effect, such as
handling renames correctly.
2018-06-27 16:33:19 +02:00
Bastien Nocera ecb82a4e18 builder: Add "git-init" option for archives
This will initialise a git repository with the archive's contents, to
allow us to apply git-formatted patches easily, allowing binary files
patching, file renaming, and all the advanced features offered by git
patches over plain patches.
2018-06-27 16:33:19 +02:00
Alexander Larsson 247525a800 Fix --install with latest flatpak by passing -y
These days flatpak install will always prompt for input,
so we pass -y to it because otherwise (due to non-inherited
stdin) we auto-answer no.

Fixes https://github.com/flatpak/flatpak-builder/issues/170
2018-06-27 16:05:39 +02:00
Christian Hergert e93eb8defc build: handle changes to soup autocleanups
Closes: #173
Approved by: alexlarsson
2018-06-26 10:47:39 +00:00
Alexander Larsson 823c760413 Bump version to 0.99.1 2018-06-21 12:01:43 +02:00
Alexander Larsson e3276f9293 Require flatpak 0.11.8 2018-06-21 12:01:43 +02:00
Alexander Larsson 7251aca2f3 Update NEWS for relase 2018-06-21 12:01:43 +02:00
Alexander Larsson 9c10e1d086 file/archive source: Add mirror-urls 2018-06-21 11:48:38 +02:00
Alexander Larsson 582c1b5708 Fix tests with new flatpak 2018-06-21 11:08:06 +02:00
Alexander Larsson 6d9f874c12 install-deps: Always pass -y when installing
The prompts don't currently work when we shell out to
flatpak, so this is broken without -y.
2018-06-21 10:47:40 +02:00
Alexander Larsson a415eed100 archive source: Add dest-filename support
This allows you to override the base-name, which affects how the
file is uncompressed.

Fixes https://github.com/flatpak/flatpak-builder/issues/158
2018-06-21 10:47:21 +02:00
Richard Hughes a233e84c11 Rewrite the <launchable> tag when using rename-desktop-file
This also changes the <id> rewriting to use the non-desktop suffixed version of
the application ID as this has been deprecated now the launchable tag exists.

Applications shipping an appdata file without a launchable set will have one
auto-added at runtime based on the appstream <id>.

This copies FlatpakXml from the flatpak project.

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

Closes: #164
Approved by: alexlarsson
2018-06-19 13:16:30 +00:00
Alexander Larsson d63d9ee5bb tests: Hacks to handle coreutils-single
In the Fedora 28 base container, `coreutils-single` is used and so
`/usr/bin/ls` is actually a "script":

```
$ file /usr/bin/ls
/usr/bin/ls: a /usr/bin/coreutils --coreutils-prog-shebang=ls script, ASCII text executable
```

We handle this by detecting shebangs in dependencies and recursively adding them.

Closes: #163
Approved by: alexlarsson
2018-06-11 17:49:22 +00:00
Alexander Larsson 8f00199480 Update CI to fedora 28
Closes: #163
Approved by: alexlarsson
2018-06-11 17:49:22 +00:00
Thomas Kluyver b23b2667b2 Expand on what a command is 2018-06-11 15:51:55 +02:00
Denis Ollier 7bd6440b75 Don't prune build stages from cache with --{export,finish}-only
A commonly used CI workflow [1] is to chain the following steps:

    > flatpak-builder --stop-at=<module>
    > flatpak build <commands to build module from local checkout>
    > flatpak-builder --finish-only

Unfortunately, the last step always purge all the compilation cache
created by the first one. All build steps are marked unused by default
and since they are skipped due to the option --finish-only, all of them
are always pruned by the gc function.

As a result, flatpak-builder cache becomes useless, a full compilation
is always performed.

Improve this by not cleaning unused stages when no compilation is done
by flatpak-builder (i.e: when flatpak-builder is used with --export-only
or --finish-only option).

[1]: https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak
2018-06-11 15:47:39 +02:00
Denis Ollier 85eb2f1a64 Print more useful cURL error messages 2018-06-08 12:29:37 +02:00
Alexander Larsson d03b2797a7 Update libglnx module url 2018-05-30 12:41:05 +02:00
Denis Ollier 4bb33efbd8 Make libcurl return error on HTTP response >= 400
Closes: #157
Approved by: alexlarsson
2018-05-28 08:05:51 +00:00
Denis Ollier 4e8539ccd9 doc: fix typos in flatpak-manifest man page
Closes: #157
Approved by: alexlarsson
2018-05-28 08:05:51 +00:00
Alexander Larsson dd80a13e1b Work around libsoup type initialization deadlocks
As reported in
https://bugzilla.gnome.org/show_bug.cgi?id=796031#c1
we sometimes hang in libsoup downloading stuff. This uses
an early type initialization to avoid that.

We don't use libsoup for the main download anymore, but
its still used for some things, so better safe than sorry.

Closes: #153
Approved by: alexlarsson
2018-05-18 06:20:48 +00:00
Denis Ollier 74e43641ee flatpak-utils: Remove undefined functions
Closes: #152
Approved by: alexlarsson
2018-05-16 08:12:37 +00:00
Denis Ollier aa402ca259 flatpak-utils: Remove libsoup dead code
Closes: #152
Approved by: alexlarsson
2018-05-16 08:12:37 +00:00
Denis Ollier 9d0aa6f42e Rename download_uri() to download_data_uri()
Closes: #152
Approved by: alexlarsson
2018-05-16 08:12:37 +00:00
Denis Ollier 1f46ee7e8c Use libcurl for HTTP downloads as well
Closes: #151
Approved by: alexlarsson
2018-05-15 10:16:15 +00:00
Alexander Larsson c485399fed Allow C99 2018-05-14 16:02:42 +02:00
Alexander Larsson 31f92b5044 Fix C99 warning on rhel7 2018-05-14 15:53:20 +02:00
Denis Ollier 46f247cc1a ci: install libcurl-devel package
Closes: #143
Approved by: TingPing
2018-05-14 09:54:39 +00:00
Denis Ollier a922cd49a4 Add support for FTP sources using libcurl
Closes: #143
Approved by: TingPing
2018-05-14 09:54:39 +00:00
Alexander Larsson 36f620240e BuildOptions: Drop sdk-default-override
We now have the xxxflags-override keys to do this in a more generic way.

Closes: #150
Approved by: alexlarsson
2018-05-14 08:43:56 +00:00
Alexander Larsson ae48dbc21e BuildOptions: Add *flags-override keys
This is a more generic way than sdk-default-override to change how the various
flag fields are overridden. Now you can override both the sdk default as well as
in-file options.

Closes: #150
Approved by: alexlarsson
2018-05-14 08:43:56 +00:00
P. F. Chimento 808ebb41f6 Fix extra-data size type in manifest manpage
At least as of 0.10.10, this needs to be a number.
Closes: #149
Approved by: TingPing
2018-05-09 02:36:32 +00:00
Valentin David e6f694bc23 Add field 'sdk-default-override' in build options
Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00
Valentin David 4e614fd513 Use SDK configuration in build options.
Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00
Valentin David 37b9ea8d5d Load SDK configuration file.
Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00
Valentin David 9d0a01eda4 Use 'libdir' build option.
Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00
Valentin David c5b7a8e645 Add 'libdir' as build option.
Closes: #148
Approved by: alexlarsson
2018-05-07 15:26:15 +00:00