[MacPorts] #49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant
#49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant ----------------------------+-------------------------------- Reporter: julien.pilet@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: mongo-cxx-driver ----------------------------+-------------------------------- C++11 ABI changed. If mongo-cxx-driver is to be linked with c++11 code, it needs to be compiled with --c++=on. see https://jira.mongodb.org/browse/CXX-558 This change adds a cxx11 variant to enable the --c++11=on compile flag. -- Ticket URL: <https://trac.macports.org/ticket/49033> MacPorts <https://www.macports.org/> Ports system for OS X
#49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant -------------------------------+-------------------------------- Reporter: julien.pilet@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: mongo-cxx-driver | -------------------------------+-------------------------------- Comment (by julien.pilet@…): Actually my patch does not work, and I do not know why. When I add --c++11=on to the list of build args, it works. With build.args-append and port install mongo-cxx-driver +cxx11, it does not. Is my syntax correct? -- Ticket URL: <https://trac.macports.org/ticket/49033#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant -------------------------------+-------------------------- Reporter: julien.pilet@… | Owner: ryandesign@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: mongo-cxx-driver | -------------------------------+-------------------------- Changes (by mf2k@…): * owner: macports-tickets@… => ryandesign@… * cc: ryandesign, openmaintainer (removed) * version: 2.3.3 => Comment: Trac requires complete email addresses. Please do not Cc openmaintainer@macports.org because it is [wiki:MacPortsDevelopers#special not a valid email address]. -- Ticket URL: <https://trac.macports.org/ticket/49033#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant -------------------------------+-------------------------- Reporter: julien.pilet@… | Owner: ryandesign@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: mongo-cxx-driver | -------------------------------+-------------------------- Comment (by ryandesign@…): The variant description is much too verbose. There is no reason to increase the port's revision. You syntax is correct, but in its present form the port is not designed to accommodate variants changing the build args. Note that the destroot.args get set to the build.args; that happens before variants are evaluated. If I understand you correctly, some software would require mongo-cxx- driver compiled without C++11 support, and some software would require mongo-cxx-driver compiled with C++11 support. Is that correct? If so, it might be better to have a new subport for mongo-cxx-driver–with–C++11, and ideally, the developers of mongo-cxx-driver would have their software install both, so that the consumer of the library can choose which one to use. -- Ticket URL: <https://trac.macports.org/ticket/49033#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49033: mongo-cxx-driver @1.0.5 Add a cxx11 variant -------------------------------+-------------------------- Reporter: julien.pilet@… | Owner: ryandesign@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: mongo-cxx-driver | -------------------------------+-------------------------- Comment (by julien.pilet@…): When I develop, I use C++11, so I need to compile with --c++11=on. You are correct. I guess the point of a subport is to have the possibility of having both versions installed at the same time? I do not know how to do that properly. I know that the mongo-cxx-driver developers are working on a new version (see https://github.com/mongodb/mongo-cxx-driver#repository-overview). The new version will have c++11 anyway. -- Ticket URL: <https://trac.macports.org/ticket/49033#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts