[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: getting current values of rpm variables ?
- From: Paul Shearer <paulsh sequent com>
- To: rpm-list redhat com
- Subject: Re: getting current values of rpm variables ?
- Date: Tue, 13 Mar 2001 22:35:53 -0800
"richard offer" writes:
>
> * $ from shiva@well.com at "13-Mar: 7:39pm" | sed "1,$s/^/* /"
> *
> *
> * On Tue, 13 Mar 2001 19:30:04 -0800, richard offer wrote:
> *
> * >* Give `rpm --eval '%{_topdir}'` a try.
> * >Thanks for that info, but it doesn't seem to do anything.
> * >[ valkyrie 2.2.14 ] rpm --eval '%{_topdir}'
> * ><blank line>
> * >My suspicion is that it is related to the fact that I'm running chroot'ed
> as
> it
> * >seem to work on another machine with rpm v4.
> *
> * That would do it. The value has to come from some macro file, either
> * that of the user running rpm or the default ones in /usr/lib/rpm.
> * You'll need to make those available to the chroot'ed environment.
>
> No, I'm not doing rpm --root $ROOT , I'm doing chroot $ROOT ; rpm
>
> ie, $ROOT has everything,
> inside the root /usr/lib/rpm/... etc $HOME/.rpmmacros all exist.
Then it should still work if $ROOT/usr/lib/rpm/macros contains _topdir.
Note for others:
rpm --root $ROOT evaluates rpmrc and macros before chroot.
i.e.
"rpm --root $ROOT" evaluates /usr/lib/rpm/macros
"chroot $ROOT; rpm" evaluates $ROOT/usr/lib/rpm/macros
If these are blank:
chroot $ROOT; rpm --eval '%{_topdir}'
chroot $ROOT; rpm --showrc | grep _topdir
Then I would assume that _topdir is not defined in $ROOT/usr/lib/rpm/macros.
Paul Shearer
paulsh@us.ibm.com
IBM NUMA-Q
(formerly Sequent Computer Systems)
Mail Stop: DES2-745
15450 S.W. Koll Parkway
Beaverton, Oregon 97006-6063
U.S.A.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]