commit:     704c54046e7cff802898b0b08cf7647b6c5c2b57
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  6 04:58:05 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Nov  6 05:04:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=704c5404

dev-util/ostree: include stdint for musl

Closes: https://bugs.gentoo.org/964269
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 .../files/ostree-2025.6-include-stdint-musl.patch  | 31 ++++++++++++++++++++++
 dev-util/ostree/ostree-2025.6.ebuild               |  1 +
 2 files changed, 32 insertions(+)

diff --git a/dev-util/ostree/files/ostree-2025.6-include-stdint-musl.patch 
b/dev-util/ostree/files/ostree-2025.6-include-stdint-musl.patch
new file mode 100644
index 000000000000..f7181dba67aa
--- /dev/null
+++ b/dev-util/ostree/files/ostree-2025.6-include-stdint-musl.patch
@@ -0,0 +1,31 @@
+https://github.com/ostreedev/ostree/pull/3541
+
+From: Michal R <[email protected]>
+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

diff --git a/dev-util/ostree/ostree-2025.6.ebuild 
b/dev-util/ostree/ostree-2025.6.ebuild
index 9e757375a9ae..3596b8963b73 100644
--- a/dev-util/ostree/ostree-2025.6.ebuild
+++ b/dev-util/ostree/ostree-2025.6.ebuild
@@ -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() {

Reply via email to