Your message dated Wed, 10 Feb 2016 16:20:43 +0000
with message-id <e1atxvt-0003ma...@franck.debian.org>
and subject line Bug#809446: fixed in hfst 3.9.0~r4595-3
has caused the Debian Bug report #809446,
regarding python3-libhfst: Package will become non-working once python3.5 is 
default python3
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 ow...@bugs.debian.org
immediately.)


-- 
809446: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809446
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-libhfst
Version: 3.8.2~r4145-1
Severity: important
Tags: patch

Currently the package only builds support for the default python3 version.  As a
result, once the default version switches from python3 3.4 to 3.5, it will
be unusable until it can be rebuilt.  The best practice (as described in the
Debian Python policy) is to build for all supported versions.  Then whichever
is default, the package still works.  Additionally, this package doesn't use
the standard Python helper, dh-python, to generate proper dependencies.  Due
to that, it would not be detected as needing rebuild for the transition.

Please see the attached patch (formatted as an NMU because that's what
devscripts handed me, but I have no near term plans to NMU).  This makes the
package more generally conform to Python policy.

Scott K
diff -Nru hfst-3.8.2~r4145/debian/changelog hfst-3.8.2~r4145/debian/changelog
--- hfst-3.8.2~r4145/debian/changelog	2015-07-22 22:46:56.000000000 +0000
+++ hfst-3.8.2~r4145/debian/changelog	2015-12-30 19:03:40.000000000 +0000
@@ -1,3 +1,11 @@
+hfst (3.8.2~r4145-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Update package to generate appropriate dependencies for python bindings
+    as well as building for all supported python3 versions
+
+ -- Scott Kitterman <sc...@kitterman.com>  Wed, 30 Dec 2015 19:02:29 +0000
+
 hfst (3.8.2~r4145-1) unstable; urgency=low
 
   [ Tino Didriksen ]
diff -Nru hfst-3.8.2~r4145/debian/control hfst-3.8.2~r4145/debian/control
--- hfst-3.8.2~r4145/debian/control	2015-07-22 22:47:24.000000000 +0000
+++ hfst-3.8.2~r4145/debian/control	2015-12-30 19:05:08.000000000 +0000
@@ -15,10 +15,9 @@
                libicu-dev,
                libreadline-dev,
                libtool,
-               python,
+               dh-python,
                python-dev,
-               python3,
-               python3-dev,
+               python3-all-dev,
                swig,
                zlib1g-dev
 Standards-Version: 3.9.6
@@ -29,7 +28,7 @@
 Package: hfst
 Architecture: any
 Depends: libhfst40 (= ${binary:Version}),
-         python,
+         ${python:Depends},
          ${misc:Depends},
          ${shlibs:Depends}
 Description: Helsinki Finite-State Transducer Technology
@@ -68,7 +67,7 @@
 Architecture: any
 Section: python
 Depends: libhfst40 (= ${binary:Version}),
-         python,
+         ${python:Depends},
          ${misc:Depends},
          ${shlibs:Depends}
 Description: Helsinki Finite-State Transducer Technology (Python2 module)
@@ -82,7 +81,7 @@
 Architecture: any
 Section: python
 Depends: libhfst40 (= ${binary:Version}),
-         python3,
+         ${python3:Depends},
          ${misc:Depends},
          ${shlibs:Depends}
 Description: Helsinki Finite-State Transducer Technology (Python3 module)
diff -Nru hfst-3.8.2~r4145/debian/rules hfst-3.8.2~r4145/debian/rules
--- hfst-3.8.2~r4145/debian/rules	2015-07-05 12:29:54.000000000 +0000
+++ hfst-3.8.2~r4145/debian/rules	2015-12-30 19:01:47.000000000 +0000
@@ -7,12 +7,13 @@
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 endif
+build3vers := $(shell py3versions -sv)
 
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
 %:
-	dh $@ --parallel --with autoreconf
+	dh $@ --parallel --with autoreconf,python2,python3
 
 override_dh_auto_configure:
 	dh_auto_configure -- --disable-static --without-foma --with-unicode-handler=ICU --enable-all-tools
@@ -20,13 +21,19 @@
 override_dh_auto_build:
 	./scripts/generate-cc-files.sh
 	$(MAKE) -j$(NUMJOBS) || $(MAKE) -j$(NUMJOBS) || $(MAKE)
-	cd $(CURDIR)/swig && python setup.py build_ext && python3 setup.py build_ext && strip --strip-unneeded build/*/*.so
+	cd $(CURDIR)/swig && python setup.py build_ext
+	set -e && for i in $(build3vers); do \
+	  cd $(CURDIR)/swig &&  python$$i setup.py build_ext && strip --strip-unneeded build/*/*.so; \
+	done
 
 override_dh_auto_test:
 	# Skip, as it breaks in various unpredictable ways
 
 override_dh_auto_install:
 	dh_auto_install
-	cd $(CURDIR)/swig && python setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp && python3 setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp
+	cd $(CURDIR)/swig && python setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp
+	set -e && for i in $(build3vers); do \
+	  cd $(CURDIR)/swig && python$$i setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp; \
+	done
 	find $(CURDIR) -type f -name '*.pyc' -exec rm -f '{}' \;
 	find $(CURDIR) -type f -name '*.pyo' -exec rm -f '{}' \;

--- End Message ---
--- Begin Message ---
Source: hfst
Source-Version: 3.9.0~r4595-3

We believe that the bug you reported is fixed in the latest version of
hfst, 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 809...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kartik Mistry <kar...@debian.org> (supplier of updated hfst 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 10 Feb 2016 10:59:55 +0530
Source: hfst
Binary: hfst libhfst42 libhfst42-dev python-libhfst python3-libhfst
Architecture: source amd64
Version: 3.9.0~r4595-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Kartik Mistry <kar...@debian.org>
Description:
 hfst       - Helsinki Finite-State Transducer Technology
 libhfst42  - Helsinki Finite-State Transducer Technology Libraries
 libhfst42-dev - Helsinki Finite-State Transducer Technology Development files
 python-libhfst - Helsinki Finite-State Transducer Technology (Python2 module)
 python3-libhfst - Helsinki Finite-State Transducer Technology (Python3 module)
Closes: 809446
Changes:
 hfst (3.9.0~r4595-3) unstable; urgency=medium
 .
   * Update package to generate appropriate dependencies for python bindings
     as well as building for all supported python3 versions. Patch was not added
     in last update by mistake (Closes: #809446)
Checksums-Sha1:
 82e91a7cc2f5ff464baf7f9940d282b5aeddf320 2428 hfst_3.9.0~r4595-3.dsc
 d7925d978654d8db0a582c37408d8350d637afcf 3948 hfst_3.9.0~r4595-3.debian.tar.xz
 15be5dadb1d48df2df960498a4b43c125a98cdaf 37110972 
hfst-dbgsym_3.9.0~r4595-3_amd64.deb
 d73b04176b1aa38648f8398e436717fedc82ceaf 1175702 hfst_3.9.0~r4595-3_amd64.deb
 d7441e00fd4352d5d9dda0f4aec42ce490934ab7 19382518 
libhfst42-dbgsym_3.9.0~r4595-3_amd64.deb
 11ea3a74569e1b0b5fd5bb52f4f79bfcd4d5f3d2 244464 
libhfst42-dev_3.9.0~r4595-3_amd64.deb
 238622845f7ac2c88836b93bb45345629468db27 1617880 
libhfst42_3.9.0~r4595-3_amd64.deb
 49ca43dd3b6e06d476003c8a25e141c8fbaef098 152464 
python-libhfst_3.9.0~r4595-3_amd64.deb
 82167c68fd3cd4472c4f89ae5c107528de4ac344 478952 
python3-libhfst_3.9.0~r4595-3_amd64.deb
Checksums-Sha256:
 34dea87a8056f4aa7b8052a2d774eeece36ac07d8954e2242d2b4f66a3be5414 2428 
hfst_3.9.0~r4595-3.dsc
 73b2d54fb3006bfc253d802d046c219c60a56f71d42922ffe940cb35a2d39cc6 3948 
hfst_3.9.0~r4595-3.debian.tar.xz
 e44111576b8987c071bc00232b749bc63de89f1e47bc7ab68b0714433e30c411 37110972 
hfst-dbgsym_3.9.0~r4595-3_amd64.deb
 185d73d6b7a96bef293bf3057f26f21a4f0458a0f1f24411e193a0f310dd6ddb 1175702 
hfst_3.9.0~r4595-3_amd64.deb
 d20e01e5f62773233bf2714a00b8d851bd91b889de98eb59880dcf52736d0580 19382518 
libhfst42-dbgsym_3.9.0~r4595-3_amd64.deb
 5fdc726fd652f01b6d1643dcf405583d3671e1b93585e9e7843a233ee9a70efb 244464 
libhfst42-dev_3.9.0~r4595-3_amd64.deb
 f215946710528179e7149236260ea3612a4e5ad91e67d7725221dcce9fdbbd5f 1617880 
libhfst42_3.9.0~r4595-3_amd64.deb
 07f92c228942a7ec0082f15eea8392a82585db5845e6b0597cae5e1f11001e5f 152464 
python-libhfst_3.9.0~r4595-3_amd64.deb
 f2730e1690db2d3e5326b521a49ab452c0c59069fafc6a3bd606ef1de9438bae 478952 
python3-libhfst_3.9.0~r4595-3_amd64.deb
Files:
 2d94adb2dce51bf3222e4730f6bafa6e 2428 science optional hfst_3.9.0~r4595-3.dsc
 b410b15ae51b25c337f8f5706eedcf07 3948 science optional 
hfst_3.9.0~r4595-3.debian.tar.xz
 49d32bc6e51726a7080421bda4fc5c0a 37110972 debug extra 
hfst-dbgsym_3.9.0~r4595-3_amd64.deb
 d6a32551a6590ab6a89d9e54f42dd135 1175702 science optional 
hfst_3.9.0~r4595-3_amd64.deb
 81e93493432a1e9e73bf0ab15619c019 19382518 debug extra 
libhfst42-dbgsym_3.9.0~r4595-3_amd64.deb
 047445c924c134f2f09576b4eddad297 244464 libdevel optional 
libhfst42-dev_3.9.0~r4595-3_amd64.deb
 7ea9fa2679eeeb1bceeabe572a588233 1617880 science optional 
libhfst42_3.9.0~r4595-3_amd64.deb
 3ced20b49e9148ebbd9ba7dd90563716 152464 python optional 
python-libhfst_3.9.0~r4595-3_amd64.deb
 d64354d3ccccb5f2989a46d58d9ea9e2 478952 python optional 
python3-libhfst_3.9.0~r4595-3_amd64.deb

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

iQIcBAEBCAAGBQJWu1b+AAoJEALB0/J4OqTeezwQAIR4ad8CmdBX3n00CzOqis3M
ip/itowSy09bIgYb4lS2VhbIyc4jxyPhQPCLrEwcM5sqkpTCo/RDadpRsQ5SIWVF
6P7KDpRzMFxkkLWiOysHj2lwaa4XEvrq6PujCCjhnckBJ2uGtVj9jAcs3kozpIHf
xPL+V4OuqSXrZzseVPceidkUbSxnJdFvmrTwKZAryRrsWrUl+TIJGjWpOXZdGSa6
6p2PN9oK9XzfL6yoVq5FmqQG2+0bHqlbAQTn+0svcABrJtChuM/ueMEdysLfjI6r
0ITVajXfZcMIlt/U4C6XvVfC8veNm2d8TLbnUnINQZTd1evX24pTs/+lm3vCb2XM
mJMlh9wNtBGaTnIIzVmkNjAX76gWkSbw8w+9nzXSKNljctox/whJkYlyv3bWDI3O
fUbJ7n/4tvmWhqafblpTX0stLvo0eYo0D64YMP9iyz8OSsu2GG47nJW/P0eXytjy
SD9LpCq3jK3VlvryuubqihUyvy9fVrlK3KvutmPKV9kfIHUsTwBLE4eYTf1aSv0o
cV0wJLFMnzyHIBCn/MGnLQSS6B8cY+iDGSv6280yDkLPZV8SpxT5bvycFM9CejJ7
Hws1ZjFMU1AG/fTJewYZ8H8jeHfn9Q19z5YLLsh5sbx1ZhEbCAxJyt4VdXl0PNfd
4Cw40FjM+YeqVlXfJSzQ
=ijEA
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to