[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: JAVA_HOME in pbuilder



On 06/30/2013 10:53 AM, Sylvestre Ledru wrote:
> On 30/06/2013 10:25, olivier.sallou@codeless.fr wrote:
>> Hi,
>> I have an issue building a package with pbuilder.
>>
>> Package builds fine with dpkg-buildpackage, but when ran with pbuilder,
>> it seems JAVA_HOME is lost
> If you run pbuilder with sudo, you might have to add this line with visudo:
> Defaults        env_reset,env_keep="DIST ARCH JAVA_HOME"
I was indeed using sudo. Using as root fixed the issue. Thanks for the
hint when forced to be sudoer.
In fact, I was expecting javahelper to set the JAVA_HOME in the environment.

Thanks

Olivier
>
> Hope this helps,
> Sylvestre
>
>
>
> -- 
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438


Reply to: