RPM

rpmbuild do not populate debuginfo with source if _builddir is defined

Bug #651443 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Fix Released
Medium

Bug Description

tracker

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.

Revision history for this message
In , RHEL (rhel-redhat-bugs) wrote :

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 "?".

Revision history for this message
In , RHEL (rhel-redhat-bugs) wrote :

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.

Jeff Johnson (n3npq)
tags: added: debuginfo rpmbuild
Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

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.

Changed in fedora:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.