Bug 272378 - textproc/kibana{7,8}: configure phase: env: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: No such file or directory
Summary: textproc/kibana{7,8}: configure phase: env: /usr/local/lib/node_modules/npm/b...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL:
Keywords:
: 272396 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-07-05 08:31 UTC by Trond Endrestøl
Modified: 2023-07-29 18:02 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2023-07-05 08:31:06 UTC
During the configure phase both textproc/kibana{7,8} terminates with this error message:

env: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: No such file or directory

Here's more context for textproc/kibana7:

===>  Configuring for kibana7-7.17.9_1
(  _NODEVER=$(/usr/local/bin/node --version | /usr/bin/sed -n 's|^v\(.*\)|\1|p') &&  /bin/mkdir -p /construction/xports/textproc/kibana7/work/.devdir/${_NODEVER}/include &&  install -l rs /usr/local/include/node /construction/xpor
ts/textproc/kibana7/work/.devdir/${_NODEVER}/include/node &&  echo "9" > /construction/xports/textproc/kibana7/work/.devdir/${_NODEVER}/installVersion  )
/bin/mkdir -p /construction/xports/textproc/kibana7/work/.devdir/nan
(cd /construction/xports/textproc/kibana7/work/nan-2.17.0 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755
"$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE .  /construction/xports/textproc/kibana7/work/.devdir/nan  "! ( -name \.* -or -path *\/test\/* -or -name test )")
(cd /construction/xports/textproc/kibana7/work/node-re2-1.18.0 &&  /usr/bin/env HOME=/construction/xports/textproc/kibana7/work  /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp configure  --python=/usr/local/bin/python3.
9  --devdir=/construction/xports/textproc/kibana7/work/.devdir)
env: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: No such file or directory
*** Error code 127

And for textproc/kibana8:

===>  Configuring for kibana8-8.7.0_1
(  _NODEVER=$(/usr/local/bin/node --version | /usr/bin/sed -n 's|^v\(.*\)|\1|p') &&  /bin/mkdir -p /construction/xports/textproc/kibana8/work/.devdir/${_NODEVER}/include &&  install -l rs /usr/local/include/node /construction/xpor
ts/textproc/kibana8/work/.devdir/${_NODEVER}/include/node &&  echo "9" > /construction/xports/textproc/kibana8/work/.devdir/${_NODEVER}/installVersion  )
/bin/mkdir -p /construction/xports/textproc/kibana8/work/.devdir/nan
(cd /construction/xports/textproc/kibana8/work/nan-2.17.0 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755
"$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE .  /construction/xports/textproc/kibana8/work/.devdir/nan  "! ( -name \.* -or -path *\/test\/* -or -name test )")
(cd /construction/xports/textproc/kibana8/work/node-re2-1.18.0 &&  /usr/bin/env HOME=/construction/xports/textproc/kibana8/work  /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp configure  --python=/usr/local/bin/python3.
9  --devdir=/construction/xports/textproc/kibana8/work/.devdir)
env: /usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: No such file or directory
*** Error code 127
Comment 1 Juraj Lutter freebsd_committer freebsd_triage 2023-07-05 08:37:55 UTC
I'm already working on this, as well as on update.

This problem has been introduced with recent www/npm update.
Comment 2 Juraj Lutter freebsd_committer freebsd_triage 2023-07-06 15:49:30 UTC
*** Bug 272396 has been marked as a duplicate of this bug. ***
Comment 3 Trond Endrestøl 2023-07-07 06:24:40 UTC
(In reply to Juraj Lutter from comment #1)
I noticed this in pkg-plist of www/npm-node18 (which is the masterdir for www/npm-node16):

lib/node_modules/npm/node_modules/.bin/node-gyp

Note the directory is .bin, not the usual bin.

There's also:

lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp

I'm not sure if @npmcli is to be substituted, it doesn't follow the usual %%XYZ%% pattern.
Comment 4 Juraj Lutter freebsd_committer freebsd_triage 2023-07-09 20:13:30 UTC
This has just been fixed for both kibana7 and kibana8. Please, test.
Comment 5 Trond Endrestøl 2023-07-25 09:02:52 UTC
(In reply to Juraj Lutter from comment #4)
It works.