Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package grommunio-index for openSUSE:Factory
checked in at 2023-01-18 13:11:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/grommunio-index (Old)
and /work/SRC/openSUSE:Factory/.grommunio-index.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grommunio-index"
Wed Jan 18 13:11:26 2023 rev:2 rq:1059029 version:0.1.18.6a0f73a
Changes:
--------
--- /work/SRC/openSUSE:Factory/grommunio-index/grommunio-index.changes
2023-01-14 20:32:09.009366090 +0100
+++
/work/SRC/openSUSE:Factory/.grommunio-index.new.32243/grommunio-index.changes
2023-01-18 13:11:49.317083885 +0100
@@ -1,0 +2,6 @@
+Tue Jan 17 12:59:53 UTC 2023 - Jan Engelhardt <[email protected]>
+
+- Update to release 0.1.18
+ * Run index service in unprivileged mode [boo#1207199]
+
+-------------------------------------------------------------------
Old:
----
grommunio-index-0.1.16.e01e06c.tar.xz
New:
----
grommunio-index-0.1.18.6a0f73a.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ grommunio-index.spec ++++++
--- /var/tmp/diff_new_pack.BfV1TW/_old 2023-01-18 13:11:49.981086458 +0100
+++ /var/tmp/diff_new_pack.BfV1TW/_new 2023-01-18 13:11:49.985086473 +0100
@@ -17,7 +17,7 @@
Name: grommunio-index
-Version: 0.1.16.e01e06c
+Version: 0.1.18.6a0f73a
Release: 0
Summary: Generator for grommunio-web search indexes
License: AGPL-3.0-or-later
@@ -35,6 +35,7 @@
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(systemd)
Requires: libexmdbpp0 >= 1.8.0
+Requires: user(groweb)
%define services grommunio-index.service grommunio-index.timer
%description
++++++ _service ++++++
--- /var/tmp/diff_new_pack.BfV1TW/_old 2023-01-18 13:11:50.013086582 +0100
+++ /var/tmp/diff_new_pack.BfV1TW/_new 2023-01-18 13:11:50.017086597 +0100
@@ -4,6 +4,7 @@
<param
name="url">https://github.com/grommunio/grommunio-index</param>
<param name="filename">grommunio-index</param>
<param name="revision">master</param>
+ <param name="parent-tag">0.1</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.%h</param>
</service>
<service name="recompress" mode="disabled">
++++++ debian.changelog ++++++
--- /var/tmp/diff_new_pack.BfV1TW/_old 2023-01-18 13:11:50.037086675 +0100
+++ /var/tmp/diff_new_pack.BfV1TW/_new 2023-01-18 13:11:50.037086675 +0100
@@ -1,4 +1,4 @@
-grommunio-index (0.1.16.e01e06c) unstable; urgency=low
+grommunio-index (0.1.18.6a0f73a) unstable; urgency=low
* Initial package.
++++++ grommunio-index-0.1.16.e01e06c.tar.xz ->
grommunio-index-0.1.18.6a0f73a.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/grommunio-index-0.1.16.e01e06c/grommunio-index-run.sh
new/grommunio-index-0.1.18.6a0f73a/grommunio-index-run.sh
--- old/grommunio-index-0.1.16.e01e06c/grommunio-index-run.sh 2023-01-14
00:38:53.000000000 +0100
+++ new/grommunio-index-0.1.18.6a0f73a/grommunio-index-run.sh 2023-01-16
20:03:36.000000000 +0100
@@ -17,15 +17,7 @@
mysql_cmd="mysql ${mysql_params} ${mysql_username} ${mysql_password}
${mysql_host} ${mysql_port} ${mysql_dbname}"
web_index_path="/var/lib/grommunio-web/sqlite-index"
-# ensure correct ownership of the root dir
-chown groweb:groweb "${web_index_path}"
-
echo "${mysql_query[@]}" | ${mysql_cmd} | while read -r username maildir ; do
[ -e "${web_index_path}/${username}/" ] || mkdir
"${web_index_path}/${username}/"
- # set ownership on dir (prevent collision with gweb)
- chown groweb:groweb "${web_index_path}/${username}"
- # run the index
- grommunio-index "$1" "${maildir}" -o
"${web_index_path}/${username}/index.sqlite3"
- # set the owner on the index db
- chown groweb:groweb "${web_index_path}/${username}/index.sqlite3"
+ grommunio-index "$maildir" -o "$web_index_path/$username/index.sqlite3"
done
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/grommunio-index-0.1.16.e01e06c/grommunio-index.cpp
new/grommunio-index-0.1.18.6a0f73a/grommunio-index.cpp
--- old/grommunio-index-0.1.16.e01e06c/grommunio-index.cpp 2023-01-14
00:38:53.000000000 +0100
+++ new/grommunio-index-0.1.18.6a0f73a/grommunio-index.cpp 2023-01-16
20:03:36.000000000 +0100
@@ -5,6 +5,8 @@
#include <algorithm>
#include <filesystem>
#include <iostream>
+#include <optional>
+#include <string>
#include <exmdbpp/constants.h>
#include <exmdbpp/queries.h>
@@ -227,8 +229,6 @@
usrpath(userdir), client(exmdbHost, exmdbPort, userdir, true,
ExmdbClient::AUTO_RECONNECT),
recheck(recheck)
{
- if(!filesystem::exists(userdir))
- throw runtime_error("Cannot access "s + userdir.c_str()
+ " (absent or permission problem)");
if(outpath.empty())
{
dbpath = userdir;
@@ -777,7 +777,7 @@
static string exmdbHost; ///< Exmdb host to connect to
static string exmdbPort; ///< Port of the exmdb connection
-static string userpath; ///< Path to the user's home directory
+static optional<string> userpath; ///< Path to the user's home directory
static string outpath; ///< Index database path (empty for default)
static bool recheck = false; ///< Check folders even when they were not
changed since the last indexing
static bool create = false; ///< Always create a new index instead of updating
@@ -876,15 +876,15 @@
}
}
}
- else if(!userpath.empty())
+ else if(userpath.has_value())
{
msg<FATAL>("Too many arguments.");
exit(RESULT_ARGERR_SYN);
}
else
- userpath = arg;
+ userpath.emplace(arg);
}
- if(userpath.empty())
+ if(!userpath.has_value())
{
msg<FATAL>("Usage: grommunio-index MAILDIR");
msg<STATUS>("Option overview: grommunio-index -h");
@@ -900,10 +900,10 @@
int main(int, const char* argv[])
{
parseArgs(argv);
- msg<DEBUG>("exmdb=", exmdbHost, ":", exmdbPort, ", user=", userpath, ",
output=", outpath.empty()? "<default>" : outpath);
+ msg<DEBUG>("exmdb=", exmdbHost, ":", exmdbPort, ", user=",
userpath.value(), ", output=", outpath.empty()? "<default>" : outpath);
IndexDB cache;
try {
- cache = IndexDB(userpath, exmdbHost, exmdbPort, outpath,
create, recheck);
+ cache = IndexDB(userpath.value(), exmdbHost, exmdbPort,
outpath, create, recheck);
cache.refresh();
} catch(const runtime_error& err) {
msg<FATAL>(err.what());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/grommunio-index-0.1.16.e01e06c/grommunio-index.service
new/grommunio-index-0.1.18.6a0f73a/grommunio-index.service
--- old/grommunio-index-0.1.16.e01e06c/grommunio-index.service 2023-01-14
00:38:53.000000000 +0100
+++ new/grommunio-index-0.1.18.6a0f73a/grommunio-index.service 2023-01-16
20:03:36.000000000 +0100
@@ -13,4 +13,5 @@
ProtectControlGroups=true
RestrictRealtime=true
Type=oneshot
+User=groweb
ExecStart=/usr/sbin/grommunio-index-run.sh
++++++ grommunio-index.dsc ++++++
--- /var/tmp/diff_new_pack.BfV1TW/_old 2023-01-18 13:11:50.125087016 +0100
+++ /var/tmp/diff_new_pack.BfV1TW/_new 2023-01-18 13:11:50.129087031 +0100
@@ -1,7 +1,7 @@
Format: 1.0
Source: grommunio-index
Architecture: any
-Version: 0.1.16.e01e06c
+Version: 0.1.18.6a0f73a
DEBTRANSFORM-RELEASE: 1
Maintainer: Grommunio <[email protected]>
Homepage: https://grommunio.com/