[ofa-general] How do you repackage individual source rpm files?

Harold/Carlyn Iuzzolino iuzzolin at nmia.com
Sun Aug 17 14:46:57 PDT 2008


Dear Openfabrics Newsgroup,
 
I sent this last night right before all the spam emails started to arrive.
If you did what I did to get rid of them, hold down the D key,
my message probably got deleted too. So here it is again.
 
Carlyn

-----------------------

Dear Openfabrics,  general at lists.openfabrics.org


On August 5th, I reported a bug in the compat-dapl-1.2.8.tar.gz package,
in particular: 
dat/common/dat_strerror.c: In function 'dat_strerror':
dat/common/dat_strerror.c:621: error: 'NULL' undeclared (first use in this function)

It is now August 17th and the bug is STILL not fixed. And I'm stuck. 

Because of the way the OFED-1.4-20080816-0600.tgz file is created and the
way install.pl works, I can't just make a fix to the dat_strerror.c file
and try again.

I have to wait until one of you fixes it and makes a new OFED-1.4-20080816-0600.tgz file.

Is there any way for someone official to show us how to repackage the
OFED-1.4-20080816-0600.tgz file?

-----------------

Inside OFED-1.4-20080816-0600.tgz, is a directory SRPMS/ with
lots of *.src.rpm's.

Inside the offending compat-dapl-1.2.8-1.src.rpm is a tar file that 
contains the sources, in particular the dat/common/dat_strerror.c file.

[root at treebeard root]# rpm -qilp OFED-1.4-20080816-0600/SRPMS/compat-dapl-1.2.8-1.src.rpm
Name        : compat-dapl                  Relocations: (not relocatable)
Version     : 1.2.8                             Vendor: (none)
Release     : 1                             Build Date: Sat 16 Aug 2008 07:17:58 AM MDT
Install Date: (not installed)               Build Host: hosting.openfabrics.org
Group       : System Environment/Libraries   Source RPM: (none)
Size        : 675045                           License: Dual GPL/BSD/CPL
Signature   : (none)
URL         : http://openfabrics.org/
Summary     : A Library for userspace access to RDMA devices using OS Agnostic DAT API v1.2.
Description :
Along with the OpenFabrics kernel drivers, libdat and libdapl provides a userspace
RDMA API that supports DAT 1.2 specification and IB transport extensions for
atomic operations and rdma write with immediate data.
compat-dapl-1.2.8.tar.gz           <-----------------------
dapl.spec            <------------ the rpm spec file???



If I want to try to fix the subroutine dat/common/dat_strerror.c
I would have to 
1. Extract the compat-dapl-1.2.8-1.src.rpm somewhere
2. Change the file compat-dapl-1.2.8/dat/common/dat_strerror.c 
3. tar together the directory compat-dapl-1.2.8
4. Recreate the rpm file.


I know how to 'tar cvfz compat-dapl-1.2.8.tgz compat-dapl-1.2.8'

But I don't know how to create the rpm file.

I assume the dapl.spec file is the rpm spec file. How do you use it
in creating the rpm file?


That way I could at least make an attempt to fix compile errors and
continue compiling while I wait for the OFED team fix the error
in the correct way and give us the new OFED-1.4-20080816-0600.tgz.

Carlyn Iuzzolino





More information about the general mailing list