summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-11-01 18:37:05 +0000
committerwiz <wiz@pkgsrc.org>2021-11-01 18:37:05 +0000
commitf1c75e0f6c7516db53a897376a3ed9507c8934bd (patch)
tree9375cf28082df950e383047d218ef3b785fe6afa /databases
parent7929f34e94c8ae2d7fef7cba30ceb328b8538ac7 (diff)
downloadpkgsrc-f1c75e0f6c7516db53a897376a3ed9507c8934bd.tar.gz
gdbm: update to 1.22.
Version 1.22 * Fix file header validation * Fix key verification in sequential access * Fix testing with DejaGNU 1.6.3 * Fix stack overflow in print_usage * Fix a leak of avail entry on pushing a new avail block The leak would occur if the original avail table had odd number of entries. * New gdbmtool variables: errorexit, errormask, trace, timing "Errorexit" and "errormask" control which GDBM errors would cause the program termination and emitting a diagnostic message, correspondingly. Both variables are comma-delimited lists of error codes. The "trace" variable enables tracing of the gdbmtool commands. The "timing" variable, when set, instructs gdbmtool to print time spent in each command it runs. * New gdbmtool options: -t (--trace), and -T (--timing)
Diffstat (limited to 'databases')
-rw-r--r--databases/gdbm/Makefile.common6
-rw-r--r--databases/gdbm/distinfo12
-rw-r--r--databases/gdbm/patches/patch-configure36
-rw-r--r--databases/gdbm/patches/patch-src_gdbmshell.c19
-rw-r--r--databases/gdbm/patches/patch-src_gdbmsync.c45
-rw-r--r--databases/gdbm/patches/patch-src_systems.h21
6 files changed, 8 insertions, 131 deletions
diff --git a/databases/gdbm/Makefile.common b/databases/gdbm/Makefile.common
index 9175ee693a5..1cfa6246788 100644
--- a/databases/gdbm/Makefile.common
+++ b/databases/gdbm/Makefile.common
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.11 2021/09/12 09:12:34 wiz Exp $
+# $NetBSD: Makefile.common,v 1.12 2021/11/01 18:37:05 wiz Exp $
#
# used by databases/gdbm/Makefile
# used by databases/gdbm_compat/Makefile
-DISTNAME= gdbm-1.21
+DISTNAME= gdbm-1.22
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GNU:=gdbm/}
@@ -17,3 +17,5 @@ PATCHDIR= ${.CURDIR}/../../databases/gdbm/patches
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+
+TEST_TARGET= check
diff --git a/databases/gdbm/distinfo b/databases/gdbm/distinfo
index 1b0c52e75d2..77530b34b7a 100644
--- a/databases/gdbm/distinfo
+++ b/databases/gdbm/distinfo
@@ -1,10 +1,6 @@
-$NetBSD: distinfo,v 1.21 2021/10/26 10:09:17 nia Exp $
+$NetBSD: distinfo,v 1.22 2021/11/01 18:37:05 wiz Exp $
-BLAKE2s (gdbm-1.21.tar.gz) = cb0a447c942e3549cd01d7822ab49973d72e3a1f7cd957dcc8577c83be064d08
-SHA512 (gdbm-1.21.tar.gz) = b2a31802d1af9f97b24d3dd01cb048bab4a8e748297f1b70851c0342400dde4281242b7f80bd92a36035e22398d240d131b550ab444ee838a077522a6921fa43
-Size (gdbm-1.21.tar.gz) = 1005982 bytes
-SHA1 (patch-configure) = 0ae6c9280f911a524a3a2043df1e24588bd93a63
+BLAKE2s (gdbm-1.22.tar.gz) = c7562c7d917b7144d139e6746a7db3c3a57e83c6b4e8afa3b2868770025aa80c
+SHA512 (gdbm-1.22.tar.gz) = 67461fc4f41e825d0134175ff99c913ccb4aa7ea3d0f64f32bdedbc7677b3ecabd2c525ac6b2ee47a9561e002e4224e492b72088d57bb4862a1f8c089521ec51
+Size (gdbm-1.22.tar.gz) = 1090100 bytes
SHA1 (patch-src_Makefile.in) = 52b47f3dcd381143d1cdae40f1972bd989dcce1f
-SHA1 (patch-src_gdbmshell.c) = 56e8d69db9cab2a2e4846d9adec908596dd1f6a0
-SHA1 (patch-src_gdbmsync.c) = b57595f11838faabe5accda79fb62207c021a052
-SHA1 (patch-src_systems.h) = dc4132ae62c6b4f050dcf3d4c30552af087b310b
diff --git a/databases/gdbm/patches/patch-configure b/databases/gdbm/patches/patch-configure
deleted file mode 100644
index 8893873b99e..00000000000
--- a/databases/gdbm/patches/patch-configure
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-configure,v 1.1 2021/09/14 13:32:50 schmonz Exp $
-
-Apply upstream patch 32517af7 to check for st_mtim in struct stat.
-Fixes macOS build.
-
---- configure.orig 2021-09-02 12:47:45.000000000 +0000
-+++ configure
-@@ -15451,6 +15451,28 @@ _ACEOF
-
-
- fi
-+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/types.h>
-+ #include <sys/stat.h>
-+"
-+if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
-+
-+cat >>confdefs.h <<_ACEOF
-+#define HAVE_STRUCT_STAT_ST_MTIM 1
-+_ACEOF
-+
-+
-+fi
-+ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/types.h>
-+ #include <sys/stat.h>
-+"
-+if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
-+
-+cat >>confdefs.h <<_ACEOF
-+#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
-+_ACEOF
-+
-+
-+fi
-
-
- if test "$want_compat" = yes; then
diff --git a/databases/gdbm/patches/patch-src_gdbmshell.c b/databases/gdbm/patches/patch-src_gdbmshell.c
deleted file mode 100644
index 0e98f380fef..00000000000
--- a/databases/gdbm/patches/patch-src_gdbmshell.c
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-src_gdbmshell.c,v 1.1 2021/09/14 13:32:50 schmonz Exp $
-
-Apply upstream patch 32517af7 to check for st_mtim in struct stat.
-Fixes macOS build.
-
---- src/gdbmshell.c.orig 2021-09-02 12:39:55.000000000 +0000
-+++ src/gdbmshell.c
-@@ -1010,7 +1010,11 @@ print_snapshot (char const *snapname, FI
- fprintf (fp, "%s: ", snapname);
- fprintf (fp, "%03o %s ", st.st_mode & 0777,
- decode_mode (st.st_mode, buf));
-+#if HAVE_STRUCT_STAT_ST_MTIM
- fprintf (fp, "%ld.%09ld", st.st_mtim.tv_sec, st.st_mtim.tv_nsec);
-+#else
-+ fprintf (fp, "%ld [%s]", st.st_mtime, _("insufficient precision"));
-+#endif
- if (S_ISREG (st.st_mode))
- {
- GDBM_FILE dbf;
diff --git a/databases/gdbm/patches/patch-src_gdbmsync.c b/databases/gdbm/patches/patch-src_gdbmsync.c
deleted file mode 100644
index c40d93e991c..00000000000
--- a/databases/gdbm/patches/patch-src_gdbmsync.c
+++ /dev/null
@@ -1,45 +0,0 @@
-$NetBSD: patch-src_gdbmsync.c,v 1.1 2021/09/14 13:32:50 schmonz Exp $
-
-Apply upstream patch 32517af7 to check for st_mtim in struct stat.
-Fixes macOS build.
-
---- src/gdbmsync.c.orig 2021-08-10 12:13:24.000000000 +0000
-+++ src/gdbmsync.c
-@@ -220,16 +220,23 @@ gdbm_failure_atomic (GDBM_FILE dbf, cons
- }
-
- static inline int
--timespec_cmp (struct timespec const *a, struct timespec const *b)
-+timespec_cmp (struct stat const *a, struct stat const *b)
- {
-- if (a->tv_sec < b->tv_sec)
-+#if HAVE_STRUCT_STAT_ST_MTIM
-+ if (a->st_mtim.tv_sec < b->st_mtim.tv_sec)
- return -1;
-- if (a->tv_sec > b->tv_sec)
-+ if (a->st_mtim.tv_sec > b->st_mtim.tv_sec)
- return 1;
-- if (a->tv_nsec < b->tv_nsec)
-+ if (a->st_mtim.tv_nsec < b->st_mtim.tv_nsec)
- return -1;
-- if (a->tv_nsec > b->tv_nsec)
-+ if (a->st_mtim.tv_nsec > b->st_mtim.tv_nsec)
- return 1;
-+#else
-+ if (a->st_mtime < b->st_mtime)
-+ return -1;
-+ if (a->st_mtime > b->st_mtime)
-+ return 1;
-+#endif
- return 0;
- }
-
-@@ -374,7 +381,7 @@ gdbm_latest_snapshot (const char *even,
- * Select the newer snapshot, i.e. the one whose mtime
- * is greater than the other's
- */
-- switch (timespec_cmp (&st_even.st_mtim, &st_odd.st_mtim))
-+ switch (timespec_cmp (&st_even, &st_odd))
- {
- case -1:
- *ret = odd;
diff --git a/databases/gdbm/patches/patch-src_systems.h b/databases/gdbm/patches/patch-src_systems.h
deleted file mode 100644
index 852255d0cac..00000000000
--- a/databases/gdbm/patches/patch-src_systems.h
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-src_systems.h,v 1.1 2021/09/14 13:32:50 schmonz Exp $
-
-Apply upstream patch 32517af7 to check for st_mtim in struct stat.
-Fixes macOS build.
-
---- src/systems.h.orig 2021-08-10 12:13:24.000000000 +0000
-+++ src/systems.h
-@@ -52,6 +52,13 @@
- # define STATBLKSIZE(st) 1024
- #endif
-
-+#if ! HAVE_STRUCT_STAT_ST_MTIM
-+# if HAVE_STRUCT_STAT_ST_MTIMESPEC
-+# define st_mtim st_mtimespec
-+# define HAVE_STRUCT_STAT_ST_MTIM 1
-+# endif
-+#endif
-+
- #ifndef STDERR_FILENO
- # define STDERR_FILENO 2
- #endif