RPM Community Forums

Mailing List Message of <rpm-users>

Re: Question about "rpmbuild --root"

From: devzero2000 <pinto.elia@gmail.com>
Date: Mon 14 Feb 2011 - 10:04:55 CET
Message-ID: <AANLkTi=Nc-MOAx-p4AFb2qLuSqry9vtd=oEvTAYRhXE1@mail.gmail.com>
On Mon, Feb 14, 2011 at 9:43 AM, Eric MSP Veith
<eveith@wwweb-library.net> wrote:
> 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
> "bug"?
>>       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,
> right?
> 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... :-)

You can try mock perhaps http://fedoraproject.org/wiki/Projects/Mock

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