[Pkg-ocaml-maint-commits] [ocamlbuild] 02/03: Unset some OCAML* variables so tests don't fail in a local build

Ximin Luo infinity0 at debian.org
Sun Jul 30 12:12:07 UTC 2017


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

infinity0 pushed a commit to branch master
in repository ocamlbuild.

commit ed4e6f1fb8ffa520bb644f03c570fbc3500efcaa
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Jul 30 13:32:01 2017 +0200

    Unset some OCAML* variables so tests don't fail in a local build
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index 906ea4c..ccc5bcc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,11 @@ OCAMLBUILD_CFG = \
  OCAMLBUILD_LIBDIR=/usr/lib/ocaml \
  OCAMLBUILD_MANDIR=/usr/share/man
 
+# these variables from your shell can interfere with tests. it should not be
+# necessary for buildds, but do it here for convenience.
+unexport OCAMLPARAM
+unexport OCAML_TOPLEVEL_PATH
+
 override_dh_auto_configure:
 	$(MAKE) $(OCAMLBUILD_CFG) OCAML_NATIVE=$(OCAML_NATIVE) configure
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/ocamlbuild.git



More information about the Pkg-ocaml-maint-commits mailing list