Your message dated Fri, 09 Dec 2016 21:21:16 +0000 with message-id <[email protected]> and subject line Bug#593821: fixed in python-pcs 0.5+debian-2 has caused the Debian Bug report #593821, regarding python-pcs: IP6Connector.mcast() broken 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.) -- 593821: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593821 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: python-pcs Version: 0.5+debian-1.1 Severity: normal Tags: patch IP6Connector.mcast() can/will fail in a variety of ways: 1) On 64-bit architectures (dl is not available there): Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/pcs/__init__.py", line 958, in mcast import dl ImportError: No module named dl 2) If libc*-dev is not installed: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/pcs/__init__.py", line 959, in mcast _libc = dl.open('libc.so') dl.error: libc.so: cannot open shared object file: No such file or directory 3) Because dl.open doesn't work for a reason or another: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/pcs/__init__.py", line 959, in mcast _libc = dl.open('libc.so') dl.error: /usr/lib/libc.so: invalid ELF header 4) Otherwise: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/pcs/__init__.py", line 962, in mcast self.sock.setsockopt(IPPROTO_IPV6, IPV6_MULTICAST_LOOP, 1) AttributeError: 'UDP6Connector' object has no attribute 'sock' The attached patch fixes this bug. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- Jakub Wilkdiff -u python-pcs-0.5+debian/debian/control python-pcs-0.5+debian/debian/control --- python-pcs-0.5+debian/debian/control +++ python-pcs-0.5+debian/debian/control @@ -4,7 +4,7 @@ Maintainer: Robert S. Edmonds <[email protected]> Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), dpatch, texlive-latex-recommended Standards-Version: 3.7.2 -XS-Python-Version: all +XS-Python-Version: >= 2.5 Package: python-pcs Architecture: all diff -u python-pcs-0.5+debian/debian/changelog python-pcs-0.5+debian/debian/changelog --- python-pcs-0.5+debian.orig/pcs/__init__.py +++ python-pcs-0.5+debian/pcs/__init__.py @@ -69,6 +69,9 @@ import itertools +import ctypes, ctypes.util +_libc = ctypes.CDLL(ctypes.util.find_library('c')) + def attribreprlist(obj, attrs): return map(lambda x, y = obj: '%s: %s' % (x, repr(getattr(y, x))), itertools.ifilter(lambda x, y = obj: hasattr(y, x), attrs)) @@ -954,9 +957,7 @@ def mcast(self, iface): """set IP6 connector into multicast mode""" - import dl - _libc = dl.open('libc.so') - ifn = _libc.call('if_nametoindex', iface) + ifn = _libc.if_nametoindex(iface) self.sock.setsockopt(IPPROTO_IPV6, IPV6_MULTICAST_LOOP, 1) self.sock.setsockopt(IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 5) self.sock.setsockopt(IPPROTO_IPV6, IPV6_MULTICAST_IF, ifn)
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: python-pcs Source-Version: 0.5+debian-2 We believe that the bug you reported is fixed in the latest version of python-pcs, 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. Andreas Beckmann <[email protected]> (supplier of updated python-pcs 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: Fri, 09 Dec 2016 20:42:52 +0100 Source: python-pcs Binary: python-pcs Architecture: source Version: 0.5+debian-2 Distribution: unstable Urgency: medium Maintainer: Debian QA Group <[email protected]> Changed-By: Andreas Beckmann <[email protected]> Description: python-pcs - Packet Construction Set for Python Closes: 593821 670744 831946 Changes: python-pcs (0.5+debian-2) unstable; urgency=medium . * QA upload. * Set Maintainer to Debian QA Group. (See: #839611) . [ Jari Aalto ] * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt". * Update to Standards-Version to 3.9.3 and debhelper to 9. * Add build-arch and build-indep targets; use dh_prep in rules file. * Fix copyright-refers-to-symlink-license (Lintian). * Fix copyright-with-old-dh-make-debian-copyright (Lintian). * Fix dh_pycentral-is-obsolete (Lintian). * Fix build-depends-on-python-dev-with-no-arch-any (Lintian). * Fix binary-arch-rules-but-pkg-is-arch-indep (Lintian). * Fix copyright-with-old-dh-make-debian-copyright (Lintian). * Fix wrong-section-according-to-package-name python (Lintian). * Fix no-homepage-field (Lintian). * Fix debian-watch-file-should-mangle-version (Lintian). * (Closes: #670744, #831946) . [ Jakub Wilk ] * Fix IP6Connector.mcast(). (Closes: #593821) Checksums-Sha1: 4b856dd7fdcf72ddc67b79249d27044c504a14a2 1829 python-pcs_0.5+debian-2.dsc 9460e5eb10d841da80ee68e3b809e33574ee58e8 5104 python-pcs_0.5+debian-2.debian.tar.xz Checksums-Sha256: c3b463fba2a91c5b07b28326c0254d0822c9175ca65a0eca52911a240b299826 1829 python-pcs_0.5+debian-2.dsc 91fd2c570d9312b9000a680993d620ba0c0b67a75ee44bf251676fc5e9e50380 5104 python-pcs_0.5+debian-2.debian.tar.xz Files: 925cb632efa2c41321a319f7c5a6bf7c 1829 python extra python-pcs_0.5+debian-2.dsc 08fbd09d5e3a2750217bbcaba164321a 5104 python extra python-pcs_0.5+debian-2.debian.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJYSwnpAAoJEF+zP5NZ6e0IcHUP/36f5G+3JgFGg3+rCvNuML11 hV0iff/4y4LpzAnLQb5lPWiIOP+9LOYkB09GrvnisWHMm5b4E/+6cmo4ISd1koU7 LB4iRay5u86Emfpy4UL3Q8MiO+i4m65WltQI+n6qsgNnA00NLoFGu6OAZMEYgrhy eH17bw8hFOVVUS/7lH4SCC2yNQL5E8s6bgueLpMufG8XVACSzKi0Qgnm1OFx9nJ6 DB9ybkWvDfm8qt2eouSwCHuwc13GKeFnjMN+yeAvyKOnaRtB0ApgM1vuQyRfRG2N AJoDG+/KB65ToDQDtyLF5B2ROvW9Iu1UIMEQV5F/3tYpRPizqF5dsEgzTQ+87ldV urspS1Aywx6AxdT6LkXnHuyYsCmW0RQnX1Dpa6r1jnPmtZAKaapwzF1NrPotVY/l 2fB8Wa7DxIVGIpiVjqJ29OtfJy9WILAI739N2VWJFgSb2jeIQfw+Bc7OP9II4Q/h j9s+972w2MRLiSjTcKAPsyAU0eL4Gb5eQZY0/15QFPyTJfYjQkxpFjAw4ZZoBvHi qEDiz69XOWG5nteHMxQrieMbLmppHaPeYxEKx5G2CTSs6RqKojV7STVs9lhLYTZZ x6wz41X0xLrIBy333Rm2sAPmz4bkdZ8vXS8AY5zv9hv0BXbhn9oBWYTLa9731i17 8vdUOe7ko2hMnDoWL8SC =j+U0 -----END PGP SIGNATURE-----
--- End Message ---

