pkgsrc-WIP-changes archive

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

akonadi: add reproducibility patch (timestamps)



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Sun May 7 21:55:28 2023 +0200
Changeset:	5a0e91929b6c200d22c4f10af1bdb2ce9a8ba979

Modified Files:
	akonadi/distinfo
Added Files:
	akonadi/patches/patch-src_server_storage_dbconfigmysql.cpp

Log Message:
akonadi: add reproducibility patch (timestamps)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a0e91929b6c200d22c4f10af1bdb2ce9a8ba979

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

diffstat:
 akonadi/distinfo                                           |  1 +
 akonadi/patches/patch-src_server_storage_dbconfigmysql.cpp | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diffs:
diff --git a/akonadi/distinfo b/akonadi/distinfo
index 933084598c..8996b3655e 100644
--- a/akonadi/distinfo
+++ b/akonadi/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
 BLAKE2s (akonadi-22.08.1.tar.xz) = 717484171c5ed625cbf3ce80b539f64eb1eefebc6051f98abd448b7aaef22409
 SHA512 (akonadi-22.08.1.tar.xz) = cb98c8c73f09b8d143c7a5fbbada54636f0e3cf394f437e91470075f6d9ab4303894f9658eef4aa415049a30ee2555a90185471cdd2f3922f478ff47f6abc170
 Size (akonadi-22.08.1.tar.xz) = 1631044 bytes
+SHA1 (patch-src_server_storage_dbconfigmysql.cpp) = 3180ed9ee77de010984b7106008e9d065b93c26c
diff --git a/akonadi/patches/patch-src_server_storage_dbconfigmysql.cpp b/akonadi/patches/patch-src_server_storage_dbconfigmysql.cpp
new file mode 100644
index 0000000000..3a858cf5d8
--- /dev/null
+++ b/akonadi/patches/patch-src_server_storage_dbconfigmysql.cpp
@@ -0,0 +1,12 @@
+--- src/server/storage/dbconfigmysql.cpp	2023-05-07 21:54:06.388101591 +0200
++++ src/server/storage/dbconfigmysql.cpp.orig	2023-05-07 21:52:56.240982968 +0200
+@@ -256,7 +256,8 @@
+ 
+     QFile actualFile(actualConfig);
+     // update conf only if either global (or local) is newer than actual
+-    if (true) {
++    if ((QFileInfo(globalConfig).lastModified() > QFileInfo(actualFile).lastModified())
++        || (QFileInfo(localConfig).lastModified() > QFileInfo(actualFile).lastModified())) {
+         QFile globalFile(globalConfig);
+         QFile localFile(localConfig);
+         if (globalFile.open(QFile::ReadOnly) && actualFile.open(QFile::WriteOnly)) {


Home | Main Index | Thread Index | Old Index