Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: nextcloud-client 2.6.0
Date: Sat, 19 Oct 2019 09:56:22 +0200	[thread overview]
Message-ID: <20191019075622._qSySG3WPeqN6NRx-6HIMy518SvBHYIEwnwhBcTrJeM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14069@inbox.vuxu.org>

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

There is an updated pull request by yopito against master on the void-packages repository

https://github.com/yopito/void-packages nextcloud-client
https://github.com/void-linux/void-packages/pull/14069

[WIP] New package: nextcloud-client 2.6.0
* reuse various efforts on packaging it
* does NOT support Client Encryption (LibreSSL 2.9.2 limitation)
* [x] runtime usage ("it's working for me" (tm) )
* [x]  split with subpkg -devel, ...
* [ ] crossbuild
* [x] KDE dolphin specific support

A patch file from https://github.com/void-linux/void-packages/pull/14069.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nextcloud-client-14069.patch --]
[-- Type: text/x-diff, Size: 4838 bytes --]

From b7863113d88f4e6c9574695bd674dda3f3aa9934 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Thu, 29 Aug 2019 23:45:55 +0200
Subject: [PATCH] New package: nextcloud-client 2.6.0

---
 srcpkgs/nextcloud-client-devel                |  1 +
 srcpkgs/nextcloud-client-dolphin              |  1 +
 srcpkgs/nextcloud-client/INSTALL.msg          |  2 +
 .../patches/libressl-no-rsa_oaep_md.patch     | 23 ++++++++
 srcpkgs/nextcloud-client/template             | 54 +++++++++++++++++++
 5 files changed, 81 insertions(+)
 create mode 120000 srcpkgs/nextcloud-client-devel
 create mode 120000 srcpkgs/nextcloud-client-dolphin
 create mode 100644 srcpkgs/nextcloud-client/INSTALL.msg
 create mode 100644 srcpkgs/nextcloud-client/patches/libressl-no-rsa_oaep_md.patch
 create mode 100644 srcpkgs/nextcloud-client/template

diff --git a/srcpkgs/nextcloud-client-devel b/srcpkgs/nextcloud-client-devel
new file mode 120000
index 00000000000..50c67ada861
--- /dev/null
+++ b/srcpkgs/nextcloud-client-devel
@@ -0,0 +1 @@
+nextcloud-client
\ No newline at end of file
diff --git a/srcpkgs/nextcloud-client-dolphin b/srcpkgs/nextcloud-client-dolphin
new file mode 120000
index 00000000000..50c67ada861
--- /dev/null
+++ b/srcpkgs/nextcloud-client-dolphin
@@ -0,0 +1 @@
+nextcloud-client
\ No newline at end of file
diff --git a/srcpkgs/nextcloud-client/INSTALL.msg b/srcpkgs/nextcloud-client/INSTALL.msg
new file mode 100644
index 00000000000..b3e877dc379
--- /dev/null
+++ b/srcpkgs/nextcloud-client/INSTALL.msg
@@ -0,0 +1,2 @@
+NextCloud client end-to-end encryption (e2e) is currently unavailable
+(LibreSSL 2.9.2 does not provide EVP_PKEY_CTX_set_rsa_oaep_md primitive)
diff --git a/srcpkgs/nextcloud-client/patches/libressl-no-rsa_oaep_md.patch b/srcpkgs/nextcloud-client/patches/libressl-no-rsa_oaep_md.patch
new file mode 100644
index 00000000000..47c54fff778
--- /dev/null
+++ b/srcpkgs/nextcloud-client/patches/libressl-no-rsa_oaep_md.patch
@@ -0,0 +1,23 @@
+source: https://github.com/nextcloud/desktop/issues/738
+
+--- src/libsync/clientsideencryption.cpp.ORIG	2019-07-25 12:20:49.000000000 +0200
++++ src/libsync/clientsideencryption.cpp	2019-07-28 12:56:18.813514323 +0200
+@@ -35,6 +35,18 @@
+ 
+ #include "wordlist.h"
+ 
++/* libessl 2.92 does not provide EVP_PKEY_CTX_set_rsa_oaep_md
++ * So with LibreSSL EVP_PKEY_CTX_ctrl() should explicitly return an error 
++ * "operation not supported" when you try to use e2e
++ */
++#ifndef EVP_PKEY_CTX_set_rsa_oaep_md
++#define EVP_PKEY_CTRL_RSA_OAEP_MD       (EVP_PKEY_ALG_CTRL + 9)
++#define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)
++#define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \
++        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \
++        EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))
++#endif
++
+ QDebug operator<<(QDebug out, const std::string& str)
+ {
+     out << QString::fromStdString(str);
diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
new file mode 100644
index 00000000000..46d0af2b204
--- /dev/null
+++ b/srcpkgs/nextcloud-client/template
@@ -0,0 +1,54 @@
+# Template file for 'nextcloud-client'
+pkgname=nextcloud-client
+version=2.6.0
+revision=1
+wrksrc="desktop-${version}"
+build_style=cmake
+configure_args="-Wno-dev"
+hostmakedepends="pkg-config"
+makedepends="qt5-tools-devel qt5-webengine-devel qt5-declarative-devel
+ qt5-webchannel-devel qt5-location-devel qtkeychain-qt5-devel sqlite-devel
+ qt5-webkit-devel libcloudproviders-devel $(vopt_if dolphin 'extra-cmake-modules kio-devel')"
+conf_files="/etc/Nextcloud/sync-exclude.lst"
+short_desc="NextCloud Desktop client"
+maintainer="yopito <pierre.bourgin@free.fr>"
+license="GPL-2.0-or-later"
+homepage="https://nextcloud.com/clients/"
+distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
+checksum=7b3f3c14d2e44826a5183fd59a7412c6dd5ed00296873e35c566f75c14c3a3ea
+
+build_options="dolphin"
+desc_option_dolphin="Build KDE dolphin support"
+build_options_default="dolphin"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv6*|armv7*) broken="qt5-tools-devel unavailable" ;;
+esac
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
+	# provides desktoptojson
+	hostmakedepends+=" $(vopt_if dolphin 'kcoreaddons')"
+fi
+
+if [ $build_option_dolphin ]; then
+nextcloud-client-dolphin_package() {
+	short_desc+=" - KDE dolphin integration"
+	depends="nextcloud-client>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/lib/libnextclouddolphinpluginhelper.so
+		vmove usr/lib/qt5
+		vmove usr/share/kservices5
+	}
+}
+fi
+
+nextcloud-client-devel_package() {
+	depends="nextcloud-client>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/libnextcloudsync.so
+		vmove "usr/lib/nextcloud/*.so"
+	}
+}

  parent reply	other threads:[~2019-10-19  7:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14069@inbox.vuxu.org>
2019-09-10 18:36 ` [WIP] New package: nextcloud-client 2.5.3 voidlinux-github
2019-09-11  6:27 ` voidlinux-github
2019-10-16  5:06 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-16  5:06 ` voidlinux-github
2019-10-16  6:24 ` [PR PATCH] [Updated] [WIP] New package: nextcloud-client 2.6.0 voidlinux-github
2019-10-16  6:24 ` voidlinux-github
2019-10-19  7:56 ` voidlinux-github [this message]
2019-10-19  7:56 ` voidlinux-github
2019-10-19  8:17 ` voidlinux-github
2019-10-28 22:31 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-28 22:31 ` voidlinux-github
2019-10-28 22:31 ` voidlinux-github
2019-10-29  8:16 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191019075622._qSySG3WPeqN6NRx-6HIMy518SvBHYIEwnwhBcTrJeM@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).