From owner-freebsd-ports@FreeBSD.ORG Wed May 6 12:41:20 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B19E239 for ; Wed, 6 May 2015 12:41:20 +0000 (UTC) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2011" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AD5310AE for ; Wed, 6 May 2015 12:41:18 +0000 (UTC) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.14.9/8.14.9) with ESMTP id t46CfGmD057633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 May 2015 12:41:16 GMT (envelope-from saper@saper.info) Received: from localhost (saper@localhost) by m.saper.info (8.14.9/8.14.9/Submit) with ESMTP id t46CfFaj057630; Wed, 6 May 2015 12:41:16 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Wed, 6 May 2015 12:41:15 +0000 From: Marcin Cieslak To: Daniel Lin cc: ports@freebsd.org Subject: Re: www/iojs 2.0.0 is there In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2015 12:41:20 -0000 On Wed, 6 May 2015, Daniel Lin wrote: > Hello, Marcin, > > Thanks, but I think iojs updates very often, it would keep many version > on ports. You are right. But only 1.0.4, 1.8.1 and now 2.0.0 have distinct binary module APIs, so extensions compiled for them stay the same. I currently build binaries of node-sass (http://github.com/sass/node-sass) for node 0.10 (API 13), node 0.12 (API 14), iojs 1.0.4 (API 42), io.js 1.8.1 (API 43) and io.js 2.0 (API 44). I put my custom ports on GitHub at http://github.com/saper/ports-exp Here's the patch for io.js 2.0.0, we need a little fix for http://code.google.com/p/v8/issues/detail?id=4079 diff -ruN /usr/ports/www/iojs/Makefile www/iojs44/Makefile --- /usr/ports/www/iojs/Makefile 2015-04-27 14:58:07.000000000 +0000 +++ www/iojs44/Makefile 2015-05-06 09:09:32.000000000 +0000 @@ -2,7 +2,7 @@ # $FreeBSD: head/www/iojs/Makefile 384845 2015-04-27 14:58:07Z sunpoet $ PORTNAME= iojs -PORTVERSION= 1.8.1 +PORTVERSION= 2.0.0 CATEGORIES= www MAINTAINER= linpct@gmail.com @@ -40,7 +40,10 @@ ${WRKSRC}/deps/v8/tools/gyp/v8.gyp @${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s|python -c|${PYTHON_CMD} -c|" \ + ${WRKSRC}/deps/v8/build/toolchain.gypi @${REINPLACE_CMD} -e "s|'python',|'${PYTHON_CMD}',|" \ + ${WRKSRC}/tools/icu/icu-generic.gyp \ ${WRKSRC}/deps/v8/build/shim_headers.gypi \ ${WRKSRC}/deps/v8/tools/gyp/v8.gyp \ ${WRKSRC}/deps/v8/src/d8.gyp diff -ruN /usr/ports/www/iojs/distinfo www/iojs44/distinfo --- /usr/ports/www/iojs/distinfo 2015-04-27 14:58:07.000000000 +0000 +++ www/iojs44/distinfo 2015-05-05 12:07:25.000000000 +0000 @@ -1,2 +1,2 @@ -SHA256 (iojs-io.js-1.8.1-v1.8.1_GH0.tar.gz) = 90e7e4d801e433a405b61e0a62c9dd516804dd884895602ee22bcb590eca5f13 -SIZE (iojs-io.js-1.8.1-v1.8.1_GH0.tar.gz) = 31172196 +SHA256 (iojs-io.js-2.0.0-v2.0.0_GH0.tar.gz) = 23ee904d5ea6e7f29ae8c146618e4a61dae274e4237e897075f30a28a243804d +SIZE (iojs-io.js-2.0.0-v2.0.0_GH0.tar.gz) = 31378750 diff -ruN /usr/ports/www/iojs/files/patch-deps_v8_src_compiler_graph_visualizer.h www/iojs44/files/patch-deps_v8_src_compiler_graph_visualizer.h --- /usr/ports/www/iojs/files/patch-deps_v8_src_compiler_graph_visualizer.h 1970-01-01 00:00:00.000000000 +0000 +++ www/iojs44/files/patch-deps_v8_src_compiler_graph_visualizer.h 2015-05-06 07:50:31.000000000 +0000 @@ -0,0 +1,10 @@ +--- deps/v8/src/compiler/graph-visualizer.h.orig 2015-05-06 07:49:33.000000000 +0000 ++++ deps/v8/src/compiler/graph-visualizer.h 2015-05-06 07:49:44.000000000 +0000 +@@ -5,6 +5,7 @@ + #ifndef V8_COMPILER_GRAPH_VISUALIZER_H_ + #define V8_COMPILER_GRAPH_VISUALIZER_H_ + ++#include + #include + + namespace v8 {