[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How do I change the tmppath
- From: Valery Reznic <valery_reznic yahoo com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: How do I change the tmppath
- Date: Wed, 16 Apr 2008 22:34:18 -0700 (PDT)
--- Panu Matilainen <pmatilai laiskiainen org> 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 redhat com
> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]