[ewg] OFED Installation of debuginfo on CentOS 5.1

Vladimir Sokolovsky vlad at dev.mellanox.co.il
Mon Feb 7 00:23:30 PST 2011


On 02/06/2011 05:28 PM, Greg Kerr wrote:
> On Sunday, February 06, 2011 03:18:31 am Vladimir Sokolovsky wrote:
>> Do you have "redhat-rpm-config" RPM installed?
>>
>
> Yes.
>
> -- Greg Kerr

Hi Greg,
Try the following actions to get debuginfo RPMs. It was tested on CentOS5.2.

1.	Add macros file to /etc/rpm directory with the following content:
%_enable_debug_packages 1

#       Template for debug information sub-package.
# NOTE: This is a copy from rpm to get the ifnarch noarch fix, it can be removed later
%debug_package \
%ifnarch noarch\
%global __debug_package 1\
%package debuginfo \
Summary: Debug information for package %{name}\
Group: Development/Debug\
%description debuginfo\
This package provides debug information for package %{name}.\
Debug information is useful when developing applications that use this\
package or when debugging this package.\
%files debuginfo -f debugfiles.list\
%defattr(-,root,root)\
%endif\
%{nil}

%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
%%install\
LANG=C\
export LANG\
unset DISPLAY\
%{nil}

2. Extract debugedit file from rpm-build-4.4.2-46.fc7 file and copy it to /usr/lib/rpm/ directory.
    # rpm2cpio rpm-build-4.4.2-46.fc7 | cpio -idmv

Regards,
Vladimir

>
>> On 02/04/2011 04:09 PM, Greg Kerr wrote:
>>> Hi,
>>>
>>> Myself and some others in my lab are working to install the debuginfo
>>> packages for OFED on our Rocks cluster, running CentOS 5.1
>>>
>>> The official Mellanox packages didn't include the debuginfo packages,
>>> so we attempted to install the plain OFED packages.
>>>
>>> When installing on one of the nodes, it does the following. Can anyone
>>> help us understand why its failing? There are no obvious error
>>> messages.
>>>
>>> Detected Linux Distribution: Rocks
>>> Uninstalling the previous version of OFED
>>> Install kernel-ib RPM:
>>> Running rpm -iv
>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/kernel-
>>> ib-1.5.1-2.6.18_128.el5.x86_64.rpm
>>> Install kernel-ib-devel RPM:
>>> Running rpm -iv
>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/kernel-ib-
>>> devel-1.5.1-2.6.18_128.el5.x86_64.rpm
>>> Install ib-bonding RPM:
>>> Running rpm -iv
>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/ib-
>>> bonding-0.9.0-2.6.18_128.el5.x86_64.rpm
>>> Build ib-bonding RPM
>>> Running rpmbuild --rebuild  --define '_topdir /var/tmp//OFED_topdir'
>>> --define 'KVERSION 2.6.18-128.el5' --define '_release 2.6.18_128.el5'
>>> --define 'force_all_os 0' --define '_prefix /usr' --define
>>> '__arch_install_post %{nil}'
>>> /root/OFED-1.5.1/SRPMS/ib-bonding-0.9.0-42.src.rpm
>>> TMPRPMS /var/tmp//OFED_topdir/RPMS/x86_64
>>> Created /var/tmp//OFED_topdir/RPMS/x86_64/ib-
>>> bonding-0.9.0-2.6.18_128.el5.x86_64.rpm
>>> ib-bonding-debuginfo was not created
>>>
>>> In case it is of interest to anyone, the output of rpm --showrc is
>>> here: http://pastebin.ca/2040830
>>>
>>> Thanks,
>>>
>>> Greg Kerr
>>> Northeastern University
>>
>> Hi Greg,
>
>> Regards,
>> Vladimir
>




More information about the ewg mailing list