Bug#751144: has_expired returns integer
I see this package is has python-modules-t...@lists.alioth.debian.org as an uploader. If no response, I will fix this bug and #751893 myself. I'll handle it, thanks for your interest Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#751144: has_expired returns integer
On 12 August 2014 16:11, Brian May br...@microcomaustralia.com.au wrote: pyopenssl has_expired() seems to return an Integer instead of a Boolean, which is confusing trying to understand why celery's tests fail. Sorry, I meant to say this problem appears to be fixed in the latest upstream version. -- Brian May br...@microcomaustralia.com.au
Bug#751144: has_expired returns integer
Hello, Any progress on getting the latest version of pyopenssl in Debian? I see this package is has python-modules-t...@lists.alioth.debian.org as an uploader. If no response, I will fix this bug and #751893 myself. pyopenssl has_expired() seems to return an Integer instead of a Boolean, which is confusing trying to understand why celery's tests fail. Thanks -- Brian May br...@microcomaustralia.com.au
Bug#751144: has_expired returns integer
Patch really attached this time. -- Brian May br...@microcomaustralia.com.au Index: debian/python-openssl-doc.docs === --- debian/python-openssl-doc.docs (revision 30137) +++ debian/python-openssl-doc.docs (working copy) @@ -1,3 +1 @@ -doc/pyOpenSSL.ps -doc/pyOpenSSL.txt doc/html Index: debian/copyright === --- debian/copyright (revision 30137) +++ debian/copyright (working copy) @@ -1,7 +1,7 @@ This package was debianized by Martin Sjögren sjog...@debian.org on Mon, 7 Jan 2002 16:25:58 +0100. -It was downloaded from http://launchpad.net/pyopenssl +It was downloaded from https://github.com/pyca/pyopenssl Upstream Author: Index: debian/control === --- debian/control (revision 30137) +++ debian/control (working copy) @@ -3,9 +3,16 @@ Priority: optional Maintainer: Sandro Tosi mo...@debian.org Uploaders: Debian Python Modules Team python-modules-t...@lists.alioth.debian.org -Build-Depends: debhelper (= 9), python-all-dev (= 2.5.4-1~), python-all-dbg (= 2.5.4-1~), python3-all-dev, python3-all-dbg, dh-python, libssl-dev (= 0.9.8), tex4ht, w3m, texlive-latex-base, texlive-latex-recommended, openssl, texlive-fonts-recommended + Brian May b...@debian.org +Build-Depends: debhelper (= 9), dh-python, + python-all-dev (= 2.5.4-1~), python-all-dbg (= 2.5.4-1~), python-setuptools, + python-six, python-cryptography, + python3-all-dev, python3-all-dbg, python3-setuptools, + python3-six, python3-cryptography, python3-sphinx, + libssl-dev (= 0.9.8), tex4ht, w3m, texlive-latex-base, + texlive-latex-recommended, openssl, texlive-fonts-recommended, Standards-Version: 3.9.5 -Homepage: http://launchpad.net/pyopenssl +Homepage: https://github.com/pyca/pyopenssl Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pyopenssl/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyopenssl/trunk/ XS-Python-Version: all Index: debian/changelog === --- debian/changelog (revision 30137) +++ debian/changelog (working copy) @@ -1,3 +1,13 @@ +pyopenssl (0.14-1) unstable; urgency=low + + * New upstream. Closes: #751144. + * Update homepage. Closes: #751893. + * Ensure test failures about the build process. + * Build only HTML documentation. + * Wrap build depends and add missing requirements. + + -- Brian May b...@debian.org Tue, 12 Aug 2014 16:14:46 +1000 + pyopenssl (0.13.1-2) unstable; urgency=medium * debian/control Index: debian/patches/series === --- debian/patches/series (revision 30137) +++ debian/patches/series (working copy) @@ -1,3 +0,0 @@ -10_fix_doc_buildsystem.patch -disable_test_set_default_verify_paths.patch -bts733366_make_symbol_optional.patch Index: debian/patches/10_fix_doc_buildsystem.patch === --- debian/patches/10_fix_doc_buildsystem.patch (revision 30137) +++ debian/patches/10_fix_doc_buildsystem.patch (working copy) @@ -1,157 +0,0 @@ -Author: Sandro Tosi mo...@debian.org -Description: Fix the doc build system, providing a working clean target and building -the latex doc using htlatex (in main) instead of latex2html pyopenssl-0.12.orig/doc/Makefile -+++ pyopenssl-0.12/doc/Makefile -@@ -10,11 +10,11 @@ - - html: pyOpenSSL.tex - $(MKHOWTO) --html --iconserver . $^ -- -rm -rf html -- mv pyOpenSSL html -+ -rm -rf html/ -+ mkdir html/ -+ mv *.html pyOpenSSL.css html/ - - clean: -- rm -rf html pyOpenSSL.dvi pyOpenSSL.ps pyOpenSSL.txt \ -- pyOpenSSL.l2h pyOpenSSL.how -+ rm -rf html/ *.html pyOpenSSL.[0-9a-su-z]* pyOpenSSL.txt pyOpenSSL.tmp - - .PHONY: default all html dvi ps text clean pyopenssl-0.12.orig/doc/tools/mkhowto -+++ pyopenssl-0.12/doc/tools/mkhowto -@@ -55,8 +55,8 @@ - BIBTEX_BINARY = bibtex - DVIPS_BINARY = dvips - LATEX_BINARY = latex --LATEX2HTML_BINARY = latex2html --LYNX_BINARY = lynx -+LATEX2HTML_BINARY = htlatex -+LYNX_BINARY = w3m - MAKEINDEX_BINARY = makeindex - PDFLATEX_BINARY = pdflatex - PERL_BINARY = perl -@@ -232,33 +232,10 @@ - self.build_ps() - if html in formats: - self.require_temps() --self.build_html(self.options.builddir or self.doc) --if self.options.icon_server == .: --pattern = os.path.join(MYDIR, html, icons, -- *. + self.options.image_type) --imgs = glob.glob(pattern) --if not imgs: --self.warning( --Could not locate support images of type %s. --% `self.options.image_type`) --for fn in imgs: --new_fn = os.path.join(self.doc, os.path.basename(fn)) --shutil.copyfile(fn,
Bug#751144: has_expired returns integer
On 12 August 2014 16:11, Brian May br...@microcomaustralia.com.au wrote: I see this package is has python-modules-t...@lists.alioth.debian.org as an uploader. If no response, I will fix this bug and #751893 myself. Ok, I have done the basics, however, the tests fail. Patch is attached. I had to discard the patches in debian/patches, as the files didn't exist, so assuming no longer required. Note, it is possible the tests are failing. Exactly the same tests fail 0.13.1-2 too, but -e isn't set, so the errors don't abort the build. Not sure this is a good thing. # run tests set -e; for py in 2.7 3.4; do \ for test in OpenSSL/test/test*; do \ echo running $test for python$py ...; \ PYTHONPATH=build/lib.linux-x86_64-$py python$py $test; \ PYTHONPATH=`ls -d build/lib_d.*-$py || ls -d build/lib.*-$py-pydebug` python$py-dbg $test; \ done; \ done running OpenSSL/test/test_crypto.py for python2.7 ... writing RSA key MAC verified OK MAC verified OK ..MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK ...unable to write 'random state' ...MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK MAC verified OK F.FEE == ERROR: test_extension_count (__main__.X509Tests) -- Traceback (most recent call last): File OpenSSL/test/test_crypto.py, line 1483, in test_extension_count c = self._extcert(pkey, []) File OpenSSL/test/test_crypto.py, line 1468, in _extcert FILETYPE_PEM, dump_certificate(FILETYPE_PEM, cert)) File /«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/crypto.py, line 1219, in load_certificate _raise_current_error() File /«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/_util.py, line 22, in exception_from_error_queue raise exceptionType(errors) Error: [('asn1 encoding routines', 'c2i_ASN1_OBJECT', 'invalid object encoding'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('PEM routines', 'PEM_ASN1_read_bio', 'ASN1 lib')] == ERROR: test_get_extension (__main__.X509Tests) -- Traceback (most recent call last): File OpenSSL/test/test_crypto.py, line 1506, in test_get_extension cert = self._extcert(pkey, [ca, key, subjectAltName]) File OpenSSL/test/test_crypto.py, line 1468, in _extcert FILETYPE_PEM, dump_certificate(FILETYPE_PEM, cert)) File /«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/crypto.py, line 1219, in load_certificate _raise_current_error() File /«PKGBUILDDIR»/build/lib.linux-x86_64-2.7/OpenSSL/_util.py, line 22, in exception_from_error_queue raise exceptionType(errors) Error: [('asn1 encoding routines', 'c2i_ASN1_OBJECT', 'invalid object encoding'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('asn1 encoding routines', 'ASN1_TEMPLATE_NOEXP_D2I', 'nested asn1 error'), ('PEM routines', 'PEM_ASN1_read_bio', 'ASN1 lib')] == FAIL: test_der (__main__.X509NameTests) -- Traceback (most recent call last): File OpenSSL/test/test_crypto.py, line 907, in test_der b('0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US' AssertionError: '0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x0c0\n\x06\x03U\x04\x03\x0c\x03foo' != '0\x1b1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x0c0\n\x06\x03U\x04\x03\x13\x03foo' == FAIL: test_digest (__main__.X509Tests) -- Traceback (most recent call last): File OpenSSL/test/test_crypto.py, line 1454, in test_digest b(A8:EB:07:F8:53:25:0A:F2:56:05:C5:A5:C4:C4:C7:15)) AssertionError: '6E:DB:AA:35:8C:39:8C:86:95:0E:D6:51:7E:42:FF:F4' != 'A8:EB:07:F8:53:25:0A:F2:56:05:C5:A5:C4:C4:C7:15' -- Ran 185 tests in 0.769s -- Brian May br...@microcomaustralia.com.au