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

Re: JAVA_HOME in pbuilder



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 <yeshuxiong@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.

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

Reply to: