RPM Community Forums

Mailing List Message of <rpm-users>

Re: Question about "rpmbuild --root"

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 13 Feb 2011 - 21:07:45 CET
Message-id: <22B13D46-51F7-482B-B1A9-CCD56FD1B931@mac.com>

On Feb 13, 2011, at 2:23 PM, Eric MSP Veith wrote:

> Hash: SHA1
> Hello list,
> I try to build in a chroot with an old RPM-5.1.9 using 
> 	sudo rpmbuild --root=/var/tmp/eglibc-2.13.buildroot -ba eglibc.spec
> Basically, what I want to know, is: Am I doing something completely wrong 
> besides using an old and dusty RPM version? ;-)

Depends. --root (as wired in rpmbuild) isn't doing what you think
its doing. What rpmbuild --root is actually attempting is considerably
harder to explain, dates back to 2000 or so ...

	chroot /wherever rpmbuild ...
if you want/need single invocation functionality. But you
likely just want to enter the chroot, and use rpmbuild inside.
	chroot /wherever
	rpmbuild ...


73 de Jeff

  • application/pkcs7-signature attachment: smime.p7s
Received on Sun Feb 13 22:08:11 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.