diff options
author | adam <adam@pkgsrc.org> | 2017-03-20 06:02:26 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-03-20 06:02:26 +0000 |
commit | b4333331f2d9d433242ea19ac28445dae6dddeaf (patch) | |
tree | b50dc25e8dfcd2c57e8245ed5781fb5da2521eb7 /databases/gdbm | |
parent | f994734aafa89ce0b48153368eff9f7209ce4115 (diff) | |
download | pkgsrc-b4333331f2d9d433242ea19ac28445dae6dddeaf.tar.gz |
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 (limited to 'databases/gdbm')
-rw-r--r-- | databases/gdbm/Makefile | 8 | ||||
-rw-r--r-- | databases/gdbm/Makefile.common | 4 | ||||
-rw-r--r-- | databases/gdbm/PLIST | 3 | ||||
-rw-r--r-- | databases/gdbm/buildlink3.mk | 3 | ||||
-rw-r--r-- | databases/gdbm/builtin.mk | 4 | ||||
-rw-r--r-- | databases/gdbm/distinfo | 11 | ||||
-rw-r--r-- | databases/gdbm/patches/patch-src_Makefile.in | 15 |
7 files changed, 33 insertions, 15 deletions
diff --git a/databases/gdbm/Makefile b/databases/gdbm/Makefile index 95dfccb383c..980b49ac6ce 100644 --- a/databases/gdbm/Makefile +++ b/databases/gdbm/Makefile @@ -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 --git a/databases/gdbm/Makefile.common b/databases/gdbm/Makefile.common index cedcab23159..73ca7a2f1e2 100644 --- a/databases/gdbm/Makefile.common +++ b/databases/gdbm/Makefile.common @@ -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 --git a/databases/gdbm/PLIST b/databases/gdbm/PLIST index 14e128f5f5a..b008f22ad9b 100644 --- a/databases/gdbm/PLIST +++ b/databases/gdbm/PLIST @@ -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_dump.1 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 --git a/databases/gdbm/buildlink3.mk b/databases/gdbm/buildlink3.mk index 61ebb580731..24df243d847 100644 --- a/databases/gdbm/buildlink3.mk +++ b/databases/gdbm/buildlink3.mk @@ -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_API_DEPENDS.gdbm+= gdbm>=1.8.3 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 --git a/databases/gdbm/builtin.mk b/databases/gdbm/builtin.mk index 4a099e1aec5..e55165b0162 100644 --- a/databases/gdbm/builtin.mk +++ b/databases/gdbm/builtin.mk @@ -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 @@ USE_BUILTIN.gdbm= yes . 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 --git a/databases/gdbm/distinfo b/databases/gdbm/distinfo index 8ebaced4eea..1c3e111ee63 100644 --- a/databases/gdbm/distinfo +++ b/databases/gdbm/distinfo @@ -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 --git a/databases/gdbm/patches/patch-src_Makefile.in b/databases/gdbm/patches/patch-src_Makefile.in new file mode 100644 index 00000000000..5796ad7ed40 --- /dev/null +++ b/databases/gdbm/patches/patch-src_Makefile.in @@ -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: |