summaryrefslogtreecommitdiff
path: root/databases/freetds
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-07 16:02:21 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-07 16:02:21 +0000
commitd8c603407dde4225e271ce9597ccd6cd1405b2e7 (patch)
tree664cd9e2a5f03901e4cdcbbb5d24b1b6f68b5525 /databases/freetds
parenta3bd8eba233a0aff15a17db8ba8b9c9e897d5d23 (diff)
downloadpkgsrc-d8c603407dde4225e271ce9597ccd6cd1405b2e7.tar.gz
At least some places use tds functions from the libraries and the
visibility default is messed up, so make them all visible for now. This also fixes the compilation on AMD64 as it doesn't allow text relocations. Bump revision.
Diffstat (limited to 'databases/freetds')
-rw-r--r--databases/freetds/Makefile3
-rw-r--r--databases/freetds/distinfo3
-rw-r--r--databases/freetds/patches/patch-aa24
3 files changed, 28 insertions, 2 deletions
diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile
index 9e10c16cba0..1e1da6f877c 100644
--- a/databases/freetds/Makefile
+++ b/databases/freetds/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2008/05/08 13:28:39 jlam Exp $
+# $NetBSD: Makefile,v 1.37 2008/06/07 16:02:21 joerg Exp $
DISTNAME= freetds-0.82
+PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/ \
ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/old/ \
diff --git a/databases/freetds/distinfo b/databases/freetds/distinfo
index 80444557f30..22e18eaa2e4 100644
--- a/databases/freetds/distinfo
+++ b/databases/freetds/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.16 2008/05/08 13:28:39 jlam Exp $
+$NetBSD: distinfo,v 1.17 2008/06/07 16:02:21 joerg Exp $
SHA1 (freetds-0.82.tar.gz) = 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d
RMD160 (freetds-0.82.tar.gz) = d3596c512022332cdb3bab375950159f1e930a4b
Size (freetds-0.82.tar.gz) = 1596755 bytes
+SHA1 (patch-aa) = 78a8ecc52d61a38ec8950aaca3a52fb5f3969500
diff --git a/databases/freetds/patches/patch-aa b/databases/freetds/patches/patch-aa
new file mode 100644
index 00000000000..8d555b0a97c
--- /dev/null
+++ b/databases/freetds/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.7 2008/06/07 16:02:21 joerg Exp $
+
+--- include/tds.h.orig 2008-06-07 17:28:34.000000000 +0200
++++ include/tds.h
+@@ -36,6 +36,10 @@ typedef struct tds_socket TDSSOCKET;
+ #include "tds_sysdep_private.h"
+ #endif /* _FREETDS_LIBRARY_SOURCE */
+
++#if defined(__GNUC__) && __GNUC__ >= 4
++#pragma GCC visibility push(default)
++#endif
++
+ #ifdef __cplusplus
+ extern "C"
+ {
+@@ -1606,4 +1610,8 @@ TDSAUTHENTICATION * tds_gss_get_auth(TDS
+ }
+ #endif
+
++#if defined(__GNUC__) && __GNUC__ >= 4
++#pragma GCC visibility pop
++#endif
++
+ #endif /* _tds_h_ */