gnu: soci: Apply patch to resolve a bug in liblinphone.

* gnu/packages/patches/soci-mysql-ddl-types.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/databases.scm (soci) [source]: Apply it.

Change-Id: I3840850c650d614f65ee398f948cea6206b03641
Fixes: https://issues.guix.gnu.org/47641
This commit is contained in:
Maxim Cournoyer 2024-06-13 22:36:52 -04:00 committed by Maxim Cournoyer
parent fb3e1ab79a
commit 93006671b4
No known key found for this signature in database
GPG key ID: 1260E46482E63562
3 changed files with 18 additions and 1 deletions

View file

@ -2080,6 +2080,7 @@ dist_patch_DATA = \
%D%/packages/patches/sdl-pango-matrix_declarations.patch \ %D%/packages/patches/sdl-pango-matrix_declarations.patch \
%D%/packages/patches/sdl-pango-sans-serif.patch \ %D%/packages/patches/sdl-pango-sans-serif.patch \
%D%/packages/patches/smalltalk-multiplication-overflow.patch \ %D%/packages/patches/smalltalk-multiplication-overflow.patch \
%D%/packages/patches/soci-mysql-ddl-types.patch \
%D%/packages/patches/sqlite-hurd.patch \ %D%/packages/patches/sqlite-hurd.patch \
%D%/packages/patches/strace-readlink-tests.patch \ %D%/packages/patches/strace-readlink-tests.patch \
%D%/packages/patches/sunxi-tools-remove-sys-io.patch \ %D%/packages/patches/sunxi-tools-remove-sys-io.patch \

View file

@ -5803,7 +5803,8 @@ The drivers officially supported by @code{libdbi} are:
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"12aq7pama96l2c1kmfkclb4bvrsxs9a8ppgk5gmzw45w2lg35i0y")))) "12aq7pama96l2c1kmfkclb4bvrsxs9a8ppgk5gmzw45w2lg35i0y"))
(patches (search-patches "soci-mysql-ddl-types.patch"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(propagated-inputs (propagated-inputs
;; Headers of soci has include-references to headers of these inputs. ;; Headers of soci has include-references to headers of these inputs.

View file

@ -0,0 +1,15 @@
Description: Add two unusual column type entries to make liblinphone work
Author: Dennis Filder <d.filder@web.de>
Bug-Debian: https://bugs.debian.org/984534
Last-Update: 2021-03-10
--- a/src/backends/sqlite3/statement.cpp
+++ b/src/backends/sqlite3/statement.cpp
@@ -440,6 +440,8 @@
m["mediumint"] = dt_integer;
m["smallint"] = dt_integer;
m["tinyint"] = dt_integer;
+ m["tinyintunsigned"] = dt_integer;
+ m["intunsigned"] = dt_integer;
// dt_long_long
m["bigint"] = dt_long_long;