Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 580700

Summary: >net-libs/nodejs-0.12.10 should (R)DEPEND on >=net-libs/http-parser-2.6.1 (../src/node_http_parser.cc:538:13: error: 'http_parser' has no member named 'lenient_http_headers')
Product: Gentoo Linux Reporter: ArticIce(Juice) <articice>
Component: Current packagesAssignee: Johan Bergström <bugs>
Status: RESOLVED FIXED    
Severity: normal CC: patrick, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ArticIce(Juice) 2016-04-21 06:57:18 UTC
The version in dependencies is >=net-libs/http-parser-2.5
it should be >=2.6.1

I have http-parser-2.5 and have nodejs-0.12.7 installed, but it wouldn't upgrade to 0.12.10 without manually upgrading http-parser first. 


The problem is:
'http_parser' has no member named 'lenient_http_headers'

Found a reasonable problem description here:
https://github.com/jorgicio/jorgicio-gentoo/issues/40


Full error text is this:

../src/node_http_parser.cc: In member function 'void node::Parser::Init(http_parser_type)':
../src/node_http_parser.cc:538:13: error: 'http_parser' has no member named 'lenient_http_headers'
     parser_.lenient_http_headers = IsReverted(REVERT_CVE_2016_2216) ? 1 : 0;
             ^
../src/node_http_parser.cc: At global scope:
../src/node_http_parser.cc:573:1: warning: missing initializer for member 'http_parser_settings::on_chunk_header' [-Wmissing-field-initializers]
 };
 ^
../src/node_http_parser.cc:573:1: warning: missing initializer for member 'http_parser_settings::on_chunk_complete' [-Wmissing-field-initializers]
distcc[29171] ERROR: compile ../src/node_http_parser.cc on localhost failed
node.target.mk:137: recipe for target '/var/tmp/paludis/net-libs-nodejs-0.12.10/work/node-v0.12.10/out/Release/obj.target/node/src/node_http_parser.o' failed
make: *** [/var/tmp/paludis/net-libs-nodejs-0.12.10/work/node-v0.12.10/out/Release/obj.target/node/src/node_http_parser.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/var/tmp/paludis/net-libs-nodejs-0.12.10/work/node-v0.12.10/out'
Comment 1 xela 2016-07-23 15:06:54 UTC
I also encountered the same problem while trying to install net-libs/nodejs-4.4.1. Seems like this ebuild have to be fixed too. The latest available version (6.3.0) pulls http-parser though.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-12-16 00:52:40 UTC
This bit infra boxes with nodejs-0.12.*, so I fixed it given the lack of response from the maintainer.

[master d3f550fa35] net-libs/nodejs: Fix http-parser dep.
 Date: Thu Dec 15 16:50:31 2016 -0800
 2 files changed, 2 insertions(+), 2 deletions(-)