Permalink
Browse files

OS-4903 move mdb_v8 to illumos-extra

Reviewed by: Alex Wilson <alex.wilson@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Approved by: Joshua M. Clulow <jmc@joyent.com>
  • Loading branch information...
1 parent b187bfe commit 5b714b22f1f2851e50676a8edc27742b8bdfd0e6 @rmustacc rmustacc committed Feb 14, 2017
Showing with 68 additions and 0 deletions.
  1. +1 −0 Makefile
  2. +3 −0 manifest
  3. +64 −0 mdb_v8/Makefile
  4. BIN mdb_v8/mdb_v8-1.1.4.tar.gz
View
@@ -53,6 +53,7 @@ SUBDIRS = \
libxml \
libz \
make \
+ mdb_v8 \
ncurses \
node.js \
nss-nspr \
View
@@ -197,6 +197,9 @@ f lib/amd64/libz.so.1 0755 root bin
s usr/lib/amd64/libz.so.1=../../../lib/amd64/libz.so.1
f lib/libz.so.1 0755 root bin
s usr/lib/libz.so.1=../../lib/libz.so.1
+# mdb_v8
+f usr/lib/mdb/proc/v8.so 0555 root sys
+f usr/lib/mdb/proc/amd64/v8.so 0555 root sys
# ncurses
f usr/gnu/lib/amd64/libform.so.5.7 0755 root bin
s usr/gnu/lib/amd64/libform.so.5=libform.so.5.7
View
@@ -0,0 +1,64 @@
+#
+# This file and its contents are supplied under the terms of the
+# Common Development and Distribution License ("CDDL"), version 1.0.
+# You may only use this file in accordance with the terms of version
+# 1.0 of the CDDL.
+#
+# A full copy of the text of the CDDL should have accompanied this
+# source. A copy of the CDDL is also available via the Internet at
+# http://www.illumos.org/license/CDDL.
+#
+
+#
+# Copyright (c) 2017, Joyent, Inc.
+#
+
+#
+# The mdb_v8 build has built-in dependencies as git submodules. To
+# prepare an updated version of this, you should perform the following
+# steps, the github release tarballs are misleading and will not work!
+#
+# 1. clone mdb_v8 into a directory named mdb_v8-<ver>
+# 2. Checkout the corresponding tag, via git checkout <tag>
+# 3. From one directory up, run tar cvzf mdb_v8-<ver>.tar.gz mdb_v8-<ver>
+#
+
+VER = mdb_v8-1.1.4
+
+include ../Makefile.defs
+include ../Makefile.targ
+
+CLEANFILES += .unpack
+
+CTF_LIBS = $(VER)/build/ia32/mdb_v8.so \
+ $(VER)/build/amd64/mdb_v8.so
+
+#
+# Required for CTF generation
+#
+CFLAGS += -g
+
+#
+# There are a couple of bugs in the currently released version of mdb_v8
+# that do not support parallelism, thus we explicitly do not include any
+# -j options below. The build is also very small, so it is unlikely to
+# make a meaningful difference.
+#
+all: $(VER)/GNUMakefile
+ cd $(VER) && \
+ env - $(AUTOCONF_ENV) PATH=$(PATH) $(MAKE) $(OVERRIDES) release
+
+install: all
+ rm -f $(DESTDIR)/usr/lib/mdb/proc/v8.so
+ $(ALTCTFCONVERT) -l $(VER) -o $(DESTDIR)/usr/lib/mdb/proc/v8.so \
+ $(VER)/build/ia32/mdb_v8.so
+ rm -f $(DESTDIR)/usr/lib/mdb/proc/amd64/v8.so
+ $(ALTCTFCONVERT) -l $(VER) -o $(DESTDIR)/usr/lib/mdb/proc/amd64/v8.so \
+ $(VER)/build/amd64/mdb_v8.so
+
+$(VER)/GNUMakefile: $(VER).tar.gz
+ -rm -rf $(VER)
+ mkdir -p .unpack
+ gtar x -C .unpack -z --no-same-owner -f $(VER).tar.gz
+ mv -f .unpack/$(VER) $(VER)
+ -rmdir .unpack
Binary file not shown.

0 comments on commit 5b714b2

Please sign in to comment.