From owner-svn-ports-all@freebsd.org Wed Jan 20 10:30:05 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFF25A8954A; Wed, 20 Jan 2016 10:30:05 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96A6E1C4D; Wed, 20 Jan 2016 10:30:05 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0KAU4uc098301; Wed, 20 Jan 2016 10:30:04 GMT (envelope-from olgeni@FreeBSD.org) Received: (from olgeni@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0KAU4GY098299; Wed, 20 Jan 2016 10:30:04 GMT (envelope-from olgeni@FreeBSD.org) Message-Id: <201601201030.u0KAU4GY098299@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olgeni set sender to olgeni@FreeBSD.org using -f From: Jimmy Olgeni Date: Wed, 20 Jan 2016 10:30:04 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2016 10:30:06 -0000 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