ports/174377: [patch update] fix makefile options databases/freetds-devel
Kurt Jaeger
fbsd-ports at opsec.eu
Tue Dec 11 20:50:02 UTC 2012
>Number: 174377
>Category: ports
>Synopsis: [patch update] fix makefile options databases/freetds-devel
>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: Tue Dec 11 20:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kurt Jaeger
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
-
>Environment:
System: FreeBSD zfs.opsec.eu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
make config always fails
No matter what you select, it complains:
====> You must select one and only one option from the ODBC single
====> You must select one and only one option from the SSL single
Config is invalid. Re-edit? [Y/N] n
>How-To-Repeat:
make config
>Fix:
The include for bsd.port.options.mk was at the wrong location.
Thanks to Kurt Lidl for pointing this out.
diff -r -u databases/freetds-devel/Makefile /usr/home/pi/myp/databases/freetds-devel/Makefile
--- databases/freetds-devel/Makefile 2012-11-30 23:24:39.304139424 +0100
+++ /usr/home/pi/myp/databases/freetds-devel/Makefile 2012-12-11 21:40:53.850573224 +0100
@@ -29,27 +29,23 @@
defncopy.1 fisql.1 osql.1
MAN5= freetds.conf.5
-.include <bsd.port.options.mk>
-
-# OPTIONS_DEFINE= OPENSSL GNUTLS IODBC UNIXODBC MSDBLIB
-OPTIONS_DEFINE= MSDBLIB
+OPTIONS_DEFINE= OPENSSL GNUTLS IODBC UNIXODBC MSDBLIB
+OPTIONS_SET= IODBC OPENSSL MSDBLIB
-OPTIONS_SINGLE= ODBC SSL
+OPTIONS_SINGLE= ODBC SSL
OPTIONS_SINGLE_ODBC= IODBC UNIXODBC
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS
-OPTIONS_DEFAULT= OPENSSL IODBC
-
OPENSSL_DESC= Use OpenSSL
GNUTLS_DESC= Use GnuTLS
IODBC_DESC= Depend on iodbc
UNIXODBC_DESC= Depend on unixodbc
MSDBLIB_DESC= MS SQL Server compatibility (breaks databases/sybtcl)
-CONFLICTS= freetds-0.64.[0-9]
-
.include <bsd.port.options.mk>
+CONFLICTS= freetds-0.64.[0-9]
+
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
@@ -83,6 +79,8 @@
TDS_VER= 7.2
.endif
+.include <bsd.port.pre.mk>
+
post-extract:
@cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.dist
@cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.dist
@@ -109,4 +107,4 @@
@${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}/etc"
@${ECHO_CMD} "You should edit them and remove the .dist-suffix from their names"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list