Your message dated Mon, 17 Feb 2020 17:35:38 +0000
with message-id <[email protected]>
and subject line Bug#947031: fixed in python-libarchive-c 2.9-0.1
has caused the Debian Bug report #947031,
regarding Fails to build with python3.8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
947031: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947031
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-libarchive-c
Version: 2.8-0.4
Tags: patch
User: [email protected]
Usertags: origin-ubuntu focal ubuntu-patch

The package failes to build with python 3.8, the attached patch fixes
the issue
diff -Nru python-libarchive-c-2.8/debian/changelog python-libarchive-c-2.8/debian/changelog
--- python-libarchive-c-2.8/debian/changelog	2019-10-08 02:24:30.000000000 +0200
+++ python-libarchive-c-2.8/debian/changelog	2019-12-19 18:25:00.000000000 +0100
@@ -1,3 +1,10 @@
+python-libarchive-c (2.8-0.5) UNRELEASED; urgency=medium
+
+  * debian/patches/git_python38_compat.patch:
+    - backport an upstream commit to fix build with python 3.8
+
+ -- Sebastien Bacher <[email protected]>  Thu, 19 Dec 2019 18:23:18 +0100
+
 python-libarchive-c (2.8-0.4) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru python-libarchive-c-2.8/debian/patches/git_python38_compat.patch python-libarchive-c-2.8/debian/patches/git_python38_compat.patch
--- python-libarchive-c-2.8/debian/patches/git_python38_compat.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-libarchive-c-2.8/debian/patches/git_python38_compat.patch	2019-12-19 18:24:08.000000000 +0100
@@ -0,0 +1,49 @@
+From 7480fcdc8c6585d3f8ac67fe9a4dff0ebb0e479e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]>
+Date: Thu, 2 May 2019 15:39:00 +0200
+Subject: [PATCH] Python 3.8: tarfile.filemode is gone, use stat.filemode if
+ available
+
+    >           mode = tarfile.filemode(entry.mode)[1:]
+    E           AttributeError: module 'tarfile' has no attribute 'filemode'
+---
+ tests/__init__.py | 6 +++++-
+ tox.ini           | 2 +-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/tests/__init__.py b/tests/__init__.py
+index 7e922aa..bfca007 100644
+--- a/tests/__init__.py
++++ b/tests/__init__.py
+@@ -6,6 +6,10 @@
+ from os.path import abspath, dirname, join
+ from stat import S_ISREG
+ import tarfile
++try:
++    from stat import filemode
++except ImportError:  # Python 2
++    filemode = tarfile.filemode
+ 
+ from libarchive import file_reader
+ 
+@@ -83,7 +87,7 @@ def get_tarinfos(location):
+                 path += '/'
+             # libarchive introduces prefixes such as h prefix for
+             # hardlinks: tarfile does not, so we ignore the first char
+-            mode = tarfile.filemode(entry.mode)[1:]
++            mode = filemode(entry.mode)[1:]
+             yield {
+                 'path': path,
+                 'mtime': entry.mtime,
+diff --git a/tox.ini b/tox.ini
+index 8973837..1f6b04f 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -1,5 +1,5 @@
+ [tox]
+-envlist=py27,py34,py35,py36
++envlist=py27,py34,py35,py36,py37,py38
+ skipsdist=True
+ 
+ [testenv]
+
diff -Nru python-libarchive-c-2.8/debian/patches/series python-libarchive-c-2.8/debian/patches/series
--- python-libarchive-c-2.8/debian/patches/series	2019-01-08 12:28:40.000000000 +0100
+++ python-libarchive-c-2.8/debian/patches/series	2019-12-19 18:24:17.000000000 +0100
@@ -1 +1,2 @@
 retrieve-version-from-debian-changelog.diff
+git_python38_compat.patch

--- End Message ---
--- Begin Message ---
Source: python-libarchive-c
Source-Version: 2.9-0.1
Done: =?utf-8?q?H=C3=A5vard_Flaget_Aasen?= <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-libarchive-c, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Håvard Flaget Aasen <[email protected]> (supplier of updated 
python-libarchive-c package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 17 Feb 2020 17:17:23 +0100
Source: python-libarchive-c
Architecture: source
Version: 2.9-0.1
Distribution: unstable
Urgency: medium
Maintainer: Jérémy Bobbio <[email protected]>
Changed-By: Håvard Flaget Aasen <[email protected]>
Closes: 947031
Changes:
 python-libarchive-c (2.9-0.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * New upstream version 2.9
     - Version is compatible with python3.8 closes: #947031
   * Update Standards-Version to 4.5.0
   * Change from ADTTMP to AUTOPKGTEST_TMP in d/tests/upstream-tests
Checksums-Sha1:
 56b5a5158e8ffccca0b8a1d3e8db8f5f0b6bb6fb 2113 python-libarchive-c_2.9-0.1.dsc
 70dc6569ce1fed562a19cd0dca5f831a1831235a 46408 
python-libarchive-c_2.9.orig.tar.gz
 500d2b2fca5d446200ab900841ed7c60cd02c39b 6976 
python-libarchive-c_2.9-0.1.debian.tar.xz
 4401a464311ef8db843092210700884d816bc0ec 6691 
python-libarchive-c_2.9-0.1_source.buildinfo
Checksums-Sha256:
 18497dc743ceae01e924548e82305cb66c59e67037f7aea65cb9847b285d52e9 2113 
python-libarchive-c_2.9-0.1.dsc
 9919344cec203f5db6596a29b5bc26b07ba9662925a05e24980b84709232ef60 46408 
python-libarchive-c_2.9.orig.tar.gz
 2efff3537f6cc18676858e157b01a3b405e189ca3bc7ef974d7885e18b0ecf2e 6976 
python-libarchive-c_2.9-0.1.debian.tar.xz
 ad9868e18a5b4fb77f5fb78e415ba7232a2ee80acb1169b0ce4791ff6ded9c8a 6691 
python-libarchive-c_2.9-0.1_source.buildinfo
Files:
 df7c8b9ca548eb3df9bfd59d3878abe2 2113 python optional 
python-libarchive-c_2.9-0.1.dsc
 083bd2cb0043c1e22a52cb9a05e31532 46408 python optional 
python-libarchive-c_2.9.orig.tar.gz
 e91a2485c0c03e6007eb842c150e4754 6976 python optional 
python-libarchive-c_2.9-0.1.debian.tar.xz
 315ca12b087ef2dd2c8b5296c27939a0 6691 python optional 
python-libarchive-c_2.9-0.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAl5KyvwACgkQweDZLphv
fH6WJBAA5AqLN4JnZ6Pcsas7iIG2g9xfAD98wuyNoc3oZXNyRHdsmYntwYlu1EPA
4EP/k2d0ViIcIWvOsg9M0ZBdfd7Z8lOX6AgWYF7L3xFnpIZNEhYoO/q/ASm264Hu
p1VyGTovT5gni0Hd1299L4NvUI8WmdjjPWAhzsg11VArzT/pMcG4LubvXh7GKV25
oiH0MdFsAhOGOhX1r7MnoMjxLq2w9ytVO4TlBWLyZKes4x2wb4YHR/Dhu96Ffm40
Xjci4SH62/2wCW8mhMnovSqpZU7zymgTHhUi6NEDq2fVPBBIjijQRLtBoUmPom+N
AuXMlbfaKMqY2SrEBERic1kvUNfB+kNqo99ZfE5JOAmuzzvRtA8qBrJLKnEXLu/d
7zMd1wYLMalqJyNwp0UwNXL+J88Vjdl8J3nU6E56tbkN4reAg4At4ZDOIzE8oiJ/
1CGQB0CgqKNIXvMLmNiczGiIpcjllKC9ADcRmELGF3MNLatiCzeeloZvD1RFi59Y
lpOMgW41yi3AC2Oob3bLO5jdTnEMxgjW/SxxBJGmitS7FK46JWvx64Ebh+w3S5y8
WuqKIg4B15/8+/lYWMipBbzKBrr/6FECrfzKPr9Z4yXEOcXBfGCzIYNVMyWeKZv1
knvm4hcPBoBRdP2fgN3k0MIlZJTnjLCvjHGb3lTajtMrOo3A4n4=
=eqjB
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to