Github messages for voidlinux
 help / color / mirror / Atom feed
From: olafmersmann <olafmersmann@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] vdirsyncer: cherry pick Python 3.9 fixes.
Date: Wed, 14 Oct 2020 11:55:02 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25598@inbox.vuxu.org> (raw)

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

There is a new pull request by olafmersmann against master on the void-packages repository

https://github.com/olafmersmann/void-packages vdirsync-fix
https://github.com/void-linux/void-packages/pull/25598

vdirsyncer: cherry pick Python 3.9 fixes.
vdirsyncer uses the deprecared iter() method. Python 3.9 removed this method. Upstream has a fix (commit 7577fa21177442aacc2d86640ef28cebf1c4aaef), but has not spun a new release. This commit cherry-picks that commit and bumps the revision.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-vdirsync-fix-25598.patch --]
[-- Type: text/x-diff, Size: 1909 bytes --]

From e5049643f889e139e3ad0ac3f11d4553058994c9 Mon Sep 17 00:00:00 2001
From: Olaf Mersmann <olafm@p-value.net>
Date: Wed, 14 Oct 2020 11:52:07 +0200
Subject: [PATCH] vdirsyncer: cherry pick Python 3.9 fixes.

---
 ...01-Update-usage-of-deprecated-method.patch | 25 +++++++++++++++++++
 srcpkgs/vdirsyncer/template                   |  2 +-
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/vdirsyncer/patches/0001-Update-usage-of-deprecated-method.patch

diff --git a/srcpkgs/vdirsyncer/patches/0001-Update-usage-of-deprecated-method.patch b/srcpkgs/vdirsyncer/patches/0001-Update-usage-of-deprecated-method.patch
new file mode 100644
index 00000000000..f3bee58f0cf
--- /dev/null
+++ b/srcpkgs/vdirsyncer/patches/0001-Update-usage-of-deprecated-method.patch
@@ -0,0 +1,25 @@
+From 7577fa21177442aacc2d86640ef28cebf1c4aaef Mon Sep 17 00:00:00 2001
+From: Hugo Osvaldo Barrera <hugo@barrera.io>
+Date: Tue, 9 Jun 2020 17:04:46 +0200
+Subject: [PATCH] Update usage of deprecated method
+
+---
+ vdirsyncer/storage/dav.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py
+index 07d164f..a7e2422 100644
+--- a/vdirsyncer/storage/dav.py
++++ b/vdirsyncer/storage/dav.py
+@@ -124,7 +124,7 @@ def _merge_xml(items):
+         return None
+     rv = items[0]
+     for item in items[1:]:
+-        rv.extend(item.getiterator())
++        rv.extend(item.iter())
+     return rv
+ 
+ 
+-- 
+2.28.0
+
diff --git a/srcpkgs/vdirsyncer/template b/srcpkgs/vdirsyncer/template
index d791cb2edd0..906b77950d3 100644
--- a/srcpkgs/vdirsyncer/template
+++ b/srcpkgs/vdirsyncer/template
@@ -1,7 +1,7 @@
 # Template file for 'vdirsyncer'
 pkgname=vdirsyncer
 version=0.16.8
-revision=2
+revision=3
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3-atomicwrites python3-click python3-click-log

             reply	other threads:[~2020-10-14  9:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14  9:55 olafmersmann [this message]
2020-10-14 10:06 ` [PR PATCH] [Updated] " olafmersmann
2020-10-16 15:34 ` [PR PATCH] [Merged]: " ahesford

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25598@inbox.vuxu.org \
    --to=olafmersmann@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).