In regard to: Re: What is up with BuildRoot ?, Jeff Johnson said (at 9:03am...:
On Apr 21, 2006, at 8:56 AM, Tim Mooney wrote:
In regard to: Re: What is up with BuildRoot ?, Jos Vos said (at 10:18am
on...:
On Thu, Apr 20, 2006 at 03:59:55PM -0700, Dinh Tien Tuan Anh wrote:
I guess that's why RPM prepends the BuildRoot to the %file section
automatically. Totally make sense
That's the wrong way of looking at it, there is nothing prepended.
The %files section contains the target pathnames of the package and
the target root tree is stored under BuildRoot while building the
package.
Jos-
Can you explain more why it's wrong? While what Anh said may not be
*exactly* what's happening, it's conceptually useful. I'm very intrigued
to find out why you think what he said is "wrong".
Hehe, I almost replied with a similar comment as Jos.
All depends on your POV, kinda like daylight savings time.
For a build POV, $RPM_BUILD_ROOT is an added prefix to the install path.
Which is pretty much what "prepends" means, and how I interpreted what
Anh said. ;-)
For a install POV, $RPM_BUILD_ROOT is a deleted prefix from the staging path.
From an install point of view, or an %install point of view? I tend to
think of $RPM_BUILD_ROOT from a *build* point of view, possibly because of
that _BUILD_ in the middle of the env. I pretty much never think of it
as something that gets deleted at some later point. To me, it's something
that's there during the build process (which, in my little conceptual
world, includes %install).
The rest is just the way human brains work. ;-)
My brain clearly works differently from you, Jos, and David, then.
I do appreciate the education, though. I'm kind of sorry I attempted to
answer Anh's question, as I don't want to be spreading misinformation
that's going to make a core concept more murky for someone.
Maybe I should go back to asking RPM questions, rather than trying to
answer any. Now that I'm playing with 4.4.6, I have plenty to ask. ;-)
Tim
--
Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list