ros / homebrew-hydro

Hydro packages and dependencies repository for Homebrew
2 stars 7 forks source link

mongodb-dev does not build on OS X Mavericks #12

Closed NikolausDemmel closed 10 years ago

NikolausDemmel commented 10 years ago

I guess this is a clang issue. I haven't investigated. https://gist.github.com/NikolausDemmel/7929549

So mongodb-dev from ros/homebrew-hydro seems outdated anyways. It is version 2.4.4, while the default mongodb formula compiles and is more recent (2.4.8). Doesn't that make mongodb-dev obsolete for ROS? Maybe we could just point rosdep to mongodb instead of mongodb-dev?

$ brew info mongodb
mongodb: stable 2.4.8 (bottled), devel 2.5.4, HEAD
http://www.mongodb.org/
/usr/local/Cellar/mongodb/2.4.8 (18 files, 271M) *
  Poured from bottle
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/mongodb.rb
==> Dependencies
Build: scons ✔
Optional: openssl ✔
==> Options
--with-openssl
    Build with openssl support
==> Caveats
To have launchd start mongodb at login:
    ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
    mongod
wjwwood commented 10 years ago

I made this mongodb-dev formula because the mongodb formula in Homebrew does not install headers needed for development, it in fact just downloads and extracts the release version I think.

NikolausDemmel commented 10 years ago

Ah ok I see. Somehow I mistook -dev for the devel verions of the source, but this is about installing development files.

Is upgrading to a more recent version an option? Apparently proper support for 10.9 has only be working recently (version 2.5), see https://jira.mongodb.org/browse/SERVER-8676. I'm not sure about backwards compatibility.

wjwwood commented 10 years ago

I'm not sure, this formula was added for moveit packages I believe, can you say what you are using it for?

NikolausDemmel commented 10 years ago

Building moveit on Mavericks ;-)

wjwwood commented 10 years ago

Well if you can build the moveit_warehouse or whatever it is that depends on mongodb-dev with the newer version then I think we can safely upgrade the formula.

NikolausDemmel commented 10 years ago

Ok I will report back on that.

NikolausDemmel commented 10 years ago

This packge is conflicting with mongodb from homebrew, as they attempt to install the same binaries. Should we mark it as conflicting, or maybe even just combine the two packages, maybe adding an option to mongodb to install the headers as well (or even install them by default)?

NikolausDemmel commented 10 years ago

Mongdb 2.5.4 (unstable release) builds over here and warehose_ros with that, too. 2.4.8 (stable release) does not work with libc++ so I think we wont be able to make the stable release work on 10.9. I advocate moving to 2.5.4 until the next mongodb (2.6) is out. I will do a pull request soon together with a host of other fixes for ros packages on 10.9.