Opened 11 years ago

Closed 11 years ago

#43338 closed update (fixed)

Update mongodb to 2.6.0

Reported by: tspindler@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: hapaguy (Brian Kurt Fujikawa)
Port: mongodb

Description

mongodb 2.6 was released on April 8: http://docs.mongodb.org/master/release-notes/2.6/

Attachments (1)

Portfile.diff (2.7 KB) - added by tspindler@… 11 years ago.
Portfile diff for 2.6.0

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…
Port: mongodb added; ryandesign@macports.org removed
Version: 2.2.1

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Status: newassigned

I started work on this a couple days ago but as with every version they've changed their configuration script and I need to figure out how to update our patch properly.

Changed 11 years ago by tspindler@…

Attachment: Portfile.diff added

Portfile diff for 2.6.0

comment:3 Changed 11 years ago by tspindler@…

I've attached a diff that builds 2.6.0 without any further patches. As I've never built mongodb before and also have no experience with Portfiles, handle with care.

Changes were: o removed all patch file directives o changed version to 2.6.0 o changed checksums o added --prefix=/opt/local to build.args o removed use of system wide libs boost, pcre and snappy, as they were not found by scons

Version 0, edited 11 years ago by tspindler@… (next)

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Thank you, but I want to continue using MacPorts libraries as much as possible, not the bundled ones. In particular, I want to continue using MacPorts boost, so as not to reintroduce the problems we faced when using the bundled boost last time (last year); see #38334 wherein those problems are described. I agree that most of the patchfiles are no longer necessary with 2.6.0, however one of them is what made scons able to find the MacPorts libraries; it's that patch that I need to scrutinize to see how to adapt it to the 2.6.0 SConscript.

comment:5 Changed 11 years ago by hapaguy (Brian Kurt Fujikawa)

Cc: brian.fujikawa@… added

Cc Me!

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

I've read through all the differences in the SConscript. Turns out the SConscript gained flags --cpppath and --libpath at some point, which we can use instead of patching the SConscript and setting CPPFLAGS and LDFLAGS in the build environment.

Additionally, the SConscript sets --macosx-version-min=10.6 by default, which makes it build with libstdc++, which then fails on Mavericks when trying to link with MacPorts boost, which was built with libc++ (wiki:FAQ#libcpp). The solution to that was to add the flag --osx-version-min=${macosx_deployment_target}.

Updated the port in r119143.

Note: See TracTickets for help on using tickets.