public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-libsqlite3-sys] rawhide: Update to version 0.39.1
@ 2026-11-12 20:52 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-11-12 20:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-libsqlite3-sys
Branch : rawhide
Commit : 18aef15c7467b8d7f0e5a13b64e6d21808fb044f
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-11-12T00:06:22+01:00
Stats  : +197/-112 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-libsqlite3-sys/c/18aef15c7467b8d7f0e5a13b64e6d21808fb044f?branch=rawhide

Log:
Update to version 0.39.1

---
diff --git a/.gitignore b/.gitignore
index 17c103e..e58fdba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /libsqlite3-sys-0.28.0.crate
 /libsqlite3-sys-0.35.0.crate
 /libsqlite3-sys-0.36.0.crate
+/libsqlite3-sys-0.39.1.crate

diff --git a/0001-unconditionally-enable-building-with-bindgen-and-pkg.patch b/0001-unconditionally-enable-building-with-bindgen-and-pkg.patch
index 69f6eae..1ab0a83 100644
--- a/0001-unconditionally-enable-building-with-bindgen-and-pkg.patch
+++ b/0001-unconditionally-enable-building-with-bindgen-and-pkg.patch
@@ -1,22 +1,51 @@
-From 12a49332784b74c91731992cc4d31636f9dbb3d6 Mon Sep 17 00:00:00 2001
+From 9668dd0294f6589eafebbe58f82d08003c8b37c0 Mon Sep 17 00:00:00 2001
 From: Fabio Valentini <decathorpe@gmail.com>
-Date: Mon, 22 Dec 2025 14:37:29 +0100
+Date: Sat, 7 Nov 2026 15:20:39 +0100
 Subject: [PATCH] unconditionally enable building with bindgen and pkg-config
 
 ---
- build.rs | 644 +------------------------------------------------------
- 1 file changed, 10 insertions(+), 634 deletions(-)
+ build.rs | 707 +------------------------------------------------------
+ 1 file changed, 13 insertions(+), 694 deletions(-)
 
 diff --git a/build.rs b/build.rs
-index 4c707c3..86a4150 100644
+index 3c5036a..e35da93 100644
 --- a/build.rs
 +++ b/build.rs
-@@ -1,346 +1,19 @@
+@@ -1,393 +1,19 @@
  use std::env;
  use std::path::Path;
  
+-// Just to keep MSRV low
+-#[cfg(any(
+-    feature = "bundled",
+-    feature = "bundled-windows",
+-    feature = "bundled-sqlcipher",
+-    feature = "buildtime_bindgen",
+-))]
+-macro_rules! cfg_select {
+-    ({ $($tt:tt)* }) => {{
+-        $crate::cfg_select! { $($tt)* }
+-    }};
+-    (_ => { $($output:tt)* }) => {
+-        $($output)*
+-    };
+-    (
+-        $cfg:meta => $output:tt
+-        $($( $rest:tt )+)?
+-    ) => {{
+-        #[cfg($cfg)]
+-        cfg_select! { _ => $output }
+-        $(
+-            #[cfg(not($cfg))]
+-            cfg_select! { $($rest)+ }
+-        )?
+-    }}
+-}
+-
 -#[cfg(all(feature = "loadable_extension", feature = "preupdate_hook"))]
--compile_error!("feature \"loadable_extension\" and feature \"preupdate_hook\" cannot be enabled at the same time");
+-compile_error!(
+-    "feature \"loadable_extension\" and feature \"preupdate_hook\" cannot be enabled at the same time"
+-);
 -
 -/// Tells whether we're building for Windows. This is more suitable than a plain
 -/// `cfg!(windows)`, since the latter does not properly handle cross-compilation
@@ -114,29 +143,44 @@ index 4c707c3..86a4150 100644
 -
 -    use super::{is_compiler, win_target};
 -
--    #[expect(clippy::assertions_on_constants)] // https://github.com/rust-lang/rust-clippy/issues/16242
 -    pub fn main(out_dir: &str, out_path: &Path) {
 -        let lib_name = super::lib_name();
 -
 -        // This is just a sanity check, the top level `main` should ensure this.
--        assert!(!(cfg!(feature = "bundled-windows") && !cfg!(feature = "bundled") && !win_target()),
--            "This module should not be used: we're not on Windows and the bundled feature has not been enabled");
+-        assert!(
+-            !(cfg!(feature = "bundled-windows") && !cfg!(feature = "bundled") && !win_target()),
+-            "This module should not be used: we're not on Windows and the bundled feature has not been enabled"
+-        );
+-        let (include_dir, source) = cfg_select! {
+-            feature = "bundled-sqlcipher" => {
+-                let dir = sqlcipher_src::source_dir();
+-                (dir.to_owned(), dir.join(sqlcipher_src::SOURCE_FILE))
+-            }
+-            _ => {
+-                let dir = format!("{}/{lib_name}", env!("CARGO_MANIFEST_DIR"));
+-                let source = format!("{lib_name}/sqlite3.c");
+-                (
+-                    std::path::PathBuf::from(dir),
+-                    std::path::PathBuf::from(source),
+-                )
+-            }
+-        };
 -
--        #[cfg(feature = "buildtime_bindgen")]
--        {
--            use super::{bindings, HeaderLocation};
--            let header = HeaderLocation::FromPath(lib_name.to_owned());
--            bindings::write_to_out_dir(header, out_path);
--        }
--        #[cfg(not(feature = "buildtime_bindgen"))]
--        {
--            super::copy_bindings(lib_name, "bindgen_bundled_version", out_path);
+-        cfg_select! {
+-            feature = "buildtime_bindgen" => {
+-                use super::{HeaderLocation, bindings};
+-                let header = HeaderLocation::FromPath(include_dir.to_string_lossy().into());
+-                bindings::write_to_out_dir(header, out_path);
+-            }
+-            _ => {
+-                super::copy_bindings(lib_name, "bindgen_bundled_version", out_path);
+-            }
 -        }
--        println!("cargo:include={}/{lib_name}", env!("CARGO_MANIFEST_DIR"));
--        println!("cargo:rerun-if-changed={lib_name}/sqlite3.c");
+-        println!("cargo:include={}", include_dir.display());
+-        println!("cargo:rerun-if-changed={}", source.display());
 -        println!("cargo:rerun-if-changed=sqlite3/wasm32-wasi-vfs.c");
 -        let mut cfg = cc::Build::new();
--        cfg.file(format!("{lib_name}/sqlite3.c"))
+-        cfg.file(&source)
 -            .flag("-DSQLITE_CORE")
 -            .flag("-DSQLITE_DEFAULT_FOREIGN_KEYS=1")
 -            .flag("-DSQLITE_ENABLE_API_ARMOR")
@@ -147,7 +191,6 @@ index 4c707c3..86a4150 100644
 -            .flag("-DSQLITE_ENABLE_FTS5")
 -            .flag("-DSQLITE_ENABLE_JSON1")
 -            .flag("-DSQLITE_ENABLE_LOAD_EXTENSION=1")
--            .flag("-DSQLITE_ENABLE_MEMORY_MANAGEMENT")
 -            .flag("-DSQLITE_ENABLE_RTREE")
 -            .flag("-DSQLITE_ENABLE_STAT4")
 -            .flag("-DSQLITE_SOUNDEX")
@@ -183,7 +226,9 @@ index 4c707c3..86a4150 100644
 -                (lib_dir, inc_dir) => match find_openssl_dir(&host, &target) {
 -                    None => {
 -                        if is_windows && !cfg!(feature = "bundled-sqlcipher-vendored-openssl") {
--                            panic!("Missing environment variable OPENSSL_DIR or OPENSSL_DIR is not set")
+-                            panic!(
+-                                "Missing environment variable OPENSSL_DIR or OPENSSL_DIR is not set"
+-                            )
 -                        } else {
 -                            (vec![PathBuf::new()], PathBuf::new())
 -                        }
@@ -327,6 +372,8 @@ index 4c707c3..86a4150 100644
 -    fn env(name: &str) -> Option<OsString> {
 -        let prefix = env::var("TARGET").unwrap().to_uppercase().replace('-', "_");
 -        let prefixed = format!("{prefix}_{name}");
+-        println!("cargo:rerun-if-env-changed={prefixed}");
+-        println!("cargo:rerun-if-env-changed={name}");
 -        let var = env::var_os(prefixed);
 -
 -        match var {
@@ -361,7 +408,7 @@ index 4c707c3..86a4150 100644
  }
  
  pub enum HeaderLocation {
-@@ -357,68 +30,31 @@ impl From<HeaderLocation> for String {
+@@ -404,68 +30,31 @@ impl From<HeaderLocation> for String {
                  let mut header = env::var(format!("{prefix}_INCLUDE_DIR")).unwrap_or_else(|_| {
                      panic!("{prefix}_INCLUDE_DIR must be set if {prefix}_LIB_DIR is set")
                  });
@@ -398,8 +445,8 @@ index 4c707c3..86a4150 100644
 -    #[cfg(feature = "vcpkg")]
 -    extern crate vcpkg;
 -
--    use super::{bindings, env_prefix, is_compiler, lib_name, win_target, HeaderLocation};
-+    use super::{bindings, env_prefix, lib_name, HeaderLocation};
+-    use super::{HeaderLocation, bindings, env_prefix, is_compiler, lib_name, win_target};
++    use super::{HeaderLocation, bindings, env_prefix, lib_name};
      use std::env;
      use std::path::Path;
  
@@ -436,7 +483,7 @@ index 4c707c3..86a4150 100644
      }
      // Prints the necessary cargo link commands and returns the path to the header.
      fn find_sqlite() -> HeaderLocation {
-@@ -427,15 +63,11 @@ mod build_linked {
+@@ -474,15 +63,11 @@ mod build_linked {
          println!("cargo:rerun-if-env-changed={}_INCLUDE_DIR", env_prefix());
          println!("cargo:rerun-if-env-changed={}_LIB_DIR", env_prefix());
          println!("cargo:rerun-if-env-changed={}_STATIC", env_prefix());
@@ -452,15 +499,15 @@ index 4c707c3..86a4150 100644
          println!("cargo:link-target={link_lib}");
  
          // Allow users to specify where to find SQLite.
-@@ -443,7 +75,6 @@ mod build_linked {
+@@ -490,7 +75,6 @@ mod build_linked {
              // Try to use pkg-config to determine link commands
              let pkgconfig_path = Path::new(&dir).join("pkgconfig");
-             env::set_var("PKG_CONFIG_PATH", pkgconfig_path);
+             unsafe { env::set_var("PKG_CONFIG_PATH", pkgconfig_path) };
 -            #[cfg(not(feature = "loadable_extension"))]
              if pkg_config::Config::new()
-                 .atleast_version("3.34.1")
+                 .atleast_version("3.45.3")
                  .probe(link_lib)
-@@ -456,10 +87,6 @@ mod build_linked {
+@@ -503,10 +87,6 @@ mod build_linked {
              return HeaderLocation::FromEnvironment;
          }
  
@@ -470,8 +517,8 @@ index 4c707c3..86a4150 100644
 -
          // See if pkg-config can do everything for us.
          if let Ok(mut lib) = pkg_config::Config::new()
-             .atleast_version("3.34.1")
-@@ -476,43 +103,12 @@ mod build_linked {
+             .atleast_version("3.45.3")
+@@ -523,43 +103,12 @@ mod build_linked {
              // request and hope that the library exists on the system paths. We used to
              // output /usr/lib explicitly, but that can introduce other linking problems;
              // see https://github.com/rusqlite/rusqlite/issues/207.
@@ -484,18 +531,18 @@ index 4c707c3..86a4150 100644
 -    fn try_vcpkg() -> Option<HeaderLocation> {
 -        if cfg!(feature = "vcpkg") && is_compiler("msvc") {
 -            // See if vcpkg can find it.
--            if let Ok(mut lib) = vcpkg::Config::new().probe(lib_name()) {
--                if let Some(header) = lib.include_paths.pop() {
--                    return Some(HeaderLocation::FromPath(header.to_string_lossy().into()));
--                }
+-            if let Ok(mut lib) = vcpkg::Config::new().probe(lib_name())
+-                && let Some(header) = lib.include_paths.pop()
+-            {
+-                return Some(HeaderLocation::FromPath(header.to_string_lossy().into()));
 -            }
 -            None
 -        } else {
 -            None
 -        }
 -    }
--}
--
+ }
+ 
 -#[cfg(not(feature = "buildtime_bindgen"))]
 -#[allow(dead_code)]
 -mod bindings {
@@ -503,19 +550,19 @@ index 4c707c3..86a4150 100644
 -
 -    use std::path::Path;
 -
--    static PREBUILT_BINDGENS: &[&str] = &["bindgen_3.34.1"];
+-    static PREBUILT_BINDGENS: &[&str] = &["bindgen_3.45.3"];
 -
 -    pub fn write_to_out_dir(_header: HeaderLocation, out_path: &Path) {
 -        let name = PREBUILT_BINDGENS[PREBUILT_BINDGENS.len() - 1];
 -        super::copy_bindings("bindgen-bindings", name, out_path);
 -    }
- }
- 
+-}
+-
 -#[cfg(feature = "buildtime_bindgen")]
  mod bindings {
      use super::HeaderLocation;
      use bindgen::callbacks::{IntKind, ParseCallbacks};
-@@ -535,18 +131,6 @@ mod bindings {
+@@ -582,18 +131,6 @@ mod bindings {
          }
      }
  
@@ -534,7 +581,7 @@ index 4c707c3..86a4150 100644
      pub fn write_to_out_dir(header: HeaderLocation, out_path: &Path) {
          let header: String = header.into();
          let mut bindings = bindgen::builder()
-@@ -557,9 +141,7 @@ mod bindings {
+@@ -605,9 +142,7 @@ mod bindings {
              .trust_clang_mangling(false)
              .header(header.clone())
              .parse_callbacks(Box::new(SqliteTypeChooser));
@@ -545,7 +592,7 @@ index 4c707c3..86a4150 100644
              bindings = bindings
                  .blocklist_function("sqlite3_auto_extension")
                  .raw_line(
-@@ -597,9 +179,6 @@ mod bindings {
+@@ -645,9 +180,6 @@ mod bindings {
                  .blocklist_function("sqlite3_prepare");
          }
  
@@ -555,7 +602,7 @@ index 4c707c3..86a4150 100644
          if cfg!(feature = "unlock_notify") {
              bindings = bindings.clang_arg("-DSQLITE_ENABLE_UNLOCK_NOTIFY");
          }
-@@ -610,216 +189,13 @@ mod bindings {
+@@ -658,226 +190,13 @@ mod bindings {
              bindings = bindings.clang_arg("-DSQLITE_ENABLE_SESSION");
          }
  
@@ -590,23 +637,25 @@ index 4c707c3..86a4150 100644
              .generate()
              .unwrap_or_else(|_| panic!("could not run bindgen on header {header}"));
  
--        #[cfg(feature = "loadable_extension")]
--        {
--            let mut output = Vec::new();
--            bindings
--                .write(Box::new(&mut output))
--                .expect("could not write output of bindgen");
--            let mut output = String::from_utf8(output).expect("bindgen output was not UTF-8?!");
--            super::loadable_extension::generate_functions(&mut output);
--            std::fs::write(out_path, output.as_bytes())
--                .unwrap_or_else(|_| panic!("Could not write to {out_path:?}"));
+-        cfg_select! {
+-            feature = "loadable_extension" => {
+-                let mut output = Vec::new();
+-                bindings
+-                    .write(Box::new(&mut output))
+-                    .expect("could not write output of bindgen");
+-                let mut output = String::from_utf8(output).expect("bindgen output was not UTF-8?!");
+-                super::loadable_extension::generate_functions(&mut output);
+-                std::fs::write(out_path, output.as_bytes())
+-                    .unwrap_or_else(|_| panic!("Could not write to {out_path:?}"));
+-            }
+-            _ => {
+-                bindings
+-                    .write_to_file(out_path)
+-                    .unwrap_or_else(|_| panic!("Could not write to {out_path:?}"));
+-            }
 -        }
--        #[cfg(not(feature = "loadable_extension"))]
-         bindings
-             .write_to_file(out_path)
-             .unwrap_or_else(|_| panic!("Could not write to {out_path:?}"));
-     }
- }
+-    }
+-}
 -
 -#[cfg(all(feature = "buildtime_bindgen", feature = "loadable_extension"))]
 -mod loadable_extension {
@@ -685,30 +734,36 @@ index 4c707c3..86a4150 100644
 -                quote::quote! {
 -                    static #ptr_name: ::core::sync::atomic::AtomicPtr<()> = ::core::sync::atomic::AtomicPtr::new(::core::ptr::null_mut());
 -                    pub unsafe fn #sqlite3_fn_name(#args arg3: ::core::ffi::c_int, arg4: *mut ::core::ffi::c_int) #ty {
--                        let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
--                        assert!(!ptr.is_null(), "SQLite API not initialized");
--                        let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
--                        (fun)(#arg_names, arg3, arg4)
+-                        unsafe {
+-                            let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
+-                            assert!(!ptr.is_null(), "SQLite API not initialized");
+-                            let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
+-                            (fun)(#arg_names, arg3, arg4)
+-                        }
 -                    }
 -                }
 -            } else if "log" == name {
 -                quote::quote! {
 -                    static #ptr_name: ::core::sync::atomic::AtomicPtr<()> = ::core::sync::atomic::AtomicPtr::new(::core::ptr::null_mut());
 -                    pub unsafe fn #sqlite3_fn_name(#args arg3: *const ::core::ffi::c_char) #ty {
--                        let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
--                        assert!(!ptr.is_null(), "SQLite API not initialized");
--                        let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
--                        (fun)(#arg_names, arg3)
+-                        unsafe {
+-                            let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
+-                            assert!(!ptr.is_null(), "SQLite API not initialized");
+-                            let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
+-                            (fun)(#arg_names, arg3)
+-                        }
 -                    }
 -                }
 -            } else {
 -                quote::quote! {
 -                    static #ptr_name: ::core::sync::atomic::AtomicPtr<()> = ::core::sync::atomic::AtomicPtr::new(::core::ptr::null_mut());
 -                    pub unsafe fn #sqlite3_fn_name(#args) #ty {
--                        let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
--                        assert!(!ptr.is_null(), "SQLite API not initialized or SQLite feature omitted");
--                        let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
--                        (fun)(#arg_names)
+-                        unsafe {
+-                            let ptr = #ptr_name.load(::core::sync::atomic::Ordering::Acquire);
+-                            assert!(!ptr.is_null(), "SQLite API not initialized or SQLite feature omitted");
+-                            let fun: unsafe extern "C" fn(#args #varargs) #ty = ::core::mem::transmute(ptr);
+-                            (fun)(#arg_names)
+-                        }
 -                    }
 -                }
 -            };
@@ -734,17 +789,19 @@ index 4c707c3..86a4150 100644
 -        let tokens = quote::quote! {
 -            /// Like SQLITE_EXTENSION_INIT2 macro
 -            pub unsafe fn rusqlite_extension_init2(#p_api: *mut #sqlite3_api_routines_ident) -> ::core::result::Result<(), crate::InitError> {
--                #(#malloc)* // sqlite3_malloc needed by to_sqlite_error
--                if let Some(fun) = (*#p_api).libversion_number {
--                    let version = fun();
--                    if SQLITE_VERSION_NUMBER > version {
--                        return Err(crate::InitError::VersionMismatch{compile_time: SQLITE_VERSION_NUMBER, runtime: version});
+-                unsafe {
+-                    #(#malloc)* // sqlite3_malloc needed by to_sqlite_error
+-                    if let Some(fun) = (*#p_api).libversion_number {
+-                        let version = fun();
+-                        if SQLITE_VERSION_NUMBER > version {
+-                            return Err(crate::InitError::VersionMismatch{compile_time: SQLITE_VERSION_NUMBER, runtime: version});
+-                        }
+-                    } else {
+-                        return Err(crate::InitError::NullFunctionPointer);
 -                    }
--                } else {
--                    return Err(crate::InitError::NullFunctionPointer);
+-                    #(#stores)*
+-                    Ok(())
 -                }
--                #(#stores)*
--                Ok(())
 -            }
 -        };
 -        output.push_str(&prettyplease::unparse(
@@ -753,7 +810,7 @@ index 4c707c3..86a4150 100644
 -        output.push('\n');
 -    }
 -
--    fn extract_method(ty: &syn::Type) -> Option<&syn::TypeBareFn> {
+-    fn extract_method(ty: &syn::Type) -> Option<&syn::TypeFnPtr> {
 -        match ty {
 -            syn::Type::Path(tp) => tp.path.segments.last(),
 -            _ => None,
@@ -767,11 +824,14 @@ index 4c707c3..86a4150 100644
 -            _ => None,
 -        })?
 -        .map(|ty| match ty {
--            syn::Type::BareFn(r) => Some(r),
+-            syn::Type::FnPtr(r) => Some(r),
 -            _ => None,
 -        })?
--    }
--}
++        bindings
++            .write_to_file(out_path)
++            .unwrap_or_else(|_| panic!("Could not write to {out_path:?}"));
+     }
+ }
 -- 
-2.52.0
+2.56.0
 

diff --git a/libsqlite3-sys-fix-metadata.diff b/libsqlite3-sys-fix-metadata.diff
index ad6c786..8917a22 100644
--- a/libsqlite3-sys-fix-metadata.diff
+++ b/libsqlite3-sys-fix-metadata.diff
@@ -1,6 +1,6 @@
---- libsqlite3-sys-0.36.0/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ libsqlite3-sys-0.36.0/Cargo.toml	2025-12-22T13:49:45.961990+00:00
-@@ -16,7 +16,7 @@
+--- libsqlite3-sys-0.39.1/Cargo.toml	2006-07-24T01:21:28+00:00
++++ libsqlite3-sys-0.39.1/Cargo.toml	2026-11-07T14:23:27.828071+00:00
+@@ -17,7 +17,7 @@
  authors = ["The rusqlite developers"]
  build = "build.rs"
  links = "sqlite3"
@@ -9,7 +9,7 @@
  autolib = false
  autobins = false
  autoexamples = false
-@@ -34,87 +34,27 @@
+@@ -35,97 +35,31 @@
  repository = "https://github.com/rusqlite/rusqlite"
  
  [features]
@@ -22,7 +22,10 @@
 -    "cc",
 -    "bundled_bindings",
 -]
--bundled-sqlcipher = ["bundled"]
+-bundled-sqlcipher = [
+-    "bundled",
+-    "dep:sqlcipher-src",
+-]
 -bundled-sqlcipher-vendored-openssl = [
 -    "bundled-sqlcipher",
 -    "openssl-sys/vendored",
@@ -35,18 +38,18 @@
 +bindgen = []
 +buildtime_bindgen = []
  column_metadata = []
- default = ["min_sqlite_version_3_34_1"]
--in_gecko = []
+ default = ["min_sqlite_version_3_45_3"]
+ in_gecko = []
 -loadable_extension = [
 -    "prettyplease",
 -    "quote",
 -    "syn",
 -]
--min_sqlite_version_3_34_1 = [
+-min_sqlite_version_3_45_3 = [
 -    "pkg-config",
 -    "vcpkg",
 -]
-+min_sqlite_version_3_34_1 = []
++min_sqlite_version_3_45_3 = []
 +pkg-config = []
  preupdate_hook = ["buildtime_bindgen"]
  session = [
@@ -67,7 +70,8 @@
 -optional = true
 -
  [build-dependencies.bindgen]
- version = "0.72"
+-version = "0.73"
++version = ">=0.72,<0.74"
  features = ["runtime"]
 -optional = true
  default-features = false
@@ -81,7 +85,7 @@
 -optional = true
 -
 -[build-dependencies.prettyplease]
--version = "0.2.20"
+-version = "0.3.0"
 -optional = true
 -
 -[build-dependencies.quote]
@@ -89,8 +93,12 @@
 -optional = true
 -default-features = false
 -
+-[build-dependencies.sqlcipher-src]
+-version = "=419.0.6"
+-optional = true
+-
 -[build-dependencies.syn]
--version = "2.0.87"
+-version = "3.0.1"
 -features = [
 -    "full",
 -    "extra-traits",
@@ -101,3 +109,6 @@
 -[build-dependencies.vcpkg]
 -version = "0.2.15"
 -optional = true
+ 
+ [lints.clippy]
+ ref_option = "warn"

diff --git a/rust-libsqlite3-sys.spec b/rust-libsqlite3-sys.spec
index 295d9ec..582e460 100644
--- a/rust-libsqlite3-sys.spec
+++ b/rust-libsqlite3-sys.spec
@@ -5,7 +5,7 @@
 %global crate libsqlite3-sys
 
 Name:           rust-libsqlite3-sys
-Version:        0.36.0
+Version:        0.39.1
 Release:        %autorelease
 Summary:        Native bindings to the libsqlite3 library
 
@@ -13,6 +13,7 @@ License:        MIT
 URL:            https://crates.io/crates/libsqlite3-sys
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
+# * relax bindgen dependency to allow both v0.72 and v0.73
 # * remove features for building vendored sqlite3 and sqlcipher sources
 # * drop Windows- and WASM-specific features
 # * exclude files that are only useful for upstream development
@@ -22,7 +23,7 @@ Patch:          libsqlite3-sys-fix-metadata.diff
 Patch1:         0001-unconditionally-enable-building-with-bindgen-and-pkg.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
-BuildRequires:  pkgconfig(sqlite3) >= 3.34.1
+BuildRequires:  pkgconfig(sqlite3) >= 3.45.3
 
 %global _description %{expand:
 Native bindings to the libsqlite3 library.}
@@ -32,7 +33,7 @@ Native bindings to the libsqlite3 library.}
 %package        devel
 Summary:        %{summary}
 BuildArch:      noarch
-Requires:       pkgconfig(sqlite3) >= 3.34.1
+Requires:       pkgconfig(sqlite3) >= 3.45.3
 
 %description    devel %{_description}
 
@@ -92,16 +93,28 @@ use the "column_metadata" feature of the "%{crate}" crate.
 %files       -n %{name}+column_metadata-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+min_sqlite_version_3_34_1-devel
+%package     -n %{name}+in_gecko-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+min_sqlite_version_3_34_1-devel %{_description}
+%description -n %{name}+in_gecko-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "min_sqlite_version_3_34_1" feature of the "%{crate}" crate.
+use the "in_gecko" feature of the "%{crate}" crate.
 
-%files       -n %{name}+min_sqlite_version_3_34_1-devel
+%files       -n %{name}+in_gecko-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+min_sqlite_version_3_45_3-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+min_sqlite_version_3_45_3-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "min_sqlite_version_3_45_3" feature of the "%{crate}" crate.
+
+%files       -n %{name}+min_sqlite_version_3_45_3-devel
 %ghost %{crate_instdir}/Cargo.toml
 
 %package     -n %{name}+pkg-config-devel

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 828305e..91a1054 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,12 +1,12 @@
 [package]
 cargo-toml-patch-comments = [
+    "relax bindgen dependency to allow both v0.72 and v0.73",
     "remove features for building vendored sqlite3 and sqlcipher sources",
     "drop Windows- and WASM-specific features",
     "exclude files that are only useful for upstream development",
     "drop unused support for sqlcipher and loadable extensions",
 ]
 doc-files.exclude = ["Upgrade.md"]
-license-files.exclude = ["sqlcipher/LICENSE"]
 
 [[package.extra-patches]]
 number = 1
@@ -14,8 +14,8 @@ file = "0001-unconditionally-enable-building-with-bindgen-and-pkg.patch"
 comments = ["unconditionally enable building with bindgen and pkg-config"]
 
 [requires]
-build = ["pkgconfig(sqlite3) >= 3.34.1"]
-lib = ["pkgconfig(sqlite3) >= 3.34.1"]
+build = ["pkgconfig(sqlite3) >= 3.45.3"]
+lib = ["pkgconfig(sqlite3) >= 3.45.3"]
 
 [scripts]
 prep.post = [

diff --git a/sources b/sources
index 5394dd2..035f09d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libsqlite3-sys-0.36.0.crate) = d10eb3e603d726009b2cd6ac5c6fd22aacbe78f0665c7e9f82c5a981a21e19d7a50f2aebe2864d3eb5259808e57ad408d471eabca71dbe6a7beae3247c142916
+SHA512 (libsqlite3-sys-0.39.1.crate) = 7db38eac9fff21eed0c26247635354d0f230496b602163af3bdd7a12fe986ffadb3c880c04dad9883c91ee417ed143dcff6dae95b71ce532e71bd2824a562dde

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-12 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 20:52 [rpms/rust-libsqlite3-sys] rawhide: Update to version 0.39.1 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox