> From: Christian Weisgerber <na...@mips.inka.de> > Date: Wed, Dec 10, 2014 at 4:18 PM > Subject: Re: i386 build failures: claws-mail [encrypt()], emacs21, > mongodb, firefox/seamonkey > To: ports@openbsd.org > > > On 2014-12-10, Stuart Henderson <st...@openbsd.org> wrote: > > >>mail/claws-mail > > > > configure: error: 'encrypt'-function not found. > > encrypt() has been removed from libc. > > >>databases/mongodb > > > > scons: *** > > [build/openbsd5/use-system-boost/use-system-pcre/use-system-v8/usev8/mongo/util/options_parser/options_parser.o] > > /usr/local/include/yaml-cpp/emitter.h: No such file or directory > > That happens all the time. Presumably some interaction with > devel/yaml-cpp.
What about the following diff? Index: Makefile =================================================================== RCS file: /cvs/ports/databases/mongodb/Makefile,v retrieving revision 1.16 diff -u -p -u -p -r1.16 Makefile --- Makefile 22 Oct 2014 20:11:27 -0000 1.16 +++ Makefile 10 Dec 2014 16:03:28 -0000 @@ -9,7 +9,7 @@ COMMENT = scalable, high-performance doc DISTNAME = mongodb-src-r2.6.4 PKGNAME = ${DISTNAME:S/src-r//} - +REVISION = 0 CATEGORIES = databases HOMEPAGE = http://www.mongodb.org/ @@ -19,7 +19,7 @@ PERMIT_PACKAGE_CDROM = Yes WANTLIB = boost_filesystem-mt boost_program_options-mt boost_system-mt \ boost_thread-mt c execinfo m pcap pcre pcrecpp pthread \ - stdc++ v8 + stdc++ v8 yaml-cpp MASTER_SITES = http://downloads.mongodb.org/src/ @@ -32,7 +32,8 @@ MODSCONS_FLAGS = --prefix="${PREFIX}" \ --full \ --use-system-pcre \ --use-system-boost \ - --use-system-v8 + --use-system-v8 \ + --use-system-yaml MAKE_ENV += HOME="${HOME}" \ TERM="${TERM}" \ @@ -41,6 +42,7 @@ MAKE_ENV += HOME="${HOME}" \ LIB_DEPENDS = devel/boost \ devel/libexecinfo \ devel/pcre \ + devel/yaml-cpp \ lang/libv8 pre-configure: Index: patches/patch-SConstruct =================================================================== RCS file: /cvs/ports/databases/mongodb/patches/patch-SConstruct,v retrieving revision 1.4 diff -u -p -u -p -r1.4 patch-SConstruct --- patches/patch-SConstruct 16 Sep 2014 17:28:07 -0000 1.4 +++ patches/patch-SConstruct 10 Dec 2014 16:03:28 -0000 @@ -1,6 +1,10 @@ $OpenBSD: patch-SConstruct,v 1.4 2014/09/16 17:28:07 jasper Exp $ ---- SConstruct.orig Fri Aug 8 22:13:51 2014 -+++ SConstruct Tue Sep 16 16:08:02 2014 + +Fixup detection of yaml-cpp system library +https://github.com/mongodb/mongo/commit/44b0e3591839525a0c951319540488814e5c25fd + +--- SConstruct.orig Fri Aug 8 15:13:51 2014 ++++ SConstruct Wed Dec 10 09:28:50 2014 @@ -814,7 +814,6 @@ if nix: # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. env.Append( CCFLAGS=["-fPIC", @@ -33,3 +37,12 @@ $OpenBSD: patch-SConstruct,v 1.4 2014/09 env.Append( LINKFLAGS=["-fstack-protector"] ) env.Append( SHLINKFLAGS=["-fstack-protector"] ) env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind +@@ -1352,7 +1347,7 @@ def doConfigure(myenv): + conf.FindSysLibDep("stemmer", ["stemmer"]) + + if use_system_version_of_library("yaml"): +- conf.FindSysLibDep("yaml", ["yaml"]) ++ conf.FindSysLibDep("yaml", ["yaml-cpp"]) + + if use_system_version_of_library("boost"): + if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ):