MT#55391 update package to be build with node 18

* debian/rules:
  - set explit NODE_PATH env to correctly locate
    system node pacakages that are installed by yarnpkg
    during the build stage
  - add NODE_OPTIONS=--openssl-legacy-provider
    as quasar v2 uses webpack v4 atm and this option is for
    backward-compatibility until webpack is upgraded to v5
* debian/control
  - add dependency on node (>= 18) to avoid this
    package to be run on older node versions for consistency
  - add dependency on python3 as otherwise the built-in
    'multiprocessing' module is not there (required by gyp build)

Change-Id: Ie8b3bb1914ecf012e653c8b9e81b75c457995ef0
pull/17/head
Kirill Solomko 3 years ago
parent 7e42c963d0
commit 4b03168df1

6
debian/control vendored

@ -6,12 +6,14 @@ Homepage: https://www.sipwise.com/
Standards-Version: 4.5.1
Build-Depends:
debhelper-compat (= 13),
yarnpkg | nodejs (>= 12.19.0~),
yarnpkg | yarn,
nodejs (>= 18),
python3,
yarnpkg,
Package: ngcp-csc-ui
Architecture: all
Depends:
nodejs (>= 18),
${misc:Depends},
${shlibs:Depends},
Description: Customer Self-Care Web UI

5
debian/rules vendored

@ -3,6 +3,11 @@
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export NODE_PATH=/usr/lib/nodejs:/usr/share/nodejs
# webpack 4.x compatibility, remove it when @quasar/app is upgraded and it uses webpack 5.x
export NODE_OPTIONS=--openssl-legacy-provider
# if yarnpkg is available use it, otherwise fall back to yarn
YARN_BIN := $(shell which yarnpkg || echo yarn)

Loading…
Cancel
Save