[MacPorts] #49711: [cpp-netlib][0.11.2][new port]

MacPorts noreply at macports.org
Mon Dec 14 09:52:42 PST 2015


#49711: [cpp-netlib][0.11.2][new port]
-------------------------+--------------------------------
  Reporter:  nikkoara@…  |      Owner:  macports-tickets@…
      Type:  submission  |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  cpp-netlib  |
-------------------------+--------------------------------

Comment (by nikkoara@…):

 Replying to [comment:11 raimue@…]:
 > I tried to build the default, which is `+shared`. I should not need
 static boost libraries for this. However, looking at the `+shared`
 variant, I noticed it is not actually doing anything:
 >
 > {{{
 > variant shared description {Build shared libraries} {
 >     configure.args-replace -DBUILD_SHARED_LIBS:BOOL=OFF
 -DBUILD_SHARED_LIBS:BOOL=ON
 > }
 > }}}
 >
 > The cmake port group provides a list of default options in
 `configure.args`. The one listed here is not in this list, so the
 `-replace` finds nothing to replace. Probably you meant to use `-append`
 with the second argument only? This works for me:
 >
 > {{{
 > variant shared description {Build shared libraries} {
 >     configure.args-append -DBUILD_SHARED_LIBS:BOOL=ON
 > }
 > }}}
 >
 > I did not test the `+static` variant, as I would have to recompile boost
 `-no_static` to test it.

 Aha.

 I went back to testing it against Boost variants. I see now that the
 failure you noticed occurs in the scenario where Boost is installed with
 defaults (i.e., +no_static) which does not build but a handful of static
 libraries; in turn, cpp-netlib Portfile configure.args-replace does indeed
 nothing because the arg is not among the defaults. Will correct it
 shortly.


 >
 > I would recommend to also add `-DCPP-NETLIB_BUILD_EXAMPLES:BOOL=OFF` to
 avoid wasting CPU time to build examples which will not be installed at
 all. I am unsure if the same is true for `-DCPP-
 NETLIB_BUILD_TESTS:BOOL=OFF` and `-DCPP-
 NETLIB_BUILD_EXPERIMENTS:BOOL=OFF`, since they could be used for `port
 test`, but I did not try.

 I will add them all. Thanks!

-- 
Ticket URL: <https://trac.macports.org/ticket/49711#comment:12>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list