On Fri, 9 Oct 2015 18:11:00 +0100
Stuart Henderson <s...@spacehopper.org> wrote:

> Fairly old port, never imported in the past due to some weird
> errors in tests, though it was always unclear whether they're
> test bugs, real bugs, or just something unimportant.
> 
> I thought I'd give it a go with a real program to see if this
> is actually anything to be concerned about - tried it as an
> hcache backend for mutt instead of qdbm. Seems totally fine and
> the difference in speed is astounding.
> 
> OK to import?
> 
> 
> Tokyo Cabinet, developed as the successor of QDBM, is a library of
> routines for managing a simple file-based key/value database.
> Keys and values are serial bytes with variable length; both binary
> data and character string can be used as key or value. Data are
> organized in a hash table, B+ tree, or fixed-length array.
> There is no concept of data tables or data types.
> 

For what's it worth I was able to build the databases/tokyocabinet
package with no issues.

I did try to build www/goaccess against bot with --enable-tcb set to
memhash and btree but both failed

cc: -lz: linker input file unused because linking not done
cc: -lbz2: linker input file unused because linking not done
cc: -ltokyocabinet: linker input file unused because linking not done
cc: -lrt: linker input file unused because linking not done
cc: -lc: linker input file unused because linking not done

Though it looks like more of an issue of the port itself and it's build
system versus the tokyocabinet pkg.

I'm attaching an example diff for www/goaccess in case someone can spot
an error of mine


Index: Makefile
===================================================================
RCS file: /cvs/ports/www/goaccess/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile    7 Oct 2015 19:28:22 -0000       1.5
+++ Makefile    9 Oct 2015 21:23:25 -0000
@@ -5,6 +5,7 @@ PORTROACH =             skipv:0.11,0.12
 COMMENT =              realtime console web log analyzer
 
 DISTNAME =             goaccess-0.9.4
+REVISION =             0
 
 CATEGORIES =           www
 HOMEPAGE =             http://goaccess.io/
@@ -14,16 +15,18 @@ MAINTAINER =                Kirill Bychkov <kirby@open
 # GPLv2
 PERMIT_PACKAGE_CDROM = Yes
 
-WANTLIB =              GeoIP c glib-2.0 ncursesw pthread
+WANTLIB =              GeoIP c glib-2.0 ncursesw pthread tokyocabinet
 
 MASTER_SITES =         http://tar.goaccess.io/
 
-LIB_DEPENDS =          devel/glib2 \
+LIB_DEPENDS =          databases/tokyocabinet \
+                       devel/glib2 \
                        net/GeoIP
 
 SEPARATE_BUILD =       Yes
 CONFIGURE_STYLE =      gnu
 CONFIGURE_ARGS +=      --enable-geoip \
+                       --enable-tcb=btree \
                        --enable-utf8
 
 CONFIGURE_ENV =                CFLAGS="-I${LOCALBASE}/include" \
cvs server: Diffing patches
cvs server: Diffing pkg

Reply via email to