[139827] trunk/dports/graphics/libcdr/Portfile

devans at macports.org devans at macports.org
Fri Aug 28 15:31:48 PDT 2015


Revision: 139827
          https://trac.macports.org/changeset/139827
Author:   devans at macports.org
Date:     2015-08-28 15:31:48 -0700 (Fri, 28 Aug 2015)
Log Message:
-----------
libcdr: assert BOOST_SYSTEM_NO_DEPRECATED to fix build failure with boost 1.59.0, see comments.

Modified Paths:
--------------
    trunk/dports/graphics/libcdr/Portfile

Modified: trunk/dports/graphics/libcdr/Portfile
===================================================================
--- trunk/dports/graphics/libcdr/Portfile	2015-08-28 21:32:28 UTC (rev 139826)
+++ trunk/dports/graphics/libcdr/Portfile	2015-08-28 22:31:48 UTC (rev 139827)
@@ -43,6 +43,23 @@
 use_autoreconf  yes
 autoreconf.args -fvi
 
+# In boost 1.59.0, a number of symbols related to the Boost.System library have been renamed
+# for compatibility with the C++ committee's standard library specs.  The old symbols have been deprecated
+# and aliases to the new symbols are provided.  When boost headers are included, these aliases
+# can create dependencies on the Boost.System library even if no Boost.System symbols are actually used.
+# Typically this causes missing symbol errors during linking when LDFLAGS (legitimately) does not
+# include -lboost_system-mt.
+#
+# Asserting BOOST_SYSTEM_NO_DEPRECATED deactivates these aliases allowing this and other effected
+# ports to build as before.
+#
+# See http://www.boost.org/doc/libs/1_59_0/libs/system/doc/reference.html#Deprecated-names for details
+#
+# This workaround can be removed when the offending deprecation aliases are removed in a future
+# version of boost.
+
+configure.cppflags-append "-DBOOST_SYSTEM_NO_DEPRECATED"
+
 configure.args  --disable-werror \
                 --disable-silent-rules \
                 --without-docs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150828/b7eb1789/attachment.html>


More information about the macports-changes mailing list