libdatadog 0.7.0.1.0.rc1 → 0.8.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 +2 -2
  3. data/lib/libdatadog.rb +18 -1
  4. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
  5. data/vendor/{libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-0.8.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +7 -143
  6. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
  7. data/vendor/libdatadog-0.8.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/common.h +430 -0
  8. data/vendor/libdatadog-0.8.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/profiling.h +212 -0
  9. data/vendor/libdatadog-0.8.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  10. data/vendor/{libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-0.8.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  11. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
  12. data/vendor/{libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-0.8.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +7 -143
  13. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
  14. data/vendor/libdatadog-0.8.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/common.h +430 -0
  15. data/vendor/libdatadog-0.8.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/profiling.h +212 -0
  16. data/vendor/libdatadog-0.8.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  17. data/vendor/{libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-0.8.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  18. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
  19. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml +7 -143
  20. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
  21. data/vendor/libdatadog-0.8.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +430 -0
  22. data/vendor/libdatadog-0.8.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +212 -0
  23. data/vendor/libdatadog-0.8.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  24. data/vendor/{libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-0.8.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  25. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
  26. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE-3rdparty.yml +7 -143
  27. data/vendor/{libdatadog-0.7.0 → libdatadog-0.8.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
  28. data/vendor/libdatadog-0.8.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h +430 -0
  29. data/vendor/libdatadog-0.8.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/profiling.h +212 -0
  30. data/vendor/libdatadog-0.8.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  31. data/vendor/{libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/ddprof_ffi_with_rpath.pc → libdatadog-0.8.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc} +3 -3
  32. metadata +32 -28
  33. data/vendor/libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/ddprof/ffi.h +0 -591
  34. data/vendor/libdatadog-0.7.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libddprof_ffi.so +0 -0
  35. data/vendor/libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/ddprof/ffi.h +0 -591
  36. data/vendor/libdatadog-0.7.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libddprof_ffi.so +0 -0
  37. data/vendor/libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/ddprof/ffi.h +0 -591
  38. data/vendor/libdatadog-0.7.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libddprof_ffi.so +0 -0
  39. data/vendor/libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/ddprof/ffi.h +0 -591
  40. data/vendor/libdatadog-0.7.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libddprof_ffi.so +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '005787f65f4940f51f1e63b12da769d66abd1a2e14c11a69153f49b80f33b982'
4
- data.tar.gz: 9d36137890211b704b7dd2b41ad36dd695b7616ffddb5b111073bfe395563c48
3
+ metadata.gz: e5f287bd7f1b81677311e3a250c5cb7b1b2684f1c20dcdea798021026e14ed4f
4
+ data.tar.gz: f602bb757955e4c12bbdc469fa809060fe9e81097796a3710b20b4cf38f0edd9
5
5
  SHA512:
6
- metadata.gz: 5f6613e7ba37c91bf2f54980f460c4010a0ba18db13d4648219e61ba1a4494248883146e8cb268e3f7d3d8dbc9a78bae75cd280278c0f0941506ba06d96a5ef2
7
- data.tar.gz: 69880f283dca7fafb62e03cd6a0979bb79356b2ddbcdae73d86239cb20deaf44104af43d242207e3f8eefdbede9d26150094d3533bd147d55e701107b65b35de
6
+ metadata.gz: 014ea7c20065151b39422ae12b47377506286c595bf17b269a2fba14ed7af1a6ae5b43ca32577cda319bef94fbe103de97129ecd1b4f058efc302de97406a9d6
7
+ data.tar.gz: 00dcecee67eab95bf4fa91167dbdd1d5e58f0ded2efab1f5eda055069480cf61a7028433ce251b1999ad6a5a385ef74a9ac9576afa15226386eadeb0f86447f8
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Libdatadog
4
4
  # Current libdatadog version
5
- LIB_VERSION = "0.7.0"
5
+ LIB_VERSION = "0.8.0"
6
6
 
7
7
  GEM_MAJOR_VERSION = "1"
8
8
  GEM_MINOR_VERSION = "0"
9
- GEM_PRERELEASE_VERSION = ".rc1" # remember to include dot prefix, if needed!
9
+ GEM_PRERELEASE_VERSION = "" # remember to include dot prefix, if needed!
10
10
  private_constant :GEM_MAJOR_VERSION, :GEM_MINOR_VERSION, :GEM_PRERELEASE_VERSION
11
11
 
12
12
  # The gem version scheme is lib_version.gem_major.gem_minor[.prerelease].
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