[Python-modules-commits] [pycurl] 01/01: d/rules: Prevent network access during package tests. (Closes: #830281)

Barry Warsaw barry at moszumanska.debian.org
Thu Dec 15 15:47:25 UTC 2016


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

barry pushed a commit to branch master
in repository pycurl.

commit 63784bd1e6f5b1b6398f06ec9cc79c9e19088229
Author: Barry Warsaw <barry at python.org>
Date:   Thu Dec 15 10:47:20 2016 -0500

    d/rules: Prevent network access during package tests. (Closes: #830281)
---
 debian/changelog | 6 +++++-
 debian/rules     | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ab4c553..ebe5211 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,15 @@
 pycurl (7.43.0-2) UNRELEASED; urgency=medium
 
+  [ Ondřej Nový ]
   * Fixed VCS URL (https)
   * Bump debhelper compat version to 9
   * Standards-Version is 3.9.8 now (no changes needed)
   * Removed privacy breach in docs
 
- -- Ondřej Nový <novy at ondrej.org>  Tue, 29 Mar 2016 21:48:29 +0200
+  [ Barry Warsaw ]
+  * d/rules: Prevent network access during package tests. (Closes: #830281)
+
+ -- Barry Warsaw <barry at debian.org>  Tue, 29 Mar 2016 21:48:29 +0200
 
 pycurl (7.43.0-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 783ca14..42f2ac1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,15 @@ CURLVERS := $(strip $(shell /usr/bin/curl-config --version | awk '{print $$2}'))
 unexport LDFLAGS
 export FFLAGS="-fPIC"
 
+# Prevent network access for local builds by proxying HTTP/HTTPS to the
+# discard port.  If we were using pybuild, this would happen automatically,
+# but not having it potentially allows local builds to succeed where official
+# buildds (which by default block network access during package build) would
+# fail.
+export http_proxy = http://127.0.0.1:9/
+export https_proxy = https://127.0.0.1:9/
+
+
 %:
 	dh $@ --with python2,python3,sphinxdoc
 

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



More information about the Python-modules-commits mailing list