pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/tinycdb Update to 0.76. From the changelog:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d70f4ed0d851
branches:  trunk
changeset: 524122:d70f4ed0d851
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jan 18 22:46:12 2007 +0000

description:
Update to 0.76. From the changelog:

  * manpage spelling fixes, from Claus Assmann <ca+tinycdb (at) esmtp.org>.

  * little mods to allow compiling tinycdb by C++ compiler,
    from Olly Betts <olly (at) survex.com>.

  * use program_invocation_short_name on GLIBC, (modified) patch
    from Dmitry V. Levin  <ldv (at) altlinux.org>

  * manpage fix (cdb_findnext() prototype),
    from Dmitry V. Levin <ldv (at) altlinux.org>

  * (somewhat silly) GCC-4.x "signedness" warnings fix, modified patch
    from Dmitry V. Levin  <ldv (at) altlinux.org>

  * more signed vs unsigned char* fixes in various places

  * Makefile: always build libnss_cdb.so with libcdb_pic.a, no nss-shared
    target: to avoid extra dependency from /usr/lib/.

  * Makefile: use map files for lib*.so, with explicit list of exported
    symbols.  This, in particular, avoids exporting of libcdb symbols by
    libnss_cdb.so.

  * mark all internal routines as internal_function (defined as
    __attribute__((visibility("hidden"))) for GCC)

  * Makefile: add tests-shared, to use cdb-shared for testing

  * Makefile: allow to specify which binary (shared vs static) to install
    in install target, by using INSTALLPROG variable

  * Makefile: pass -DNSSCDB_DIR=... to compiler when building .lo files,
    to allow setting of system config dir (/etc by default) on command line.
    For nss_cdb module.

  * Makefile: use $(CP) instead of cp, to be able to specify `cp' options
    (CP="cp -p")

  * Use unlink(tmpname) + open(O_CREAT|O_EXCL) instead of
    open(O_CREAT|O_TRUNC) when creating the new CDB file.
    And use O_NOFOLLOW if defined.
    This also works around some (probably) possible symlink attacks.

  * Add -p perms option for cdb utility, to specify mode (permission bits)
    for newly created .cdb file (default is 0666&umask(), -p forces the given
    mode).

  * allow tmpname (cdb -t) to be `-', to mean no temp file gets created.
    Also check if tmpname is the same as database name and don't try to
    rename() if it is.

  * rewrite nss_cdb-Makefile a bit: simplify it, and use more sane
    permission scheme for /etc/shadow

  * fixed a typo in cdb_seek.c, -- it segfaulted if passed NULL dlenp
    pointer.  Thanks Daiki for the patch.  Closes: #383417

  * use MAP_FAILED to test mmap() return value, instead of hardcoded -1.

  * libcdb-dev replaces tinycdb<0.76

diffstat:

 databases/tinycdb/Makefile         |   4 ++--
 databases/tinycdb/distinfo         |  10 +++++-----
 databases/tinycdb/patches/patch-aa |  13 ++++++-------
 3 files changed, 13 insertions(+), 14 deletions(-)

diffs (64 lines):

diff -r ede0cd2b9500 -r d70f4ed0d851 databases/tinycdb/Makefile
--- a/databases/tinycdb/Makefile        Thu Jan 18 22:45:16 2007 +0000
+++ b/databases/tinycdb/Makefile        Thu Jan 18 22:46:12 2007 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2006/01/19 04:41:09 schmonz Exp $
+# $NetBSD: Makefile,v 1.3 2007/01/18 22:46:12 schmonz Exp $
 #
 
-DISTNAME=              tinycdb_0.75
+DISTNAME=              tinycdb_0.76
 PKGNAME=               ${DISTNAME:S/_/-/}
 CATEGORIES=            databases
 MASTER_SITES=          http://www.corpit.ru/mjt/tinycdb/
diff -r ede0cd2b9500 -r d70f4ed0d851 databases/tinycdb/distinfo
--- a/databases/tinycdb/distinfo        Thu Jan 18 22:45:16 2007 +0000
+++ b/databases/tinycdb/distinfo        Thu Jan 18 22:46:12 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2006/01/19 04:53:44 schmonz Exp $
+$NetBSD: distinfo,v 1.3 2007/01/18 22:46:12 schmonz Exp $
 
-SHA1 (tinycdb_0.75.tar.gz) = 8aa11210f1a3fc697a361b5a8223b37fcb084d29
-RMD160 (tinycdb_0.75.tar.gz) = 3d0eba569aea5acd02f7107391262ce6e26b4f1c
-Size (tinycdb_0.75.tar.gz) = 32025 bytes
-SHA1 (patch-aa) = b65755f7a68dafa3b9db5596e1a12caac1a5fac7
+SHA1 (tinycdb_0.76.tar.gz) = a048055a997c247c0ab88262b2cee5aa1e711920
+RMD160 (tinycdb_0.76.tar.gz) = f95919d9f92a525fdc9d74ceee58ac8f5504237d
+Size (tinycdb_0.76.tar.gz) = 35777 bytes
+SHA1 (patch-aa) = 2ffeb0d814cbef82a619292c2586bddbfcd30836
diff -r ede0cd2b9500 -r d70f4ed0d851 databases/tinycdb/patches/patch-aa
--- a/databases/tinycdb/patches/patch-aa        Thu Jan 18 22:45:16 2007 +0000
+++ b/databases/tinycdb/patches/patch-aa        Thu Jan 18 22:46:12 2007 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-aa,v 1.2 2006/01/19 04:53:45 schmonz Exp $
+$NetBSD: patch-aa,v 1.3 2007/01/18 22:46:12 schmonz Exp $
 
---- Makefile.orig      2005-08-23 12:22:03.000000000 -0400
+--- Makefile.orig      2006-06-28 11:17:37.000000000 -0400
 +++ Makefile
-@@ -6,24 +6,24 @@
+@@ -7,23 +7,23 @@
  
- VERSION = 0.75
+ VERSION = 0.76
  
 -prefix=/usr/local
 +prefix=@PREFIX@
@@ -17,15 +17,14 @@
  includedir=$(prefix)/include
 -mandir=$(prefix)/man
 +mandir=$(prefix)/@PKGMANDIR@
+ NSSCDB_DIR = $(sysconfdir)
  DESTDIR=
  
 -CC = cc
 -CFLAGS = -O
 +CC ?= cc
 +CFLAGS ?= -O
- CFLAGS_PIC = -fPIC
- CFLAGS_SHARED = -shared
- CFLAGS_SONAME = -Wl,--soname,
+ 
 -AR = ar
 -ARFLAGS = rv
 -RANLIB = ranlib



Home | Main Index | Thread Index | Old Index