Re: How do I change the tmppath

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

 



--- Panu Matilainen <pmatilai@xxxxxxxxxxxxxxx> wrote:

> On Fri, 11 Apr 2008, Linux wrote:
> 
> > How do I change the tmp path that RPM uses? I am
> trying to build the RPM
> > in my local user account but bases it off of root
> ('/'). With my own
> > macros, I change the tmp path, during the build
> process, I can echo the
> > tmp path and see that I changed it but it always
> adds '/' in the front.
> > For example, if I set the path to ./my_temp, it
> becomes /./my_temp.
> > 
> > One reason for the change, is I did a build and it
> put it in /tmp (not
> > ./tmp). Well it failed and left the structure in
> /tmp/package-1.0.3. A
> > co-worker started a build on the same computer but
> was prevented from
> > doing the build since I owned /tmp/package-1.0.3.
> He had to wait until I
> > deleted the directory tree in /tmp
> 
> Yup, the commonly used "BuildRoot:
> %{_tmppath}/%{name}-%{version}" 
> and variants dont work very well in multiuser
> environment.
> Just put something like this into ~/.rpmmacros to
> make your builds 
> private:
> 
> %_tmppath %(echo $HOME)/tmp/
In my specfiles I use
Buildroot: %{_builddir}/%{_buildsubdir}-install-root
So it can be built in the multiuser environment
without  
changing anyones ~/.rpmmacros

Valery.


> 
>  	- Panu -
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux