Bug 248167 - www/node 14.4.0 does not build in poudriere with FreeBSD 11.4
Summary: www/node 14.4.0 does not build in poudriere with FreeBSD 11.4
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bradley T. Hughes
Depends on:
Reported: 2020-07-22 08:13 UTC by Miroslav Lachman
Modified: 2020-07-22 20:35 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (bhughes)

poudriere build log failure (81.89 KB, application/gzip)
2020-07-22 08:14 UTC, Miroslav Lachman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2020-07-22 08:13:09 UTC
I tried to build www/node from quaterly branch but it ends up with the following python error:

LD_LIBRARY_PATH=/wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/lib.host:/wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/obj/gen; tools/genv8constants.py "/wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/obj/gen/v8constants.h" "/wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/obj.target/tools/v8_gypfiles/libv8_base_without_compiler.a"
Traceback (most recent call last):
  File "tools/genv8constants.py", line 23, in <module>
    bufsize=-1, stdout=subprocess.PIPE, text=True).stdout
TypeError: __init__() got an unexpected keyword argument 'text'
gmake[2]: *** [node_dtrace_ustack.target.mk:13: /wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/obj/gen/v8constants.h] Error 1
rm ed36ab92458644e121416e8697a6b64c051c72b0.intermediate ad3fd4c76aef3b4797bbb2572833f9000cee0294.intermediate ea2d89ddb30e54c8a8d75f33fc84b228111d7c67.intermediate
gmake[1]: *** [Makefile:101: node] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/node/work/node-v14.4.0'
*** Error code 1
Comment 1 Miroslav Lachman 2020-07-22 08:14:38 UTC
Created attachment 216652 [details]
poudriere build log failure
Comment 2 Miroslav Lachman 2020-07-22 20:35:51 UTC
Probably caused by setting default version of Python to 2.7 which causes shebeng line /usr/local/bin/python27 in tools/genv8constants.py but the code in it is not compatible with Python 2.7.
This should be markerd as "BROKEN with Python 2.7" or something like this.
Building with Python 3.7 right now...