Installing an OSG Build Box
Like with any OSG software, the OSG and EPEL repos (preferably the latest) must be installed.
osg-build is used to build OSG packages.
It is a wrapper for tools like rpmbuild and mock.
It is available in the regular OSG repositories, and can be installed by running:
[root@client ~]$ yum install osg-build
However, it may also be run directly from a Subversion checkout, which may be useful if you want the latest features.
[user@client ~]$ svn co https://vdt.cs.wisc.edu/svn/software/osg-build/trunk osg-build
Current work is done in subversion. The command to check out the subversion is:
[user@client ~]$ svn co https://vdt.cs.wisc.edu/svn/native/redhat
Install mock (should be brought in by osg-build in newer builds):
[root@client ~]$ yum -y install mock
Add your user to the mock group. Edit
, adding your username
(as returned by
) to the mock line:
It is suggested that mock builds are done in ram, if you have enough -- 4GB or more.
Mock build are all conducted under
Mounting that directory in a tmpfs file system will cause builds to be much faster.
An example mount command for creating a 3GB 'tmpfs' filesystem in
[root@client ~]$ mount -t tmpfs -o size=3072m tmpfs /var/lib/mock
, changing enabled to 1
name=OSG Software for Enterprise Linux 6 - Development - $basearch