Bug#805027: [Letsencrypt-devel] Bug#805027: [python-acme] not building on jessie

2015-12-27 Thread Harlan Lieberman-Berg
Hello everyone,

We are definitely planning on trying to get letsencrypt into
jessie-backports.  At the moment, we're waiting on the upload of a
couple of its dependencies into backports; I've been talking to the
maintainers of those packages to try and move that process along.

It will, unfortunately, FTBFS with some of the dependencies that are
currently in jessie and jessie-backports.

Sincerely,
-- 
Harlan Lieberman-Berg
~hlieberman



Bug#805027: [python-acme] not building on jessie

2015-12-27 Thread Sébastien NOBILI
Hi,

I'm also trying to compile for Jessie with no success.

All the tests seem to pass correctly (see attached log) but pybuild (Sid version
I backported to Jessie) ends with either Segmentation fault or Floating point
exception.

I'm not used to Python environment… Maybe I'm missing something…

Sébastien
I: pybuild base:184: python2.7 setup.py test 
running test
running egg_info
writing requirements to acme.egg-info/requires.txt
writing acme.egg-info/PKG-INFO
writing top-level names to acme.egg-info/top_level.txt
writing dependency_links to acme.egg-info/dependency_links.txt
writing entry points to acme.egg-info/entry_points.txt
reading manifest file 'acme.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'acme.egg-info/SOURCES.txt'
running build_ext
test_cert_no_sans (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_cert_two_sans (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_csr_no_sans (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_csr_one_san (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_csr_six_sans (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_csr_two_sans (acme.crypto_util_test.PyOpenSSLCertOrReqSANTest) ... ok
test_probe_not_recognized_name (acme.crypto_util_test.SSLSocketAndProbeSNITest) 
... ok
test_probe_ok (acme.crypto_util_test.SSLSocketAndProbeSNITest) ... ok
test_it (acme.util_test.MapKeysTest) ... ok
test_json_de_serializable (acme.messages_test.AuthorizationResourceTest) ... ok
test_from_json (acme.messages_test.AuthorizationTest) ... ok
test_from_json_hashable (acme.messages_test.AuthorizationTest) ... ok
test_resolved_combinations (acme.messages_test.AuthorizationTest) ... ok
test_json_de_serializable (acme.messages_test.CertificateRequestTest) ... ok
test_json_de_serializable (acme.messages_test.CertificateResourceTest) ... ok
test_from_json (acme.messages_test.ChallengeBodyTest) ... ok
test_from_json_hashable (acme.messages_test.ChallengeBodyTest) ... ok
test_proxy (acme.messages_test.ChallengeBodyTest) ... ok
test_to_partial_json (acme.messages_test.ChallengeBodyTest) ... ok
test_uri (acme.messages_test.ChallengeResourceTest) ... ok
test_equality (acme.messages_test.ConstantTest) ... ok
test_from_json (acme.messages_test.ConstantTest) ... ok
test_from_json_hashable (acme.messages_test.ConstantTest) ... ok
test_repr (acme.messages_test.ConstantTest) ... ok
test_to_partial_json (acme.messages_test.ConstantTest) ... ok
test_from_json_deserialization_error_on_wrong_key 
(acme.messages_test.DirectoryTest) ... ok
test_getattr (acme.messages_test.DirectoryTest) ... ok
test_getattr_fails_with_attribute_error (acme.messages_test.DirectoryTest) ... 
ok
test_getitem (acme.messages_test.DirectoryTest) ... ok
test_getitem_fails_with_key_error (acme.messages_test.DirectoryTest) ... ok
test_init_wrong_key_value_error (acme.messages_test.DirectoryTest) ... ok
test_to_partial_json (acme.messages_test.DirectoryTest) ... ok
test_description (acme.messages_test.ErrorTest) ... ok
test_from_json_hashable (acme.messages_test.ErrorTest) ... ok
test_str (acme.messages_test.ErrorTest) ... ok
test_to_partial_json (acme.messages_test.RegistrationResourceTest) ... ok
test_emails (acme.messages_test.RegistrationTest) ... ok
test_from_data (acme.messages_test.RegistrationTest) ... ok
test_from_json (acme.messages_test.RegistrationTest) ... ok
test_from_json_hashable (acme.messages_test.RegistrationTest) ... ok
test_phones (acme.messages_test.RegistrationTest) ... ok
test_to_partial_json (acme.messages_test.RegistrationTest) ... ok
test_from_json_hashable (acme.messages_test.RevocationTest) ... ok
test_empty (acme.messages_test.UpdateRegistrationTest) ... ok
test_check_response_jobj (acme.client_test.ClientNetworkTest) ... ok
test_check_response_not_ok_jobj_error (acme.client_test.ClientNetworkTest) ... 
ok
test_check_response_not_ok_jobj_no_error (acme.client_test.ClientNetworkTest) 
... ok
test_check_response_not_ok_no_jobj (acme.client_test.ClientNetworkTest) ... ok
test_check_response_ok_no_jobj_ct_required (acme.client_test.ClientNetworkTest) 
... ok
test_check_response_ok_no_jobj_no_ct (acme.client_test.ClientNetworkTest) ... ok
test_init (acme.client_test.ClientNetworkTest) ... ok
test_requests_error_passthrough (acme.client_test.ClientNetworkTest) ... ok
test_send_request (acme.client_test.ClientNetworkTest) ... ok
test_send_request_user_agent (acme.client_test.ClientNetworkTest) ... ok
test_send_request_verify_ssl (acme.client_test.ClientNetworkTest) ... ok
test_wrap_in_jws (acme.client_test.ClientNetworkTest) ... ok
test_get (acme.client_test.ClientNetworkWithMockedResponseTest) ... ok
test_head (acme.client_test.ClientNetworkWithMockedResponseTest) ... ok
test_head_get_post_error_passthrough 
(acme.client_test.ClientNetworkWithMockedResponseTest) ... ok
test_post (acme.client_test.ClientNetworkWithMockedResponseTest) ... ok
test_post_wrong_initial_nonce 
(acme.client_test.ClientNetworkWithMockedRe

Bug#805027: [python-acme] not building on jessie

2015-11-13 Thread Jan Wagner
Hi there,

I spotted another problem building after fixing the sphinx issue.

It looks like the local webserver isn't running (at least in my jessie
chroot).

[...]
test_simple_verify_connection_error
(acme.challenges_test.HTTP01ResponseTest) ...
ERROR:acme.challenges:Unable to reach
http://local/.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA:
ok
test_simple_verify_good_validation
(acme.challenges_test.HTTP01ResponseTest) ... ok
test_simple_verify_port (acme.challenges_test.HTTP01ResponseTest) ...
WARNING:acme.challenges:Using non-standard port for SimpleHTTP
verification: 8080
ok
[...]
test_404 (acme.standalone_test.HTTP01ServerTest) ... ERROR
test_http01_found (acme.standalone_test.HTTP01ServerTest) ...
WARNING:acme.challenges:Using non-standard port for SimpleHTTP
verification: 34328
ERROR:acme.challenges:Unable to reach
http://localhost:34328/.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA: 
HTTPConnectionPool(host='127.0.0.1',
port=9): Max retries exceeded with url:
http://localhost:34328/.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA
(Caused by ProxyError('Cannot connect to proxy.', error(111, 'Connection
refused')))
FAIL
test_http01_not_found (acme.standalone_test.HTTP01ServerTest) ...
WARNING:acme.challenges:Using non-standard port for SimpleHTTP
verification: 38382
ERROR:acme.challenges:Unable to reach
http://localhost:38382/.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA: 
HTTPConnectionPool(host='127.0.0.1',
port=9): Max retries exceeded with url:
http://localhost:38382/.well-known/acme-challenge/eHh4eHh4eHh4eHh4eHh4eA
(Caused by ProxyError('Cannot connect to proxy.', error(111, 'Connection
refused')))
ok
test_index (acme.standalone_test.HTTP01ServerTest) ... ERROR
[...]

A full buildlog is attached.

Thanks and with kind regards, Jan.
-- 
Never write mail to , you have been warned!
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d-- s+: a C+++ UL P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h r+++ y
--END GEEK CODE BLOCK--
 dpkg-buildpackage -rfakeroot -D -us -uc -sa
dpkg-buildpackage: source package python-acme
dpkg-buildpackage: source version 0.0.0.dev20151104-1~bpo8+1
dpkg-buildpackage: source distribution jessie-backports
dpkg-buildpackage: source changed by Jan Wagner 
 dpkg-source --before-build python-acme-0.0.0.dev20151104
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
dh clean --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean 
running clean
removing 
'/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build' (and 
everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:170: python3.4 setup.py clean 
running clean
removing 
'/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_3.4/build' (and 
everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
 dpkg-source -b python-acme-0.0.0.dev20151104
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building python-acme using existing 
./python-acme_0.0.0.dev20151104.orig.tar.gz
dpkg-source: warning: ignoring deletion of directory acme.egg-info
dpkg-source: warning: ignoring deletion of file acme.egg-info/requires.txt, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file 
acme.egg-info/dependency_links.txt, use --include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/PKG-INFO, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/top_level.txt, 
use --include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/SOURCES.txt, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/entry_points.txt, 
use --include-removal to override
dpkg-source: info: building python-acme in 
python-acme_0.0.0.dev20151104-1~bpo8+1.debian.tar.xz
dpkg-source: info: building python-acme in 
python-acme_0.0.0.dev20151104-1~bpo8+1.dsc
 debian/rules build
dh build --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py config 
running config
I: pybuild base:170: python3.4 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/waja/python-acme-0.0.0.dev20151104'
dh_auto_build
I: pybuild base:170: /usr/bin/python setup.py build 
running build
running build_py
creating 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/util_test.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying

Bug#805027: [python-acme] not building on jessie

2015-11-13 Thread Jan Wagner
Hi there,

Am 13.11.15 um 15:44 schrieb Jan Wagner:
> PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/
> build/html
> Making output directory...
> Running Sphinx v1.2.3
> 
> Exception occurred:
>   File "conf.py", line 130, in 

this (specific) problem should be fixed with the attached patch. I guess
that works also for python-letsencrypt and
python-letsencrypt-apache. When I should provide you with patches for
those, please just tell me.

Thanks, Jan.
-- 
Never write mail to , you have been warned!
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d-- s+: a C+++ UL P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h r+++ y
--END GEEK CODE BLOCK--
From c0c019596c6fe26a931e0383abc87ee8db080901 Mon Sep 17 00:00:00 2001
From: Jan Wagner 
Date: Fri, 13 Nov 2015 18:06:45 +0100
Subject: [PATCH] Add build-dependency python-sphinx-rtd-theme (>= 0.1.9-1~)

This is needed to build even on jessie (and maybe earlier).
---
 debian/control | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/control b/debian/control
index edaa883..2f30729 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@ Build-Depends: debhelper (>= 9~),
python-setuptools,
python-six,
python-sphinx (>= 1.3.1-1~),
+   python-sphinx-rtd-theme (>= 0.1.9-1~),
python-sphinxcontrib.programoutput,
python-tz,
python-werkzeug,


signature.asc
Description: OpenPGP digital signature


Bug#805027: [python-acme] not building on jessie

2015-11-13 Thread Jan Wagner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi there,

Am 13.11.15 um 15:44 schrieb Jan Wagner:
> Exception occurred: File "conf.py", line 130, in  
> ImportError: No module named sphinx_rtd_theme

just FYI. Exactly the same problem exists in python-letsencrypt and
python-letsencrypt-apache.

Cheers, Jan.
- -- 
Never write mail to , you have been warned!
- -BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d-- s+: a C+++ UL P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V-
PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h r+++ y
- --END GEEK CODE BLOCK--
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)

iQIcBAEBCgAGBQJWRgaiAAoJEAxwVXtaBlE+f84P/376DFPAuTM76Z3VR9AoxlZy
6QLgZ5c492cP1u0cOgMXmJxJz8LRJq4Vslr9lfy6R2/rAcoiwzxbQcUHE+/64FO2
kKMKSaFvkKTkPcNY7rj5iYCCtnlIay7SVf/efQ94+TgOw3rqMfcc3BigZ9rrv6nK
MzFycyh8IFQ1mwiNpNyNQcUL/5CqlbU1QuzE0wHp4MzQYKkHWuha/M9qQnIauAms
m0qKvOrvSorgG90b5lWrm2QDTP5XAKwLX/nKfE78Ms6T/KQODJoJmMccFEFmwa2o
KKU0tBXT8j7LYJ9SrSJacaQkL5Cz8SBzNpDgwVldrSOF6u/er4sYjsfwaPX+DZaj
gHnpVumLuLUsUethHy9kWJX00Y+pZkgNJ1qCWP1YLeFTd0ttlvFA9XlkqQWsyWzv
0NQgdf3IWqdYl++xVA6ABgoL+/2rzGGd8aUlQildnYlgH9fa8lNY7X+LDxyGL7Sc
xpyyqz79BHAWhxkltiUIQ5/9+8axckSTU1QVNYyG1zOS3AyVaRRzIHjRq43dOCnT
4g3BCp6oJRhxlNaiggVSF7dfp+cg8CXsRUnap5vgubpwL8Ip0B1Zl7deSmS+9+cB
T8qOtCle5R+zd5fogdYimw9kNdOrjW5wyP/hZrD8pXdBUu53shI1Gpfs6xgKz/h8
N39Ss8SvvAbHNqOiwX6d
=Orfj
-END PGP SIGNATURE-



Bug#805027: [python-acme] not building on jessie

2015-11-13 Thread Jan Wagner
Package: python-acme
Version: 0.0.0.dev20151104-1
Severity: normal

I'm trying to build python-acme on jessie. For this mission I backported
all needed build-dependencies from testing to jessie and installed them.

Anyway ... the build fails with:

PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/
build/html
Making output directory...
Running Sphinx v1.2.3

Exception occurred:
  File "conf.py", line 130, in 
ImportError: No module named sphinx_rtd_theme
The full traceback has been saved in /tmp/sphinx-err-gTZ0ba.log, if you
want to report the issue to the developers.
Please also report this if it was a user error, so that a better error
message can be provided next time.
A bug report can be filed in the tracker at
. Thanks!
debian/rules:9: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/home/waja/python-acme-0.0.0.dev20151104'
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I tried to find a quick solution, but as I'm not very familiar with
sphinx, I didn't found one.
I guess there is anywhere a higher dependency needed to any package.

Many thanks and with kind regards, Jan.
-- 
Never write mail to , you have been warned!
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT d-- s+: a C+++ UL P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h r+++ y
--END GEEK CODE BLOCK--
 dpkg-buildpackage -rfakeroot -D -us -uc -sa
dpkg-buildpackage: source package python-acme
dpkg-buildpackage: source version 0.0.0.dev20151104-1~bpo8+1
dpkg-buildpackage: source distribution jessie-backports
dpkg-buildpackage: source changed by Jan Wagner 
 dpkg-source --before-build python-acme-0.0.0.dev20151104
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
dh clean --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py clean 
running clean
removing 
'/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build' (and 
everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:170: python3.4 setup.py clean 
running clean
removing 
'/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_3.4/build' (and 
everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
 dpkg-source -b python-acme-0.0.0.dev20151104
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building python-acme using existing 
./python-acme_0.0.0.dev20151104.orig.tar.gz
dpkg-source: warning: ignoring deletion of directory acme.egg-info
dpkg-source: warning: ignoring deletion of file acme.egg-info/requires.txt, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file 
acme.egg-info/dependency_links.txt, use --include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/PKG-INFO, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/top_level.txt, 
use --include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/SOURCES.txt, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of file acme.egg-info/entry_points.txt, 
use --include-removal to override
dpkg-source: info: building python-acme in 
python-acme_0.0.0.dev20151104-1~bpo8+1.debian.tar.xz
dpkg-source: info: building python-acme in 
python-acme_0.0.0.dev20151104-1~bpo8+1.dsc
 debian/rules build
dh build --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:170: python2.7 setup.py config 
running config
I: pybuild base:170: python3.4 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/waja/python-acme-0.0.0.dev20151104'
dh_auto_build
I: pybuild base:170: /usr/bin/python setup.py build 
running build
running build_py
creating 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/util_test.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/other_test.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/fields.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/fields_test.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/messages.py -> 
/home/waja/python-acme-0.0.0.dev20151104/.pybuild/pythonX.Y_2.7/build/acme
copying acme/__init__.py -> 
/home/waja/p