Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779382 - net-analyzer/greenbone-security-assistant 9.0.1 and 20.8.1 must depend on net-libs/nodejs[ssl]
Summary: net-analyzer/greenbone-security-assistant 9.0.1 and 20.8.1 must depend on net...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: jonas.licht
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-30 14:16 UTC by Karlson2k
Modified: 2021-04-13 10:38 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,51.32 KB, text/plain)
2021-03-30 14:16 UTC, Karlson2k
Details
emerge --info (emerge.info.txt,5.53 KB, text/plain)
2021-03-30 14:17 UTC, Karlson2k
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karlson2k 2021-03-30 14:16:49 UTC
Created attachment 696222 [details]
build.log

The package failed to build with error:

Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
    at assertCrypto (internal/util.js:119:11)
    at crypto.js:36:1
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Function.Module._load (internal/modules/cjs/loader.js:740:15)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/usr/lib64/node_modules/yarn/lib/cli.js:2605:18)
    at __webpack_require__ (/usr/lib64/node_modules/yarn/lib/cli.js:22:30)
make[2]: *** [gsa/CMakeFiles/gsa-ng.dir/build.make:1185: gsa/bundle.stamp] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-analyzer/greenbone-security-assistant-9.0.1/work/gsa-9.0.1_build'
make[1]: *** [CMakeFiles/Makefile2:223: gsa/CMakeFiles/gsa-ng.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


Node.JS was build without 'ssl' USE flag:

# emerge -pqv net-libs/nodejs
[ebuild   R   ] net-libs/nodejs-14.16.0  USE="-debug -doc -icu -inspector -npm -pax_kernel -snapshot -ssl -system-icu -system-ssl -systemtap -test" CPU_FLAGS_X86="sse2"
Comment 1 Karlson2k 2021-03-30 14:17:37 UTC
Created attachment 696228 [details]
emerge --info
Comment 2 Karlson2k 2021-03-30 14:20:58 UTC
The same error for =net-analyzer/greenbone-security-assistant-20.8.1

Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support
    at assertCrypto (internal/util.js:119:11)
    at crypto.js:36:1
    at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:283:7)
    at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:225:10)
    at loadNativeModule (internal/modules/cjs/helpers.js:35:9)
    at Function.Module._load (internal/modules/cjs/loader.js:740:15)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/usr/lib64/node_modules/yarn/lib/cli.js:2605:18)
    at __webpack_require__ (/usr/lib64/node_modules/yarn/lib/cli.js:22:30)
make[2]: *** [gsa/CMakeFiles/gsa.dir/build.make:1190: gsa/bundle.stamp] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-analyzer/greenbone-security-assistant-20.8.1/work/gsa-20.8.1_build'
make[1]: *** [CMakeFiles/Makefile2:199: gsa/CMakeFiles/gsa.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Comment 3 Karlson2k 2021-03-30 14:37:08 UTC
Both .ebuilds can be fixed by depend on 'net-libs/nodejs-8.12.0[ssl]'.

After re-emerging of net-libs/nodejs with 'ssl' USE flag, both .ebuilds compiled successfully.
Comment 4 Larry the Git Cow gentoo-dev 2021-04-13 10:38:13 UTC
The bug has been closed via the following commit(s):

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

commit 30778473678d27befd7418c8fd7a4107bb816ec6
Author:     Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
AuthorDate: 2021-04-09 19:09:54 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-04-13 10:38:04 +0000

    net-analyzer/greenbone-security-assistant: fix nodejs dependency
    
    Closes: https://bugs.gentoo.org/779382
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de>
    Closes: https://github.com/gentoo/gentoo/pull/20315
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../greenbone-security-assistant-20.8.1.ebuild                          | 2 +-
 .../greenbone-security-assistant-9.0.1.ebuild                           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)