pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases Version 1.13 - 2017-03-11
details: https://anonhg.NetBSD.org/pkgsrc/rev/b54540c8de6d
branches: trunk
changeset: 359858:b54540c8de6d
user: adam <adam%pkgsrc.org@localhost>
date: Mon Mar 20 06:02:26 2017 +0000
description:
Version 1.13 - 2017-03-11
* gdbm_fetch, gdbm_firstkey, and gdbm_nextkey behavior
If the requested key was not found, these functions return datum with
dptr pointing to NULL and set gdbm_errno to GDBM_ITEM_NOT_FOUND (in
prior releases, gdbm_errno was set to GDBM_NO_ERROR),
If an error occurred, dptr is set to NULL, and gdbm_errno to
the error code.
In any case gdbm_errno is guaranteed to have meaningful value upon
return.
* Error handling
In previous versions of GDBM, fatal errors (such as write error while
storing the key/data pair or bucket) caused immediate termination of
the program via call to exit(3). This is no longer the case.
Starting from this version, if a fatal error occurrs while modifying
the database file, that database is marked as needing recovery and
gdbm_errno is set to GDBM_NEED_RECOVERY. Calls to any GDBM functions,
except gdbm_recover, will then return immediately with the same error
code.
The function gdbm_recover examines the database file and fixes
eventual inconsistencies. Upon successful return it clears the error
state and makes the database operational again.
For backward compatibility, the fatal_func argument to gdbm_open is
retained and its functionality is not changed. If it is not NULL, the
new error handling procedures are disabled, the function it points to
will be called upon fatal errors. When it returns, exit(1) will be
called.
* Per-database error codes
In addition to gdbm_error global variable, the most recent error state
is saved in the GDBM_FILE structure. This facilitates error handling
when operating multiple GDBM databases simultaneously.
diffstat:
databases/gdbm/Makefile | 8 ++++----
databases/gdbm/Makefile.common | 4 ++--
databases/gdbm/PLIST | 3 ++-
databases/gdbm/buildlink3.mk | 3 ++-
databases/gdbm/builtin.mk | 4 ++--
databases/gdbm/distinfo | 11 ++++++-----
databases/gdbm/patches/patch-src_Makefile.in | 15 +++++++++++++++
databases/gdbm_compat/Makefile | 5 +++--
databases/gdbm_compat/builtin.mk | 4 ++--
9 files changed, 38 insertions(+), 19 deletions(-)
diffs (160 lines):
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/Makefile
--- a/databases/gdbm/Makefile Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/Makefile Mon Mar 20 06:02:26 2017 +0000
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.51 2014/10/09 14:06:05 wiz Exp $
+# $NetBSD: Makefile,v 1.52 2017/03/20 06:02:26 adam Exp $
.include "Makefile.common"
COMMENT= The GNU database manager
INFO_FILES= yes
-MAKE_JOBS_SAFE= no
-.include "../../mk/bsd.prefs.mk"
-
+.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/Makefile.common
--- a/databases/gdbm/Makefile.common Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/Makefile.common Mon Mar 20 06:02:26 2017 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.4 2016/05/22 17:24:32 wiz Exp $
+# $NetBSD: Makefile.common,v 1.5 2017/03/20 06:02:26 adam Exp $
#
# used by databases/gdbm/Makefile
# used by databases/gdbm_compat/Makefile
-DISTNAME= gdbm-1.12
+DISTNAME= gdbm-1.13
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GNU:=gdbm/}
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/PLIST
--- a/databases/gdbm/PLIST Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/PLIST Mon Mar 20 06:02:26 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2014/05/23 20:49:15 wiz Exp $
+@comment $NetBSD: PLIST,v 1.13 2017/03/20 06:02:26 adam Exp $
bin/gdbm_dump
bin/gdbm_load
bin/gdbmtool
@@ -9,6 +9,7 @@
man/man1/gdbm_load.1
man/man1/gdbmtool.1
man/man3/gdbm.3
+share/locale/da/LC_MESSAGES/gdbm.mo
share/locale/de/LC_MESSAGES/gdbm.mo
share/locale/eo/LC_MESSAGES/gdbm.mo
share/locale/fi/LC_MESSAGES/gdbm.mo
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/buildlink3.mk
--- a/databases/gdbm/buildlink3.mk Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/buildlink3.mk Mon Mar 20 06:02:26 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.11 2012/01/24 09:10:06 sbd Exp $
+# $NetBSD: buildlink3.mk,v 1.12 2017/03/20 06:02:26 adam Exp $
BUILDLINK_TREE+= gdbm
@@ -9,6 +9,7 @@
BUILDLINK_ABI_DEPENDS.gdbm+= gdbm>=1.10nb3
BUILDLINK_PKGSRCDIR.gdbm?= ../../databases/gdbm
+.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.endif # GDBM_BUILDLINK3_MK
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/builtin.mk
--- a/databases/gdbm/builtin.mk Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/builtin.mk Mon Mar 20 06:02:26 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2013/11/23 11:29:35 obache Exp $
+# $NetBSD: builtin.mk,v 1.3 2017/03/20 06:02:26 adam Exp $
BUILTIN_PKG:= gdbm
BUILTIN_FIND_HEADERS_VAR= GDBM_H
@@ -56,7 +56,7 @@
. for _dep_ in ${BUILDLINK_API_DEPENDS.gdbm}
. if !empty(USE_BUILTIN.gdbm:M[yY][eE][sS])
USE_BUILTIN.gdbm!= \
- if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.gdbm:Q}; then \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.gdbm}; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/distinfo
--- a/databases/gdbm/distinfo Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm/distinfo Mon Mar 20 06:02:26 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2016/05/22 17:24:32 wiz Exp $
+$NetBSD: distinfo,v 1.12 2017/03/20 06:02:26 adam Exp $
-SHA1 (gdbm-1.12.tar.gz) = 86513e8871bb376bc014e9e5a2d18a8e0a8ea2f5
-RMD160 (gdbm-1.12.tar.gz) = 5f47e6adfec14b31c3e26c1027684ba4845eef8a
-SHA512 (gdbm-1.12.tar.gz) = 25e03dceed6986f1977d304a5ad059ac6c603a88ad4aa18c831ec42df82d68006f2e04b8a3cc400d0a4970750c78ba24a3f84cdff70de9f278cfd854c059699e
-Size (gdbm-1.12.tar.gz) = 841213 bytes
+SHA1 (gdbm-1.13.tar.gz) = 7f2a8301497bbcac91808b011ca533380914fd21
+RMD160 (gdbm-1.13.tar.gz) = ad3d3258d3ae82eb16237051ea0e981178d6e93e
+SHA512 (gdbm-1.13.tar.gz) = fdb777f5b415b0578ea46b4a6fc70151a04a3568e2f2c8c0219ccad8c0d34abb773d80d5d7a06462ad1a3d6c1f3b5b7ab25f9de4f43ccf05c58db05f9a2906ad
+Size (gdbm-1.13.tar.gz) = 891987 bytes
+SHA1 (patch-src_Makefile.in) = 52b47f3dcd381143d1cdae40f1972bd989dcce1f
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm/patches/patch-src_Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/gdbm/patches/patch-src_Makefile.in Mon Mar 20 06:02:26 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2017/03/20 06:02:26 adam Exp $
+
+Fix parallel build.
+
+--- src/Makefile.in.orig 2017-03-20 05:31:29.000000000 +0000
++++ src/Makefile.in
+@@ -829,7 +829,7 @@ distdir: $(DISTFILES)
+ check-am: all-am
+ check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+-all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
++all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) .WAIT $(PROGRAMS) $(HEADERS)
+ install-binPROGRAMS: install-libLTLIBRARIES
+
+ installdirs:
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm_compat/Makefile
--- a/databases/gdbm_compat/Makefile Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm_compat/Makefile Mon Mar 20 06:02:26 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2014/10/09 14:06:05 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2017/03/20 06:02:27 adam Exp $
.include "../../databases/gdbm/Makefile.common"
@@ -12,7 +12,8 @@
BUILD_DIRS= compat
-.include "../../databases/gdbm/buildlink3.mk"
post-extract:
${LN} -s ${BUILDLINK_PREFIX.gdbm}/lib/libgdbm.la ${WRKSRC}/src
+
+.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 33558f1c2724 -r b54540c8de6d databases/gdbm_compat/builtin.mk
--- a/databases/gdbm_compat/builtin.mk Mon Mar 20 05:05:59 2017 +0000
+++ b/databases/gdbm_compat/builtin.mk Mon Mar 20 06:02:26 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.4 2013/11/23 11:29:35 obache Exp $
+# $NetBSD: builtin.mk,v 1.5 2017/03/20 06:02:27 adam Exp $
BUILTIN_PKG:= gdbm_compat
BUILTIN_FIND_HEADERS_VAR= NDBM_H
@@ -52,7 +52,7 @@
. for _dep_ in ${BUILDLINK_API_DEPENDS.gdbm_compat}
. if !empty(USE_BUILTIN.gdbm_compat:M[yY][eE][sS])
USE_BUILTIN.gdbm_compat!= \
- if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.gdbm_compat:Q}; then \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.gdbm_compat}; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
Home |
Main Index |
Thread Index |
Old Index