sqlite3 1.5.2-arm-linux → 1.5.3-arm-linux

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: 1829cf9ccdd7524878079df875e29611593b267372f07635b4c91c5f78f403ee
4
- data.tar.gz: 4b4073a65bb12a23d06e1985b2f09742c47f588e5872374354db7e263fd3735e
3
+ metadata.gz: e4a79d25373b2d1b006db3e5ef654113e6f541866c374d9fefa3b3c6cb61771b
4
+ data.tar.gz: fac807d08830d8a265c41496651e429226d47bc1fe50ad881fc4deb43bbd42b9
5
5
  SHA512:
6
- metadata.gz: 1fccdebe123798fdcb831998c7b33a138375bc2364ce2eb3332b9e1ce0cbf02623da65606c74153c1a523d288eb1e6cae103b3218dd9ee6fec06bceb25257be3
7
- data.tar.gz: dd0c88a563ba39e168f276aaab6a5640e2d4ab0a933114ea149537e7c8d7c3ab7e55665f77977dfd2ad4f9e8a4951848e3c5d9a0004252bc15e087c73ba1c006
6
+ metadata.gz: f368297c961070aaf722f7ec162aba3ab691c1f62c1b77675e5032e41e8505bd8e4b5d92c8b847c1955cef62ffdd08026145d9ab6c18f0c862922d120f2ec1c3
7
+ data.tar.gz: 63b1ee44778eec8dad68ef58ea3f785fc486c5417c9e6ea7c8f695e6adf3e063e5cf1376e48361695dfe682862d65e08affc7a4a74b0fe463069c39b5e476a1a
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
@@ -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: arm-linux
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