Your message dated Wed, 23 Apr 2014 17:00:09 +0000
with message-id <[email protected]>
and subject line Bug#744211: fixed in pyparted 3.10-1
has caused the Debian Bug report #744211,
regarding pyparted: Please support Python 3
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.)


-- 
744211: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744211
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pyparted
Version: 3.6-6
Severity: normal
Tags: patch

Please provide a Python 3 binding of pyparted. Building 3.6 with Python 3
support caused a build failure. The upstream changelog showed changes
regarding Python 3. I therefore updated the package to the latest release
(3.10) and was able to successfully build a Python 3 module. A working patch is
attched. The patch just covers the diff for the debian directory.
diff --git a/debian/changelog b/debian/changelog
index caa9156..40572fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pyparted (3.10-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Switch to pybuild.
+  * Add Python 3 support.
+
+ -- Benjamin Drung <[email protected]>  Fri, 11 Apr 2014 14:56:24 +0200
+
 pyparted (3.6-6) unstable; urgency=low
 
   [ Tim Gardner ]
diff --git a/debian/control b/debian/control
index 270e807..6406487 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,10 @@ Section: python
 Priority: optional
 Maintainer: Parted Maintainer Team <[email protected]>
 Uploaders: Luca Falavigna <[email protected]>, Colin Watson <[email protected]>
-Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.6.6-13~), python-all-dbg (>= 2.6.6-13~), pkg-config, libparted0-dev (>= 2.3), dh-autoreconf
+Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.6.6-13~), python-all-dbg (>= 2.6.6-13~), pkg-config, libparted0-dev (>= 2.3), python3-all-dev, python3-all-dbg
 Standards-Version: 3.9.2
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.0
 Homepage: http://fedorahosted.org/pyparted/
 Vcs-Git: git://git.debian.org/git/parted/debian/pyparted.git
 Vcs-Browser: http://git.debian.org/?p=parted/debian/pyparted.git
@@ -32,3 +33,14 @@ Description: Python interface for libparted - Debugging symbols
  library for disk partitioning and file system manipulation.
  .
  This package contains debugging symbols.
+
+Package: python3-parted
+Architecture: any
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Description: Python 3 interface for libparted
+ pyparted is a set of Python modules that provide Python programmers an
+ interface to libparted (http://www.gnu.org/software/parted), the GNU parted
+ library for disk partitioning and file system manipulation.
+ .
+ This package contains Python 3 extension itself.
diff --git a/debian/patches/py26.patch b/debian/patches/py26.patch
deleted file mode 100644
index 2bc2667..0000000
--- a/debian/patches/py26.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Description: Enable support for python2.6
-Author: Luca Falavigna <[email protected]>
-Bug: http://bugs.debian.org/642545
-Forwarded: not-needed
-
-Index: pyparted/configure.ac
-===================================================================
---- pyparted.orig/configure.ac	2011-09-24 01:05:14.616973338 +0200
-+++ pyparted/configure.ac	2011-09-24 01:07:24.116977306 +0200
-@@ -19,7 +19,7 @@
- dnl Red Hat Author(s): David Cantrell <[email protected]>
- 
- m4_define(libparted_required_version, 2.3)
--m4_define(python_required_version, 2.7)
-+m4_define(python_required_version, 2.6)
- 
- AC_PREREQ(2.59)
- AC_INIT([pyparted], [3.6], [[email protected]])
diff --git a/debian/patches/series b/debian/patches/series
index f9703da..74ae2f7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
-py26.patch
 no-last-flag-check.patch
diff --git a/debian/rules b/debian/rules
index e4527af..df987a7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,36 +1,6 @@
 #!/usr/bin/make -f
 
-PYTHONS := $(shell pyversions -vr debian/control)
+export PYBUILD_NAME=parted
 
 %:
-	dh $@ --with python2,autoreconf
-
-clean:
-	rm -fr build
-	dh $@
-
-override_dh_auto_configure:
-	set -e; for pyvers in ${PYTHONS}; do \
-		mkdir -p build/py$$pyvers; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers;\
-		(cd build/py$$pyvers && ./configure --prefix=/usr PYTHON=/usr/bin/python$$pyvers); \
-		mkdir -p build/py$$pyvers-dbg; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers-dbg; \
-		(cd build/py$$pyvers-dbg && ./configure --prefix=/usr PYTHON=/usr/bin/python$$pyvers-dbg CFLAGS="-g -ggdb "); \
-	done
-
-override_dh_auto_build:  
-	set -e; for pyvers in ${PYTHONS}; do \
-		$(MAKE) -C build/py$$pyvers/; \
-		$(MAKE) -C build/py$$pyvers-dbg/; \
-	done
-
-override_dh_auto_install:
-	set -e; for pyvers in ${PYTHONS}; do \
-		$(MAKE) -C build/py$$pyvers/ install DESTDIR=$(CURDIR)/debian/python-parted; \
-		$(MAKE) -C build/py$$pyvers-dbg/ install DESTDIR=$(CURDIR)/debian/python-parted-dbg; \
-		(cd $(CURDIR)/debian/python-parted-dbg/usr/lib/python$$pyvers/*-packages && mv _pedmodule.so _pedmodule_d.so); \
-	done
-	find $(CURDIR)/debian/python-parted -name "*.la" -delete
-	find $(CURDIR)/debian/python-parted-dbg -name "*parted" -exec rm -fr {} +
-
-override_dh_strip:
-	dh_strip --dbg-package=python-parted-dbg -X_pedmodule_d.so
+	dh $@ --buildsystem pybuild --with python2,python3

--- End Message ---
--- Begin Message ---
Source: pyparted
Source-Version: 3.10-1

We believe that the bug you reported is fixed in the latest version of
pyparted, 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.
Luca Falavigna <[email protected]> (supplier of updated pyparted 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: SHA256

Format: 1.8
Date: Sat, 19 Apr 2014 10:56:36 +0200
Source: pyparted
Binary: python-parted python3-parted python-parted-dbg python3-parted-dbg
Architecture: source amd64
Version: 3.10-1
Distribution: unstable
Urgency: medium
Maintainer: Parted Maintainer Team <[email protected]>
Changed-By: Luca Falavigna <[email protected]>
Description: 
 python-parted - Python interface for libparted
 python-parted-dbg - Python interface for libparted - Debugging symbols
 python3-parted - Python 3 interface for libparted
 python3-parted-dbg - Python 3 interface for libparted - Debugging symbols
Closes: 744211
Changes: 
 pyparted (3.10-1) unstable; urgency=medium
 .
   [ Benjamin Drung ]
   * New upstream release.
   * Switch to pybuild.
   * Add Python 3 support (Closes: #744211).
 .
   [ Luca Falavigna ]
   * debian/control:
     - Use canoncal URIs for the VCS-* fields.
     - Bump Standards-Version to 3.9.5.
   * debian/copyright:
     - Adjust copyright years.
Checksums-Sha1: 
 26b0713733cd81021b7a201ee3667be41227d73d 2248 pyparted_3.10-1.dsc
 6189818baa0b1e9edf199eeced5242891534a700 189069 pyparted_3.10.orig.tar.gz
 f160d5372057073a8f81fe804a63bc6b5af22126 3912 pyparted_3.10-1.debian.tar.xz
 c931ba3e48f18160fadeadcee11ee83596058e89 158836 python-parted_3.10-1_amd64.deb
 7b5ac1b4f819f45b9794c37b31049310da1c79e1 157362 python3-parted_3.10-1_amd64.deb
 77acc69cc86c11f0f5a221a2b21b49ccb116176b 143208 
python-parted-dbg_3.10-1_amd64.deb
 0292d380ed27a1e61d143ff378c206a29ce1d011 156122 
python3-parted-dbg_3.10-1_amd64.deb
Checksums-Sha256: 
 54da5a16872c9134fb541b86ac2a0e2311c9819746d07646c9e4c379d1d5ab2e 2248 
pyparted_3.10-1.dsc
 bb8de71ba54983af84cf036002511cfb6d8fab4fc5e9a9be7236ecba6d24989f 189069 
pyparted_3.10.orig.tar.gz
 4421ee0a5a5f39785d061b1a95634c864f57d95268fcc815060159e2498efd99 3912 
pyparted_3.10-1.debian.tar.xz
 0a24ece593dc0e69cf49803021979bc942e6ab44f47eda597581c4595d2b3505 158836 
python-parted_3.10-1_amd64.deb
 558c31d0dc83331a1a374f0c604433f1c45e250cb871f86cf0d28c8263294c00 157362 
python3-parted_3.10-1_amd64.deb
 5d5cc8ab55a4459e21a0fc2f9f55c541204ad9d933f057767bf02ff3fe15a080 143208 
python-parted-dbg_3.10-1_amd64.deb
 4e3fb3c4d16e0b3728091a77fbd58f5b59c118616ddb0bb9b123f6ba40b7a137 156122 
python3-parted-dbg_3.10-1_amd64.deb
Files: 
 6f142aa7508c62a6d0f7f6190c587a3a 2248 python optional pyparted_3.10-1.dsc
 d494440b34bc9ea0afea45c4a4ac3274 189069 python optional 
pyparted_3.10.orig.tar.gz
 5a93859562ef7fb0bf162cdbdb5fea4b 3912 python optional 
pyparted_3.10-1.debian.tar.xz
 2e4e9f0796fe32c27f8c0905833b1eb7 158836 python optional 
python-parted_3.10-1_amd64.deb
 8c7c39ce7d3605c4db016500a0cf49e7 157362 python optional 
python3-parted_3.10-1_amd64.deb
 07ec580ff1a046cd068a919cec496880 143208 debug extra 
python-parted-dbg_3.10-1_amd64.deb
 4d2a345bce06a5381fa97e48a1e4bf6b 156122 debug extra 
python3-parted-dbg_3.10-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJTUnFHAAoJEEkIatPr4vMfd+gP/0fzkvh7yfuxooWtmdqs9eGf
vidGkwqNm0+RhKC2WrJrsyGlWQfUgsLnYoKGev/GcRT6NfK6UV+qw+1rQs7uzgG5
tm/cqGPfGqX0gFyIhmfQ8O8+n3wYh94592vipOiF6YS9cV0Z1frD8V4cnCGHbaqB
knUwBDn813trr2fUZnC+PE1OHN9ZqSka4kAmUnMwEUAU3MUV/bqnJcFFNZnP23rH
vxKkn9IWEGiABMuoaD8vezH/lKa6z1L+uRibsLxQdccL2AjaHtaTrwoVxnI2mvfR
3oSWW5THBQSOC7iOgRouWE9SVmV+0mnpOSAtpqJgOlx00604Jii8RbWpFh6D4t7+
+YknTkP+9Tetqa7BGuZ/OUbDsUeZsYB0WLzJYUKswoqOzqDDWFW9Lg/XnSzqbbM1
/zxDhmd9Ob/rNLpZMDzywy/ZXXABFq/Mn3nJIR/1F+IqWXO5saT2MXG5yERh/Zfs
sFc2S9hQqtdYRJx2fxaG6TmgYvKBLp0t2wCZa5keL2zxRJthasuVIE5T088y4jmN
1vELEephf//tRmc1xIqUHwhKN2Nh4wtooaZzmJbHUg2cOkzCr3N9Y0gaJ1Hp+yd2
MTHAAq30eJQm3+YMY7ItlCEGu1JEmNPD+NJndco6PqWqxs1d+Ql7momDOaAlqmcQ
ehuQT5eclRautv/6z/uD
=pep2
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to