dev-util/ostree: add patch to fix musl build

Closes: https://bugs.gentoo.org/879321
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Zac Medico
2022-11-05 15:48:44 -07:00
parent 36a571a3c5
commit b09efe8df1
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
https://bugs.gentoo.org/879321
From: ernsteiswuerfel <erhard_f@mailbox.org>
--- a/src/libostree/ostree-repo-checkout.c
+++ b/src/libostree/ostree-repo-checkout.c
@@ -37,6 +37,10 @@
#define OVERLAYFS_WHITEOUT_PREFIX ".ostree-wh."
+#if !defined(ALLPERMS)
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* 07777 */
+#endif
+
/* Per-checkout call state/caching */
typedef struct {
GString *path_buf; /* buffer for real path if filtering enabled */

View File

@@ -63,6 +63,10 @@ BDEPEND="
S="${WORKDIR}/lib${P}"
PATCHES=(
"${FILESDIR}"/${P}-musl-allperms.patch
)
src_prepare() {
default