Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] nextcloud-client: fix kwallet desktop file
Date: Mon, 06 Feb 2023 13:21:21 +0100	[thread overview]
Message-ID: <20230206122121.E-aeWo5QvT47QOADYfbeQMEjcpRWl0Z0KSQ2h6c48vg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42051@inbox.vuxu.org>

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

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

https://github.com/menaechmi/nextcloud-desktopfix nextcloud-desktopfix
https://github.com/void-linux/void-packages/pull/42051

nextcloud-client: fix kwallet desktop file
<!-- Uncomment relevant sections and delete options which are not applicable -->
nextcloud-client had a problem where installing nextcloud-client would also install the "Nextcloud Desktop - use kwallet" desktop file. But it wouldn't work because the executable it pointed to didn't exist. As far as I could tell, the issue was a `${DESTDIR}` instead of `${PKGDESTDIR}.` Also changed a `cp` to a `vcopy,` which seems preferred in the codebase.

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64 glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - armv7l (successful)
  - x86_64 musl failed "unable to find argp.h" like in #39467 and upstream https://github.com/nextcloud/desktop/issues/3200




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

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

From a9c3f521866ef3980a117411d25c68b295a509a0 Mon Sep 17 00:00:00 2001
From: menaechmi <menaechmi@protonmail.com>
Date: Thu, 2 Feb 2023 18:36:06 -0600
Subject: [PATCH] nextcloud-client: fix kwallet desktop file

---
 srcpkgs/nextcloud-client/template | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/nextcloud-client/template b/srcpkgs/nextcloud-client/template
index 34cb388eb628..aed9773df1e6 100644
--- a/srcpkgs/nextcloud-client/template
+++ b/srcpkgs/nextcloud-client/template
@@ -1,10 +1,10 @@
 # Template file for 'nextcloud-client'
 pkgname=nextcloud-client
 version=3.6.6
-revision=1
+revision=2
 build_style=cmake
 configure_args="-Wno-dev"
-hostmakedepends="pkg-config inkscape"
+hostmakedepends="pkg-config inkscape qt5-qmake qt5-host-tools qt5-tools"
 makedepends="qt5-tools-devel qt5-declarative-devel qt5-webchannel-devel
  qt5-location-devel qtkeychain-qt5-devel sqlite-devel libcloudproviders-devel
  qt5-quickcontrols2-devel qt5-websockets-devel qt5-svg-devel
@@ -35,7 +35,6 @@ if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
 fi
 
 if [ "$CROSS_BUILD" ]; then
-	hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
 	# provides desktoptojson
 	hostmakedepends+=" $(vopt_if dolphin 'kcoreaddons')"
 fi
@@ -53,19 +52,23 @@ if [ "$XBPS_CHECK_PKGS" ]; then
 	esac
 fi
 
+post_install() {
+	vsed -i -e 's,^Exec=.*,Exec=/usr/bin/nextcloud.kwallet,' \
+	     -e 's,\(^Name=.*\),\1 - use kwallet,' \
+	     -e 's,\(^Comment=.*\),\1 - use kwallet credential storage,' \
+	     -e '/^# Translations/,$d' \
+	     build/src/gui/com.nextcloud.desktopclient.nextcloud.desktop
+	vinstall build/src/gui/com.nextcloud.desktopclient.nextcloud.desktop \
+		644 usr/share/applications/ \
+		nextcloud-kwallet.desktop
+}
+
 nextcloud-client-kwallet_package() {
 	short_desc+=" - kwallet credential backend"
 	depends="nextcloud-client>=${version}_${revision} kwallet"
 	pkg_install() {
 		vbin ${FILESDIR}/kwallet/nextcloud.kwallet
-		vmkdir usr/share/applications
-		cp build/src/gui/com.nextcloud.desktopclient.nextcloud.desktop \
-		   ${DESTDIR}/usr/share/applications/nextcloud-kwallet.desktop
-		vsed -i -e 's,^Exec=.*,Exec=/usr/bin/nextcloud.kwallet,' \
-		     -e 's,\(^Name=.*\),\1 - use kwallet,' \
-		     -e 's,\(^Comment=.*\),\1 - use kwallet credential storage,' \
-		     -e '/^# Translations/,$d' \
-		     ${DESTDIR}/usr/share/applications/nextcloud-kwallet.desktop
+		vmove usr/share/applications/nextcloud-kwallet.desktop
 		vdoc ${FILESDIR}/kwallet/README.voidlinux
 	}
 }

  parent reply	other threads:[~2023-02-06 12:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03  3:09 [PR PATCH] " menaechmi
2023-02-05 10:51 ` [PR REVIEW] " paper42
2023-02-06  1:21 ` sgn
2023-02-06  3:44 ` [PR PATCH] [Updated] " menaechmi
2023-02-06  4:04 ` [PR REVIEW] " menaechmi
2023-02-06  4:24 ` [PR PATCH] [Updated] " sgn
2023-02-06  4:25 ` [PR REVIEW] " sgn
2023-02-06  4:25 ` sgn
2023-02-06 12:21 ` sgn [this message]
2023-05-08  1:53 ` github-actions
2023-05-22  1:57 ` [PR PATCH] [Closed]: " github-actions

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=20230206122121.E-aeWo5QvT47QOADYfbeQMEjcpRWl0Z0KSQ2h6c48vg@z \
    --to=sgn@users.noreply.github.com \
    --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).