Skip to content

Instantly share code, notes, and snippets.

View jbergstroem's full-sized avatar

Johan Bergström jbergstroem

View GitHub Profile
diff --git test/common.js test/common.js
index 901425b..10d2a21 100644
--- test/common.js
+++ test/common.js
@@ -47,6 +47,13 @@ Object.defineProperty(exports, 'hasCrypto', {get: function() {
return process.versions.openssl ? true : false;
}});
+Object.defineProperty(exports, 'inAFbsdJail', {get: function() {
+ if(process.platform === 'freebsd') {
diff --git ctype.h ctype.h
index 04d2e45..8f15d04 100644
--- ctype.h
+++ ctype.h
@@ -27,14 +27,14 @@
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2014 Garrett D'Amore <[email protected]>
--- io.js/configure 2015-03-06 14:39:56.000000000 +1100
+++ configure 2015-03-10 11:47:12.000000000 +1100
@@ -39,13 +39,15 @@
action='store',
dest='dest_cpu',
help='CPU architecture to build for. '
- 'Valid values are: arm, arm64, ia32, mips, mipsel, x32, x64')
+ 'Valid values are: arm, arm64, ia32, mips, mipsel, x32, x64',
+ default=os.environ.get('DESTCPU', None))
[root@web01 ~/iojs-v1.5.1]# export OSTYPE=solaris
[root@web01 ~/iojs-v1.5.1]# export DESTCPU=ia32
[root@web01 ~/iojs-v1.5.1]# export ARCH=ia32
[root@web01 ~/iojs-v1.5.1]# ./configure
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
@jbergstroem
jbergstroem / foo.diff
Created March 3, 2015 05:25
example of crypto skipping
diff --git test/common.js test/common.js
index 352f7b6..2efd987 100644
--- test/common.js
+++ test/common.js
@@ -10,6 +10,13 @@ exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDirName = 'tmp';
exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
+exports.hasCrypto = true;
+try {
g2 iojs # diff -u /usr/portage/net-libs/iojs/iojs-1.4.1.ebuild iojs-1.4.3.ebuild
--- /usr/portage/net-libs/iojs/iojs-1.4.1.ebuild 2015-02-28 17:17:04.000000000 +1100
+++ iojs-1.4.3.ebuild 2015-03-03 13:41:45.587193016 +1100
@@ -21,12 +21,13 @@
IUSE="icu +npm snapshot"
RDEPEND="!!net-libs/nodejs
- >=dev-libs/openssl-1.0.1j[-bindist]"
+ >=dev-libs/openssl-1.0.1j[-bindist]
+ <dev-libs/openssl-1.0.2"
@jbergstroem
jbergstroem / foo.sh
Created March 2, 2015 02:47
io.js/mdb on smartos
[admin@web01 ~/io.js]$ ./iojs test.js &
[1] 28065
[admin@web01 ~/io.js]$ mdb -p 28065
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 ]
> ::status
debugging PID 28065 (64-bit)
file: /home/admin/io.js/out/Release/iojs
threading model: native threads
status: stopped by debugger
> ::load v8
@jbergstroem
jbergstroem / foo.md
Last active August 29, 2015 14:16
thoughs on binpkg attachments to github releases

workflow from a "gh releases" point of view

See this as version -1. There's necessary changes to be made to Makefile, as well as introducing some shell scripts that does below. I have no clue how we'll do this on Windows. I also don't fully understand how builds on release-buildbots are triggered; but assume they're automated somehow. GH auth is currently through tokens which is suboptimal at best.

I'm also somewhat abusing the pre-release tag, but it at least shows that it should't be treated as "final".

  1. update src/node_version.h
  2. tag version
  3. push commit / tags
  4. create gh release as pre-release
@jbergstroem
jbergstroem / build.md
Last active August 29, 2015 14:15
iojs build permutations

Package manager build choices

work in progress: gotta find them all

This document outlines how packages in respective distributions/package managers chooses to build node and/or io.js. It's meant to act as a baseline for which build permutations we [the iojs build team] might be interested in testing as an addition to a fully static executable.

If iojs isn't available through a PM, latest available nodejs version will be listed instead.

todo

  • find more pm's
=== release test-tls-no-sslv3 ===
Path: parallel/test-tls-no-sslv3
CONNECTED(00000003)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 0 bytes
---