summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-09-11 16:11:44 +0000
committerjperkin <jperkin@pkgsrc.org>2013-09-11 16:11:44 +0000
commita54b22fd35e23d7f27e035175134c25da62cc126 (patch)
tree33e40251f7ef249a984fd6deb6ad789b4d88361b /databases
parentd9031fbf9f290f6abbb3a6d594782b34af1b3110 (diff)
downloadpkgsrc-a54b22fd35e23d7f27e035175134c25da62cc126.tar.gz
Disable hidden symbols on SunOS, for some reason this part of the code
hides strlen(), causing linker failure later.
Diffstat (limited to 'databases')
-rw-r--r--databases/freetds/distinfo3
-rw-r--r--databases/freetds/patches/patch-include_ctlib.h24
2 files changed, 26 insertions, 1 deletions
diff --git a/databases/freetds/distinfo b/databases/freetds/distinfo
index b3808221920..556c57e5366 100644
--- a/databases/freetds/distinfo
+++ b/databases/freetds/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.19 2011/08/19 07:54:04 adam Exp $
+$NetBSD: distinfo,v 1.20 2013/09/11 16:11:44 jperkin Exp $
SHA1 (freetds-0.91.tar.gz) = 3ab06c8e208e82197dc25d09ae353d9f3be7db52
RMD160 (freetds-0.91.tar.gz) = 1d33d4c4414d0793d83c87a8224bac181528fdb0
Size (freetds-0.91.tar.gz) = 2136329 bytes
SHA1 (patch-aa) = 3c1df8f94c18b88915795a3a7596d5c282782a4a
SHA1 (patch-ac) = f5ae8f79adf5e2e227fb7b9e41334659713589ad
+SHA1 (patch-include_ctlib.h) = ed4a550228714373167b2548504003404847563f
SHA1 (patch-src_apps_Makefile.in) = 490630759ae5a4c470d5151bf22217bfa218d8d8
diff --git a/databases/freetds/patches/patch-include_ctlib.h b/databases/freetds/patches/patch-include_ctlib.h
new file mode 100644
index 00000000000..41a55bc70d5
--- /dev/null
+++ b/databases/freetds/patches/patch-include_ctlib.h
@@ -0,0 +1,24 @@
+$NetBSD: patch-include_ctlib.h,v 1.1 2013/09/11 16:11:44 jperkin Exp $
+
+Disable symbol visibility on SunOS, causes strlen() issues.
+
+--- include/ctlib.h.orig 2010-10-05 08:36:36.000000000 +0000
++++ include/ctlib.h
+@@ -24,7 +24,7 @@
+ * Internal (not part of the exposed API) prototypes and such.
+ */
+
+-#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
++#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) && !defined(__sun)
+ #pragma GCC visibility push(hidden)
+ #endif
+
+@@ -286,7 +286,7 @@ int _cs_locale_copy_inplace(CS_LOCALE *n
+ }
+ #endif
+
+-#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
++#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) && !defined(__sun)
+ #pragma GCC visibility pop
+ #endif
+