libv8-node 16.20.0.0 → 17.9.1.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: 3ebfacca480d86eb1a0744c4f8cf2e8a8a83c3af03b8a182fd47f43acf4301a3
4
- data.tar.gz: 699fb2ad59c8da4727a76c380d38c1d379544b57b15cff6b5088c6991ed3c5b5
3
+ metadata.gz: 77d656afd7388f0880caf7e7dd87f11f52e1433d78251bc830ce079dfd08e13f
4
+ data.tar.gz: 6f26a9758e57478e432686ef6763df7387d988cdb32c6c3895d2cb7e699f5c54
5
5
  SHA512:
6
- metadata.gz: 556ec76ae42a265809bf55eef711fb87d2a3cb7667ff577930c15cab6c2e9a9d90046673fa2ca53c10822d2059932a247b384a731e1a8159ac89b633539af408
7
- data.tar.gz: 8300a29ac9af985b3f60f55bbf4c1025b862b0d102287c4882526d3dcb3b9aad6fb2fefc7ac3736bb6c5a6da35fc8e21fb3160491e3e36d9b41a2a8666bb2840
6
+ metadata.gz: 638aad097efa406f29de95569a28ba12d35c711d374dc011612704658e2552ba058abaa18d5a3730e06cfe5e20b189154c6e83f2628c19a1753c847e583b101f
7
+ data.tar.gz: c0cc5d4664da75583e892eaeac8b5293943a93a0b4e8374f02e64df1504de1bfe3493a9f6f628a45cbbd1312b5746beb41a42bff046df1d75aef090325e81bfb
@@ -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 = '16.20.0.0'.freeze
5
- NODE_VERSION = '16.20.0'.freeze
6
- LIBV8_VERSION = '9.4.146.26'.freeze # from v8/include/v8-version.h
4
+ VERSION = '17.9.1.0'.freeze
5
+ NODE_VERSION = '17.9.1'.freeze
6
+ LIBV8_VERSION = '9.6.180.15'.freeze # from v8/include/v8-version.h
7
7
  end
data/libexec/build-libv8 CHANGED
@@ -38,13 +38,5 @@ ${CXX} -v
38
38
  make BUILDTYPE="${BUILDTYPE}" config.gypi
39
39
  make BUILDTYPE="${BUILDTYPE}" "out/Makefile"
40
40
 
41
- # workaround for node specifying `-msign-return-address=all` in ALL `CFLAGS` for aarch64 builds
42
- # (if the host isn't also aarch64, this flag causes a compiler error)
43
-
44
- # shellcheck disable=SC2154 # these variables are defined by `eval`ing the output of the platform script above
45
- if [ "$host_platform" != "$target_platform" ] && [ "${target_platform%%-*}" = "aarch64" ]; then
46
- find . -iname "*.host.mk" -exec sed -i '/-msign-return-address/d' {} ';'
47
- fi
48
-
49
41
  export PATH="${PWD}/out/tools/bin:${PATH}"
50
42
  make -j"${NJOBS}" -C out BUILDTYPE="${BUILDTYPE}" V=0
@@ -21,20 +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' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" ')' | sort | uniq | while read -r obj; do
25
- ar cqS "${LIBV8_MONOLITH}" "${obj}"
26
- done
27
- ranlib "${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}"
28
25
  ;;
29
26
  "Darwin")
30
- /usr/bin/find . '(' '!' -path './icutools/deps/icu-small/source/stubdata/stubdata.o' ')' -and '(' -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" ')' | sort | uniq | while read -r obj; do
31
- /usr/bin/ar -cqS "${LIBV8_MONOLITH}" "${obj}"
32
- done
33
- /usr/bin/ranlib "${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}"
34
28
  ;;
35
29
  "Linux")
36
- 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}"
37
- ar -sP "${LIBV8_MONOLITH}"
30
+ find . -path "./torque_*/**/*.o" -or -path "./v8*/**/*.o" -or -path "./icu*/**/*.o" | sort | uniq | xargs ar -cq "${LIBV8_MONOLITH}"
38
31
  ;;
39
32
  *)
40
33
  echo "Unsupported platform: ${platform}"
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/v17.3.1.sum ADDED
@@ -0,0 +1 @@
1
+ 34ed7eeb1fd088c59e2719c229dc9587c9f106b45329798ca3945c386ac824ed
data/sums/v17.9.1.sum ADDED
@@ -0,0 +1 @@
1
+ 1102f5e0aafaab8014d19c6c57142caf2ba3ef69d88d7a7f0f82798051796027
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: 16.20.0.0
4
+ version: 17.9.1.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-26 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
  - ''
@@ -69,9 +69,6 @@ files:
69
69
  - patch/py3-genv8constants.patch
70
70
  - sums/v16.10.0.sum
71
71
  - sums/v16.11.1.sum
72
- - sums/v16.17.0.sum
73
- - sums/v16.19.0.sum
74
- - sums/v16.20.0.sum
75
72
  - sums/v16.3.0.sum
76
73
  - sums/v16.4.2.sum
77
74
  - sums/v16.5.0.sum
@@ -79,6 +76,8 @@ files:
79
76
  - sums/v16.7.0.sum
80
77
  - sums/v16.8.0.sum
81
78
  - sums/v16.9.1.sum
79
+ - sums/v17.3.1.sum
80
+ - sums/v17.9.1.sum
82
81
  homepage: https://github.com/rubyjs/libv8-node
83
82
  licenses:
84
83
  - MIT
@@ -99,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
98
  - !ruby/object:Gem::Version
100
99
  version: '0'
101
100
  requirements: []
102
- rubygems_version: 3.3.20
101
+ rubygems_version: 3.2.26
103
102
  signing_key:
104
103
  specification_version: 4
105
104
  summary: Node.JS's V8 JavaScript engine
data/sums/v16.17.0.sum DELETED
@@ -1 +0,0 @@
1
- 2a2e6262739741f98ab81648a50891861dbf66f12413b93f1a97b4c71570611e
data/sums/v16.19.0.sum DELETED
@@ -1 +0,0 @@
1
- 8b8a2939fa5f654ff61cae29b12118c24109273458ecbe6162ad8a8858309e0d
data/sums/v16.20.0.sum DELETED
@@ -1 +0,0 @@
1
- 58c10af148bce26f17417f58ab8f71b91003cae87df17cc48e9f09c94edd908f