2013-03-21 7 views
1

이전 버전의 우분투에서 패키지를 테스트하려면 pdebuild을 사용하고 있습니다. 그러나 환경 변수 GOROOT이 내 환경에서 빌드로 유출되고 있습니다.pdebuild를 통해 전달 된 환경 변수를 지우십시오.

debian/tmp/usr/lib/gocode/src/code.brandscreen.net/cortex/go/util/http.go:4:2: cannot find package "io" in any of: 
    /home/mjoiner/src/go/src/pkg/io (from $GOROOT) 
    /tmp/buildd/golang-brandscreen-0.0/debian/tmp/usr/lib/gocode/src/io (from $GOPATH) 
    /usr/lib/gocode/src/io 

어떻게 삭제합니까이 (그리고 다른 환경 변수) pdebuild를 호출 할 때?

답변

1

영향은 ~/.pbuilderrc

GOROOT="" 

또는

unset GOROOT 

을두고 있습니까?

0

일반적으로 pdebuild 실행 sudo를 통해 pbuilder는, 그렇게 할 수있는 가장 쉬운 방법은 당신을 위해 sudo 명확한 환경을 수 있도록하는 것입니다.

Defaults  env_reset,env_keep="DIST ARCH DEB_* BUILD* PATH" 

당신의 sudo 구성에서 여전히 pbuilder 작업을 제어하거나 debhelper에 의해 사용되는 환경 변수의 몇 전달할 수 있도록 다음 Debian pbuilder tricks page을 포함하여 몇 가지 다른 장소에서 일반적인 권장 사항은 사용하는 것입니다 .