[packages/git-lfs] do not get affected from env from rpmbuild runs

Elan Ruusamäe glen at pld-linux.org
Thu Apr 7 10:42:02 CEST 2016


On 07.04.2016 11:23, glen wrote:
> commit 61923bef92b21e296791467a6257cc41c4d1cfc7
> Author: Elan Ruusamäe<glen at delfi.ee>
> Date:   Thu Apr 7 11:22:49 2016 +0300
>
>      do not get affected from env from rpmbuild runs
>
>   git-lfs.spec | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> ---
> diff --git a/git-lfs.spec b/git-lfs.spec
> index 394af7a..0a4493b 100644
> --- a/git-lfs.spec
> +++ b/git-lfs.spec
> @@ -33,6 +33,7 @@ mkdir -p src/github.com/github
>   ln -s $(pwd) src/github.com/github/%{name}
>   
>   %build
> +unset GOROOT

where did that support go that all env is cleared except PATH and some 
whitelisted env vars?

the earlier GIT_DIR and GIT_WORK_TREE hacks would not also be needed if 
that rpmbuild cleanenv thing actually worked.


-- 
glen



More information about the pld-devel-en mailing list