libv8-node 16.10.0.0 → 16.17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/ext/libv8-node/paths.rb +5 -1
 - data/lib/libv8/node/version.rb +3 -3
 - data/libexec/build-libv8 +2 -2
 - data/libexec/inject-libv8 +6 -0
 - data/libexec/metadata +1 -1
 - data/libexec/platform +43 -4
 - data/sums/v16.17.0.sum +1 -0
 - metadata +8 -7
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 1418da543f7b008a2dcc43ad2f635db163fccdab6cb45c75208aa845b4a559e3
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6662acb35af871828f5020e7cd6f0095f3d9c698d6fa2f0e004dbb4f34a87ced
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3fec7dd329c2ab9c02e9eb5d094ed0e72592914bfcbeb9a03ba6acb3d0cb014d611b8aed203c9af167e137253c747c00aef5cdd21ea6d136b09ffb346e3f00e8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9090f42b5ed17cd55bfe3654c297ecc333f46e75d4b0a6fe56c5a178c5b9c51475ab79b2bef063058d69abc6c3666cf996e5b818fb86ea79101d0f5be139735f
         
     | 
    
        data/ext/libv8-node/paths.rb
    CHANGED
    
    | 
         @@ -13,12 +13,16 @@ module Libv8::Node 
     | 
|
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
                def object_paths
         
     | 
| 
       15 
15 
     | 
    
         
             
                  [Shellwords.escape(File.join(vendored_source_path,
         
     | 
| 
       16 
     | 
    
         
            -
                                                
     | 
| 
      
 16 
     | 
    
         
            +
                                               platform,
         
     | 
| 
       17 
17 
     | 
    
         
             
                                               'libv8',
         
     | 
| 
       18 
18 
     | 
    
         
             
                                               'obj',
         
     | 
| 
       19 
19 
     | 
    
         
             
                                               "libv8_monolith.#{config['LIBEXT']}"))]
         
     | 
| 
       20 
20 
     | 
    
         
             
                end
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
      
 22 
     | 
    
         
            +
                def platform
         
     | 
| 
      
 23 
     | 
    
         
            +
                  Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? && p.instance_eval { @version = 'musl' } }.to_s.gsub(/-darwin-?\d+/, '-darwin')
         
     | 
| 
      
 24 
     | 
    
         
            +
                end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
       22 
26 
     | 
    
         
             
                def config
         
     | 
| 
       23 
27 
     | 
    
         
             
                  RbConfig::MAKEFILE_CONFIG
         
     | 
| 
       24 
28 
     | 
    
         
             
                end
         
     | 
    
        data/lib/libv8/node/version.rb
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            module Libv8; end
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module Libv8::Node
         
     | 
| 
       4 
     | 
    
         
            -
              VERSION = '16. 
     | 
| 
       5 
     | 
    
         
            -
              NODE_VERSION = '16. 
     | 
| 
       6 
     | 
    
         
            -
              LIBV8_VERSION = '9. 
     | 
| 
      
 4 
     | 
    
         
            +
              VERSION = '16.17.0.0'.freeze
         
     | 
| 
      
 5 
     | 
    
         
            +
              NODE_VERSION = '16.17.0'.freeze
         
     | 
| 
      
 6 
     | 
    
         
            +
              LIBV8_VERSION = '9.4.146.26'.freeze # from v8/include/v8-version.h
         
     | 
| 
       7 
7 
     | 
    
         
             
            end
         
     | 
    
        data/libexec/build-libv8
    CHANGED
    
    | 
         @@ -29,8 +29,8 @@ eval "$("${libexec}/platform")" 
     | 
|
| 
       29 
29 
     | 
    
         
             
            echo "configure: ${configure_flags}"
         
     | 
| 
       30 
30 
     | 
    
         
             
            echo "compilers: CC='${CC}' CXX='${CXX}' CC_host='${CC_host:-}' CXX_host='${CXX_host:-}'"
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
      
 32 
     | 
    
         
            +
            ${CC} -v
         
     | 
| 
      
 33 
     | 
    
         
            +
            ${CXX} -v
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
       35 
35 
     | 
    
         
             
            # shellcheck disable=SC2086
         
     | 
| 
       36 
36 
     | 
    
         
             
            "${PYTHON}" configure ${configure_flags}
         
     | 
    
        data/libexec/inject-libv8
    CHANGED
    
    | 
         @@ -26,6 +26,12 @@ done 
     | 
|
| 
       26 
26 
     | 
    
         | 
| 
       27 
27 
     | 
    
         
             
            cd "${BASEDIR}/out/${BUILDTYPE}"
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
      
 29 
     | 
    
         
            +
            case "${RUBY_TARGET_PLATFORM}" in
         
     | 
| 
      
 30 
     | 
    
         
            +
                *-darwin*)
         
     | 
| 
      
 31 
     | 
    
         
            +
                    RUBY_TARGET_PLATFORM="$(echo "${RUBY_TARGET_PLATFORM}" | sed -e 's/-darwin[0-9]*/-darwin/')"
         
     | 
| 
      
 32 
     | 
    
         
            +
                    ;;
         
     | 
| 
      
 33 
     | 
    
         
            +
            esac
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
       29 
35 
     | 
    
         
             
            rm -rf "${top}/vendor/v8/${RUBY_TARGET_PLATFORM}"
         
     | 
| 
       30 
36 
     | 
    
         
             
            # shellcheck disable=SC2043
         
     | 
| 
       31 
37 
     | 
    
         
             
            for lib in libv8_monolith.a; do
         
     | 
    
        data/libexec/metadata
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ case "$1" in 
     | 
|
| 
       5 
5 
     | 
    
         
             
                    ruby -e 'puts RUBY_PLATFORM'
         
     | 
| 
       6 
6 
     | 
    
         
             
                    ;;
         
     | 
| 
       7 
7 
     | 
    
         
             
                gem_platform)
         
     | 
| 
       8 
     | 
    
         
            -
                    ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }'
         
     | 
| 
      
 8 
     | 
    
         
            +
                    ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s.gsub(/-darwin-?\d+/, "-darwin")'
         
     | 
| 
       9 
9 
     | 
    
         
             
                    ;;
         
     | 
| 
       10 
10 
     | 
    
         
             
                gem_version|version)
         
     | 
| 
       11 
11 
     | 
    
         
             
                    ruby -I'lib' -r'libv8/node/version' -e 'puts Libv8::Node::VERSION'
         
     | 
    
        data/libexec/platform
    CHANGED
    
    | 
         @@ -16,7 +16,7 @@ fi 
     | 
|
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
            STRIP="${STRIP:-strip}"
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
            triple=$( 
     | 
| 
      
 19 
     | 
    
         
            +
            triple=$(${CC} -dumpmachine)
         
     | 
| 
       20 
20 
     | 
    
         
             
            host_platform="${triple}"
         
     | 
| 
       21 
21 
     | 
    
         
             
            target_platform="${TARGET_PLATFORM:-${1:-}}"
         
     | 
| 
       22 
22 
     | 
    
         
             
            target_platform="${target_platform:-${host_platform}}"
         
     | 
| 
         @@ -42,14 +42,17 @@ case "${target_platform}" in 
     | 
|
| 
       42 
42 
     | 
    
         
             
                    ;;
         
     | 
| 
       43 
43 
     | 
    
         
             
                x86_64*-darwin*)
         
     | 
| 
       44 
44 
     | 
    
         
             
                    # not for cross compilation
         
     | 
| 
       45 
     | 
    
         
            -
                    RUBY_TARGET_PLATFORM= 
     | 
| 
      
 45 
     | 
    
         
            +
                    RUBY_TARGET_PLATFORM='x86_64-darwin'
         
     | 
| 
       46 
46 
     | 
    
         
             
                    ;;
         
     | 
| 
       47 
47 
     | 
    
         
             
                arm64*-darwin*)
         
     | 
| 
       48 
48 
     | 
    
         
             
                    # not for cross compilation
         
     | 
| 
       49 
     | 
    
         
            -
                    RUBY_TARGET_PLATFORM= 
     | 
| 
      
 49 
     | 
    
         
            +
                    RUBY_TARGET_PLATFORM='arm64-darwin'
         
     | 
| 
       50 
50 
     | 
    
         
             
                    ;;
         
     | 
| 
       51 
51 
     | 
    
         
             
                *)
         
     | 
| 
       52 
     | 
    
         
            -
                     
     | 
| 
      
 52 
     | 
    
         
            +
                    if [ "${host_platform}" != "${target_platform}" ]; then
         
     | 
| 
      
 53 
     | 
    
         
            +
                        echo 'cross compilation not supported'
         
     | 
| 
      
 54 
     | 
    
         
            +
                        exit 1
         
     | 
| 
      
 55 
     | 
    
         
            +
                    fi
         
     | 
| 
       53 
56 
     | 
    
         
             
                    RUBY_TARGET_PLATFORM="$(ruby -e 'puts Gem::Platform.local.to_s')"
         
     | 
| 
       54 
57 
     | 
    
         
             
                    ;;
         
     | 
| 
       55 
58 
     | 
    
         
             
            esac
         
     | 
| 
         @@ -81,6 +84,30 @@ if [ "${host_platform}" != "${target_platform}" ]; then 
     | 
|
| 
       81 
84 
     | 
    
         
             
                        STRIP='arm-linux-gnueabihf-strip'
         
     | 
| 
       82 
85 
     | 
    
         
             
                        configure_flags='--dest-cpu=arm --cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon'
         
     | 
| 
       83 
86 
     | 
    
         
             
                        ;;
         
     | 
| 
      
 87 
     | 
    
         
            +
                    x86_64-*linux*)
         
     | 
| 
      
 88 
     | 
    
         
            +
                        CC='x86_64-linux-gnu-gcc'
         
     | 
| 
      
 89 
     | 
    
         
            +
                        CXX='x86_64-linux-gnu-g++'
         
     | 
| 
      
 90 
     | 
    
         
            +
                        CC_host='gcc'
         
     | 
| 
      
 91 
     | 
    
         
            +
                        CXX_host='g++'
         
     | 
| 
      
 92 
     | 
    
         
            +
                        STRIP='x86_64-linux-gnu-strip'
         
     | 
| 
      
 93 
     | 
    
         
            +
                        configure_flags='--dest-cpu=x86_64 --cross-compiling --dest-os=linux'
         
     | 
| 
      
 94 
     | 
    
         
            +
                        ;;
         
     | 
| 
      
 95 
     | 
    
         
            +
                    x86_64*-darwin*)
         
     | 
| 
      
 96 
     | 
    
         
            +
                        CC='clang -arch x86_64'
         
     | 
| 
      
 97 
     | 
    
         
            +
                        CXX='clang++ -arch x86_64'
         
     | 
| 
      
 98 
     | 
    
         
            +
                        CC_host='clang'
         
     | 
| 
      
 99 
     | 
    
         
            +
                        CXX_host='clang++'
         
     | 
| 
      
 100 
     | 
    
         
            +
                        STRIP='strip'
         
     | 
| 
      
 101 
     | 
    
         
            +
                        configure_flags='--dest-cpu=x86_64 --cross-compiling --dest-os=mac'
         
     | 
| 
      
 102 
     | 
    
         
            +
                        ;;
         
     | 
| 
      
 103 
     | 
    
         
            +
                    arm64*-darwin*)
         
     | 
| 
      
 104 
     | 
    
         
            +
                        CC='clang -arch arm64'
         
     | 
| 
      
 105 
     | 
    
         
            +
                        CXX='clang++ -arch arm64'
         
     | 
| 
      
 106 
     | 
    
         
            +
                        CC_host='clang'
         
     | 
| 
      
 107 
     | 
    
         
            +
                        CXX_host='clang++'
         
     | 
| 
      
 108 
     | 
    
         
            +
                        STRIP='strip'
         
     | 
| 
      
 109 
     | 
    
         
            +
                        configure_flags='--dest-cpu=arm64 --cross-compiling --dest-os=mac'
         
     | 
| 
      
 110 
     | 
    
         
            +
                        ;;
         
     | 
| 
       84 
111 
     | 
    
         
             
                    *)
         
     | 
| 
       85 
112 
     | 
    
         
             
                        configure_flags=''
         
     | 
| 
       86 
113 
     | 
    
         
             
                        ;;
         
     | 
| 
         @@ -102,6 +129,18 @@ fi 
     | 
|
| 
       102 
129 
     | 
    
         
             
            #         ;;
         
     | 
| 
       103 
130 
     | 
    
         
             
            # esac
         
     | 
| 
       104 
131 
     | 
    
         | 
| 
      
 132 
     | 
    
         
            +
            if command -v ccache >/dev/null 2>&1; then
         
     | 
| 
      
 133 
     | 
    
         
            +
                if [ -n "${CC:-}" ] && [ "${CC}" = "${CC#ccache}" ]; then
         
     | 
| 
      
 134 
     | 
    
         
            +
                    CC="ccache ${CC}"
         
     | 
| 
      
 135 
     | 
    
         
            +
                    CXX="ccache ${CXX}"
         
     | 
| 
      
 136 
     | 
    
         
            +
                fi
         
     | 
| 
      
 137 
     | 
    
         
            +
             
     | 
| 
      
 138 
     | 
    
         
            +
                if [ -n "${CC_host:-}" ] && [ "${CC_host}" = "${CC_host#ccache}" ]; then
         
     | 
| 
      
 139 
     | 
    
         
            +
                    CC_host="ccache ${CC_host}"
         
     | 
| 
      
 140 
     | 
    
         
            +
                    CXX_host="ccache ${CXX_host}"
         
     | 
| 
      
 141 
     | 
    
         
            +
                fi
         
     | 
| 
      
 142 
     | 
    
         
            +
            fi
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
       105 
144 
     | 
    
         
             
            cat <<EOF
         
     | 
| 
       106 
145 
     | 
    
         
             
            export CC='${CC}'
         
     | 
| 
       107 
146 
     | 
    
         
             
            export CXX='${CXX}'
         
     | 
    
        data/sums/v16.17.0.sum
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            2a2e6262739741f98ab81648a50891861dbf66f12413b93f1a97b4c71570611e
         
     | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 16.17.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - ''
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2022-08-29 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rake
         
     | 
| 
         @@ -69,6 +69,7 @@ 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
         
     | 
| 
       72 
73 
     | 
    
         
             
            - sums/v16.3.0.sum
         
     | 
| 
       73 
74 
     | 
    
         
             
            - sums/v16.4.2.sum
         
     | 
| 
       74 
75 
     | 
    
         
             
            - sums/v16.5.0.sum
         
     | 
| 
         @@ -76,11 +77,11 @@ files: 
     | 
|
| 
       76 
77 
     | 
    
         
             
            - sums/v16.7.0.sum
         
     | 
| 
       77 
78 
     | 
    
         
             
            - sums/v16.8.0.sum
         
     | 
| 
       78 
79 
     | 
    
         
             
            - sums/v16.9.1.sum
         
     | 
| 
       79 
     | 
    
         
            -
            homepage: https://github.com/ 
     | 
| 
      
 80 
     | 
    
         
            +
            homepage: https://github.com/rubyjs/libv8-node
         
     | 
| 
       80 
81 
     | 
    
         
             
            licenses:
         
     | 
| 
       81 
82 
     | 
    
         
             
            - MIT
         
     | 
| 
       82 
83 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       83 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 84 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       84 
85 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       85 
86 
     | 
    
         
             
            require_paths:
         
     | 
| 
       86 
87 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -96,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       96 
97 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       97 
98 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       98 
99 
     | 
    
         
             
            requirements: []
         
     | 
| 
       99 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
       100 
     | 
    
         
            -
            signing_key: 
     | 
| 
      
 100 
     | 
    
         
            +
            rubygems_version: 3.2.26
         
     | 
| 
      
 101 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       101 
102 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       102 
103 
     | 
    
         
             
            summary: Node.JS's V8 JavaScript engine
         
     | 
| 
       103 
104 
     | 
    
         
             
            test_files: []
         
     |