sqlite3 1.5.2-x64-mingw-ucrt → 1.5.3-x64-mingw-ucrt

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: cb39f79d973e50f2597b630330aa22108a667d206cfc84101ad10b58577558d2
4
- data.tar.gz: 07d91f6b962e9c23c1ed799baa55865755f38912d18ec2144e180ee1afe20f9e
3
+ metadata.gz: 9197f486c0a3d3949268b2b03a57ebf4c9acbbe3e3e27b57f9c69d4ab40b7dc9
4
+ data.tar.gz: 0ad7c16aed964073939bd2e6b0f22731c179c4ee4a5eb19159b3b6b7dec8d6cc
5
5
  SHA512:
6
- metadata.gz: c920d78c5fd7e01c559895e90dfa70553d5a8361c1fad12c8c78f85debcd9568e9471936f9c97c877634d874e1b44ab92482e48b377e6d62bdeb6808856004a8
7
- data.tar.gz: e021c81995a14e182ec18fa16d150c16ac81212bf37d041649340ec9aeacfc62d64e5ad258bc34deef01d156918eb81d1fa42106ad90143c726b10528e67b0a3
6
+ metadata.gz: b7810ad77be0243261403acc981e41316ce2a07c6ce9d20838995edf94d9bb3f6d8039c2726379e18497fa338ee3ef59de8ec817184d1c5f9df9cd21ed7ba9b3
7
+ data.tar.gz: 77885561f3c84c9f3fd55306198b424e4b59fb1c57fbb16682f0ccb01c8f181d7a0160409205b8d03565b20b62389b3da96098bcb54ab718b48fd7249125deba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # sqlite3-ruby Changelog
2
2
 
3
+ ## 1.5.3 / 2022-10-11
4
+
5
+ ### Fixed
6
+
7
+ * Fixed installation of the "ruby" platform gem when building from source on Fedora. In v1.5.0..v1.5.2, installation failed on some systems due to the behavior of Fedora's pkg-config implementation. [#355]
8
+
9
+
3
10
  ## 1.5.2 / 2022-10-01
4
11
 
5
12
  ### Packaging
data/CONTRIBUTING.md CHANGED
@@ -20,5 +20,5 @@ A quick checklist:
20
20
  - [ ] update `CHANGELOG.md` and `lib/sqlite3/version.rb` including `VersionProxy::{MINOR,TINY}`
21
21
  - [ ] create a git tag using a format that matches the pattern `v\d+\.\d+\.\d+`, e.g. `v1.3.13`
22
22
  - [ ] run `bin/build-gems` and make sure it completes and all the tests pass
23
- - [ ] `for g in gems/*.gem ; do gem push $g ; done`s
23
+ - [ ] `for g in gems/*.gem ; do gem push $g ; done`
24
24
  - [ ] create a release at https://github.com/sparklemotion/sqlite3-ruby/releases and include sha2 checksums
@@ -66,15 +66,24 @@ module Sqlite3
66
66
  end
67
67
  recipe.activate
68
68
 
69
- ENV["PKG_CONFIG_ALLOW_SYSTEM_CFLAGS"] = "t" # on macos, pkg-config will not return --cflags without this
70
- pcfile = File.join(recipe.path, "lib", "pkgconfig", "sqlite3.pc")
71
- if pkg_config(pcfile)
72
- # see https://bugs.ruby-lang.org/issues/18490
73
- libs = xpopen(["pkg-config", "--libs", "--static", pcfile], err: [:child, :out], &:read)
74
- libs.split.each { |lib| append_ldflags(lib) } if $?.success?
75
- else
76
- abort("\nCould not configure the build properly. Please install either the `pkg-config` utility or the `pkg-config` rubygem.\n\n")
69
+ # on macos, pkg-config will not return --cflags without this
70
+ ENV["PKG_CONFIG_ALLOW_SYSTEM_CFLAGS"] = "t"
71
+
72
+ lib_path = File.join(recipe.path, "lib")
73
+ pcfile = File.join(lib_path, "pkgconfig", "sqlite3.pc")
74
+ abort_pkg_config("pkg_config") unless pkg_config(pcfile)
75
+
76
+ # see https://bugs.ruby-lang.org/issues/18490
77
+ flags = xpopen(["pkg-config", "--libs", "--static", pcfile], err: [:child, :out], &:read)
78
+ abort_pkg_config("xpopen") unless $?.success?
79
+ flags = flags.split
80
+
81
+ # see https://github.com/flavorjones/mini_portile/issues/118
82
+ "-L#{lib_path}".tap do |lib_path_flag|
83
+ flags.prepend(lib_path_flag) unless flags.include?(lib_path_flag)
77
84
  end
85
+
86
+ flags.each { |flag| append_ldflags(flag) }
78
87
  end
79
88
  end
80
89
 
@@ -140,6 +149,10 @@ module Sqlite3
140
149
  abort("\nCould not find #{missing}.\nPlease visit https://github.com/sparklemotion/sqlite3-ruby for installation instructions.\n\n")
141
150
  end
142
151
 
152
+ def abort_pkg_config(id)
153
+ abort("\nCould not configure the build properly (#{id}). Please install either the `pkg-config` utility or the `pkg-config` rubygem.\n\n")
154
+ end
155
+
143
156
  def cross_build?
144
157
  enable_config("cross-build")
145
158
  end
Binary file
@@ -1,11 +1,11 @@
1
1
  module SQLite3
2
2
 
3
- VERSION = "1.5.2"
3
+ VERSION = "1.5.3"
4
4
 
5
5
  module VersionProxy
6
6
  MAJOR = 1
7
7
  MINOR = 5
8
- TINY = 2
8
+ TINY = 3
9
9
  BUILD = nil
10
10
 
11
11
  STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Jamis Buck
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-01 00:00:00.000000000 Z
13
+ date: 2022-10-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest