[CXX-648] legacy 2.6.10 build fails on OS X 10.11 El Capitan Created: 09/Aug/15  Updated: 06/Dec/16  Resolved: 18/Aug/15

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: legacy-0.0-26compat-2.6.9, legacy-0.0-26compat-2.6.10
Fix Version/s: legacy-0.0-26compat-2.6.12

Type: Bug Priority: Major - P3
Reporter: Andrew Janke Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I attempted to build and install the 2.6.10 "2.6 compatible" driver using Mac Homebrew (formula "libmongoclient") on an OS X 10.11 El Capitan Public Beta 4 machine. It errored out early in the build process, complaining that 10.11 wasn't a valid OS X version.

taran-elcap% scons --osx-version-min=10.11
scons: Reading SConscript files ...
usage: scons [OPTION] [TARGET] ...
 
SCons Error: option --osx-version-min: invalid choice: '10.11' (choose from '10.6', '10.7', '10.8', '10.9', '10.10')

Looks like the SConstruct file has a list of versions that stops at 10.10. Lines 302-305 from the 2.6.9 release:

if darwin:
    osx_version_choices = ['10.6', '10.7', '10.8', '10.9', '10.10']
    add_option("osx-version-min", "minimum OS X version to support", 1, True,
               type = 'choice', default = osx_version_choices[0], choices = osx_version_choices)



 Comments   
Comment by Andrew Morrow (Inactive) [ 12/Oct/15 ]

alex.naish@sky.uk - We have not yet issued a release that contains this fix. We are waiting on the upstream server 2.6.12 release from which the 26compat releases are derived. When server 2.6.12 ships, we will issue the 26compat release that contains this fix.

Comment by Alex Naish [ 12/Oct/15 ]

Hi Andrew,

This bug is also blocking me. I'm currently on an El Capitan machine but I'm not sure how to use the fix you provided. In the past I've just done:

 
brew install homebrew/versions/mongodb26

but I can see that as part of the installation process it downloads "scons-2.4.0.el_capitan.bottle.tar.gz". How would I change this to reference your PR?

Comment by Githook User [ 18/Aug/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-648 Add support for targeting OS X El Capitan
Branch: 26compat
https://github.com/mongodb/mongo-cxx-driver/commit/3fe513953b6a0893b6e861f3c348a1d8efdd06ad

Comment by Andrew Morrow (Inactive) [ 11/Aug/15 ]

apjanke - I don't happen to have an El Capitan machine handy to test. Could you try out the PR above and let me know if it resolves this issue for you?

Comment by Andrew Morrow (Inactive) [ 11/Aug/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/306

Comment by Andrew Morrow (Inactive) [ 09/Aug/15 ]

Hi apjanke - Thanks for the bug report. We should be rolling the 26compat 2.6.11 release next week, and we will incorporate the necessary fix. If you feel like sending us the (obvious) PR, we will be happy to take your commit.

Generated at Wed Feb 07 21:59:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.