pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/heimdal configure looks for and finds -ltermc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b07460507e76
branches:  trunk
changeset: 469340:b07460507e76
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Feb 22 11:59:50 2004 +0000

description:
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:

 security/heimdal/Makefile         |   8 +++++++-
 security/heimdal/distinfo         |   4 +++-
 security/heimdal/patches/patch-af |  37 +++++++++++++++++++++++++++++++++++++
 security/heimdal/patches/patch-ag |  16 ++++++++++++++++
 4 files changed, 63 insertions(+), 2 deletions(-)

diffs (101 lines):

diff -r 67fad5414740 -r b07460507e76 security/heimdal/Makefile
--- a/security/heimdal/Makefile Sun Feb 22 11:15:21 2004 +0000
+++ b/security/heimdal/Makefile Sun Feb 22 11:59:50 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/02/14 17:21:52 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2004/02/22 11:59:50 markd Exp $
 
 DISTNAME=              heimdal-0.6
 CATEGORIES=            security
@@ -32,9 +32,15 @@
 BUILDLINK_INCDIRS.readline=    include/readline
 .include "../../devel/readline/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-readline=${BUILDLINK_PREFIX.readline}
+LIBS.SunOS=            -ltermcap
 
+BUILD_DEFS+=           USE_DB4
+.if defined(USE_DB4) && !empty(USE_DB4:M[yY][eE][sS])
+.include "../../databases/db4/buildlink3.mk"
+.else
 USE_DB185=             yes
 .include "../../databases/db/buildlink3.mk"
+.endif
 
 CONFIGURE_ARGS+=       --with-openssl=${SSLBASE}
 .include "../../security/openssl/buildlink3.mk"
diff -r 67fad5414740 -r b07460507e76 security/heimdal/distinfo
--- a/security/heimdal/distinfo Sun Feb 22 11:15:21 2004 +0000
+++ b/security/heimdal/distinfo Sun Feb 22 11:59:50 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2004/01/13 02:05:29 markd Exp $
+$NetBSD: distinfo,v 1.3 2004/02/22 11:59:50 markd Exp $
 
 SHA1 (heimdal-0.6.tar.gz) = 06f00ea8ec26d64729806960f2f7f66bee8275bd
 Size (heimdal-0.6.tar.gz) = 3135319 bytes
@@ -7,3 +7,5 @@
 SHA1 (patch-ac) = 121961811f559822c6a4f3d7f7e4646b16908942
 SHA1 (patch-ad) = 47b4a76c1021f2683bd7f9940df78e2b38cf5448
 SHA1 (patch-ae) = 46d5125deec8b82c821208aa0091d96f625d8e88
+SHA1 (patch-af) = 7df1c2dfd7cb69d7ec657e4be0d56a57b394e3fd
+SHA1 (patch-ag) = 80c85e544f6be3ecdd538c89e888a80e77a2a630
diff -r 67fad5414740 -r b07460507e76 security/heimdal/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/heimdal/patches/patch-af Sun Feb 22 11:59:50 2004 +0000
@@ -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 -r 67fad5414740 -r b07460507e76 security/heimdal/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/heimdal/patches/patch-ag Sun Feb 22 11:59:50 2004 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index