commit:     47057031dff6ae1e783671baa1d4a9b2e7fb9f89
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  6 21:16:24 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep  6 21:16:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47057031

sys-libs/gdbm: backport uclibc patch to 1.20

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

 sys-libs/gdbm/files/gdbm-1.20-uclibc-types.patch | 18 ++++++++++++++++++
 sys-libs/gdbm/gdbm-1.20.ebuild                   |  3 ++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/sys-libs/gdbm/files/gdbm-1.20-uclibc-types.patch 
b/sys-libs/gdbm/files/gdbm-1.20-uclibc-types.patch
new file mode 100644
index 00000000000..0f66e73407d
--- /dev/null
+++ b/sys-libs/gdbm/files/gdbm-1.20-uclibc-types.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/808480
+
+From: Sergey Poznyakoff <[email protected]>
+Date: Wed, 7 Jul 2021 09:36:22 +0300
+Subject: Fix https://puszcza.gnu.org.ua/bugs/?515
+
+* src/gdbm.h.in: Include sys/types.h
+--- a/src/gdbm.h.in
++++ b/src/gdbm.h.in
+@@ -30,6 +30,7 @@
+ # define _GDBM_H_
+ 
+ # include <stdio.h>
++# include <sys/types.h>
+ 
+ /* GDBM C++ support */
+ # if defined(__cplusplus) || defined(c_plusplus)
+cgit v1.2.1

diff --git a/sys-libs/gdbm/gdbm-1.20.ebuild b/sys-libs/gdbm/gdbm-1.20.ebuild
index a6fc57b2a1d..1658e3a497b 100644
--- a/sys-libs/gdbm/gdbm-1.20.ebuild
+++ b/sys-libs/gdbm/gdbm-1.20.ebuild
@@ -20,7 +20,8 @@ DEPEND="
 RDEPEND="${DEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.18.1-gettext.patch #696838
+       "${FILESDIR}"/${PN}-1.18.1-gettext.patch # bug #696838
+       "${FILESDIR}"/${PN}-1.20-uclibc-types.patch # bug #808480
 )
 
 src_prepare() {

Reply via email to