ports/87556: [patch] net/libnss-mysql cannot find mysql headers with nonstandard LOCALBASE
Vasil Dimov
vd at datamax.bg
Mon Oct 17 06:50:20 UTC 2005
>Number: 87556
>Category: ports
>Synopsis: [patch] net/libnss-mysql cannot find mysql headers with nonstandard LOCALBASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 17 06:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list