On Tue, May 5, 2026 13:40, Rafael Sadowski wrote:
> Heads up owncloudclient users, please test this. I would like to get rid
> of Qt5 here!
>
> Please find below a diff to update owncloudclient to 6.0.3.18040. I
> also attached www/libre-graph-api as a "new" (not bundled) dependency.
>
> Cheers Rafael

Hi!
Small fix for makefile below

>
> diff --git a/net/owncloudclient/Makefile b/net/owncloudclient/Makefile
> index ab28a6f503e..1461abf99e1 100644
> --- a/net/owncloudclient/Makefile
> +++ b/net/owncloudclient/Makefile
> @@ -1,15 +1,12 @@
>  COMMENT =            owncloud sync client
>
> -V =                  4.2.0.11670
> -GRAPHAPI_V =                 1.0.1
> +V =                  6.0.3.18040
>  DISTNAME =           ownCloud-${V}
>  PKGNAME =            owncloudclient-${V}
> -DISTFILES +=                 ownCloud-${V}.tar.xz
> -DISTFILES.a +=               
> libre-graph-api-cpp-qt-client-{}v${GRAPHAPI_V}.tar.gz
>
> -SHARED_LIBS +=               owncloudsync            9.0
> -SHARED_LIBS +=               owncloud_csync          3.0
> -SHARED_LIBS +=               owncloudResources       0.1
> +SHARED_LIBS +=  ownCloudCsync             0.0 # 0.0
> +SHARED_LIBS +=  ownCloudLibSync           0.0 # 0.0
> +SHARED_LIBS +=  ownCloudResources         0.0 # 0.0
>
>  CATEGORIES =         net
>
> @@ -20,42 +17,45 @@ MAINTAINER =              Kirill Bychkov 
> <[email protected]>
>  # GPLv2+
>  PERMIT_PACKAGE =     Yes
>
> -WANTLIB += Qt5Concurrent Qt5Core Qt5DBus Qt5Gui Qt5Network Qt5Widgets
> -WANTLIB += Qt5Xml c m qt5keychain sqlite3 z
> -WANTLIB += ${COMPILER_LIBCXX} lib/inotify/inotify
> +WANTLIB += ${COMPILER_LIBCXX} GL LibreGraphAPI Qt6Concurrent Qt6Core
> +WANTLIB += Qt6DBus Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6Quick
> +WANTLIB += Qt6QuickControls2 Qt6QuickWidgets Qt6Widgets Qt6Xml
> +WANTLIB += c kdsingleapplication-qt6 m qt6keychain sqlite3 z
> +WANTLIB += lib/inotify/inotify
>
>  SITES =      
> https://download.owncloud.com/desktop/ownCloud/stable/latest/source/
> \
>       https://download.owncloud.com/desktop/ownCloud/stable/${V}/source/
> -SITES.a =
>       
> https://github.com/owncloud/libre-graph-api-cpp-qt-client/archive/refs/tags/
> +EXTRACT_SUFX =       .tar.xz
>
> -MODULES =            devel/cmake x11/qt5
> +MODULES =            devel/cmake
>
>  BUILD_DEPENDS =      devel/kf6/extra-cmake-modules
> +
>  RUN_DEPENDS =                devel/desktop-file-utils \
>                       misc/shared-mime-info \
>                       x11/gtk+4,-guic
> +
>  LIB_DEPENDS =                databases/sqlite3 \
>                       devel/libinotify \
> -                     security/qtkeychain
> +                     security/qtkeychain,qt6 \
> +                     www/libre-graph-api \
> +                     x11/kdsingleapplication \
> +                     x11/qt6/qtdeclarative
>
>  CONFIGURE_ARGS +=    -Wno-dev \
>                       -DSYSCONF_INSTALL_DIR=${SYSCONFDIR} \
>                       -DKDE_INSTALL_PLUGINDIR=${PREFIX}/lib/ownCloud/plugins/ 
> \
> -                     -DCMAKE_DISABLE_FIND_PACKAGE_KF5=TRUE \
>                       -DCMAKE_DISABLE_FIND_PACKAGE_CMocka=TRUE \
>                       -DCSYNC_REQUIRED_LIBRARIES=c \
>                       -DWITH_AUTO_UPDATER=FALSE \
>                       -DWITH_LIBCLOUDPROVIDERS=FALSE
>
> -CFLAGS +=    -I${LOCALBASE}/include -I${LOCALBASE}/include/qtkeychain
> -CXXFLAGS +=  -I${LOCALBASE}/include -I${LOCALBASE}/include/qtkeychain
> +CFLAGS +=    -I${LOCALBASE}/include -I${LOCALBASE}/include/qtkeychain
> -I${LOCALBASE}/include/inotify
> +CXXFLAGS +=  -I${LOCALBASE}/include -I${LOCALBASE}/include/qtkeychain
> -I${LOCALBASE}/include/inotify
>  MODCMAKE_LDFLAGS =   -L${LOCALBASE}/lib
>
>  NO_TEST =            Yes
>
> -post-extract:
> -     cp -r ${WRKDIR}/libre-graph-api-cpp-qt-client-${GRAPHAPI_V} \
> -             ${WRKDIST}/src/libsync/libregraphapisrc-src
>  post-install:
>       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ownCloud/
>       mv ${WRKINST}/etc/ownCloud ${PREFIX}/share/examples/
             ^^^^^^^^ this should be PREFIX to fix packaging.
>
And it crashes for me the same way as my previous attempt in updating it
(that's why it is still in my tree):

kirby1@humppastara:ttypa<owncloudclient> % egdb owncloud
GNU gdb (GDB) 17.1
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd7.9".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from owncloud...
(No debugging symbols found in owncloud)
(gdb) run
Starting program: /usr/local/bin/owncloud
Detected locale "C" with character encoding "US-ASCII", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
[New thread 587827 of process 79144]
[New thread 207290 of process 79144]
[New thread 192107 of process 79144]
[New thread 372152 of process 79144]
[New thread 570070 of process 79144]
[New thread 214032 of process 79144]

Thread 1 "" received signal SIGABRT, Aborted.
thrkill () at /tmp/-:2
warning: 2      /tmp/-: No such file or directory
(gdb) bt
#0  thrkill () at /tmp/-:2
#1  0x6310b4165a3e74b6 in ?? ()
#2  0x00000327e63536fb in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#3  0x00000327d9e71b1d in qAbort() () from /usr/local/lib/libQt6Core.so.7.0
#4  0x00000327d9e8b801 in qt_message(QtMsgType, QMessageLogContext const&,
char const*, __va_list_tag*)
    () from /usr/local/lib/libQt6Core.so.7.0
#5  0x00000327d9e91b8b in QMessageLogger::fatal(char const*, ...) const ()
   from /usr/local/lib/libQt6Core.so.7.0
#6  0x00000327a0047f00 in OCC::FolderMan::setupFoldersHelper(QSettings&,
QPointer<OCC::AccountState>) ()
   from /usr/local/lib/libowncloudGui.so
#7  0x00000327a0046d14 in OCC::FolderMan::setupFolders() () from
/usr/local/lib/libowncloudGui.so
#8  0x00000325280546d2 in main::$_0::operator()(int, char**) const ()
#9  0x00000327724ee4a7 in OCC::RestartManager::exec(int, char**) const ()
   from /usr/local/lib/libownCloudCsync.so.0.0
#10 0x0000032528051fdd in main ()
(gdb)

Reply via email to