Bug 524844 - rpmbuild do not populate debuginfo with source if _builddir is defined
Summary: rpmbuild do not populate debuginfo with source if _builddir is defined
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rpm
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-22 13:20 UTC by Miroslav Suchý
Modified: 2013-03-08 10:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-08 10:47:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2009-09-22 13:20:42 UTC
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.

Comment 1 RHEL Program Management 2009-11-06 18:59:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 3 RHEL Program Management 2010-08-09 19:06:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 Panu Matilainen 2013-03-08 10:47:50 UTC
In newer versions it'll error out with something like:

Dest dir longer than base dir is not supported
error: Bad exit status from /var/tmp/rpm-tmp.Fq0n0Y (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Fq0n0Y (%install)

The same "dest dir longer..." error is produced by RHEL-5 there its allowed to fail to avoid breaking previously working builds due to the new build-id stuff introduced in the rebase to rpm 4.4.2.3.


Note You need to log in before you can comment on or make changes to this bug.