commit:     2f0c92570ad92ea2969b7e07f7d4870f8b7f750f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 25 03:43:47 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 25 03:43:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0c9257

sys-libs/gdbm: fix musl build

Closes: https://bugs.gentoo.org/951911
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/gdbm/files/gdbm-1.25-musl.patch | 22 ++++++++++++++++++++++
 sys-libs/gdbm/gdbm-1.25.ebuild           |  4 ++++
 2 files changed, 26 insertions(+)

diff --git a/sys-libs/gdbm/files/gdbm-1.25-musl.patch 
b/sys-libs/gdbm/files/gdbm-1.25-musl.patch
new file mode 100644
index 000000000000..2b186efd0830
--- /dev/null
+++ b/sys-libs/gdbm/files/gdbm-1.25-musl.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/951911
+https://puszcza.gnu.org.ua/bugs/index.php?649
+https://git.gnu.org.ua/gdbm.git/commit/?id=39ef0347f78ef691c9ad815360198f577043ce4c
+
+From 39ef0347f78ef691c9ad815360198f577043ce4c Mon Sep 17 00:00:00 2001
+From: Sergey Poznyakoff <[email protected]>
+Date: Mon, 24 Mar 2025 07:56:00 +0200
+Subject: Add missing include
+
+* tools/gdbmapp.h: Include sys/types.h
+--- a/tools/gdbmapp.h
++++ b/tools/gdbmapp.h
+@@ -16,6 +16,7 @@
+ 
+ #include <stdlib.h>
+ #include <stdarg.h>
++#include <sys/types.h>
+ #include "gettext.h"
+ #ifdef HAVE_LOCALE_H
+ # include <locale.h>
+-- 
+cgit v1.2.3

diff --git a/sys-libs/gdbm/gdbm-1.25.ebuild b/sys-libs/gdbm/gdbm-1.25.ebuild
index d1b1b5721aeb..82b2e898a7ec 100644
--- a/sys-libs/gdbm/gdbm-1.25.ebuild
+++ b/sys-libs/gdbm/gdbm-1.25.ebuild
@@ -26,6 +26,10 @@ BDEPEND="
        verify-sig? ( >=sec-keys/openpgp-keys-gdbm-20250323 )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-musl.patch
+)
+
 src_prepare() {
        default
 

Reply via email to