On 07/08/2013 02:44 PM, Cowe, Malcolm J wrote:
Hi Arman,
The SRPM packages cannot be handled by YUM since they have a different
internal format and are not intended for system installation. Instead,
the “rpm” command can extract these packages and will “install” the
content into an RPM build structure (by default
$HOME/rpmbuild/SOURCES,SPEC}). One can then use the rpmbuild command to
create binary packages (rpmbuild creates
$HOME/rpmbuild/{BUILD,BUILDROOT,RPMS,SRPMS and runs through compilation
based on the instructions in the spec file). For example:
rpm -ivh
http://downloads.whamcloud.com/public/lustre/lustre-2.4.0/el6/server/SRPM...
rpmbuild -ba --with firmware $HOME/rpmbuild/SPECS/kernel.spec
The binary RPM packages for the Lustre-patched kernels are here:
http://downloads.whamcloud.com/public/lustre/lustre-2.4.0/el6/server/RPMS...
That initial rpm step is unnecessary. You can simply do:
rpmbuild --rebuild --with <whatever> lustre-<version>.src.rpm
The --rebuild handles the install step for you in the background.
Chris