ports/138435: [patch] databases/freetds gnutls linking error
Chris Cowart
ccowart at rescomp.berkeley.edu
Tue Sep 1 06:00:16 UTC 2009
>Number: 138435
>Category: ports
>Synopsis: [patch] databases/freetds gnutls linking error
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 01 06:00:15 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Chris Cowart
>Release: 7.1
>Organization:
UC Berkeley
>Environment:
FreeBSD new-mug.rescomp.berkeley.edu 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #0: Sun Aug 30 03:59:32 PDT 2009 root at mug.rescomp.berkeley.edu:/usr/obj/usr/src/sys/RCBSD_REL7 amd64
>Description:
The configure script for freetds relies on libgnutls-config, which does
not exist (as witnessed with a gnutls-2.8.3 installation). As such, the
CFLAGS and LDFLAGS are not being properly set and the port is erroring
out with unresolved libraries. The enclosed patch fixes the configure
script to use pkg-config with a gnutls argument, properly making use
of the installed gnutls.pc files.
>How-To-Repeat:
Try to portinstall freetds with GNUTLS support.
>Fix:
Attached.
Patch attached with submission follows:
diff -Nrub /home/ccowart/freetds/Makefile freetds/Makefile
--- /home/ccowart/freetds/Makefile 2009-08-31 22:49:14.000000000 -0700
+++ freetds/Makefile 2009-08-31 22:50:48.000000000 -0700
@@ -6,7 +6,7 @@
PORTNAME= freetds
PORTVERSION= 0.64
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SUNSITE}
diff -Nrub /home/ccowart/freetds/files/patch-configure freetds/files/patch-configure
--- /home/ccowart/freetds/files/patch-configure 1969-12-31 16:00:00.000000000 -0800
+++ freetds/files/patch-configure 2009-08-31 22:50:38.000000000 -0700
@@ -0,0 +1,14 @@
+diff -rub work/freetds-0.64/configure /tmp/freetds-0.64/configure
+--- configure 2006-07-01 08:10:31.000000000 -0700
++++ configure 2009-08-31 22:42:17.000000000 -0700
+@@ -20088,8 +20088,8 @@
+ #define HAVE_GNUTLS 1
+ _ACEOF
+
+- CPPFLAGS="$CPPFLAGS `libgnutls-config --cflags`"
+- NETWORK_LIBS="$NETWORK_LIBS `libgnutls-config --libs`"
++ CPPFLAGS="$CPPFLAGS `pkg-config --cflags gnutls`"
++ NETWORK_LIBS="$NETWORK_LIBS `pkg-config --libs gnutls`"
+ else
+ echo "$as_me:$LINENO: checking if openssl is wanted" >&5
+ echo $ECHO_N "checking if openssl is wanted... $ECHO_C" >&6
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list