pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/boost-libs devel/boost-libs: Enable stacktrace_b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/943a3c77a6ae
branches:  trunk
changeset: 373075:943a3c77a6ae
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Dec 28 02:18:42 2017 +0000

description:
devel/boost-libs: Enable stacktrace_backtrace on Debian only

This fixes the build failure on non-Debin Linux systems without
libbacktrace.

A general solution will be needed when the freeze is over.

diffstat:

 devel/boost-libs/Makefile    |  11 +++++++++--
 devel/boost-libs/PLIST.Linux |   8 ++++----
 2 files changed, 13 insertions(+), 6 deletions(-)

diffs (44 lines):

diff -r 4d41eeadb89a -r 943a3c77a6ae devel/boost-libs/Makefile
--- a/devel/boost-libs/Makefile Wed Dec 27 23:44:47 2017 +0000
+++ b/devel/boost-libs/Makefile Thu Dec 28 02:18:42 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2017/12/20 17:28:25 minskim Exp $
+# $NetBSD: Makefile,v 1.61 2017/12/28 02:18:42 minskim Exp $
 
 BOOST_PACKAGE=         libs
 BOOST_COMMENT=         (binary libraries)
@@ -11,7 +11,7 @@
 INSTALLATION_DIRS+=    lib
 
 BJAM_ARGS+=            --without-python
-PLIST_VARS+=           context fiber log
+PLIST_VARS+=           backtrace context fiber log
 
 .if ${OPSYS} == "NetBSD" && ((${MACHINE_ARCH} == "i386") || (!empty(MACHINE_ARCH:Mearm*) && !empty(PKGSRC_COMPILER:Mgcc)))
 BJAM_ARGS+=            pch=off
@@ -32,6 +32,13 @@
 PLIST.log=             yes
 .endif
 
+# libboost_stacktrace_backtrace requires libbacktrace.
+# FIXME: The condition needs to be refined for non-Debian/Ubuntu
+# platforms shipped with libbacktrace.
+.if ${OPSYS} == "Linux" && exists(/etc/debian_version)
+PLIST.backtrace=       yes
+.endif
+
 # XXX boost1.64 fiber not building even on netbsd7.99 + gcc5.4
 # fiber requires context, so also disable it where context cannot be built
 # Additionally fiber checks std::timed_mutex.
diff -r 4d41eeadb89a -r 943a3c77a6ae devel/boost-libs/PLIST.Linux
--- a/devel/boost-libs/PLIST.Linux      Wed Dec 27 23:44:47 2017 +0000
+++ b/devel/boost-libs/PLIST.Linux      Thu Dec 28 02:18:42 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.Linux,v 1.4 2017/12/20 17:28:25 minskim Exp $
-lib/libboost_stacktrace_backtrace.a
-lib/libboost_stacktrace_backtrace.so
-lib/libboost_stacktrace_backtrace.so.${BOOST_VERSION}
+@comment $NetBSD: PLIST.Linux,v 1.5 2017/12/28 02:18:42 minskim Exp $
+${PLIST.backtrace}lib/libboost_stacktrace_backtrace.a
+${PLIST.backtrace}lib/libboost_stacktrace_backtrace.so
+${PLIST.backtrace}lib/libboost_stacktrace_backtrace.so.${BOOST_VERSION}



Home | Main Index | Thread Index | Old Index