FreeBSD Bugzilla – Attachment 145733 Details for
Bug 192614
[patch] lang/spidermonkey* : add DTRACE option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
esr24 patch
spidermonkey24_dtrace.diff (text/plain), 7.10 KB, created by
Jan Beich
on 2014-08-12 22:57:55 UTC
(
hide
)
Description:
esr24 patch
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2014-08-12 22:57:55 UTC
Size:
7.10 KB
patch
obsolete
>Index: lang/spidermonkey24/Makefile >=================================================================== >--- lang/spidermonkey24/Makefile (revision 364706) >+++ lang/spidermonkey24/Makefile (working copy) >@@ -28,14 +28,18 @@ WRKSRC= ${WRKDIR}/mozjs-${PORTVERSION}/js/src > CONFIGURE_ARGS= --with-pthreads \ > --with-system-nspr > >-OPTIONS_DEFINE= DEBUG GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \ >+OPTIONS_DEFINE= DEBUG DTRACE GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \ > THREADSAFE TRACEJIT UTF8 \ > > OPTIONS_DEFAULT= METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT >+OPTIONS_SUB= yes > > DEBUG_DESC= Enable Debug build > DEBUG_CONFIGURE_ENABLE= debug debug-symbols > DEBUG_CONFIGURE_DISABLE=debug >+DTRACE_DESC= Build with DTrace probes # move to bsd.options.desc.mk >+DTRACE_CONFIGURE_ENABLE=dtrace profiling >+DTRACE_LIBS= -lelf > GCZEAL_DESC= Enable Zealous garbage collecting > GCZEAL_CONFIGURE_ENABLE=gczeal > JEMALLOC_DESC= Use jemalloc as memory allocator >@@ -59,6 +63,13 @@ UTF8_CFLAGS= -DJS_C_STRINGS_ARE_UTF8 > CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} > .endif > >+.if ${PORT_OPTIONS:MDTRACE} >+. if ${OSVERSION} < 1000510 >+BROKEN= dtrace -G crashes with C++ object files >+. endif >+STRIP_CMD= ${TRUE} >+.endif >+ > regression-test: build > @${ECHO_MSG} -n "===> Running jstests.py: " > @cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \ >Index: lang/spidermonkey24/files/patch-bug1041795 >=================================================================== >--- lang/spidermonkey24/files/patch-bug1041795 (revision 0) >+++ lang/spidermonkey24/files/patch-bug1041795 (working copy) >@@ -0,0 +1,35 @@ >+diff --git js/src/config/rules.mk js/src/config/rules.mk >+index 4d67eda..783942f 100644 >+--- config/rules.mk >++++ config/rules.mk >+@@ -858,7 +858,7 @@ ifdef DTRACE_PROBE_OBJ >+ ifndef DTRACE_LIB_DEPENDENT >+ NON_DTRACE_OBJS := $(filter-out $(DTRACE_PROBE_OBJ),$(OBJS)) >+ $(DTRACE_PROBE_OBJ): $(NON_DTRACE_OBJS) >+- dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS) >++ dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS) >+ endif >+ endif >+ endif >+@@ -876,7 +876,7 @@ ifndef INCREMENTAL_LINKER >+ endif >+ ifdef DTRACE_LIB_DEPENDENT >+ ifndef XP_MACOSX >+- dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS)) >++ dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS)) >+ endif >+ $(EXPAND_MKSHLIB) $(SHLIB_LDSTARTFILE) $(OBJS) $(SUB_SHLOBJS) $(DTRACE_PROBE_OBJ) $(MOZILLA_PROBE_LIBS) $(RESFILE) $(LDFLAGS) $(WRAP_LDFLAGS) $(SHARED_LIBRARY_LIBS) $(EXTRA_DSO_LDOPTS) $(MOZ_GLUE_LDFLAGS) $(OS_LIBS) $(EXTRA_LIBS) $(DEF_FILE) $(SHLIB_LDENDFILE) $(if $(LIB_IS_C_ONLY),,$(STLPORT_LIBS)) >+ @$(RM) $(DTRACE_PROBE_OBJ) >+diff --git js/src/Makefile.in js/src/Makefile.in >+index 28ca5e8..96793d7 100644 >+--- Makefile.in >++++ Makefile.in >+@@ -342,7 +342,7 @@ endif >+ >+ ifdef HAVE_DTRACE >+ $(CURDIR)/javascript-trace.h: $(srcdir)/devtools/javascript-trace.d >+- dtrace -h -s $(srcdir)/devtools/javascript-trace.d -o javascript-trace.h.in >++ dtrace -x nolibs -h -s $(srcdir)/devtools/javascript-trace.d -o javascript-trace.h.in >+ sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \ >+ -e '/const/!s/char \*/const char */g' \ >+ javascript-trace.h.in > javascript-trace.h > >Property changes on: lang/spidermonkey24/files/patch-bug1041795 >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/spidermonkey24/files/patch-bug1046224 >=================================================================== >--- lang/spidermonkey24/files/patch-bug1046224 (revision 0) >+++ lang/spidermonkey24/files/patch-bug1046224 (working copy) >@@ -0,0 +1,32 @@ >+diff --git js/src/configure js/src/configure >+index 59d69c7..779a50f 100644 >+--- configure >++++ configure >+@@ -10260,7 +10260,13 @@ cross_compiling=$ac_cv_prog_cc_cross >+ # Check whether --enable-dtrace or --disable-dtrace was given. >+ if test "${enable_dtrace+set}" = set; then >+ enableval="$enable_dtrace" >+- enable_dtrace="yes" >++ if test "$enableval" = "yes"; then >++ enable_dtrace="yes" >++ elif test "$enableval" = "no"; then >++ : >++ else >++ { echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&2; exit 1; } >++ fi >+ fi >+ >+ if test "x$enable_dtrace" = "xyes"; then >+diff --git js/src/configure.in js/src/configure.in >+index 59d69c7..779a50f 100644 >+--- configure.in >++++ configure.in >+@@ -2153,7 +2153,7 @@ dnl Quota support >+ MOZ_CHECK_HEADERS(sys/quota.h) >+ MOZ_CHECK_HEADERS(linux/quota.h) >+ >+-AC_ARG_ENABLE(dtrace, >++MOZ_ARG_ENABLE_BOOL(dtrace, >+ [ --enable-dtrace build with dtrace support if available (default=no)], >+ [enable_dtrace="yes"],) >+ if test "x$enable_dtrace" = "xyes"; then > >Property changes on: lang/spidermonkey24/files/patch-bug1046224 >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: lang/spidermonkey24/files/patch-bug702179 >=================================================================== >--- lang/spidermonkey24/files/patch-bug702179 (revision 0) >+++ lang/spidermonkey24/files/patch-bug702179 (working copy) >@@ -0,0 +1,23 @@ >+diff --git js/src/Makefile.in js/src/Makefile.in >+index e28160a..28ca5e8 100644 >+--- Makefile.in >++++ Makefile.in >+@@ -35,7 +35,6 @@ ifdef JS_SHARED_LIBRARY >+ FORCE_SHARED_LIB = 1 >+ endif >+ FORCE_STATIC_LIB = 1 >+-DIST_INSTALL = 1 >+ >+ ############################################### >+ # BEGIN include sources for low-level code shared with mfbt >+@@ -584,8 +584,8 @@ install:: $(EXPORTS_mozilla) >+ install:: $(SCRIPTS) >+ $(SYSINSTALL) $^ $(DESTDIR)$(bindir) >+ >+-install:: $(REAL_LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) >+-ifneq (,$(REAL_LIBRARY)) >++install:: $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) >++ifdef DIST_INSTALL >+ $(SYSINSTALL) $(REAL_LIBRARY) $(DESTDIR)$(libdir) >+ mv -f $(DESTDIR)$(libdir)/$(REAL_LIBRARY) $(subst $(STATIC_LIBRARY_NAME),$(LIBRARY_NAME),$(DESTDIR)$(libdir)/$(REAL_LIBRARY)) >+ endif > >Property changes on: lang/spidermonkey24/files/patch-bug702179 >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: lang/spidermonkey24/pkg-plist >=================================================================== >--- lang/spidermonkey24/pkg-plist (revision 364706) >+++ lang/spidermonkey24/pkg-plist (working copy) >@@ -1,5 +1,6 @@ > bin/js24 > bin/js24-config >+%%DTRACE%%include/mozjs-24/javascript-trace.h > include/mozjs-24/js-config.h > include/mozjs-24/js.msg > include/mozjs-24/js/Anchor.h
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192614
:
145714
|
145715
| 145733 |
145734
|
145735
|
145736
|
145737
|
145738
|
145739
|
145740
|
152410