libv8-node 17.9.1.1 → 18.8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca9188ddf638912731789be80c87f997f40381a0be3567adbc3cd55962a69a05
4
- data.tar.gz: 76b3e45554806ae36bd0f93ec5660f0a1c000481bf50a9fa6bda9c1bce59af69
3
+ metadata.gz: 8651235d98f90eeb7ccefdcb3f3f9de31306155071c46636338099c8c6f5e8c4
4
+ data.tar.gz: ab3828a5d6b8997cf6975cc2912adec25ad7a9a604577dac284391ddab8d7c5e
5
5
  SHA512:
6
- metadata.gz: 665bee5f4f1588e8dcdaf1f642775a21d08b47236c1ab665d26795ad1e7288c11e5c8fc4273cf24f4d7883c871f8b0fcaeeffb5b275f46c1bb971131cd2a0ab8
7
- data.tar.gz: b7e80764d4808a41cc66053ed740155a65e01c5a8d98fb6708c8454bf274772ef16e53d619f4792ea0fa94d571264b35e27709e82c55ee3ee185f96bc2d9c287
6
+ metadata.gz: 7422adf3ee5ba6214a765e8001ecdb51a52bea5aab5a844b5794bba668015c084bf763ad4b2ffa0ced2d45eb36de2446d635d32ae73d6c32ce8fd8a5c0bf882b
7
+ data.tar.gz: b17938207700356a20839ec637c13859bfc2baba299d534fcd6d019ca61ce97668ac0be1117b19cc95708733b79903a69beaa7a85d72006b9e41e819f102ab38
@@ -1,4 +1,4 @@
1
- unless $LOAD_PATH.include?(File.expand_path('../../lib', __dir__)) # rubocop:disable Style/IfUnlessModifier
1
+ unless $LOAD_PATH.include?(File.expand_path('../../lib', __dir__))
2
2
  $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
3
3
  end
4
4
  require 'libv8/node/version'
@@ -1,12 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'mkmf'
4
-
5
- if RUBY_ENGINE == 'truffleruby'
6
- File.write('Makefile', dummy_makefile($srcdir).join('')) # rubocop:disable Style/GlobalVars
7
- return
8
- end
9
-
10
4
  create_makefile('libv8-node')
11
5
 
12
6
  require File.expand_path('location', __dir__)
@@ -45,7 +45,7 @@ module Libv8::Node
45
45
  def verify_installation!
46
46
  include_paths = Libv8::Node::Paths.include_paths
47
47
 
48
- unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? } # rubocop:disable Style/IfUnlessModifier
48
+ unless include_paths.detect { |p| Pathname(p).join('v8.h').exist? }
49
49
  raise(HeaderNotFound, "Unable to locate 'v8.h' in the libv8 header paths: #{include_paths.inspect}")
50
50
  end
51
51
 
@@ -1,7 +1,7 @@
1
1
  module Libv8; end
2
2
 
3
3
  module Libv8::Node
4
- VERSION = '17.9.1.1'.freeze
5
- NODE_VERSION = '17.9.1'.freeze
6
- LIBV8_VERSION = '9.6.180.15'.freeze # from v8/include/v8-version.h
4
+ VERSION = '18.8.0.0'.freeze
5
+ NODE_VERSION = '18.8.0'.freeze
6
+ LIBV8_VERSION = '10.2.154.13'.freeze # from v8/include/v8-version.h
7
7
  end
data/libexec/build-libv8 CHANGED
@@ -17,6 +17,12 @@ BUILDTYPE="${BUILDTYPE:-Release}"
17
17
 
18
18
  cd "${src}/node-v${version}"
19
19
 
20
+ if command -v python3 >/dev/null 2>&1; then
21
+ PYTHON="${PYTHON:-python3}"
22
+ else
23
+ PYTHON="${PYTHON:-python2}"
24
+ fi
25
+
20
26
  configure_flags='--openssl-no-asm --without-npm --shared --with-intl=full-icu'
21
27
  eval "$("${libexec}/platform")"
22
28
 
@@ -27,18 +33,10 @@ ${CC} -v
27
33
  ${CXX} -v
28
34
 
29
35
  # shellcheck disable=SC2086
30
- ./configure ${configure_flags}
36
+ "${PYTHON}" configure ${configure_flags}
31
37
 
32
38
  make BUILDTYPE="${BUILDTYPE}" config.gypi
33
39
  make BUILDTYPE="${BUILDTYPE}" "out/Makefile"
34
40
 
35
- # workaround for node specifying `-msign-return-address=all` in ALL `CFLAGS` for aarch64 builds
36
- # (if the host isn't also aarch64, this flag causes a compiler error)
37
-
38
- # shellcheck disable=SC2154 # these variables are defined by `eval`ing the output of the platform script above
39
- if [ "$host_platform" != "$target_platform" ] && [ "${target_platform%%-*}" = "aarch64" ]; then
40
- find . -iname "*.host.mk" -exec sed -i '/-msign-return-address/d' {} ';'
41
- fi
42
-
43
41
  export PATH="${PWD}/out/tools/bin:${PATH}"
44
42
  make -j"${NJOBS}" -C out BUILDTYPE="${BUILDTYPE}" V=0
@@ -21,14 +21,13 @@ platform=$(uname)
21
21
  rm -f "${LIBV8_MONOLITH}"
22
22
  case "${platform}" in
23
23
  "SunOS")
24
- /usr/xpg4/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
24
+ /usr/xpg4/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar cq "${LIBV8_MONOLITH}"
25
25
  ;;
26
26
  "Darwin")
27
- /usr/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
27
+ /usr/bin/find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs /usr/bin/ar -cq "${LIBV8_MONOLITH}"
28
28
  ;;
29
29
  "Linux")
30
- find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" ')' | sort | uniq | xargs ar -cqSP "${LIBV8_MONOLITH}"
31
- ar -sP "${LIBV8_MONOLITH}"
30
+ find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar -cq "${LIBV8_MONOLITH}"
32
31
  ;;
33
32
  *)
34
33
  echo "Unsupported platform: ${platform}"
data/libexec/extract-node CHANGED
@@ -32,7 +32,6 @@ cd "${src}/node-v${version}"
32
32
  #patch -p1 < "${top}"/patch/gyp-libv8_monolith.patch
33
33
  patch -p1 < "${top}"/patch/py2-icutrim.patch
34
34
  patch -p1 < "${top}"/patch/py2-genv8constants.patch
35
- patch -p0 < "${top}"/patch/v8-prefinalizer-h-utility.patch
36
35
 
37
36
  # TODO: the following still fails on py3 so the above one forcing py2 is needed
38
37
  # patch -p1 < ../../py3-genv8constants.patch
data/libexec/inject-libv8 CHANGED
@@ -39,35 +39,8 @@ for lib in libv8_monolith.a; do
39
39
  mkdir -p "${dir}"
40
40
  rm -f "${dir}/${lib}"
41
41
 
42
- if [ "$STRIP_NEEDS_EXTRACT" = "y" ]; then
43
- # manual extract/strip objects/build archive sequence
44
- # because `strip` can't deal with these
45
- # (presumably due to that folder issue mentioned below)
46
- (
47
- tmpdir="$(mktemp -d)"
48
- trap 'rm -r "$tmpdir"' EXIT
49
- mkdir "$tmpdir/stage"
50
- cd "$tmpdir/stage"
51
-
52
- # create folders named in `ar` archive (`ar -x` fails to create these)
53
- "$AR" "$ARLISTFLAGS" "$BASEDIR/out/$BUILDTYPE/$lib" | while read -r path; do
54
- dirname "$path"
55
- done | uniq | xargs mkdir -p
56
- "$AR" "$AREXTRACTFLAGS" "$BASEDIR/out/${BUILDTYPE}/$lib"
57
-
58
- # strip all objects
59
- "$FIND" -type f -exec "$STRIP" -Sx {} +
60
-
61
- # rebuild the archive
62
- "$FIND" -type f -exec "$AR" "$ARCOLLECTFLAGS" "../$lib" {} +
63
- $ARBUILDSYMBOLS "../$lib"
64
- mv "../$lib" "$dir/$lib"
65
- )
66
- echo "${BASEDIR}/out/${BUILDTYPE}/${lib} -> ${dir}/${lib}"
67
- else
68
- echo "${BASEDIR}/out/${BUILDTYPE}/${lib} -> ${dir}/${lib}"
69
- "${STRIP}" -S -x -o "${dir}/${lib}" "${lib}"
70
- fi
42
+ echo "${BASEDIR}/out/${BUILDTYPE}/${lib} -> ${dir}/${lib}"
43
+ "${STRIP}" -S -x -o "${dir}/${lib}" "${lib}"
71
44
  done
72
45
 
73
46
  mkdir -p "${top}/ext/libv8-node"
data/libexec/platform CHANGED
@@ -15,14 +15,6 @@ elif command -v cc >/dev/null 2>&1; then
15
15
  fi
16
16
 
17
17
  STRIP="${STRIP:-strip}"
18
- AR="${AR:-ar}"
19
- AREXTRACTFLAGS="${AREXTRACTFLAGS:--x}"
20
- ARLISTFLAGS="${ARLISTFLAGS:--t}"
21
- ARCOLLECTFLAGS="${ARCOLLECTFLAGS:-cqS}"
22
- # this is the command to build the symbol table in an ar archive.
23
- ARBUILDSYMBOLS="${ARBUILDSYMBOLS:-ranlib}"
24
- FIND="${FIND:-find}"
25
- STRIP_NEEDS_EXTRACT="${STRIP_NEEDS_EXTRACT:-n}"
26
18
 
27
19
  triple=$(${CC} -dumpmachine)
28
20
  host_platform="${triple}"
@@ -71,11 +63,6 @@ case "${host_platform}" in
71
63
  CXX="${CXX:-/opt/local/gcc7/bin/g++}"
72
64
  STRIP="gstrip"
73
65
  ;;
74
- *linux*)
75
- STRIP_NEEDS_EXTRACT="y"
76
- ARCOLLECTFLAGS="-cqSP"
77
- ARBUILDSYMBOLS="${AR} -sP"
78
- ;;
79
66
  esac
80
67
 
81
68
  if [ "${host_platform}" != "${target_platform}" ]; then
@@ -159,14 +146,6 @@ export CC='${CC}'
159
146
  export CXX='${CXX}'
160
147
  host_platform='${host_platform}'
161
148
  target_platform='${target_platform}'
162
- STRIP='$STRIP'
163
- AR='$AR'
164
- AREXTRACTFLAGS='$AREXTRACTFLAGS'
165
- ARLISTFLAGS='$ARLISTFLAGS'
166
- ARCOLLECTFLAGS='$ARCOLLECTFLAGS'
167
- ARBUILDSYMBOLS='$ARBUILDSYMBOLS'
168
- FIND='$FIND'
169
- STRIP_NEEDS_EXTRACT='$STRIP_NEEDS_EXTRACT'
170
149
  EOF
171
150
 
172
151
  if [ -n "${CC_host:-}" ]; then cat <<EOF; fi
data/sums/v18.8.0.sum ADDED
@@ -0,0 +1 @@
1
+ 676a3ca9bdbe7381e49652f2f78705f83175f3844a7450893d562faa35537ba2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8-node
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.9.1.1
4
+ version: 18.8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.44.0
33
+ version: 0.50.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.44.0
40
+ version: 0.50.0
41
41
  description: Node.JS's V8 JavaScript engine for multiplatform goodness
42
42
  email:
43
43
  - ''
@@ -67,7 +67,6 @@ files:
67
67
  - patch/py2-genv8constants.patch
68
68
  - patch/py2-icutrim.patch
69
69
  - patch/py3-genv8constants.patch
70
- - patch/v8-prefinalizer-h-utility.patch
71
70
  - sums/v16.10.0.sum
72
71
  - sums/v16.11.1.sum
73
72
  - sums/v16.3.0.sum
@@ -79,6 +78,7 @@ files:
79
78
  - sums/v16.9.1.sum
80
79
  - sums/v17.3.1.sum
81
80
  - sums/v17.9.1.sum
81
+ - sums/v18.8.0.sum
82
82
  homepage: https://github.com/rubyjs/libv8-node
83
83
  licenses:
84
84
  - MIT
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.3.20
102
+ rubygems_version: 3.2.26
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Node.JS's V8 JavaScript engine
@@ -1,10 +0,0 @@
1
- --- deps/v8/src/heap/cppgc/prefinalizer-handler.h
2
- +++ deps/v8/src/heap/cppgc/prefinalizer-handler.h
3
- @@ -6,6 +6,7 @@
4
- #define V8_HEAP_CPPGC_PREFINALIZER_HANDLER_H_
5
-
6
- #include <vector>
7
- +#include <utility>
8
-
9
- #include "include/cppgc/prefinalizer.h"
10
-