since when our build macros to not reset env to be clean?

here's snip of the build log:

Executing(%build): /bin/sh -e /home/users/glen/tmp/rpm-tmp.91559
TMP=/home/users/glen/tmp
SSH_AUTH_SOCK=/tmp/ssh-dpsZYbTNrr/agent.251855
HOME=/home/users/glen
PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin
TMPDIR=/home/users/glen/tmp
+ umask 022
+ cd /home/users/glen/rpm/packages/BUILD.i686-linux
+ cd atlas-upload-cli-0.2.0
+ env
+ grep GIT
GIT_DIR=/home/users/glen/rpm/packages/atlas-upload-cli/.git
GIT_WORK_TREE=/home/users/glen/rpm/packages/atlas-upload-cli
+ pwd
+ export 'GOPATH=/home/users/glen/rpm/packages/BUILD.i686-linux/atlas-upload-cli-0.2.0/vendor'



-------- Forwarded Message --------
Subject: [packages/atlas-upload-cli: 3/3] fix issue when invoked via builder script
Date:   Tue, 21 Apr 2015 06:43:42 +0200
From:   glen <g...@pld-linux.org>
Reply-To: pld-devel-en@lists.pld-linux.org, pld-devel...@lists.pld-linux.org
To:     pld-cvs-com...@lists.pld-linux.org



commit ba85c2197a01f3ec94a9bd3cf3b87f893553720a
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Tue Apr 21 07:43:12 2015 +0300

    fix issue when invoked via builder script

 atlas-upload-cli.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/atlas-upload-cli.spec b/atlas-upload-cli.spec
index 6859e4b..304c675 100644
--- a/atlas-upload-cli.spec
+++ b/atlas-upload-cli.spec
@@ -38,6 +38,9 @@ deploys.
 #package github.com/mitchellh/ioprogress: cannot download, $GOPATH not set. 
For more details see: go help gopath
%build
+# these interfere with go download -- the git vars point to .spec repo
+unset GIT_DIR GIT_WORK_TREE
+
 export GOPATH=$(pwd)/vendor
 # make -j1 because https://github.com/hashicorp/atlas-upload-cli/pull/10
 %{__make} -j1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/atlas-upload-cli.git/commitdiff/ba85c2197a01f3ec94a9bd3cf3b87f893553720a

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-com...@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit



_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to