libdatadog 0.7.0.1.0 → 2.0.0.1.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 +1 -1
  3. data/lib/libdatadog.rb +18 -1
  4. data/vendor/{libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-2.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +395 -247
  5. data/vendor/libdatadog-2.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/common.h +496 -0
  6. data/vendor/libdatadog-2.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/profiling.h +285 -0
  7. data/vendor/libdatadog-2.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  8. data/vendor/{libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-2.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  9. data/vendor/{libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-2.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +395 -247
  10. data/vendor/libdatadog-2.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/common.h +496 -0
  11. data/vendor/libdatadog-2.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/profiling.h +285 -0
  12. data/vendor/libdatadog-2.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  13. data/vendor/{libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-2.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  14. data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml +395 -247
  15. data/vendor/libdatadog-2.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +496 -0
  16. data/vendor/libdatadog-2.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +285 -0
  17. data/vendor/libdatadog-2.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  18. data/vendor/{libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-2.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  19. data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE-3rdparty.yml +395 -247
  20. data/vendor/libdatadog-2.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h +496 -0
  21. data/vendor/libdatadog-2.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/profiling.h +285 -0
  22. data/vendor/libdatadog-2.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  23. data/vendor/{libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-2.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  24. metadata +31 -27
  25. data/vendor/libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/ddprof/ffi.h +0 -591
  26. data/vendor/libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libddprof_ffi.so +0 -0
  27. data/vendor/libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/ddprof/ffi.h +0 -591
  28. data/vendor/libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libddprof_ffi.so +0 -0
  29. data/vendor/libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/ddprof/ffi.h +0 -591
  30. data/vendor/libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libddprof_ffi.so +0 -0
  31. data/vendor/libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/ddprof/ffi.h +0 -591
  32. data/vendor/libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libddprof_ffi.so +0 -0
  33. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
  34. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
  35. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
  36. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
  37. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
  38. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
  39. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
  40. /data/vendor/{libdatadog-0.7.0 → libdatadog-2.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 631455d7d62a0281435df76425bfee4091aa653f441cc75792d1a727fb4903a5
4
- data.tar.gz: ce4639f1688a301e6afd8e0ecb19ebb8ac117bdd385411fa04c2b59f068416c7
3
+ metadata.gz: 76a7e136cd6cf9297e85c223ed571751dc6ede185a9ceeca70114171b933d650
4
+ data.tar.gz: '089d17eb9cc5fbbbd584aac4620a256e385b3bd3178d8670e25c4be3aba42394'
5
5
  SHA512:
6
- metadata.gz: f5ddb3dde1776e01aa200473aa2fd189e7333c3187c1b7d009fae55986bd25195f47ca68c620b39d7cf01a46ae591eebda428738be353e15228eb2e48eefed4d
7
- data.tar.gz: d1093cb12956e3dfffdabbf73f965087578313abac085e485cbb2759b4935c0d0ba8e8c96584038a11a6c38a5fca53c8569e8f16e02d2f909df808b7cadacc47
6
+ metadata.gz: df384301ed0a3974428d01c755e73e4d6dfffc2fe843f4e9b6570a5137dd9c36773be084db496832dec40f9c5bf8b542e876fe67005ab1acbaca1164bd368999
7
+ data.tar.gz: e529479f6f0e3d5e1f232f5fbf7a09aaa572eecc1de77025c36dee24adef45671345be50157f9b929860fa35c652ac9612e377c901ac86122aba63a492c713c9
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Libdatadog
4
4
  # Current libdatadog version
5
- LIB_VERSION = "0.7.0"
5
+ LIB_VERSION = "2.0.0"
6
6
 
7
7
  GEM_MAJOR_VERSION = "1"
8
8
  GEM_MINOR_VERSION = "0"
data/lib/libdatadog.rb CHANGED
@@ -8,9 +8,26 @@ module Libdatadog
8
8
  File.directory?(vendor_directory) ? (Dir.entries(vendor_directory) - [".", ".."]) : []
9
9
  end
10
10
 
11
- def self.pkgconfig_folder(pkgconfig_file_name = "ddprof_ffi_with_rpath.pc")
11
+ def self.pkgconfig_folder(pkgconfig_file_name = "datadog_profiling_with_rpath.pc")
12
12
  current_platform = Gem::Platform.local.to_s
13
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
30
+
14
31
  return unless available_binaries.include?(current_platform)
15
32
 
16
33
  pkgconfig_file = Dir.glob("#{vendor_directory}/#{current_platform}/**/#{pkgconfig_file_name}").first