libdatadog 5.0.0.1.0 → 6.0.0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/libdatadog/version.rb +2 -2
  3. data/lib/libdatadog.rb +34 -18
  4. data/vendor/{libdatadog-5.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +3925 -1694
  5. data/vendor/libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  6. data/vendor/{libdatadog-5.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/common.h +124 -83
  7. data/vendor/{libdatadog-5.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/profiling.h +24 -2
  8. data/vendor/libdatadog-6.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  9. data/vendor/{libdatadog-5.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +3925 -1694
  10. data/vendor/libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  11. data/vendor/{libdatadog-5.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/common.h +124 -83
  12. data/vendor/{libdatadog-5.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/profiling.h +24 -2
  13. data/vendor/libdatadog-6.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  14. data/vendor/{libdatadog-5.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/LICENSE-3rdparty.yml +3925 -1694
  15. data/vendor/libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  16. data/vendor/{libdatadog-5.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/common.h +124 -83
  17. data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +24 -2
  18. data/vendor/libdatadog-6.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  19. data/vendor/{libdatadog-5.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/LICENSE-3rdparty.yml +3925 -1694
  20. data/vendor/libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  21. data/vendor/{libdatadog-5.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/common.h +124 -83
  22. data/vendor/{libdatadog-5.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/profiling.h +24 -2
  23. data/vendor/libdatadog-6.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  24. metadata +34 -30
  25. data/vendor/libdatadog-5.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  26. data/vendor/libdatadog-5.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  27. data/vendor/libdatadog-5.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  28. data/vendor/libdatadog-5.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  29. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
  30. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
  31. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  32. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
  33. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
  34. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  35. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
  36. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
  37. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  38. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
  39. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
  40. /data/vendor/{libdatadog-5.0.0 → libdatadog-6.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 329d5a2553948784cfce3199ce245874a6f5561aad2ed548e99b676eaf7b7dfe
4
- data.tar.gz: 701ac7eb13455555c1902128086436e500bfb90722b40d7e979e75e3a6712f3f
3
+ metadata.gz: c9dfb381c70e2874c06593dceb5aac26eb2f5094c293962822dab2b4300b0a09
4
+ data.tar.gz: eda4cce6a0befafdac67597c4f006529f934ebb935633ec3dad8cc05c0c4a8df
5
5
  SHA512:
6
- metadata.gz: e77ebfd15d5b621a43a8d26f6e85742b8658f4c1086cfa91b119c3d526437ae6e7324ce3621ec1e99b126c2207569740abc0f5d1a7cec05448c4fbfb4a7e08c8
7
- data.tar.gz: a45cb41edf975a6512b800d3c5f14c927b81d8a4c4256763900d038a7db7a8ebfe483dd8557d6051da7aef146855f790f8869d4c44d5499b597ae7753f269b94
6
+ metadata.gz: 1a4bf4d54d71f5cad104b2aac373030d07aebe039852dbb4b93f2b02625362fe8b464877e3f0ba16caf99c3a69d40be3b0830b10bfe0dccacd2c08b86c2e3d26
7
+ data.tar.gz: b275e149e66ccb6d5c90ed11ffd308995d29ea5778c6bf7d5b47f39effc60aa2cb09c32c8cc828a9621206ac73568dd455d7d8fedc76ed7788d1bfc10a3f96c2
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Libdatadog
4
4
  # Current libdatadog version
5
- LIB_VERSION = "5.0.0"
5
+ LIB_VERSION = "6.0.0"
6
6
 
7
- GEM_MAJOR_VERSION = "1"
7
+ GEM_MAJOR_VERSION = "2"
8
8
  GEM_MINOR_VERSION = "0"
9
9
  GEM_PRERELEASE_VERSION = "" # remember to include dot prefix, if needed!
10
10
  private_constant :GEM_MAJOR_VERSION, :GEM_MINOR_VERSION, :GEM_PRERELEASE_VERSION
data/lib/libdatadog.rb CHANGED
@@ -9,24 +9,7 @@ module Libdatadog
9
9
  end
10
10
 
11
11
  def self.pkgconfig_folder(pkgconfig_file_name = "datadog_profiling_with_rpath.pc")
12
- current_platform = Gem::Platform.local.to_s
13
-
14
- if RbConfig::CONFIG["arch"].include?("-musl") && !current_platform.include?("-musl")
15
- # Fix/workaround for https://github.com/DataDog/dd-trace-rb/issues/2222
16
- #
17
- # Old versions of rubygems (for instance 3.0.3) don't properly detect alternative libc implementations on Linux;
18
- # in particular for our case, they don't detect musl. (For reference, Rubies older than 2.7 may have shipped with
19
- # an affected version of rubygems).
20
- # In such cases, we fall back to use RbConfig::CONFIG['arch'] instead.
21
- #
22
- # Why not use RbConfig::CONFIG['arch'] always? Because Gem::Platform.local.to_s does some normalization we want
23
- # in other situations -- for instance, it turns `x86_64-linux-gnu` to `x86_64-linux`. So for now we only add this
24
- # workaround in a specific situation where we actually know it is wrong.
25
- #
26
- # See also https://github.com/rubygems/rubygems/pull/2922 and https://github.com/rubygems/rubygems/pull/4082
27
-
28
- current_platform = RbConfig::CONFIG["arch"]
29
- end
12
+ current_platform = self.current_platform
30
13
 
31
14
  return unless available_binaries.include?(current_platform)
32
15
 
@@ -40,4 +23,37 @@ module Libdatadog
40
23
  private_class_method def self.vendor_directory
41
24
  ENV["LIBDATADOG_VENDOR_OVERRIDE"] || "#{__dir__}/../vendor/libdatadog-#{Libdatadog::LIB_VERSION}/"
42
25
  end
26
+
27
+ def self.current_platform
28
+ platform = Gem::Platform.local.to_s
29
+
30
+ if platform.end_with?("-gnu")
31
+ # In some cases on Linux with glibc the platform includes a -gnu suffix. We normalize it to not have the suffix.
32
+ #
33
+ # Note: This should be platform = platform.delete_suffix("-gnu") but it doesn't work on legacy Rubies; once
34
+ # dd-trace-rb 2.0 is out we can simplify this.
35
+ #
36
+ platform = platform[0..-5]
37
+ end
38
+
39
+ if RbConfig::CONFIG["arch"].include?("-musl") && !platform.include?("-musl")
40
+ # Fix/workaround for https://github.com/datadog/dd-trace-rb/issues/2222
41
+ #
42
+ # Old versions of rubygems (for instance 3.0.3) don't properly detect alternative libc implementations on Linux;
43
+ # in particular for our case, they don't detect musl. (For reference, Rubies older than 2.7 may have shipped with
44
+ # an affected version of rubygems).
45
+ # In such cases, we fall back to use RbConfig::CONFIG['arch'] instead.
46
+ #
47
+ # Why not use RbConfig::CONFIG['arch'] always? Because Gem::Platform.local.to_s does some normalization that seemed
48
+ # useful in the past, although part of it got removed in https://github.com/rubygems/rubygems/pull/5852.
49
+ # For now we only add this workaround in a specific situation where we actually know it is wrong, but in the
50
+ # future it may be worth re-evaluating if we should move away from `Gem::Platform` altogether.
51
+ #
52
+ # See also https://github.com/rubygems/rubygems/pull/2922 and https://github.com/rubygems/rubygems/pull/4082
53
+
54
+ RbConfig::CONFIG["arch"]
55
+ else
56
+ platform
57
+ end
58
+ end
43
59
  end