FreeBSD Bugzilla – Attachment 249825 Details for
Bug 278249
databases/evolution-data-server: malfunctions when databases/sqlite3 is build with option DQS off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
databases/evolution-data-server: make usable when sqlite3 has option DQS disabled
0001-databases-evolution-data-server-make-usable-when-sql.patch (text/plain), 3.03 KB, created by
Robert Clausecker
on 2024-04-08 09:57:09 UTC
(
hide
)
Description:
databases/evolution-data-server: make usable when sqlite3 has option DQS disabled
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2024-04-08 09:57:09 UTC
Size:
3.03 KB
patch
obsolete
>From 5f4104ec40a6f1d847d9b062fc4d56cc6d48c331 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@FreeBSD.org> >Date: Mon, 8 Apr 2024 11:52:26 +0200 >Subject: [PATCH] databases/evolution-data-server: make usable when sqlite3 has > option DQS disabled > >This port uses "%s" in some SQL queries where '%s' should have been >used. When the DQS (double-quoted string) misfeatures of SQLite3 is >disabled, these queries fail and cause the error "no such column: %s". >Change these queries to fix evolution. > >PR: 278249 >Approved by: ... >MFH: 2024Q1 >--- > databases/evolution-data-server/Makefile | 2 +- > .../files/patch-src_camel_camel-db.c | 36 +++++++++++++++++++ > 2 files changed, 37 insertions(+), 1 deletion(-) > create mode 100644 databases/evolution-data-server/files/patch-src_camel_camel-db.c > >diff --git a/databases/evolution-data-server/Makefile b/databases/evolution-data-server/Makefile >index e1208fc20932..e56f1c5cd37e 100644 >--- a/databases/evolution-data-server/Makefile >+++ b/databases/evolution-data-server/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= evolution-data-server > DISTVERSION= 3.44.4 >-PORTREVISION= 6 >+PORTREVISION= 7 > CATEGORIES= databases gnome > MASTER_SITES= GNOME > DIST_SUBDIR= gnome >diff --git a/databases/evolution-data-server/files/patch-src_camel_camel-db.c b/databases/evolution-data-server/files/patch-src_camel_camel-db.c >new file mode 100644 >index 000000000000..2ff44c2cb5e8 >--- /dev/null >+++ b/databases/evolution-data-server/files/patch-src_camel_camel-db.c >@@ -0,0 +1,36 @@ >+Allow evolution to be used when databases/sqlite3 has been compiled >+with option DQS disabled. >+ >+--- src/camel/camel-db.c.orig 2024-04-08 09:37:09 UTC >++++ src/camel/camel-db.c >+@@ -1823,8 +1823,8 @@ camel_db_migrate_folder_prepare (CamelDB *cdb, >+ "mail_to , mail_cc , mlist , followup_flag , " >+ "followup_completed_on , followup_due_by , " >+ "part , labels , usertags , cinfo , bdata , '', '', " >+- "strftime(\"%%s\", 'now'), " >+- "strftime(\"%%s\", 'now') FROM %Q", >++ "strftime('%%s', 'now'), " >++ "strftime('%%s', 'now') FROM %Q", >+ folder_name, folder_name); >+ ret = camel_db_add_to_transaction (cdb, table_creation_query, error); >+ sqlite3_free (table_creation_query); >+@@ -2093,8 +2093,8 @@ camel_db_write_message_info_record (CamelDB *cdb, >+ "%Q, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, " >+ "%lld, %lld, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, " >+ "%Q, %Q, %Q, %Q, %Q, %Q, %Q, " >+- "strftime(\"%%s\", 'now'), " >+- "strftime(\"%%s\", 'now') )", >++ "strftime('%%s', 'now'), " >++ "strftime('%%s', 'now') )", >+ folder_name, >+ record->uid, >+ record->flags, >+@@ -2578,7 +2578,7 @@ camel_db_rename_folder (CamelDB *cdb, >+ ret = camel_db_add_to_transaction (cdb, cmd, error); >+ sqlite3_free (cmd); >+ >+- cmd = sqlite3_mprintf ("UPDATE %Q SET modified=strftime(\"%%s\", 'now'), created=strftime(\"%%s\", 'now')", new_folder_name); >++ cmd = sqlite3_mprintf ("UPDATE %Q SET modified=strftime('%%s', 'now'), created=strftime('%%s', 'now')", new_folder_name); >+ ret = camel_db_add_to_transaction (cdb, cmd, error); >+ sqlite3_free (cmd); >+ >-- >2.44.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
gnome
)
Actions:
View
|
Diff
Attachments on
bug 278249
: 249825