summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-06 22:16:24 +0100
committerSam James <sam@gentoo.org>2021-09-06 22:16:31 +0100
commit47057031dff6ae1e783671baa1d4a9b2e7fb9f89 (patch)
treec1bc298aec4c192bf50b3f1034116c63eccd4adc /sys-libs/gdbm
parentgui-libs/wf-config: drop unnecessary dependency on gui-libs/wlroots (diff)
downloadgentoo-47057031dff6ae1e783671baa1d4a9b2e7fb9f89.tar.gz
gentoo-47057031dff6ae1e783671baa1d4a9b2e7fb9f89.tar.bz2
gentoo-47057031dff6ae1e783671baa1d4a9b2e7fb9f89.zip
sys-libs/gdbm: backport uclibc patch to 1.20
Closes: https://bugs.gentoo.org/808480 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/gdbm')
-rw-r--r--sys-libs/gdbm/files/gdbm-1.20-uclibc-types.patch18
-rw-r--r--sys-libs/gdbm/gdbm-1.20.ebuild3
2 files changed, 20 insertions, 1 deletions
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 000000000000..0f66e73407df
--- /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 <gray@gnu.org>
+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 a6fc57b2a1d8..1658e3a497be 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() {