Bug 199985 - [MAINTAINER] www/iojs update to 2.0.0
Summary: [MAINTAINER] www/iojs update to 2.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Wen Heping
Depends on:
Reported: 2015-05-06 05:07 UTC by linpct
Modified: 2015-05-08 04:49 UTC (History)
2 users (show)

See Also:

iojs.patch (857 bytes, text/plain)
2015-05-06 05:07 UTC, linpct
no flags Details
Update iojs to 2.0.0 (2.04 KB, patch)
2015-05-07 08:12 UTC, Marcin Cieślak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description linpct 2015-05-06 05:07:52 UTC

Comment 1 linpct 2015-05-06 05:07:55 UTC
Created attachment 156419 [details]
Comment 2 linpct 2015-05-06 05:11:02 UTC
Please note there are breaking changes.

Comment 3 Wen Heping freebsd_committer 2015-05-06 07:44:38 UTC

   The build failed on my system, the build log is as below, would you have a investigation of it ?
   Thanks !


===>   Returning to build of iojs-2.0.0
===>   iojs-2.0.0 depends on executable: python2 - not found
===>    Verifying install for python2 in /usr/ports/lang/python2
===>   Installing existing package /packages/All/python2-2_3.txz
[101i386-wen] Installing python2-2_3...
[101i386-wen] Extracting python2-2_3... done
===>   Returning to build of iojs-2.0.0
=======================<phase: lib-depends    >============================
====>> Recording filesystem state for prebuild... done
=======================<phase: configure      >============================
===>   iojs-2.0.0 depends on executable: gmake - found
===>   iojs-2.0.0 depends on file: /usr/local/bin/python2.7 - found
===>   iojs-2.0.0 depends on executable: python2 - found
===>  Configuring for iojs-2.0.0
python: not found
gyp: Call to 'python -c "import sys; print sys.byteorder"' returned exit status 127. while loading dependencies of /wrkdirs/usr/ports/www/iojs/work/io.js-2.0.0/node.gyp while trying to load /wrkdirs/usr/ports/www/iojs/work/io.js-2.0.0/node.gyp
Error running GYP
creating  ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': ['-lz']},
  'variables': { 'host_arch': 'ia32',
                 'icu_small': 'false',
                 'llvm_version': 0,
                 'node_install_npm': 'false',
                 'node_prefix': '/usr/local',
                 'node_shared_http_parser': 'false',
                 'node_shared_libuv': 'false',
                 'node_shared_openssl': 'false',
                 'node_shared_zlib': 'true',
                 'node_tag': '',
                 'node_use_dtrace': 'false',
                 'node_use_etw': 'false',
                 'node_use_lttng': 'false',
                 'node_use_openssl': 'true',
                 'node_use_perfctr': 'false',
                 'openssl_no_asm': 0,
                 'python': '/usr/local/bin/python2.7',
                 'target_arch': 'ia32',
                 'uv_library': 'static_library',
                 'uv_parent_path': '/deps/uv/',
                 'uv_use_dtrace': 'false',
                 'v8_enable_gdbjit': 0,
                 'v8_enable_i18n_support': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_optimized_debug': 0,
                 'v8_random_seed': 0,
                 'v8_use_snapshot': 'false',
                 'want_separate_host_toolset': 0}}
creating  ./config.gypi
creating  ./config.mk
===>  Script "configure" failed unexpectedly.
Please report the problem to linpct@gmail.com [maintainer] and attach the
"/wrkdirs/usr/ports/www/iojs/work/io.js-2.0.0/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

make: stopped in /usr/ports/www/iojs
build of www/iojs ended at Wed May  6 23:40:11 CST 2015
build time: 00:00:40
!!! build failure encountered !!!
[00:02:08] ====>> Error: Build failed in phase: configure
[00:02:08] ====>> Cleaning up
Comment 4 linpct 2015-05-06 10:15:48 UTC
It's very strange that install python but no python found.

I'll try later.
Comment 5 Marcin Cieślak 2015-05-07 08:12:18 UTC
Created attachment 156456 [details]
Update iojs to 2.0.0

Please see my patch, you need to replace "python" with $PYTHON_CMD since we only have bin/python2.7 and not bin/python in this situation.

Also you need a patch for 


if you build via gcc (8.4 compilation breaks there)
Comment 6 Marcin Cieślak 2015-05-07 09:08:38 UTC
I was also thinking maybe we should write something to UPDATING:

  AFFECTS: users of www/iojs
  AUTHOR: linpct@gmail.com

  iojs has been updated to 2.0.0. The binary modules may need to be
  rebuilt due to V8 version ABI change.
Comment 7 linpct 2015-05-07 10:12:48 UTC
Hello, Marcin,

    Yes, I prefer using UPDATING and don't keep many versions of www/iojs.

    I've built by your patch and it's ok.

    Please let Wen Heping try, test, and commit.

    Thanks all.
Comment 8 commit-hook freebsd_committer 2015-05-08 04:33:27 UTC
A commit references this bug:

Author: wen
Date: Fri May  8 04:32:39 UTC 2015
New revision: 385726
URL: https://svnweb.freebsd.org/changeset/ports/385726

  - Update to 2.0.0

  PR:		199985
  Submitted by:	linpct@gmail.com(maintainer)
  Thanks to:	saper@saper.info