summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/sgml
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-01-02 14:50:51 -0600
committerShea Levy <shea@shealevy.com>2015-01-03 07:53:09 -0500
commit60d0005a0c02b233653f8089456270a0ba13b59d (patch)
tree628dad41f3b8a8c6a520168d22e590e9e183530a /pkgs/tools/text/sgml
parenta00a8d0711512d8a38ddf4dc34c0458c9e140a01 (diff)
opensp: display ftp_proxy and http_proxy during build
Diffstat (limited to 'pkgs/tools/text/sgml')
-rw-r--r--pkgs/tools/text/sgml/opensp/setup-hook.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/text/sgml/opensp/setup-hook.sh b/pkgs/tools/text/sgml/opensp/setup-hook.sh
index 5775832789a1..52da517a8cbe 100644
--- a/pkgs/tools/text/sgml/opensp/setup-hook.sh
+++ b/pkgs/tools/text/sgml/opensp/setup-hook.sh
@@ -9,6 +9,14 @@ addSGMLCatalogs () {
if test -z "$sgmlHookDone"; then
sgmlHookDone=1
+ # Set http_proxy and ftp_proxy to a invalid host to prevent
+ # xmllint and xsltproc from trying to download DTDs from the
+ # network even when --nonet is not given. That would be impure.
+ # (Note that .invalid is a reserved domain guaranteed not to
+ # work.)
+ export http_proxy=http://nodtd.invalid/
+ export ftp_proxy=http://nodtd.invalid/
+
export SGML_CATALOG_FILES
envHooks+=(addSGMLCatalogs)
fi