[Python-modules-commits] [python-guacamole] 01/01: Use local objects.inv for building sphinx documentation (Closes: #830603)

Zygmunt Krynicki zyga-guest at moszumanska.debian.org
Mon Aug 22 15:16:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

zyga-guest pushed a commit to branch master
in repository python-guacamole.

commit 3083fada78a7528c1d01cea5a881c2011a955dfc
Author: Zygmunt Krynicki <zygmunt.krynicki at canonical.com>
Date:   Mon Aug 22 17:16:36 2016 +0200

    Use local objects.inv for building sphinx documentation (Closes: #830603)
---
 debian/changelog                                   |  3 ++
 ...ocal-object.inv-instead-of-the-remote-one.patch | 34 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 784d098..551a360 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ python-guacamole (0.9.2-2) UNRELEASED; urgency=medium
   [ Ondřej Nový ]
   * Fixed VCS URL (https)
 
+  [ Zygmunt Krynicki ]
+  * Use local objects.inv for building sphinx documentation (Closes: #830603)
+
  -- Zygmunt Krynicki <zygmunt.krynicki at canonical.com>  Sun, 06 Sep 2015 12:29:27 +0200
 
 python-guacamole (0.9.2-1) unstable; urgency=medium
diff --git a/debian/patches/0001-Use-local-object.inv-instead-of-the-remote-one.patch b/debian/patches/0001-Use-local-object.inv-instead-of-the-remote-one.patch
new file mode 100644
index 0000000..8319f71
--- /dev/null
+++ b/debian/patches/0001-Use-local-object.inv-instead-of-the-remote-one.patch
@@ -0,0 +1,34 @@
+From ffbf30ba795e43b4e6f91c77b69d8c43b81fe830 Mon Sep 17 00:00:00 2001
+From: "Taihsiang Ho (tai271828)" <tai271828 at gmail.com>
+Date: Mon, 18 Jul 2016 18:03:15 +0800
+Subject: [PATCH] Use local object.inv instead of the remote one.
+
+The upstream uses the intersphinx mapping that fetches the objects.inv
+for python remotely. According to Debian Policy 4.9 packages may not
+attempt network access during a build. Use a local object.inv instead of
+the remote one. Please refer to the issue #830603 of Debian Bug tracking
+system.
+---
+ docs/conf.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 34d86b5..29d0daa 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -44,8 +44,10 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode',
+               'sphinx.ext.doctest', 'sphinx.ext.intersphinx',
+               'sphinx.ext.todo']
+ 
+-# Use the python documentation website by default
+-py_intersphinx = 'https://docs.python.org/{}.{}'.format(
++# Do not use the python documentation website by default
++# See bugs.debian.org bug 830603:
++#   python-guacamole: accesses the internet during build
++py_intersphinx = '/usr/share/doc/python{}.{}/html/'.format(
+     *sys.version_info[0:2])
+ if sys.platform.startswith('linux'):
+     # On Linux, a pre-installed documentation will be used, if available
+-- 
+2.7.4
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-guacamole.git



More information about the Python-modules-commits mailing list