RPM

Comment 1 for bug 651443

Revision history for this message
In , Miroslav (miroslav-redhat-bugs) wrote :

Description of problem:
If I define build dir for rpmbuild, I do not get source code in -debuginfo package. It seems that problematic is
 /usr/lib/rpm/debugedit
in
 /usr/lib/rpm/find-debuginfo.sh
which create zero sized $SOURCEFILE

Version-Release number of selected component (if applicable):
rpm-build-4.4.2.3-18.el5

How reproducible:
deterministic

Steps to Reproduce:
1. mkdir /tmp/bb
2. rpmbuild --define "_builddir /tmp/bb" -ba bash.spec

Actual results:
rpm -qpl /home/msuchy/rpmbuild/RPMS/i386/bash-debuginfo-3.2-24.i386.rpm |grep src
<no lines>

Expected results:
/usr/src/debug lines on output

Additional info:
I first find this problem, when my build dir was something like
/tmp/foo/bar//BUILD
I thought that /usr/lib/rpm/debugedit has problem with double slash, but when I tried to create minimalistic reproducer I find that it has problem with any build dir other then default.