File: 0001-Use-local-object.inv-instead-of-the-remote-one.patch

package info (click to toggle)
python-guacamole 0.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 420 kB
  • ctags: 296
  • sloc: python: 1,037; makefile: 151; sh: 8
file content (34 lines) | stat: -rw-r--r-- 1,362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From ffbf30ba795e43b4e6f91c77b69d8c43b81fe830 Mon Sep 17 00:00:00 2001
From: "Taihsiang Ho (tai271828)" <tai271828@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