Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777405 - dev-qt/qtwebengine-5.15.2_p20210224: Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
Summary: dev-qt/qtwebengine-5.15.2_p20210224: Error [ERR_NO_CRYPTO]: Node.js is not co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PullRequest
: 785262 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-20 17:03 UTC by Alec Moskvin
Modified: 2021-04-24 21:11 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.gz,93.90 KB, application/gzip)
2021-03-20 17:03 UTC, Alec Moskvin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Moskvin 2021-03-20 17:03:13 UTC
Created attachment 692595 [details]
build.log

My nodejs is built without the "ssl" flag, which causes qtwebengine to fail.


[3240/23889] /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/temp/python2.7/bin/python2 ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/node/node.py ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/
devtools-frontend/src/node_modules/rollup/dist/bin/rollup --silent --plugin terser --config ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/rollup.config.js --input gen/third_party/devtools-fronten
d/src/front_end/dom_extension/dom_extension.prebundle.js --file gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.js
FAILED: gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.js
/var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/temp/python2.7/bin/python2 ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/node/node.py ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup --silent --plugin terser --config ../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/rollup.config.js --input gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.prebundle.js --file gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.js
Traceback (most recent call last):
  File "../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/node/node.py", line 63, in <module>
    RunNode(sys.argv[1:])
  File "../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/node/node.py", line 58, in RunNode
    raise RuntimeError('%s failed: %s' % (cmd, stderr))
RuntimeError: ['/usr/bin/node', '../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup', '--silent', '--plugin', 'terser', '--config', '../../../../qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/front_end/rollup.config.js', '--input', 'gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.prebundle.js', '--file', 'gen/third_party/devtools-frontend/src/front_end/dom_extension/dom_extension.js'] failed: node:internal/util:128
    throw new ERR_NO_CRYPTO();
    ^

Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
    at new NodeError (node:internal/errors:329:5)
    at assertCrypto (node:internal/util:128:11)
    at node:crypto:36:1
    at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:283:7)
    at NativeModule.compileForPublicLoader (node:internal/bootstrap/loaders:225:10)
    at loadNativeModule (node:internal/modules/cjs/helpers:39:9)
    at Function.Module._load (node:internal/modules/cjs/loader:784:15)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-5.15.2_p20210224/src/3rdparty/chromium/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:27:14) {
  code: 'ERR_NO_CRYPTO'
}
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-20 20:06:55 UTC
Can you include emerge --info too? But yeah, it makes sense you need that on.
Comment 2 Alec Moskvin 2021-03-20 21:29:28 UTC
Building with ssl fixed it, I made a PR: https://github.com/gentoo/gentoo/pull/20021


$ emerge --info
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r8, 5.10.24 x86_64)
=================================================================
System uname: Linux-5.10.24-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-glibc2.2.5
KiB Mem:    32749412 total,  20140776 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 20 Mar 2021 13:06:10 +0000
Head commit of repository gentoo: 9d9d327b5807f6fd016b42c703bf42236cb3ec83

Head commit of repository local: 98603cd480cee3f1cb87a0235fe8ad2fba3c1c2c

sh dash 0.5.11.3-r1
ld GNU gold (Gentoo 2.35.2 p1 2.35.2) 1.16
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.19.7::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

local
    location: /var/db/repos/local
    sync-type: git
    sync-uri: ***
    masters: gentoo

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -frecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_US"
MAKEOPTS="-j8 -l8.2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 android berkdb bluetooth branding bzip2 cairo caps cdr cli crypt cups d3d9 dbus declarative default-gold dri dvdr egl emboss encode exif ffmpeg flac fortran gdbm geoip gif git gles gles2 gold gtk gui iconv icu imagemagick jpeg jumbo-build kipi kwallet lcms libglvnd libinput libnotify libtirpc lm-sensors lto lua luajit mad mp3 mp4 mpeg multilib ncurses nptl ogg opencl opengl openmp pam pango pch pcre pdf pgo plasma png policykit postscript ppds printsupport pulseaudio qml qt5 readline s3tc sddm sdl seccomp smp spell split-usr sqlite ssl startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vulkan wayland webengine widgets x264 xattr xcb xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 BPF AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="push_stream stub_status sub" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Larry the Git Cow gentoo-dev 2021-04-19 10:53:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=29de6e406a4ccac4aa2bc44f771c51da1da9e37c

commit 29de6e406a4ccac4aa2bc44f771c51da1da9e37c
Author:     Alec Moskvin <alecm@gmx.com>
AuthorDate: 2021-03-20 17:18:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-04-19 10:51:18 +0000

    dev-qt/qtwebengine: depend on net-libs/nodejs[ssl]
    
    See also: https://github.com/gentoo/gentoo/pull/20021
    
    Bug: https://bugs.gentoo.org/777405
    Signed-off-by: Alec Moskvin <alecm@gmx.com>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-5.15.9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Andreas Sturmlechner gentoo-dev 2021-04-23 19:00:36 UTC
*** Bug 785262 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2021-04-24 21:11:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c22e02295937b559fec79f5a862aa6164d71e0

commit b6c22e02295937b559fec79f5a862aa6164d71e0
Author:     Alec Moskvin <alecm@gmx.com>
AuthorDate: 2021-03-20 17:18:54 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-04-24 21:10:15 +0000

    dev-qt/qtwebengine: depend on net-libs/nodejs[ssl]
    
    Closes: https://github.com/gentoo/gentoo/pull/20021
    Closes: https://bugs.gentoo.org/777405
    Signed-off-by: Alec Moskvin <alecm@gmx.com>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-5.15.2_p20210406.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)