On Mon, Feb 14, 2011 at 9:43 AM, Eric MSP Veith
> 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... :-)
You can try mock perhaps http://fedoraproject.org/wiki/Projects/Mock
Received on Mon Feb 14 11:15:14 2011