aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2008-08-20 11:51:46 +0800
committerkuriyama <kuriyama@FreeBSD.org>2008-08-20 11:51:46 +0800
commite580e37278f47e83fe1fdd00c32819d9c3afc8b5 (patch)
treef772f5112c1a22a30a7d459ccec87f995e208216 /textproc
parent539373636ab64964817dfa0a699747e946728028 (diff)
downloadfreebsd-ports-gnome-e580e37278f47e83fe1fdd00c32819d9c3afc8b5.tar.gz
freebsd-ports-gnome-e580e37278f47e83fe1fdd00c32819d9c3afc8b5.tar.zst
freebsd-ports-gnome-e580e37278f47e83fe1fdd00c32819d9c3afc8b5.zip
- Unbreak by fixing incorrect pointer usage in APR_RING_SENTINEL macro.
# I'm not sure why this can be built before...
Diffstat (limited to 'textproc')
-rw-r--r--textproc/rast/Makefile5
-rw-r--r--textproc/rast/files/patch-local_db.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/textproc/rast/Makefile b/textproc/rast/Makefile
index d4a8bbc10160..8974b96615ec 100644
--- a/textproc/rast/Makefile
+++ b/textproc/rast/Makefile
@@ -18,15 +18,14 @@ COMMENT= Full-text search system using N-gram
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
LIB_DEPENDS= apr-1:${PORTSDIR}/devel/apr
-BROKEN= does not compile
-
USE_AUTOTOOLS= libtool:15
USE_BZIP2= YES
USE_BDB= 42
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_RUBY= YES
-CONFIGURE_ARGS= --with-apr-config=${LOCALBASE}/bin/apr-1-config \
+CONFIGURE_ARGS= \
+ --with-apr-config=${LOCALBASE}/bin/apr-1-config \
--with-apu-config=${LOCALBASE}/bin/apu-1-config \
--with-db-includes="-I${BDB_INCLUDE_DIR}" \
--with-db-libs="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \
diff --git a/textproc/rast/files/patch-local_db.c b/textproc/rast/files/patch-local_db.c
new file mode 100644
index 000000000000..22b9cf8580f5
--- /dev/null
+++ b/textproc/rast/files/patch-local_db.c
@@ -0,0 +1,11 @@
+--- src/local_db.c.orig 2008-08-20 12:45:58.597538000 +0900
++++ src/local_db.c 2008-08-20 12:46:33.000000000 +0900
+@@ -2111,7 +2111,7 @@
+
+ encoding_module = docs[i]->db->encoding_module;
+ tf = APR_RING_FIRST(docs[i]->terms);
+- if (tf == APR_RING_SENTINEL(&docs[i]->terms,
++ if (tf == APR_RING_SENTINEL(docs[i]->terms,
+ rast_term_frequency_t, link)) {
+ error = get_summary(pool, encoding_module,
+ summary, summary_nbytes,