summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Persson <cat@catcream.org>2022-04-06 18:46:53 -0700
committerZac Medico <zmedico@gentoo.org>2022-04-06 18:52:19 -0700
commitf0c051ae8fa760db1ed92bc9bdcaf30d7a53481e (patch)
tree1f2c253428015d622d0e45c9e0b28f59f14d9998
parentdev-util/flatpak-builder: add 1.2.2 (diff)
downloadgentoo-f0c051ae8fa760db1ed92bc9bdcaf30d7a53481e.tar.gz
gentoo-f0c051ae8fa760db1ed92bc9bdcaf30d7a53481e.tar.bz2
gentoo-f0c051ae8fa760db1ed92bc9bdcaf30d7a53481e.zip
dev-util/flatpak-builder: add musl patch
Closes: https://bugs.gentoo.org/834671 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--dev-util/flatpak-builder/files/flatpak-builder-1.2.2-musl.patch18
-rw-r--r--dev-util/flatpak-builder/flatpak-builder-1.2.2.ebuild2
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-util/flatpak-builder/files/flatpak-builder-1.2.2-musl.patch b/dev-util/flatpak-builder/files/flatpak-builder-1.2.2-musl.patch
new file mode 100644
index 000000000000..db207e0e353c
--- /dev/null
+++ b/dev-util/flatpak-builder/files/flatpak-builder-1.2.2-musl.patch
@@ -0,0 +1,18 @@
+--- a/subprojects/libglnx/glnx-macros.h
++++ b/subprojects/libglnx/glnx-macros.h
+@@ -28,6 +28,16 @@
+
+ G_BEGIN_DECLS
+
++/* taken from glibc unistd.h and fixes musl */
++#ifndef TEMP_FAILURE_RETRY
++#define TEMP_FAILURE_RETRY(expression) \
++ (__extension__ \
++ ({ long int __result; \
++ do __result = (long int) (expression); \
++ while (__result == -1L && errno == EINTR); \
++ __result; }))
++#endif
++
+ /* All of these are for C only. */
+ #ifndef __GI_SCANNER__
diff --git a/dev-util/flatpak-builder/flatpak-builder-1.2.2.ebuild b/dev-util/flatpak-builder/flatpak-builder-1.2.2.ebuild
index 990f3dd875d5..f135df85fc71 100644
--- a/dev-util/flatpak-builder/flatpak-builder-1.2.2.ebuild
+++ b/dev-util/flatpak-builder/flatpak-builder-1.2.2.ebuild
@@ -33,6 +33,8 @@ BDEPEND="
)
"
+PATCHES=("${FILESDIR}/flatpak-builder-1.2.2-musl.patch")
+
src_configure() {
econf \
$(use_enable doc documentation) \