Open main menu

CDOT Wiki β

Changes

Winter 2011 SBR600 Weekly Schedule

1 byte added, 02:08, 9 January 2011
mock: Testing BuildRequires
It's often difficult to get the BuildRequires in a spec file exactly right, because it's easy to overlook packages that are coincidentally installed on the machine. <code>mock</code> is a tool that uses the chroot system call to create a "cleanroom" environment for the build, so that any missing BuildRequires cause the build to fail.
{{Admon/notecaution|The '''mock''' Group|To use mock, you will need to must first add yourself to the '''mock''' group: <code>usermod -G mock ''yourUserName''</code>}}
To build with mock: