unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47672: owncloud-client : "Could not read system exclude file"
@ 2021-04-09 11:21 Fulbert
  2021-06-16 12:16 ` bug#47672: [PATCH] gnu: owncloud-client: Fix sysconfdir path Daniel Meißner
  2021-06-16 13:03 ` bug#47672: owncloud-client : "Could not read system exclude file" Daniel Meißner via Bug reports for GNU Guix
  0 siblings, 2 replies; 3+ messages in thread
From: Fulbert @ 2021-04-09 11:21 UTC (permalink / raw)
  To: 47672


Hello !

After setting up an account to a davs server, the synchronisation
fails with messages :

* On the GUI : "Could not read system exclude file"

* In log file :
20210409_1235_owncloud.log.0.gz:04-09 12:35:55:294 [ info sync.configfile ]:    Adding system ignore list to csync: "/home/fulbert/etc/ownCloud/sync-exclude.lst"
20210409_1235_owncloud.log.0.gz:04-09 12:35:55:294 [ info sync.configfile ]:    Adding user defined ignore list to csync: "/home/fulbert/.config/ownCloud/sync-exclude.lst"
20210409_1235_owncloud.log.0.gz:04-09 12:35:55:295 [ warning gui.folder ]: Could not read system exclude file

After a little web search, I have not found a way to change the
path to the *system* `sync-exclude.lst` file, whether through GUI,
configuration file or environement variable.

brutal workaround :
$ mkdir $HOME/etc/ownCloud
$ ln -s $HOME/.guix-profile/etc/ownCloud/sync-exclude.lst $HOME/etc/ownCloud

Thanks and best regards.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#47672: [PATCH] gnu: owncloud-client: Fix sysconfdir path
  2021-04-09 11:21 bug#47672: owncloud-client : "Could not read system exclude file" Fulbert
@ 2021-06-16 12:16 ` Daniel Meißner
  2021-06-16 13:03 ` bug#47672: owncloud-client : "Could not read system exclude file" Daniel Meißner via Bug reports for GNU Guix
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Meißner @ 2021-06-16 12:16 UTC (permalink / raw)
  To: 47672

Hi,

I have also noticed this issue and found a fix here:

https://github.com/owncloud/client/issues/8373

Somehow sysconfdir is not set correctly so that owncloud searched for
sync-exclude.lst in the relative path etc/ownCloud/sync-exclude.lst instead
of the /gnu/store/...-owncloud-client/etc/ownCloud/sync-exclude.lst.

The following patch fixes this behaviour:

* gnu/packages/sync.scm(owncloud-client):  Add -DSYSCONF_INSTALL_DIR flag to
configure flags.
---
 gnu/packages/sync.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index 2b64117dc6..f9c3855e08 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -341,10 +341,16 @@ See also: megacmd, the official tool set by MEGA.")
                (("QCoreApplication::applicationFilePath\\()") "\"owncloud\""))
              #t))
          (delete 'patch-dot-desktop-files))
-       #:configure-flags '("-DUNIT_TESTING=ON"
-                           ;; build without qtwebkit, which causes the
-                           ;; package to FTBFS while looking for QWebView.
-                           "-DNO_SHIBBOLETH=1")))
+       #:configure-flags `("-DUNIT_TESTING=ON"
+                             ;; build without qtwebkit, which causes the
+                             ;; package to FTBFS while looking for QWebView.
+                             "-DNO_SHIBBOLETH=1"
+                             ;; Fix sync-exclude.list problem
+                             ;; See: https://github.com/owncloud/client/issues/8373
+                             ;; See: https://issues.guix.gnu.org/47672
+                             ,(string-append "-DSYSCONF_INSTALL_DIR="
+                                            (assoc-ref %outputs "out")
+                                            "/etc"))))
     (native-inputs
      `(("cmocka" ,cmocka)
        ("extra-cmake-modules" ,extra-cmake-modules)
-- 
2.32.0

Best regards
Daniel




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#47672: owncloud-client : "Could not read system exclude file"
  2021-04-09 11:21 bug#47672: owncloud-client : "Could not read system exclude file" Fulbert
  2021-06-16 12:16 ` bug#47672: [PATCH] gnu: owncloud-client: Fix sysconfdir path Daniel Meißner
@ 2021-06-16 13:03 ` Daniel Meißner via Bug reports for GNU Guix
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Meißner via Bug reports for GNU Guix @ 2021-06-16 13:03 UTC (permalink / raw)
  To: 47672

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

Hi,

I have also noticed this issue and found the basis for my fix here:

https://github.com/owncloud/client/issues/8373

The attached patch fixes this behaviour.

Best regards
Daniel


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-owncloud-client-Fix-sysconfdir-path.patch --]
[-- Type: text/x-patch, Size: 2057 bytes --]

From 84b103e261ed1473cdd456b70dbf58626bb9f7ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mei=C3=9Fner?=
 <daniel.meissner-i4k@ruhr-uni-bochum.de>
Date: Wed, 16 Jun 2021 14:16:10 +0200
Subject: [PATCH] gnu: owncloud-client: Fix sysconfdir path

Somehow sysconfdir was not set correctly so that owncloud searched for
sync-exclude.lst in the relative path etc/ownCloud/sync-exclude.lst instead
of the /gnu/store/...-owncloud-client/etc/ownCloud/sync-exclude.lst.

* gnu/packages/sync.scm(owncloud-client):  Add -DSYSCONF_INSTALL_DIR flag to
configure flags.
---
 gnu/packages/sync.scm | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index 2b64117dc6..f9c3855e08 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -341,10 +341,16 @@ See also: megacmd, the official tool set by MEGA.")
                (("QCoreApplication::applicationFilePath\\()") "\"owncloud\""))
              #t))
          (delete 'patch-dot-desktop-files))
-       #:configure-flags '("-DUNIT_TESTING=ON"
-                           ;; build without qtwebkit, which causes the
-                           ;; package to FTBFS while looking for QWebView.
-                           "-DNO_SHIBBOLETH=1")))
+       #:configure-flags `("-DUNIT_TESTING=ON"
+                             ;; build without qtwebkit, which causes the
+                             ;; package to FTBFS while looking for QWebView.
+                             "-DNO_SHIBBOLETH=1"
+                             ;; Fix sync-exclude.list problem
+                             ;; See: https://github.com/owncloud/client/issues/8373
+                             ;; See: https://issues.guix.gnu.org/47672
+                             ,(string-append "-DSYSCONF_INSTALL_DIR="
+                                            (assoc-ref %outputs "out")
+                                            "/etc"))))
     (native-inputs
      `(("cmocka" ,cmocka)
        ("extra-cmake-modules" ,extra-cmake-modules)
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-16 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-09 11:21 bug#47672: owncloud-client : "Could not read system exclude file" Fulbert
2021-06-16 12:16 ` bug#47672: [PATCH] gnu: owncloud-client: Fix sysconfdir path Daniel Meißner
2021-06-16 13:03 ` bug#47672: owncloud-client : "Could not read system exclude file" Daniel Meißner via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).