ports/57927: Fix port: www/udmsearch
Cheng-Lung Sung
clsung at dragon2.net
Mon Oct 13 02:10:22 UTC 2003
>Number: 57927
>Category: ports
>Synopsis: Fix port: www/udmsearch
>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 Oct 12 19:10:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Cheng-Lung Sung
>Release: FreeBSD 4.8-RELEASE-p13 i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.8-RELEASE-p13 FreeBSD 4.8-RELEASE-p13 #3: Wed Oct 8 07:32:16 CST 2003 root at sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386
With MySQL 4.1.0-alpha
>Description:
- Fix Broken make:
src/sql.c:
from mysql_connect to mysql_pconnect (with mysql_init()).
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/www/udmsearch/Makefile udmsearch/Makefile
--- /usr/ports/www/udmsearch/Makefile Mon Oct 13 09:32:51 2003
+++ udmsearch/Makefile Mon Oct 13 10:01:02 2003
@@ -7,7 +7,7 @@
PORTNAME= udmsearch
PORTVERSION= 3.0.23
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/ \
http://udmsearch.real-time.com/Download/ \
@@ -16,7 +16,7 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Full featured SQL-based hypertext search engine
-BROKEN= Does not build
+#BROKEN= Does not build
MAN1= indexer.1
MAN5= indexer.conf.5
diff -ruN /usr/ports/www/udmsearch/files/patch-sql.c udmsearch/files/patch-sql.c
--- /usr/ports/www/udmsearch/files/patch-sql.c Thu Jan 1 08:00:00 1970
+++ udmsearch/files/patch-sql.c Mon Oct 13 09:59:57 2003
@@ -0,0 +1,12 @@
+--- src/sql.c.orig Tue Sep 19 17:14:21 2000
++++ src/sql.c Mon Oct 13 09:59:28 2003
+@@ -204,7 +204,8 @@
+ #define unlock_url(db) sql_query(db,"UNLOCK TABLES")
+
+ static int InitDB(DB*db){
+- if (!(mysql_connect(&(db->mysql),DBHost,DBUser,DBPass))){
++ mysql_init(&(db->mysql));
++ if (!(mysql_real_connect(&(db->mysql),DBHost,DBUser,DBPass,DB_DEFAULT,0,NULL,0))){
+ db->errcode=1;
+ return(1);
+ }
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list