Date: Wed, 20 Jan 2016 10:30:04 +0000 (UTC) From: Jimmy Olgeni <olgeni@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r406740 - in head/lang: erlang erlang-runtime18 Message-ID: <201601201030.u0KAU4GY098299@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: olgeni Date: Wed Jan 20 10:30:04 2016 New Revision: 406740 URL: https://svnweb.freebsd.org/changeset/ports/406740 Log: Improve the DTrace build for Erlang 18. With a couple of changes it seems to work just fine when building as a user, and also inside poudriere jails. If you want to build in poudriere, you must: - Have dtraceall.ko loaded. - Have a kernel inside the jail (i.e. create the poudriere jail with -K). Modified: head/lang/erlang-runtime18/Makefile head/lang/erlang/Makefile Modified: head/lang/erlang-runtime18/Makefile ============================================================================== --- head/lang/erlang-runtime18/Makefile Wed Jan 20 10:05:53 2016 (r406739) +++ head/lang/erlang-runtime18/Makefile Wed Jan 20 10:30:04 2016 (r406740) @@ -59,10 +59,6 @@ LDFLAGS+= -L${LOCALBASE}/lib DISTFILES+= ${ERLANG_DOCS}:erlangorg .endif -# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace -# on your system. You will need to configure STRIP, WITH_CTF and -# CFLAGS in your make.conf before building. - # If you run Erlang and get a message resembling "WARNING: number of # probes fixed does not match the number of defined probes (54 != 132, # respectively)" you probably misconfigured DTrace in some way. @@ -79,6 +75,8 @@ USE_GCC?= yes .if ${PORT_OPTIONS:MDTRACE} CONFIGURE_ARGS+=--with-dynamic-trace=dtrace +CFLAGS+= -fno-omit-frame-pointer +STRIP= .else CONFIGURE_ARGS+=--without-dynamic-trace .endif Modified: head/lang/erlang/Makefile ============================================================================== --- head/lang/erlang/Makefile Wed Jan 20 10:05:53 2016 (r406739) +++ head/lang/erlang/Makefile Wed Jan 20 10:30:04 2016 (r406740) @@ -76,10 +76,6 @@ DOC_DISTFILES= armstrong_thesis_2003.pdf programming_rules.pdf:erlangse .endif -# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace -# on your system. You will need to configure STRIP, WITH_CTF and -# CFLAGS in your make.conf before building. - # If you run Erlang and get a message resembling "WARNING: number of # probes fixed does not match the number of defined probes (54 != 132, # respectively)" you probably misconfigured DTrace in some way. @@ -96,6 +92,8 @@ USE_GCC?= yes .if ${PORT_OPTIONS:MDTRACE} CONFIGURE_ARGS+=--with-dynamic-trace=dtrace +CFLAGS+= -fno-omit-frame-pointer +STRIP= .else CONFIGURE_ARGS+=--without-dynamic-trace .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601201030.u0KAU4GY098299>