Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615448 - net-libs/nodejs-7.9.0 : Error: --without-ssl is incompatible with --shared-openssl
Summary: net-libs/nodejs-7.9.0 : Error: --without-ssl is incompatible with --shared-op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 16:12 UTC by Toralf Förster
Modified: 2017-11-21 18:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.65 KB, text/plain)
2017-04-13 16:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,333.83 KB, text/plain)
2017-04-13 16:12 UTC, Toralf Förster
Details
environment (environment,134.43 KB, text/plain)
2017-04-13 16:12 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,30.99 KB, application/x-bzip)
2017-04-13 16:12 UTC, Toralf Förster
Details
net-libs:nodejs-7.9.0:20170413-103827.log (net-libs:nodejs-7.9.0:20170413-103827.log,1.80 KB, text/plain)
2017-04-13 16:12 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,30.20 KB, application/x-bzip)
2017-04-13 16:13 UTC, Toralf Förster
Details
ebuild for disabling ssl (nodejs-7.9.0.ebuild,6.10 KB, text/plain)
2017-05-02 07:24 UTC, Johannes Hirte
Details
nodejs-7.9.0-fix_disabled_openssl.patch (nodejs-7.9.0-fix_disabled_openssl.patch,479 bytes, patch)
2017-05-02 07:25 UTC, Johannes Hirte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-04-13 16:12:40 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0 ...
Error: --without-ssl is incompatible with --shared-openssl
 * ERROR: net-libs/nodejs-7.9.0::gentoo failed (configure phase):
 *   (no error message)
 * 

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named 13.0-abi32+64_20170407-212656) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-04-13 16:12:43 UTC
Created attachment 469986 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-04-13 16:12:46 UTC
Created attachment 469988 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-04-13 16:12:51 UTC
Created attachment 469990 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-04-13 16:12:54 UTC
Created attachment 469992 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-04-13 16:12:57 UTC
Created attachment 469994 [details]
net-libs:nodejs-7.9.0:20170413-103827.log
Comment 6 Toralf Förster gentoo-dev 2017-04-13 16:13:00 UTC
Created attachment 469996 [details]
temp.tbz2
Comment 7 Johannes Hirte 2017-05-02 07:24:13 UTC
Created attachment 471486 [details]
ebuild for disabling ssl

Build nodejs either with --shared-ssl or --without-ssl. Additional patch to node is needed for building without ssl.
Comment 8 Johannes Hirte 2017-05-02 07:25:22 UTC
Created attachment 471488 [details, diff]
nodejs-7.9.0-fix_disabled_openssl.patch

patch for building node without ssl
Comment 9 Johannes Hirte 2017-05-02 07:27:19 UTC
When nodejs is build without ssl, npm doesn't work: 

probook ~ # npm
internal/util.js:80
    throw new Error('Node.js is not compiled with openssl crypto support');
    ^

Error: Node.js is not compiled with openssl crypto support
    at Object.exports.assertCrypto (internal/util.js:80:11)
    at crypto.js:7:14
    at NativeModule.compile (bootstrap_node.js:526:7)
    at Function.NativeModule.require (bootstrap_node.js:467:18)
    at Function.Module._load (module.js:427:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib64/node_modules/npm/node_modules/uuid/lib/rng.js:4:10)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)

So maybe building node without ssl should be combined with disabling npm. At least chromium-58 could be build, so this is a workaround for libressl users.
Comment 10 Ondřej Guth 2017-05-25 15:26:14 UTC
I confirm the same problem for net-libs/nodejs-7.10.0:

>>> Configuring source in /var/tmp/portage/net-libs/nodejs-7.10.0/work/node-v7.10.0 ...
Error: --without-ssl is incompatible with --shared-openssl




(In reply to Toralf Förster from comment #0)
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0 ...
> Error: --without-ssl is incompatible with --shared-openssl
>  * ERROR: net-libs/nodejs-7.9.0::gentoo failed (configure phase):
>  *   (no error message)
>  *
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2017-11-21 18:39:38 UTC
Fixed in 8.9.1 and 9.2.0.