pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/ruby-sqlite3



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Oct 13 16:22:23 UTC 2024

Modified Files:
        pkgsrc/databases/ruby-sqlite3: Makefile PLIST distinfo

Log Message:
databases/ruby-sqlite3: update to 2.1.0

2.1.0 (2024-09-24)

Ruby

* This release drops support for Ruby 3.0. [#563] @flavorjones

Fork safety improvements

Sqlite itself is not fork-safe.  Specifically, writing in a child process to
a database connection that was created in the parent process may corrupt the
database file.  To mitigate this risk, sqlite3-ruby has implemented the
following changes:

* All open writable database connections carried across a fork() will
  immediately be closed in the child process to mitigate the risk of
  corrupting the database file.

* These connections will be incompletely closed ("discarded") which will
  result in a one-time memory leak in the child process.

If it's at all possible, we strongly recommend that you close writable
database connections in the parent before forking.  If absolutely necessary
(and you know what you're doing), you may suppress the fork safety warnings
by calling SQLite3::ForkSafety.suppress_warnings!.

See the README's "Fork Safety" section and adr/2024-09-fork-safety.md for
more information. [#558, #565, #566] @flavorjones

Improved

* Use sqlite3_close_v2 to close databases in a deferred manner if there are
  unclosed prepared statements.  Previously closing a database while
  statements were open resulted in a BusyException.  See
  https://www.sqlite.org/c3ref/close.html for more context.  [#557]
  @flavorjones

* When setting a Database busy_handler, fire the write barrier to prevent
  potential crashes during the GC mark phase.  [#556] @jhawthorn

Documentation

* The FAQ.md has been updated to fix some inaccuracies.  [#562] @rickhull


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 pkgsrc/databases/ruby-sqlite3/Makefile
cvs rdiff -u -r1.28 -r1.29 pkgsrc/databases/ruby-sqlite3/PLIST
cvs rdiff -u -r1.44 -r1.45 pkgsrc/databases/ruby-sqlite3/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/ruby-sqlite3/Makefile
diff -u pkgsrc/databases/ruby-sqlite3/Makefile:1.78 pkgsrc/databases/ruby-sqlite3/Makefile:1.79
--- pkgsrc/databases/ruby-sqlite3/Makefile:1.78 Wed Sep 18 14:49:40 2024
+++ pkgsrc/databases/ruby-sqlite3/Makefile      Sun Oct 13 16:22:23 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.78 2024/09/18 14:49:40 taca Exp $
+# $NetBSD: Makefile,v 1.79 2024/10/13 16:22:23 taca Exp $
 
-DISTNAME=      sqlite3-2.0.4
+DISTNAME=      sqlite3-2.1.0
 CATEGORIES=    databases
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/databases/ruby-sqlite3/PLIST
diff -u pkgsrc/databases/ruby-sqlite3/PLIST:1.28 pkgsrc/databases/ruby-sqlite3/PLIST:1.29
--- pkgsrc/databases/ruby-sqlite3/PLIST:1.28    Sun May 26 14:35:16 2024
+++ pkgsrc/databases/ruby-sqlite3/PLIST Sun Oct 13 16:22:23 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.28 2024/05/26 14:35:16 taca Exp $
+@comment $NetBSD: PLIST,v 1.29 2024/10/13 16:22:23 taca Exp $
 ${GEM_HOME}/build_info/${GEM_NAME}.info
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
@@ -29,6 +29,7 @@ ${GEM_LIBDIR}/lib/sqlite3.rb
 ${GEM_LIBDIR}/lib/sqlite3/constants.rb
 ${GEM_LIBDIR}/lib/sqlite3/database.rb
 ${GEM_LIBDIR}/lib/sqlite3/errors.rb
+${GEM_LIBDIR}/lib/sqlite3/fork_safety.rb
 ${GEM_LIBDIR}/lib/sqlite3/pragmas.rb
 ${GEM_LIBDIR}/lib/sqlite3/resultset.rb
 ${GEM_LIBDIR}/lib/sqlite3/sqlite3_native.${RUBY_DLEXT}

Index: pkgsrc/databases/ruby-sqlite3/distinfo
diff -u pkgsrc/databases/ruby-sqlite3/distinfo:1.44 pkgsrc/databases/ruby-sqlite3/distinfo:1.45
--- pkgsrc/databases/ruby-sqlite3/distinfo:1.44 Wed Sep 18 14:49:40 2024
+++ pkgsrc/databases/ruby-sqlite3/distinfo      Sun Oct 13 16:22:23 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.44 2024/09/18 14:49:40 taca Exp $
+$NetBSD: distinfo,v 1.45 2024/10/13 16:22:23 taca Exp $
 
-BLAKE2s (sqlite3-2.0.4.gem) = 83ab1427dc6c9764bbe7dc1e5b5f7f9a3f00424d1845cbbd8d4bb61cec6ba295
-SHA512 (sqlite3-2.0.4.gem) = 76ec0182b1d8d6fffb114a99e15679210340ed97a0201a35dbfd4f67e71199b1aa926e6986f56bb09ecea0ce8fe5f9bdf47eaef7ab5725d3bd5949157032c18b
-Size (sqlite3-2.0.4.gem) = 3324928 bytes
+BLAKE2s (sqlite3-2.1.0.gem) = ccb13033ecf4efae464a85355fe1ad628deb592ee98614d7ef4ee21f371d4ce7
+SHA512 (sqlite3-2.1.0.gem) = dc76617ffbd0c9ced2f23b11aff8df56a863f0b144fbca2a57d17663cdb4e56881c2f896123f6c7b591c482ef88ec8131adc80cd059254b3b4ad065149ffd3bf
+Size (sqlite3-2.1.0.gem) = 3327488 bytes



Home | Main Index | Thread Index | Old Index