summaryrefslogtreecommitdiff
path: root/security/heimdal/patches
diff options
context:
space:
mode:
authormarkd <markd>2004-02-22 11:59:50 +0000
committermarkd <markd>2004-02-22 11:59:50 +0000
commit72c93a41797476e3ab7fe9bbee002638ab3cd214 (patch)
tree5eb3a0527a519af4e8d0719fa8536a99c06faf07 /security/heimdal/patches
parenta8f678e2596b6dd6b4f2645f898c924e80610a09 (diff)
downloadpkgsrc-72c93a41797476e3ab7fe9bbee002638ab3cd214.tar.gz
configure looks for and finds -ltermcap too late in the process for it to
be linked in when testing -lreadline usability so that test fails on Solaris - so pass that lib into configure at the start via the environment. Also allow optional use of db4 rather that db.
Diffstat (limited to 'security/heimdal/patches')
-rw-r--r--security/heimdal/patches/patch-af37
-rw-r--r--security/heimdal/patches/patch-ag16
2 files changed, 53 insertions, 0 deletions
diff --git a/security/heimdal/patches/patch-af b/security/heimdal/patches/patch-af
new file mode 100644
index 00000000000..0746db4c673
--- /dev/null
+++ b/security/heimdal/patches/patch-af
@@ -0,0 +1,37 @@
+$NetBSD: patch-af,v 1.1 2004/02/22 11:59:50 markd Exp $
+
+--- lib/hdb/db3.c.orig 2001-08-09 20:41:48.000000000 +1200
++++ lib/hdb/db3.c
+@@ -37,7 +37,13 @@ RCSID("$Id: db3.c,v 1.8 2001/08/09 08:41
+
+ #if HAVE_DB3
+
++#if defined(HAVE_DB4_DB_H)
++#include <db4/db.h>
++#elif defined(HAVE_DB3_DB_H)
++#include <db3/db.h>
++#else
+ #include <db.h>
++#endif
+
+ static krb5_error_code
+ DB_close(krb5_context context, HDB *db)
+@@ -262,10 +268,18 @@ DB_open(krb5_context context, HDB *db, i
+ }
+ db_create(&d, NULL, 0);
+ db->db = d;
++#if defined(HAVE_DB4_DB_H)
++ if ((ret = d->open(db->db, NULL, fn, NULL, DB_BTREE, myflags, mode))) {
++#else
+ if ((ret = d->open(db->db, fn, NULL, DB_BTREE, myflags, mode))) {
++#endif
+ if(ret == ENOENT)
+ /* try to open without .db extension */
++#if defined(HAVE_DB4_DB_H)
++ if (d->open(db->db, NULL, db->name, NULL, DB_BTREE, myflags, mode)) {
++#else
+ if (d->open(db->db, db->name, NULL, DB_BTREE, myflags, mode)) {
++#endif
+ free(fn);
+ krb5_set_error_string(context, "opening %s: %s",
+ db->name, strerror(ret));
diff --git a/security/heimdal/patches/patch-ag b/security/heimdal/patches/patch-ag
new file mode 100644
index 00000000000..a7f0b6e5b28
--- /dev/null
+++ b/security/heimdal/patches/patch-ag
@@ -0,0 +1,16 @@
+$NetBSD: patch-ag,v 1.1 2004/02/22 11:59:50 markd Exp $
+
+--- lib/roken/ndbm_wrap.c.orig 2002-05-01 04:37:08.000000000 +1200
++++ lib/roken/ndbm_wrap.c
+@@ -165,7 +165,11 @@ dbm_open (const char *file, int flags, m
+ free(fn);
+ return NULL;
+ }
++#if defined(HAVE_DB4_DB_H)
++ if(db->open(db, NULL, fn, NULL, DB_BTREE, myflags, mode) != 0) {
++#else
+ if(db->open(db, fn, NULL, DB_BTREE, myflags, mode) != 0) {
++#endif
+ free(fn);
+ db->close(db, 0);
+ return NULL;