[openib-general] [PATCH] Build RPM packages cleanly

Bryan O'Sullivan bos at pathscale.com
Sat Oct 29 16:55:58 PDT 2005


This patch makes it next to trivial to build RPM packages of OpenIB on
reasonably recent RPM-based distributions (e.g. Fedora, SuSE).

The patch has a few major components:

      * Cleanups of RPM spec files that either never built or have
        bit-rotted since they were written.
      * Cleanups of autotools scripts so that they work properly with
        the spec files in all cases.
      * A spec file for OpenSM, which was the only major component of
        OpenIB not packages.
      * A spec file for the kernel modules, to make it possible to run
        the latest, greatest OpenIB kernel components on unpatched
        kernels.  This has been tested with pristine Fedora kernels.
      * A shell script that automates the entire RPM build process, so
        you don't need any special smarts to do a build.

I think that the last three items above are pretty significant steps in
making OpenIB more approachable to users who aren't necessarily
bleeding-edge hackers.

I have tested the RPMs that this stuff builds on Fedora Core 3 and 4,
and SuSE 9.3.  Both i386 and x86_64 RPMs build happily, and on x86_64
machines, the two arches coexist without any conflicts or problems.

If people are interested, I can make yum repositories of the relevant
built RPMs available for recent Fedora and SuSE releases.

	<b

 24 files changed, 568 insertions(+), 67 deletions(-)
 src/buildrpms.sh                                         |   82 +++++++++
 src/linux-kernel/Makefile                                |   85 +++++++++
 src/linux-kernel/README                                  |  128 +++++++++++++++ 
 src/linux-kernel/openib-kernel.spec                      |   59 ++++++
 src/userspace/libibat/libibat.spec.in                    |   36 +++-
 src/userspace/libibcm/libibcm.spec.in                    |   35 +++-
 src/userspace/libibverbs/libibverbs.spec.in              |    5
 src/userspace/libipathverbs/libipathverbs.spec.in        |    6
 src/userspace/libsdp/libsdp.spec.in                      |    6
 src/userspace/management/libibcommon/Makefile.am         |    3
 src/userspace/management/libibcommon/libibcommon.spec.in |   22 +-
 src/userspace/management/libibmad/Makefile.am            |    6
 src/userspace/management/libibmad/libibmad.spec.in       |   23 +-
 src/userspace/management/libibumad/Makefile.am           |    3
 src/userspace/management/libibumad/libibumad.spec.in     |   23 +-
 src/userspace/management/osm/Makefile.am                 |    7
 src/userspace/management/osm/complib/Makefile.am         |   10 -
 src/userspace/management/osm/complib/configure.in        |    4
 src/userspace/management/osm/complib/libosmcomp.spec.in  |    9 -
 src/userspace/management/osm/configure.in                |    6
 src/userspace/management/osm/libvendor/Makefile.am       |   10 -
 src/userspace/management/osm/libvendor/configure.in      |    2
 src/userspace/management/osm/opensm.spec.in              |   59 ++++++
 src/userspace/management/osm/opensm/Makefile.am          |    6

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openib-rpm.patch
Type: text/x-patch
Size: 32335 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051029/391e56ae/attachment.bin>


More information about the general mailing list