Github messages for voidlinux
 help / color / mirror / Atom feed
From: PaperMountainStudio <PaperMountainStudio@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] deluge: add patch to fix gettext warning
Date: Mon, 06 Jul 2020 19:32:32 +0200	[thread overview]
Message-ID: <20200706173232.tN96p1wFgW-DapAlZcb4YDHqNOh_0V81awZJqA_Mc-s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23423@inbox.vuxu.org>

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

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

https://github.com/PaperMountainStudio/void-packages 0001-deluge-add-patch-to-fix-gettext-warning.patch
https://github.com/void-linux/void-packages/pull/23423

deluge: add patch to fix gettext warning
patch is taken from upstream

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0001-deluge-add-patch-to-fix-gettext-warning.patch-23423.patch --]
[-- Type: text/x-diff, Size: 3016 bytes --]

From dd28b0f1668277cf67be709f578a7af9630b60b4 Mon Sep 17 00:00:00 2001
From: Paper <paper@tilde.institute>
Date: Mon, 6 Jul 2020 19:20:06 +0200
Subject: [PATCH] deluge: add patch to fix gettext warning

---
 .../0001-Fix-warning-related-to-gettext.patch | 25 +++++++++++++++++++
 srcpkgs/deluge/template                       |  6 ++---
 2 files changed, 27 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/deluge/patches/0001-Fix-warning-related-to-gettext.patch

diff --git a/srcpkgs/deluge/patches/0001-Fix-warning-related-to-gettext.patch b/srcpkgs/deluge/patches/0001-Fix-warning-related-to-gettext.patch
new file mode 100644
index 00000000000..565cd4f952d
--- /dev/null
+++ b/srcpkgs/deluge/patches/0001-Fix-warning-related-to-gettext.patch
@@ -0,0 +1,25 @@
+From d6c96d629183e8bab2167ef56457f994017e7c85 Mon Sep 17 00:00:00 2001
+From: neeshy <neeshy@tfwno.gf>
+Date: Sat, 18 Apr 2020 23:23:51 -0400
+Subject: Fix warning related to gettext
+
+---
+ deluge/i18n/util.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/deluge/i18n/util.py b/deluge/i18n/util.py
+index bd002f7a2..90568fc5b 100644
+--- a/deluge/i18n/util.py
++++ b/deluge/i18n/util.py
+@@ -114,7 +114,7 @@ def setup_translation():
+         # Workaround for Python 2 unicode gettext (keyword removed in Py3).
+         kwargs = {} if not deluge.common.PY2 else {'unicode': True}
+ 
+-        gettext.install(I18N_DOMAIN, translations_path, names='ngettext', **kwargs)
++        gettext.install(I18N_DOMAIN, translations_path, names=['ngettext'], **kwargs)
+         builtins.__dict__['_n'] = builtins.__dict__['ngettext']
+ 
+         libintl = None
+-- 
+2.27.0
+
diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template
index 107eee20d5f..fe7051dbd9b 100644
--- a/srcpkgs/deluge/template
+++ b/srcpkgs/deluge/template
@@ -1,10 +1,9 @@
 # Template file for 'deluge'
 pkgname=deluge
 version=2.0.3
-revision=5
+revision=6
 archs=noarch
 build_style=python3-module
-pycompile_module="deluge"
 hostmakedepends="intltool python3-setuptools"
 depends="python3-setuptools python3-chardet python3-Twisted python3-Mako
  python3-xdg python3-rencode python3-setproctitle libtorrent-rasterbar-python3
@@ -15,6 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://deluge-torrent.org/"
 distfiles="https://ftp.osuosl.org/pub/deluge/source/2.0/deluge-${version}.tar.xz"
 checksum=7e7ae8e6ca2a2bf0d487227cecf81e27332f0b92b567cc2bda38e47d859da891
+patch_args="-Np1"
 
 system_accounts="deluge"
 deluge_homedir="/var/lib/deluge"
@@ -29,7 +29,6 @@ deluge-gtk_package() {
 	archs=noarch
 	replaces="deluge<1.3.14_1"
 	short_desc+=" - GTK+ frontend"
-	pycompile_module="deluge"
 	depends="${sourcepkg}-${version}_${revision} python3-gobject"
 	pkg_install() {
 		vmove usr/bin/deluge
@@ -45,7 +44,6 @@ deluge-web_package() {
 	archs=noarch
 	replaces="deluge<1.3.14_1"
 	short_desc+=" - Web frontend"
-	pycompile_module="deluge"
 	depends="${sourcepkg}-${version}_${revision}"
 	pkg_install() {
 		vmove usr/bin/deluge-web

  reply	other threads:[~2020-07-06 17:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 17:30 [PR PATCH] " PaperMountainStudio
2020-07-06 17:32 ` PaperMountainStudio [this message]
2020-07-08  0:11 ` [PR PATCH] [Closed]: " sgn

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=20200706173232.tN96p1wFgW-DapAlZcb4YDHqNOh_0V81awZJqA_Mc-s@z \
    --to=papermountainstudio@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).