View | Details | Raw Unified | Return to bug 192614 | Differences between
and this patch

Collapse All | Expand All

(-)lang/spidermonkey170/Makefile (-1 / +12 lines)
Lines 28-40 WRKSRC= ${WRKDIR}/mozjs${PORTVERSION}/js/src Link Here
28
CONFIGURE_ARGS=		--with-pthreads \
28
CONFIGURE_ARGS=		--with-pthreads \
29
			--with-system-nspr
29
			--with-system-nspr
30
30
31
OPTIONS_DEFINE=		DEBUG GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \
31
OPTIONS_DEFINE=		DEBUG DTRACE GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \
32
			THREADSAFE TRACEJIT UTF8
32
			THREADSAFE TRACEJIT UTF8
33
OPTIONS_DEFAULT=	METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT
33
OPTIONS_DEFAULT=	METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT
34
OPTIONS_SUB=		yes
34
35
35
DEBUG_DESC=		Enable Debug build
36
DEBUG_DESC=		Enable Debug build
36
DEBUG_CONFIGURE_ENABLE=	debug debug-symbols
37
DEBUG_CONFIGURE_ENABLE=	debug debug-symbols
37
DEBUG_CONFIGURE_DISABLE=debug
38
DEBUG_CONFIGURE_DISABLE=debug
39
DTRACE_DESC=		Build with DTrace probes # move to bsd.options.desc.mk
40
DTRACE_CONFIGURE_ENABLE=dtrace profiling
41
DTRACE_LIBS=		-lelf
38
GCZEAL_DESC=		Enable Zealous garbage collecting
42
GCZEAL_DESC=		Enable Zealous garbage collecting
39
GCZEAL_CONFIGURE_ENABLE=gczeal
43
GCZEAL_CONFIGURE_ENABLE=gczeal
40
JEMALLOC_DESC=		Use jemalloc as memory allocator
44
JEMALLOC_DESC=		Use jemalloc as memory allocator
Lines 59-64 UTF8_CFLAGS= -DJS_C_STRINGS_ARE_UTF8 Link Here
59
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
63
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
60
.endif
64
.endif
61
65
66
.if ${PORT_OPTIONS:MDTRACE}
67
. if ${OSVERSION} < 1000510
68
BROKEN=			dtrace -G crashes with C++ object files
69
. endif
70
STRIP_CMD=	${TRUE}
71
.endif
72
62
regression-test: build
73
regression-test: build
63
	@${ECHO_MSG} -n "===> Running jstests.py: "
74
	@${ECHO_MSG} -n "===> Running jstests.py: "
64
	@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \
75
	@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \
(-)lang/spidermonkey170/files/patch-bug1041795 (+35 lines)
Line 0 Link Here
1
diff --git js/src/config/rules.mk js/src/config/rules.mk
2
index 4d67eda..783942f 100644
3
--- config/rules.mk
4
+++ config/rules.mk
5
@@ -869,7 +869,7 @@ ifdef DTRACE_PROBE_OBJ
6
 ifndef DTRACE_LIB_DEPENDENT
7
 NON_DTRACE_OBJS := $(filter-out $(DTRACE_PROBE_OBJ),$(OBJS))
8
 $(DTRACE_PROBE_OBJ): $(NON_DTRACE_OBJS)
9
-	dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS)
10
+	dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS)
11
 endif
12
 endif
13
 endif
14
@@ -886,7 +886,7 @@ ifndef INCREMENTAL_LINKER
15
 endif
16
 ifdef DTRACE_LIB_DEPENDENT
17
 ifndef XP_MACOSX
18
-	dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o  $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS))
19
+	dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o  $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS))
20
 endif
21
 	$(EXPAND_MKSHLIB) $(SHLIB_LDSTARTFILE) $(OBJS) $(LOBJS) $(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)
22
 	@$(RM) $(DTRACE_PROBE_OBJ)
23
diff --git js/src/Makefile.in js/src/Makefile.in
24
index 28ca5e8..96793d7 100644
25
--- Makefile.in
26
+++ Makefile.in
27
@@ -906,7 +906,7 @@ endif
28
 
29
 ifdef HAVE_DTRACE
30
 $(CURDIR)/javascript-trace.h: $(srcdir)/javascript-trace.d
31
-	dtrace -h -s $(srcdir)/javascript-trace.d -o javascript-trace.h.in
32
+	dtrace -x nolibs -h -s $(srcdir)/javascript-trace.d -o javascript-trace.h.in
33
 	sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
34
 	    -e '/const/!s/char \*/const char */g' \
35
 	    javascript-trace.h.in > javascript-trace.h
(-)lang/spidermonkey170/files/patch-bug1046224 (+32 lines)
Line 0 Link Here
1
diff --git js/src/configure js/src/configure
2
index 59d69c7..779a50f 100644
3
--- configure
4
+++ configure
5
@@ -10204,7 +10204,13 @@ cross_compiling=$ac_cv_prog_cc_cross
6
 # Check whether --enable-dtrace or --disable-dtrace was given.
7
 if test "${enable_dtrace+set}" = set; then
8
   enableval="$enable_dtrace"
9
-  enable_dtrace="yes"
10
+  if test "$enableval" = "yes"; then
11
+    enable_dtrace="yes"
12
+  elif test "$enableval" = "no"; then
13
+    :
14
+  else
15
+    { echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&2; exit 1; }
16
+  fi
17
 fi
18
 
19
 if test "x$enable_dtrace" = "xyes"; then
20
diff --git js/src/configure.in js/src/configure.in
21
index 59d69c7..779a50f 100644
22
--- configure.in
23
+++ configure.in
24
@@ -2153,7 +2153,7 @@ dnl Quota support
25
 MOZ_CHECK_HEADERS(sys/quota.h)
26
 MOZ_CHECK_HEADERS(linux/quota.h)
27
 
28
-AC_ARG_ENABLE(dtrace,
29
+MOZ_ARG_ENABLE_BOOL(dtrace,
30
               [  --enable-dtrace         build with dtrace support if available (default=no)],
31
               [enable_dtrace="yes"],)
32
 if test "x$enable_dtrace" = "xyes"; then
(-)lang/spidermonkey170/files/patch-bug702179 (+23 lines)
Line 0 Link Here
1
diff --git js/src/Makefile.in js/src/Makefile.in
2
index e28160a..28ca5e8 100644
3
--- Makefile.in
4
+++ Makefile.in
5
@@ -57,7 +57,6 @@ ifdef JS_SHARED_LIBRARY
6
 FORCE_SHARED_LIB = 1
7
 endif
8
 FORCE_STATIC_LIB = 1
9
-DIST_INSTALL = 1
10
 
11
 VPATH		= \
12
 		$(srcdir) \
13
@@ -857,8 +856,8 @@ install:: $(EXPORTS_mozilla)
14
 install:: $(SCRIPTS)
15
 	$(SYSINSTALL) $^ $(DESTDIR)$(bindir)
16
 
17
-install:: $(REAL_LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
18
-ifneq (,$(REAL_LIBRARY))
19
+install:: $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
20
+ifdef DIST_INSTALL
21
 	$(SYSINSTALL) $(REAL_LIBRARY) $(DESTDIR)$(libdir)
22
 	mv -f $(DESTDIR)$(libdir)/$(REAL_LIBRARY) $(subst $(STATIC_LIBRARY_NAME),$(LIBRARY_NAME),$(DESTDIR)$(libdir)/$(REAL_LIBRARY))
23
 endif
(-)lang/spidermonkey170/pkg-plist (-1 / +1 lines)
Lines 6-11 include/js-17.0/gc/Heap.h Link Here
6
include/js-17.0/gc/Root.h
6
include/js-17.0/gc/Root.h
7
include/js-17.0/gc/Statistics.h
7
include/js-17.0/gc/Statistics.h
8
include/js-17.0/gc/StoreBuffer.h
8
include/js-17.0/gc/StoreBuffer.h
9
%%DTRACE%%include/js-17.0/javascript-trace.h
9
include/js-17.0/js-config.h
10
include/js-17.0/js-config.h
10
include/js-17.0/js.msg
11
include/js-17.0/js.msg
11
include/js-17.0/js/HashTable.h
12
include/js-17.0/js/HashTable.h
Lines 62-68 include/js-17.0/mozilla/TypeTraits.h Link Here
62
include/js-17.0/mozilla/Types.h
63
include/js-17.0/mozilla/Types.h
63
include/js-17.0/mozilla/Util.h
64
include/js-17.0/mozilla/Util.h
64
include/js-17.0/mozilla/WeakPtr.h
65
include/js-17.0/mozilla/WeakPtr.h
65
lib/libmozjs-17.0.a
66
lib/libmozjs-17.0.so
66
lib/libmozjs-17.0.so
67
lib/libmozjs-17.0.so.1
67
lib/libmozjs-17.0.so.1
68
libdata/pkgconfig/mozjs-17.0.pc
68
libdata/pkgconfig/mozjs-17.0.pc

Return to bug 192614