On 06/30/2013 10:50 AM, Shuxiong Ye wrote: > sorry for many spelling mistakes. > > > On Sun, Jun 30, 2013 at 4:47 PM, Shuxiong Ye <yeshuxi...@gmail.com > <mailto:yeshuxi...@gmail.com>> wrote: > > I can give you two ways solving this problems. > > 1. > pbuilder --login --save-after-login > > then you login the env and can set JAVA_HOME. After after exiting > the evn(type exit), you changes will save in the pbuilder evn. > > > env your > env > > > 2. > Some script can be executed in different period when using pbuilder. > > see > this > https://wiki.ubuntu.com/PbuilderHowto#Running_a_Shell_When_Build_Fails_.28Intro_to_Hook_Scripts.29 > This will not change the evn. > > env Thanks, but this prevents other ones to build the package with pbuilder (will fail the same way).
I wonder why JAVA_HOME "disappear" in pbuilder context and why, if I set it with the readlink command (which returns a correct values when tested directly), it returns an empty string in dpkg-buildpackage context. Olivier > -- > Sincerely > > Shuxiong Ye > > School of Electronics Engineering and Computer Science, Peking University -- gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438