From f8ea753ba2a3744376f2247d5e9e4e52a555150d Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 8 May 2019 15:24:14 +0000 Subject: [PATCH] update to gdbm-1.18.1 --- databases/gdbm/Makefile | 4 ++-- databases/gdbm/distinfo | 4 ++-- databases/gdbm/patches/patch-src_gdbmconst_h | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 databases/gdbm/patches/patch-src_gdbmconst_h diff --git a/databases/gdbm/Makefile b/databases/gdbm/Makefile index dca1244e716..2eef2bc0880 100644 --- a/databases/gdbm/Makefile +++ b/databases/gdbm/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.44 2018/07/09 07:51:32 jasper Exp $ +# $OpenBSD: Makefile,v 1.45 2019/05/08 15:24:14 jasper Exp $ COMMENT= GNU dbm -DISTNAME= gdbm-1.16 +DISTNAME= gdbm-1.18.1 CATEGORIES= databases SHARED_LIBS= gdbm 5.1 # 5.0 diff --git a/databases/gdbm/distinfo b/databases/gdbm/distinfo index dc0ad38e276..41f41c11d5f 100644 --- a/databases/gdbm/distinfo +++ b/databases/gdbm/distinfo @@ -1,2 +1,2 @@ -SHA256 (gdbm-1.16.tar.gz) = yKGLxiWdoMPu/vsBj4qimP3cb4bG/A8N7HMnCJarUS8= -SIZE (gdbm-1.16.tar.gz) = 936526 +SHA256 (gdbm-1.18.1.tar.gz) = huYTUn5dulROcyCPQreLfAItT6Wm1UmL8YyNb3Rbkdw= +SIZE (gdbm-1.18.1.tar.gz) = 941863 diff --git a/databases/gdbm/patches/patch-src_gdbmconst_h b/databases/gdbm/patches/patch-src_gdbmconst_h new file mode 100644 index 00000000000..967dda0b275 --- /dev/null +++ b/databases/gdbm/patches/patch-src_gdbmconst_h @@ -0,0 +1,14 @@ +$OpenBSD: patch-src_gdbmconst_h,v 1.1 2019/05/08 15:24:14 jasper Exp $ + +./gdbmconst.h:58:9: warning: 'SIZE_T_MAX' macro redefined + +Index: src/gdbmconst.h +--- src/gdbmconst.h.orig ++++ src/gdbmconst.h +@@ -55,4 +55,6 @@ + #define DEFAULT_CACHESIZE 100 + + /* Maximum size representable by a size_t variable */ ++#ifndef SIZE_T_MAX + #define SIZE_T_MAX ((size_t)-1) ++#endif