ports/55658: [PATCH] databases/tdb: update to 1.0.6

Matthias Andree matthias.andree at gmx.de
Sun Aug 17 11:10:21 UTC 2003


>Number:         55658
>Category:       ports
>Synopsis:       [PATCH] databases/tdb: update to 1.0.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 17 04:10:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.8-STABLE FreeBSD 4.8-STABLE #43: Tue Aug 12 16:16:25 CEST 2003
>Description:
TDB does not depend on GDBM, this patch removes the GDBM dependency.

TDB only uses GDBM when present for the selftest code that optionally runs
at build time, but a bug in the GDBM detection code breaks the build when
GDBM is missing. This update to the port integrates Conrad Parker's patch
to allow TDB to build when GDBM isn't installed. The patch was taken from
SourceForge bug #603739, see
http://sourceforge.net/tracker/download.php?group_id=9569&atid=109569&file_id=30318&aid=603739

COMMITTER BEWARE, this patch adds a file, files/patch-tdbspeed-gdbm,
remember to add directory and file to CVS! (If you want to be extra sure,
"pkg_remove gdbm" before test building this tdb port.)

Generated with FreeBSD Port Tools 0.25
>How-To-Repeat:
>Fix:

--- tdb-1.0.6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/tdb/Makefile /root/tdb/Makefile
--- /usr/ports/databases/tdb/Makefile	Fri Feb 21 02:43:39 2003
+++ /root/tdb/Makefile	Sun Aug 17 12:56:34 2003
@@ -15,12 +15,10 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Trivial Database
 
-LIB_DEPENDS=	gdbm:${PORTSDIR}/databases/gdbm
-
-USE_LIBTOOL=	yes
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
-INSTALLS_SHLIB=	yes
+USE_AUTOMAKE_VER=	14
+USE_AUTOCONF_VER=	213
+USE_LIBTOOL_VER=	13
+INSTALLS_SHLIB=		yes
 
 MAN3=	tdb.3 tdb_chainlock.3 tdb_close.3 tdb_delete.3 tdb_error.3 \
 	tdb_exists.3 tdb_fetch.3 tdb_firstkey.3 tdb_open.3 tdb_store.3 \
diff -ruN --exclude=CVS /usr/ports/databases/tdb/files/patch-tdbspeed-gdbm /root/tdb/files/patch-tdbspeed-gdbm
--- /usr/ports/databases/tdb/files/patch-tdbspeed-gdbm	Thu Jan  1 01:00:00 1970
+++ /root/tdb/files/patch-tdbspeed-gdbm	Sun Aug 17 12:44:54 2003
@@ -0,0 +1,42 @@
+--- configure.in.orig	2002-09-03 07:48:38.000000000 +1000
++++ configure.in	2002-09-03 07:45:23.000000000 +1000
+@@ -18,13 +18,14 @@
+ AC_CHECK_LIB(gdbm, gdbm_open,
+ 	[have_gdbm=true],[have_gdbm=false])
+ if test "x$have_gdbm" = "xfalse";then
+-  AC_MSG_WARN(WARNING: tdbtest is disabled. It needs gdbm.)
++  AC_MSG_WARN(WARNING: tdbspeed and tdbtest are disabled. They need gdbm.)
+ fi
+ AC_CHECK_LIB(dl, dlopen,[have_dllib=true],[have_dllib=false])
+ if test "x$have_dllib" = "xfalse";then
+   AC_MSG_WARN(WARNING: tdbtorture is disabled. It needs libdl.)
+ fi
+ 
++AM_CONDITIONAL(BUILD_TDBSPEED,$have_gdbm)
+ AM_CONDITIONAL(BUILD_TDBTEST,$have_gdbm)
+ AM_CONDITIONAL(BUILD_TDBTORTURE,$have_dllib)
+ 
+--- Makefile.am.orig	2002-09-03 07:48:50.000000000 +1000
++++ Makefile.am	2002-09-03 07:42:58.000000000 +1000
+@@ -1,6 +1,12 @@
+ CFLAGS = @CFLAGS@ @WARNS@
+ LDADD=libtdb.la
+ 
++if BUILD_TDBSPEED
++TDBSPEED = tdbspeed
++else
++TDBSPEED =
++endif
++
+ if BUILD_TDBTEST
+ TDBTEST = tdbtest
+ else
+@@ -13,7 +19,7 @@
+ TDBTORTURE =
+ endif
+ 
+-noinst_PROGRAMS=tdbspeed tdbiterate $(TDBTEST) $(TDBTORTURE)
++noinst_PROGRAMS=tdbiterate $(TDBSPEED) $(TDBTEST) $(TDBTORTURE)
+ bin_PROGRAMS=tdbtool tdbdump
+ 
+ lib_LTLIBRARIES=libtdb.la
--- tdb-1.0.6.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list