Installing an OSG Build Box

Installing OSG and EPEL repos

Like with any OSG software, the OSG and EPEL repos (preferably the latest) must be installed. See Documentation.Release3.YumRepositories for instructions.

Installing the osg-build tool

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

Checking out the package source from subversion

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

Setting up Mock

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 /etc/group, adding your username (as returned by id) to the mock line:


Performance Suggestions

It is suggested that mock builds are done in ram, if you have enough -- 4GB or more. Mock build are all conducted under /var/lib/mock/. 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 /var/lib/mock:

[root@client ~]$ mount -t tmpfs -o size=3072m tmpfs /var/lib/mock

Enabling OSG-Development Repo by default (optional)

Edit /etc/yum.repos.d/osg-development.repo or /etc/yum.repos.d/osg-el6-development.repo, changing enabled to 1.
name=OSG Software for Enterprise Linux 6 - Development - $basearch 
Topic revision: r9 - 29 Jul 2015 - 16:49:03 - MatyasSelmeci
Hello, TWikiGuest


TWiki | Report Bugs | Privacy Policy

This site is powered by the TWiki collaboration platformCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors..