flatpak-builder: update to 1.1.1.

This commit is contained in:
John Zimmermann 2021-08-27 21:22:32 +02:00
parent 547ae4dbca
commit 6c7daaaf80
3 changed files with 42 additions and 4 deletions

View file

@ -0,0 +1,29 @@
Source: Rasmus Thomsen <oss@cogitri.dev>
Upstream: No, Alpine/Musl specific hack
Reason: rofiles-fuse is always broken on musl as of now, so
disable it for know so users don't get (very weird) failures
when building flatpaks if they forget to specify that opt.
See https://github.com/flatpak/flatpak-builder/issues/329
for more info.
diff --git a/src/builder-main.c b/src/builder-main.c
index a5f6601..f63c42f 100644
--- a/src/builder-main.c
+++ b/src/builder-main.c
@@ -98,7 +98,7 @@ static GOptionEntry entries[] = {
{ "ccache", 0, 0, G_OPTION_ARG_NONE, &opt_ccache, "Use ccache", NULL },
{ "disable-cache", 0, 0, G_OPTION_ARG_NONE, &opt_disable_cache, "Disable cache lookups", NULL },
{ "disable-tests", 0, 0, G_OPTION_ARG_NONE, &opt_disable_tests, "Don't run tests", NULL },
- { "disable-rofiles-fuse", 0, 0, G_OPTION_ARG_NONE, &opt_disable_rofiles, "Disable rofiles-fuse use", NULL },
+ { "disable-rofiles-fuse", 0, 0, G_OPTION_ARG_NONE, &opt_disable_rofiles, "Disable rofiles-fuse use (Note: This is ALWAYS disabled on VoidLinux with Musl due to https://github.com/flatpak/flatpak-builder/issues/329)", NULL },
{ "disable-download", 0, 0, G_OPTION_ARG_NONE, &opt_disable_download, "Don't download any new sources", NULL },
{ "disable-updates", 0, 0, G_OPTION_ARG_NONE, &opt_disable_updates, "Only download missing sources, never update to latest vcs version", NULL },
{ "download-only", 0, 0, G_OPTION_ARG_NONE, &opt_download_only, "Only download sources, don't build", NULL },
@@ -508,7 +508,7 @@ main (int argc,
build_context = builder_context_new (cwd_dir, app_dir, opt_state_dir);
- builder_context_set_use_rofiles (build_context, !opt_disable_rofiles);
+ builder_context_set_use_rofiles (build_context, 0);
builder_context_set_run_tests (build_context, !opt_disable_tests);
builder_context_set_no_shallow_clone (build_context, opt_no_shallow_clone);
builder_context_set_keep_build_dirs (build_context, opt_keep_build_dirs);

View file

@ -1,6 +1,6 @@
index 0000000..878bd82
--- /dev/null
+++ b/libglnx/config.h
+++ b/subprojects/libglnx/config.h
@@ -0,0 +1,9 @@
+/* taken from glibc unistd.h and fixes musl */
+#ifndef TEMP_FAILURE_RETRY

View file

@ -1,20 +1,29 @@
# Template file for 'flatpak-builder'
pkgname=flatpak-builder
version=1.0.12
version=1.1.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config xmlto"
makedepends="flatpak-devel json-glib-devel libcap-devel libsoup-devel
libyaml-devel libcurl-devel"
libyaml-devel libcurl-devel elfutils"
short_desc="Tool to build flatpaks from source"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/flatpak/flatpak-builder"
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
checksum=4780c1b8e0838ffb64e9639bd7801417964fd818c7c6d5e9afca4d5511ded2c8
checksum=13c5ccc8765f4724ad286a8eff8aad191a417b73a03eab7c3ae53a2e9eb22140
# Tests expects a Debian derivate hosts to build a flatpak container from.
make_check=no
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" flatpak-devel"
fi
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_patch() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
patch -Np1 < $FILESDIR/hard-disable-rofiles-fuse.patch
fi
}