From vd@datamax.bg  Mon Oct 17 06:45:51 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0B0F316A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Oct 2005 06:45:51 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 18F1143D49
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Oct 2005 06:45:49 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2])
	by jengal.datamax.bg (Postfix) with SMTP id D4F4EB826;
	Mon, 17 Oct 2005 09:46:05 +0300 (EEST)
Received: (nullmailer pid 72452 invoked by uid 1002);
	Mon, 17 Oct 2005 06:45:30 -0000
Message-Id: <20051017064530.GA67735@qlovarnika.bg.datamax>
Date: Mon, 17 Oct 2005 09:45:30 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: vd@datamax.bg
To: FreeBSD-gnats-submit@freebsd.org
Cc: Kris Kennaway <kris@obsecurity.org>
Subject: [patch] net/libnss-mysql cannot find mysql headers with nonstandard LOCALBASE
X-Send-Pr-Version: 3.113

>Number:         87556
>Category:       ports
>Synopsis:       [patch] net/libnss-mysql cannot find mysql headers with nonstandard LOCALBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 17 06:50:16 GMT 2005
>Closed-Date:    Wed Oct 19 17:15:02 GMT 2005
>Last-Modified:  Wed Oct 19 17:15:02 GMT 2005
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-RC1 amd64
>Organization:
DataMax
>Environment:

>Description:

It seems that libnss-mysql dropped --with-mysql-lib and --with-mysql-inc
in a favour of --with-mysql some time ago.

configure has default search paths for mysql stuff:
/usr /usr/local /usr/local/mysql /opt/local  /opt/local/mysql
and that is why it finds the mysql headers when --with-mysql is not
specified and mysql client is installed in /usr/local.

Reported by Kris.

>How-To-Repeat:

>Fix:

--- libnss-mysql_localbase.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/libnss-mysql/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	10 Sep 2005 21:50:09 -0000	1.11
+++ Makefile	17 Oct 2005 06:32:50 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	libnss-mysql
 PORTVERSION=	1.5
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	libnss-mysql
@@ -16,8 +17,7 @@
 
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS=	--with-mysql-lib=${LOCALBASE}/lib/mysql \
-		--with-mysql-inc=${LOCALBASE}/include/mysql
+CONFIGURE_ARGS=	--with-mysql=${LOCALBASE}
 INSTALLS_SHLIB=	yes
 USE_LIBTOOL_VER=15
 USE_MYSQL=	yes
--- libnss-mysql_localbase.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: garga 
Responsible-Changed-When: Wed Oct 19 16:58:12 GMT 2005 
Responsible-Changed-Why:  
Grabbed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87556 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Wed Oct 19 17:15:01 GMT 2005 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87556 
>Unformatted:
