dev-util/ostree: include stdint for musl

Closes: https://bugs.gentoo.org/964269
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Zac Medico
2025-11-05 20:58:05 -08:00
parent c019983b30
commit 704c54046e
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
https://github.com/ostreedev/ostree/pull/3541
From: Michal R <vad.sol@proton.me>
Date: Thu, 23 Oct 2025 11:10:41 +0200
Subject: [PATCH 1/2] aboot: Add missing `stdint.h` include
Without this include, builds on musl systems end up with the following
error:
```
src/libostree/ostree-bootloader-aboot.c:136:18: error: 'uintptr_t'
undeclared (first use in this function)
136 | int fd = (int)(uintptr_t)data;
| ~~~~~~~~
```
---
src/libostree/ostree-bootloader-aboot.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libostree/ostree-bootloader-aboot.c b/src/libostree/ostree-bootloader-aboot.c
index 1a207e8d5f..06ec6cc757 100644
--- a/src/libostree/ostree-bootloader-aboot.c
+++ b/src/libostree/ostree-bootloader-aboot.c
@@ -24,6 +24,7 @@
#include "otutil.h"
#include <sys/mount.h>
+#include <stdint.h>
#include <string.h>
/* This is specific to aboot and zipl today, but in the future we could also

View File

@@ -69,6 +69,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-2023.3-dont-force-clang-introspection.patch
"${FILESDIR}"/${PN}-2024.8-Werror.patch
"${FILESDIR}"/${PN}-2025.6-include-stdint-musl.patch
)
src_prepare() {