]> git.proxmox.com Git - debcargo-conf.git/commitdiff
libsqlite3-sys: drop bundled features
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 21 Jul 2022 04:25:42 +0000 (00:25 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 21 Jul 2022 05:46:43 +0000 (01:46 -0400)
src/libsqlite3-sys/debian/patches/drop-bundled-features.patch [new file with mode: 0644]
src/libsqlite3-sys/debian/patches/series [new file with mode: 0644]

diff --git a/src/libsqlite3-sys/debian/patches/drop-bundled-features.patch b/src/libsqlite3-sys/debian/patches/drop-bundled-features.patch
new file mode 100644 (file)
index 0000000..01fd4da
--- /dev/null
@@ -0,0 +1,38 @@
+Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+Description: Debian doesn't ship or encourage bundled/vendored mechanisms
+
+Furthermore, these additional variants create a huge Provides: line in
+debian/control, which itself can cause problems for some tooling.
+
+It would be preferable to declaratively omit these features, but until
+https://bugs.debian.org/1014613 is closed in debcargo, we can just
+patch them.
+
+We also drop in_gecko, since this is not how libsqlite3-sys is built
+on debian.
+
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -55,22 +55,7 @@
+     "pkg-config",
+     "vcpkg",
+ ]
+-bundled = [
+-    "cc",
+-    "bundled_bindings",
+-]
+-bundled-sqlcipher = ["bundled"]
+-bundled-sqlcipher-vendored-openssl = [
+-    "bundled-sqlcipher",
+-    "openssl-sys/vendored",
+-]
+-bundled-windows = [
+-    "cc",
+-    "bundled_bindings",
+-]
+-bundled_bindings = []
+ default = ["min_sqlite_version_3_6_8"]
+-in_gecko = []
+ min_sqlite_version_3_6_23 = [
+     "pkg-config",
+     "vcpkg",
diff --git a/src/libsqlite3-sys/debian/patches/series b/src/libsqlite3-sys/debian/patches/series
new file mode 100644 (file)
index 0000000..6be85de
--- /dev/null
@@ -0,0 +1 @@
+drop-bundled-features.patch