summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjoerg <joerg>2007-01-12 22:13:44 +0000
committerjoerg <joerg>2007-01-12 22:13:44 +0000
commitd9b6bf1783b77685e697b6454e4f293c5dde66b0 (patch)
tree09244e3cfdda2c8a4ce813e8f46efb7b4894618a /databases
parenta2267e52e715dfffd8daf2efd8b8742325c76a73 (diff)
downloadpkgsrc-d9b6bf1783b77685e697b6454e4f293c5dde66b0.tar.gz
Fix configure detection of libintl -- include libintl.h as the symbols
are renamed for gettext and the symbols from libc are found otherwise. Reported and tested by Gilles Dauphin.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql82/distinfo3
-rw-r--r--databases/postgresql82/patches/patch-ao44
2 files changed, 46 insertions, 1 deletions
diff --git a/databases/postgresql82/distinfo b/databases/postgresql82/distinfo
index 39e53e92e70..137075f5745 100644
--- a/databases/postgresql82/distinfo
+++ b/databases/postgresql82/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2007/01/08 18:16:09 adam Exp $
+$NetBSD: distinfo,v 1.3 2007/01/12 22:13:44 joerg Exp $
SHA1 (postgresql-8.2.1.tar.bz2) = d73b964ca068c36c9d88766d551f25e0feb8de13
RMD160 (postgresql-8.2.1.tar.bz2) = 04013d021fdb446d6b45ec2e67f1c9ba4e8eaabb
@@ -17,3 +17,4 @@ SHA1 (patch-ak) = 3009e020dc5f9397846dd3339c2bdd15269bb332
SHA1 (patch-al) = 32818ae8de92ef66d839d4891f4f686db732f7b6
SHA1 (patch-am) = 507252fc50ce59e1d6f596367f12338a8892bfd2
SHA1 (patch-an) = ca4caddde9ea68e4f8648f5abf9369e407874702
+SHA1 (patch-ao) = 0a9194847d19abfddcfd0b007defcbe5b33a40aa
diff --git a/databases/postgresql82/patches/patch-ao b/databases/postgresql82/patches/patch-ao
new file mode 100644
index 00000000000..e221a565d29
--- /dev/null
+++ b/databases/postgresql82/patches/patch-ao
@@ -0,0 +1,44 @@
+$NetBSD: patch-ao,v 1.1 2007/01/12 22:13:44 joerg Exp $
+
+--- configure.orig 2007-01-10 15:08:14.000000000 +0000
++++ configure
+@@ -21851,16 +21851,12 @@ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char gettext ();
++#include <libintl.h>
++
+ int
+ main ()
+ {
+-gettext ();
++gettext ("");
+ ;
+ return 0;
+ }
+@@ -21906,16 +21902,12 @@ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char gettext ();
++#include <libintl.h>
++
+ int
+ main ()
+ {
+-gettext ();
++gettext ("");
+ ;
+ return 0;
+ }