On 06/30/2013 10:53 AM, Sylvestre Ledru wrote: > On 30/06/2013 10:25, olivier.sal...@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 -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51cff3da.5080...@codeless.fr