pkgsrc-Users archive

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

Re: CVS commit: pkgsrc/mail/sendmail databases/db4



Hello, the following change broke our installation as mailertables and such give now "class hash not available" upon sendmail startup.

Le 28/12/12 06:27, John Nemeth a écrit :
Module Name:    pkgsrc
Committed By:   jnemeth
Date:           Fri Dec 28 05:27:06 UTC 2012

Modified Files:
        pkgsrc/mail/sendmail: options.mk

Log Message:
sendmail is incompatible with current versions of databases/db4
as the latter is now threaded, so delete the option


Apparently the reason for this and it seems the problem is in db4.8.

Well, perhaps if db4 is specified as before, fallback to db46 which is in pkgsrc. I just tried quickly and the following seems to work okay
until upstream makes the appropriate fix:

diff -u -r1.19 options.mk
--- options.mk  28 Dec 2012 05:27:06 -0000      1.19
+++ options.mk  11 Jan 2013 09:17:23 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.19 2012/12/28 05:27:06 jnemeth Exp $

 PKG_OPTIONS_VAR=       PKG_OPTIONS.sendmail
-PKG_SUPPORTED_OPTIONS= inet6 db2 ldap sasl tls tcpwrappers
+PKG_SUPPORTED_OPTIONS= inet6 db2 db4 ldap sasl tls tcpwrappers
 PKG_SUGGESTED_OPTIONS= inet6 tcpwrappers

 PKG_OPTIONS_LEGACY_OPTS+=      starttls:tls
@@ -9,10 +9,12 @@
 .include "../../mk/bsd.options.mk"

 ###
-### Berkeley DB version 2 format for on disk databases e.g. aliases
+### Berkeley DB version 2/4 format for on disk databases e.g. aliases
 ###
 .if !empty(PKG_OPTIONS:Mdb2)
 .  include "../../databases/db/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mdb4)
+.  include "../../databases/db46/buildlink3.mk"
 .endif

 ###
Index: files/site.config.m4-db4
===================================================================
RCS file: /cvsroot/pkgsrc/mail/sendmail/files/site.config.m4-db4,v
retrieving revision 1.2
diff -u -r1.2 site.config.m4-db4
--- files/site.config.m4-db4    30 Aug 2004 20:16:28 -0000      1.2
+++ files/site.config.m4-db4    11 Jan 2013 09:17:23 -0000
@@ -1,5 +1,5 @@
 # $NetBSD: site.config.m4-db4,v 1.2 2004/08/30 20:16:28 adrianp Exp $

 # enable db4
-APPENDDEF(`confENVDEF', `-DNEWDB -I${BUILDLINK_DIR}/include/db4')
-APPENDDEF(`confLIBS', `-ldb4')
+APPENDDEF(`confENVDEF', `-DNEWDB -I${BUILDLINK_DIR}/include/db46')
+APPENDDEF(`confLIBS', `-ldb46')




Home | Main Index | Thread Index | Old Index