Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.4.1 proposal #5835

Merged
merged 114 commits into from
Mar 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
04db9ef
stream: fix no data on partial decode
mscdex Feb 14, 2016
cd78ff9
doc: fix links in Addons docs
estliberitas Feb 4, 2016
67245fa
doc: clarify code of conduct reporting
juliepagano Feb 5, 2016
2ce83bd
http,util: fix typos in comments
estliberitas Feb 17, 2016
ebbc64b
doc: add "building node with ninja" guide
Fishrock123 Jan 19, 2016
d09b44f
doc: add Сковорода Никита Андреевич to the CTC
rvagg Feb 17, 2016
4e469d5
doc: add Ali Ijaz Sheikh to the CTC
rvagg Feb 17, 2016
a2a32b7
doc: add Rich Trott to the CTC
rvagg Feb 17, 2016
2964620
doc: add Evan Lucas to the CTC
rvagg Feb 17, 2016
04d16eb
doc: document fs.datasync(Sync)
Feb 24, 2016
3168e6b
doc: update V8 URL
strawbrary Mar 2, 2016
0e97a3e
win,build: support Visual C++ Build Tools 2015
joaocgreis Mar 9, 2016
b690916
lib: freelist: use .pop() for allocation
subzey Jan 26, 2016
470a9ca
doc: add onboarding resources
Fishrock123 Nov 9, 2015
17a7430
doc: add info to docs on how to submit docs patch
Sequoia Jan 8, 2016
dac4e64
build: add option to select VS version
greenjava Jan 12, 2016
7c3b844
src: return UV_EAI_NODATA on empty lookup
cjihrig Jan 15, 2016
fb5ba6b
stream: prevent object map change in ReadableState
evanlucas Jan 19, 2016
068b0cb
test: move cluster tests to parallel
Trott Jan 20, 2016
0830bb4
doc: clarify when writable.write callback is called
kevinoid Jan 22, 2016
b816044
buffer: remove duplicated code in fromObject
entertainyou Jan 29, 2016
6386f62
test: remove unneeded bind() and related comments
aayn Feb 1, 2016
242a65e
stream: prevent object map change in TransformState
evanlucas Feb 2, 2016
cc0e36f
string_decoder: fix performance regression
mscdex Feb 11, 2016
e7f45f0
repl: handle quotes within regexp literal
princejwesley Feb 6, 2016
ca17f91
doc: add note for binary safe string reading
Feb 9, 2016
b1d580c
doc: update removeListener behaviour
vaibhav93 Feb 12, 2016
46a5d51
build: skip msi build if WiX is not found
dimhotepus Feb 13, 2016
ca5d7a8
http: remove unnecessary check
mscdex Feb 15, 2016
f982632
http: remove old, confusing comment
mscdex Feb 15, 2016
1624d5b
doc: document base64url encoding support
tristanls Feb 15, 2016
ba5e0b6
doc: fix buf.readInt16LE output
chinedufn Feb 17, 2016
70c872c
doc: improve unhandledException doc copy
jasnell Feb 17, 2016
d7b81b5
deps: cherry-pick 2e4da65 from v8's 4.8 upstream
mhdawson Feb 17, 2016
b66d6b1
doc: improve httpVersionMajor / httpVersionMajor
JacksonTian Feb 18, 2016
d4cfc6f
doc: add missing property in cluster example
MrOutput Feb 18, 2016
38d4291
doc: fix typo in pbkdf2Sync code sample
mjcuva Feb 18, 2016
57b02e6
debugger: remove unneeded callback check
Trott Feb 19, 2016
5e6b760
tools: add Node.js-specific ESLint rules
Trott Feb 19, 2016
a39aacf
test: refactor test-dgram-udp4
santigimeno Feb 20, 2016
f242e62
test: remove flaky designation from fixed tests
Trott Feb 26, 2016
c86902d
test: mitigate flaky test-http-agent
Trott Feb 21, 2016
85f927a
test: prevent flakey test on pi2
trevnorris Mar 2, 2016
99269ff
test: increase timeouts on some unref timers tests
Fishrock123 Feb 21, 2016
6867bed
tools: enable additional lint rules
Trott Feb 22, 2016
901dbab
doc: fix relative links in net docs
evanlucas Feb 22, 2016
2b0c7ad
doc: fix links in tls, cluster docs
estliberitas Feb 19, 2016
d4b9f02
tools: apply custom buffer lint rule to /lib only
Trott Feb 22, 2016
b4fbe04
test: fix test-timers.reliability on OS X
Trott Feb 23, 2016
dff7091
url: group slashed protocols by protocol name
nettofarah Feb 23, 2016
97e95d0
crypto: PBKDF2 works with `int` not `ssize_t`
indutny Feb 23, 2016
d681bf2
test: fix flaky child-process-fork-regr-gh-2847
santigimeno Feb 24, 2016
03b20a7
benchmark: add benchmark for buf.compare()
Trott Feb 26, 2016
b4ef644
test: retry on known SmartOS bug
Trott Feb 26, 2016
1642078
doc: fix crypto function indentation level
mscdex Feb 26, 2016
d4a1fc7
doc: add Testing WG
Trott Feb 26, 2016
4aa2c03
test: increase timeout for test-tls-fast-writing
Trott Feb 28, 2016
ba9ad26
test: apply Linux workaround to Linux only
Trott Feb 28, 2016
97a18bd
doc: update NAN urls in ROADMAP.md and doc/releases.md
ronkorving Feb 28, 2016
d871ae2
doc: fix typo in child_process documentation
evanlucas Feb 28, 2016
1afab6a
doc: add clarification on birthtime in fs stat
kthelgason Feb 28, 2016
131ed49
tools: enable no-extra-parens in ESLint
Trott Mar 1, 2016
4990dda
build: remove --quiet from eslint invocation
Mar 2, 2016
1165ecc
build: update Node.js logo on Win installer
eljefedelrodeodeljefe Mar 2, 2016
7a0fcfc
test: remove broken debugger scenarios
Trott Mar 2, 2016
063f22f
test: check memoryUsage properties The properties on memoryUsage were…
geek Mar 3, 2016
04d3f8a
doc: update link green to match homepage
silverwind Mar 3, 2016
64d5752
tools: enable no-self-assign ESLint rule
Trott Mar 3, 2016
9058fc0
build: correctly detect clang version
Mar 3, 2016
98a1bb6
doc: document directories in test directory
mike182uk Mar 3, 2016
1faea43
doc: fix typo in fs.symlink
targos Mar 4, 2016
deec8bc
tools: reduce verbosity of cpplint
thefourtheye Mar 6, 2016
13a8bde
doc: fix dns.resolveCname description typo
axvm Mar 9, 2016
38d7b0b
docs: update link to iojs+release ci job
Mar 9, 2016
b1b17ef
doc: move build instructions to a new document
jbergstroem Mar 9, 2016
cae5da2
doc: fix markdown links
stevemao Mar 10, 2016
5176346
doc: include typo in 'unhandledRejection' example
r1b Mar 11, 2016
2d5527f
doc: add mattloring to collaborators
Mar 11, 2016
3f71864
doc: add phillipj to collaborators
phillipj Mar 11, 2016
e5f254d
doc: add benjamingr to collaborator list
benjamingr Mar 11, 2016
eec3008
doc: add whitlockjc to collaborators
whitlockjc Mar 11, 2016
39c7d8a
doc: add AndreasMadsen to collaborators
AndreasMadsen Mar 11, 2016
0a6e883
doc: add thekemkid to collaborators
GlenTiki Mar 11, 2016
4c92316
doc: add fansworld-claudio to collaborators
claudiorodriguez Mar 11, 2016
c6dc561
doc: remove non-standard use of hyphens
svozza Mar 12, 2016
07e71b2
doc: fix typo in api/addons
watilde Mar 13, 2016
f6d4982
doc: clarify type of first argument in zlib
fanatid Mar 13, 2016
daf3ef6
doc: explain path.format() algorithm
Trott Mar 13, 2016
a673c9a
tls: fix assert in context._external accessor
bnoordhuis Mar 2, 2016
2053995
docs: fix man pages link if tok type is code
mithun-daa Mar 15, 2016
e572542
doc: Add note about use of JSON.stringify()
mithun-daa Mar 15, 2016
4332f80
doc: fix return value of write methods
fb55 Mar 16, 2016
a1772dc
build: update Node.js logo on OSX installer
rvagg Feb 24, 2016
d53dcc5
doc: update fansworld-claudio username on README
claudiorodriguez Mar 13, 2016
7a10fd3
collaborator_guide: clarify commit message rules
geek Mar 11, 2016
1e877f1
doc: fix typo in child_process docs
benjamingr Mar 13, 2016
bb423bb
doc: update release tweet template
Fishrock123 Mar 9, 2016
0943001
doc: fix invalid path doc comments
Trott Mar 11, 2016
ddac368
benchmark: fix lint errors
Trott Mar 2, 2016
6dc49ae
tools,benchmark: increase lint compliance
Trott Feb 25, 2016
4be2065
benchmark: refactor to eliminate redeclared vars
Trott Feb 28, 2016
c901741
benchmark: use strict mode
Trott Feb 20, 2016
df283f8
benchmark: fix linting issues
Trott Mar 17, 2016
10ec1d2
tools: enable linting for benchmarks
Trott Mar 17, 2016
7501ddc
tools: support testing known issues
cjihrig Mar 2, 2016
9952bcf
test: bug repro for vm function redefinition
cjihrig Mar 2, 2016
4b6a8f4
tools: update gyp to b3cef02
Oct 19, 2015
8ffef48
tools: fix gyp to work on MacOSX without XCode
Feb 10, 2015
666d369
test: eval a strict function
kthelgason Feb 15, 2016
5f54bd2
doc: topic blocking vs non-blocking
jrit Feb 19, 2016
067ce9b
build: don't install github templates
jbergstroem Mar 9, 2016
19ae308
deps: update openssl config
Mar 6, 2016
1e05f37
doc: fix typo in synchronous randomBytes example
WebReflection Mar 18, 2016
5368455
2016-03-22, Version v4.4.1 'Argon' (LTS)
Mar 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ env:

rules:
# Possible Errors
# https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
# http://eslint.org/docs/rules/#possible-errors
comma-dangle: [2, "only-multiline"]
no-control-regex: 2
no-debugger: 2
no-dupe-args: 2
Expand All @@ -13,6 +14,7 @@ rules:
no-empty-character-class: 2
no-ex-assign: 2
no-extra-boolean-cast : 2
no-extra-parens: [2, "functions"]
no-extra-semi: 2
no-func-assign: 2
no-invalid-regexp: 2
Expand All @@ -26,13 +28,32 @@ rules:
valid-typeof: 2

# Best Practices
# https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
# http://eslint.org/docs/rules/#best-practices
no-fallthrough: 2
no-octal: 2
no-redeclare: 2
no-self-assign: 2
no-unused-labels: 2

# Strict Mode
# http://eslint.org/docs/rules/#strict-mode
strict: [2, "global"]

# Variables
# http://eslint.org/docs/rules/#variables
no-delete-var: 2
no-undef: 2
no-unused-vars: [2, {"args": "none"}]

# Node.js and CommonJS
# http://eslint.org/docs/rules/#nodejs-and-commonjs
no-mixed-requires: 2
no-new-require: 2
no-path-concat: 2
no-restricted-modules: [2, "sys", "_linklist"]

# Stylistic Issues
# https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
# http://eslint.org/docs/rules/#stylistic-issues
comma-spacing: 2
eol-last: 2
indent: [2, 2, {SwitchCase: 1}]
Expand All @@ -59,21 +80,11 @@ rules:
no-confusing-arrow: 2
no-const-assign: 2
no-dupe-class-members: 2
no-new-symbol: 2
no-this-before-super: 2
prefer-const: 2

# Strict Mode
# https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
strict: [2, "global"]

# Variables
# https://github.com/eslint/eslint/tree/master/docs/rules#variables
no-delete-var: 2
no-undef: 2
no-unused-vars: [2, {"args": "none"}]

# Custom rules in tools/eslint-rules
require-buffer: 2
new-with-error: [2, "Error", "RangeError", "TypeError", "SyntaxError", "ReferenceError"]


Expand Down
246 changes: 246 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
## Building Node.js

Depending on what platform or features you require the build process may
differ slightly. After you've successfully built a binary, running the
test suite to validate that the binary works as intended is a good next step.

If you consistently can reproduce a test failure, search for it in the
[Node.js issue tracker](https://github.com/nodejs/node/issues) or
file a new issue.


### Unix / Macintosh

Prerequisites:

* `gcc` and `g++` 4.8 or newer, or
* `clang` and `clang++` 3.4 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

```text
$ ./configure
$ make
$ [sudo] make install
```

If your Python binary is in a non-standard location or has a
non-standard name, run the following instead:

```text
$ export PYTHON=/path/to/python
$ $PYTHON ./configure
$ make
$ [sudo] make install
```

To run the tests:

```text
$ make test
```

To build the documentation:

```text
$ make doc
```

To read the documentation:

```text
$ man doc/node.1
```

To test if Node.js was built correctly:

```
$ node -e "console.log('Hello from Node.js ' + process.version)"
```


### Windows

Prerequisites:

* [Python 2.6 or 2.7](https://www.python.org/downloads/)
* Visual Studio 2013 / 2015, all editions including the Community edition, or
* Visual Studio Express 2013 / 2015 for Desktop
* Basic Unix tools required for some tests,
[Git for Windows](http://git-scm.com/download/win) includes Git Bash
and tools which can be included in the global `PATH`.

```text
> vcbuild nosign
```

To run the tests:

```text
> vcbuild test
```

To test if Node.js was built correctly:

```
$ node -e "console.log('Hello from Node.js ' + process.version)"
```

### Android / Android based devices, aka. Firefox OS

Be sure you have downloaded and extracted [Android NDK]
(https://developer.android.com/tools/sdk/ndk/index.html)
before in a folder. Then run:

```
$ ./android-configure /path/to/your/android-ndk
$ make
```


### `Intl` (ECMA-402) support:

[Intl](https://github.com/nodejs/node/wiki/Intl) support is not
enabled by default.


#### "small" (English only) support

This option will build with "small" (English only) support, but
the full `Intl` (ECMA-402) APIs. With `--download=all` it will
download the ICU library as needed.

##### Unix / Macintosh:

```text
$ ./configure --with-intl=small-icu --download=all
```

##### Windows:

```text
> vcbuild small-icu download-all
```

The `small-icu` mode builds with English-only data. You can add full
data at runtime.

*Note:* more docs are on
[the node wiki](https://github.com/nodejs/node/wiki/Intl).

#### Build with full ICU support (all locales supported by ICU):

With the `--download=all`, this may download ICU if you don't have an
ICU in `deps/icu`.

##### Unix / Macintosh:

```text
$ ./configure --with-intl=full-icu --download=all
```

##### Windows:

```text
> vcbuild full-icu download-all
```

#### Building without Intl support

The `Intl` object will not be available. This is the default at
present, so this option is not normally needed.

##### Unix / Macintosh:

```text
$ ./configure --with-intl=none
```

##### Windows:

```text
> vcbuild intl-none
```

#### Use existing installed ICU (Unix / Macintosh only):

```text
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
```

If you are cross compiling, your `pkg-config` must be able to supply a path
that works for both your host and target environments.

#### Build with a specific ICU:

You can find other ICU releases at
[the ICU homepage](http://icu-project.org/download).
Download the file named something like `icu4c-**##.#**-src.tgz` (or
`.zip`).

##### Unix / Macintosh

```text
# from an already-unpacked ICU:
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu

# from a local ICU tarball
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu.tgz

# from a tarball URL
$ ./configure --with-intl=full-icu --with-icu-source=http://url/to/icu.tgz
```

##### Windows

First unpack latest ICU to `deps/icu`
[icu4c-**##.#**-src.tgz](http://icu-project.org/download) (or `.zip`)
as `deps/icu` (You'll have: `deps/icu/source/...`)

```text
> vcbuild full-icu
```

## Building Node.js with FIPS-compliant OpenSSL

NOTE: Windows is not yet supported

It is possible to build Node.js with
[OpenSSL FIPS module](https://www.openssl.org/docs/fips/fipsnotes.html).

**Note**: building in this way does **not** allow you to claim that the
runtime is FIPS 140-2 validated. Instead you can indicate that the runtime
uses a validated module. See the [security policy](http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp1747.pdf)
page 60 for more details. In addition, the validation for the underlying module
is only valid if it is deployed in accordance with its [security policy](http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp1747.pdf).
If you need FIPS validated cryptography it is recommended that you read both
the [security policy](http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp1747.pdf)
and [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).

### Instructions

1. Obtain a copy of openssl-fips-x.x.x.tar.gz.
To comply with the security policy you must ensure the path
through which you get the file complies with the requirements
for a "secure installation" as described in section 6.6 in
the [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).
For evaluation/experimentation you can simply download and verify
`openssl-fips-x.x.x.tar.gz` from https://www.openssl.org/source/
2. Extract source to `openssl-fips` folder and `cd openssl-fips`
3. `./config`
4. `make`
5. `make install`
(NOTE: to comply with the security policy you must use the exact
commands in steps 3-5 without any additional options as per
Appendix A in the [security policy](http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp1747.pdf).
The only exception is that `./config no-asm` can be
used in place of `./config`, and the FIPSDIR environment variable
may be used to specify a non-standard install folder for the
validated module, as per User Guide sections 4.2.1, 4.2.2, and 4.2.3.
6. Get into Node.js checkout folder
7. `./configure --openssl-fips=/path/to/openssl-fips/installdir`
For example on ubuntu 12 the installation directory was
/usr/local/ssl/fips-2.0
8. Build Node.js with `make -j`
9. Verify with `node -p "process.versions.openssl"` (`1.0.2a-fips`)
Loading