RPM Community Forums

Mailing List Message of <rpm-users>

Re: Question about "rpmbuild --root"

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 14 Feb 2011 - 09:43:56 CET
Message-Id: <201102140944.01190.eveith@wwweb-library.net>
Am Sonntag, 13. Februar 2011, 21:07:45 schrieb Jeff Johnson:
> 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 ...

Hm, well, the manpage says it'll chroot() before running any scriptlets. But 
skimming through the sources, I found no call to chroot(2). Hum. Manpage 

> 	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 ...

Which, however, will force me to install RPM with all deps inside the chroot, 

And without having tried it I guess that doing it programatically I could call 
chroot() before buildSpec() and it *should* work? If so, I'm back working on 
my small little build system... :-)

			Dreaming of Ruby + RPM5 + Zypper.

Received on Mon Feb 14 09:46:38 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.