Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread fatman
On 5/10/2010, "Eric Noulard" wrote: >Ok now I see the precise scheme. >I'll try to reproduce that. > >Unfortunately I will be off network for a while so could you be kind >enough to open a bug tracker entry >http://public.kitware.com/Bug/my_view_page.php >and add a reference to this thread of di

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread Eric Noulard
2010/10/5 : > > On Mon, 4 Oct 2010 20:45:21 +0200 > Eric Noulard wrote: > >> May be you can check in the generated spec file whether >> if this field has an appropriate value. > > Apologies/length. [SNIP] Ok now I see the precise scheme. I'll try to reproduce that. Unfortunately I will be off

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread fatman
On Mon, 4 Oct 2010 20:45:21 +0200 Eric Noulard wrote: > May be you can check in the generated spec file whether > if this field has an appropriate value. Apologies/length. build...@nikko:/var/lib/buildbot/Reu2/slave/bin/nikko/build/cmake$ grep -iFlr "BUILDROOT" . ./_CPack_Packages/Linux/RPM/SP

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 : > > On Mon, 4 Oct 2010 18:19:20 +0200 > Eric Noulard wrote: > >> If you are speaking about CPackRPM generator then NO it shouldn't use >> HOME dir. If it is the case then may be you have a some custom .rpmrc >> somewhere? > > Oh. I guessed it was the rpmbuild default. Maybe I do have

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread fatman
On Mon, 4 Oct 2010 18:19:20 +0200 Eric Noulard wrote: > If you are speaking about CPackRPM generator then NO it shouldn't use > HOME dir. If it is the case then may be you have a some custom .rpmrc > somewhere? Oh. I guessed it was the rpmbuild default. Maybe I do have a .rpmrc somewhere. (Can'

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 : > > Hi list, > > I notice rpmbuild tries to use the HOME directory as a base for its > files. This won't work if HOME is set wrongly (eg. by "sudo -u other > bash"), as in my case. If you are speaking about CPackRPM generator then NO it shouldn't use HOME dir. If it is the case then m

[CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread fatman
Hi list, I notice rpmbuild tries to use the HOME directory as a base for its files. This won't work if HOME is set wrongly (eg. by "sudo -u other bash"), as in my case. Is it possible to stop it doing this and make it use the CPack build hierarchy? Thanks, Adam J Richardson