Bug 618706 - rpm doesn't include rpm-4.4.2.3-no-buildid-warning.patch
Summary: rpm doesn't include rpm-4.4.2.3-no-buildid-warning.patch
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm (Show other bugs)
(Show other bugs)
Version: 6.1
Hardware: All Linux
low
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-27 14:59 UTC by Martin Poole
Modified: 2018-10-27 13:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-09-28 08:39:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Martin Poole 2010-07-27 14:59:55 UTC
Description of problem:

According to find-debuginfo.sh of rpm on RHEL6 beta2, there isn't the patch
rpm-4.4.2.3-no-buildid-warning.patch that resolves IT#269860.

A part of the shell script to look into is below.
 ...
 id=$(/usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug \
                             -i -l "$SOURCEFILE" "$f") || exit
 if [ -z "$id" ]; then
 ...

If debugedit fails, find-debuginfo.sh exits.  debugedit fails whenever
"//" is included in the path specified for itself.

A part of the patch to look into is below.
...
 id=$(/usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug \
-                            -i -l "$SOURCEFILE" "$f") || exit
-  if [ -z "$id" ]; then
+                            -i -l "$SOURCEFILE" "$f")
+  if $strict && [ -z "$id" ]; then
...

With the above patch, even if "//" is included in the path specified
for debugedit, find-debuginfo.sh won't exit.


Version-Release number of selected component (if applicable):

 Red Hat Enterprise Linux Version Number: Red Hat Enterprise Linux 6.0
 Release Number: Beta2 snapshot7
 Architecture: x86_64
 Kernel Version: kernel-2.6.32-44.el6.x86_64
 Related Package Version: rpm-4.8.0-10.el6.x86_64

Comment 1 Panu Matilainen 2010-09-28 08:39:13 UTC
The patch to suppress buildid warnings was only added to RHEL 5 to avoid significant behavior change within a released distro version, and was intentionally omitted from RHEL 6.

Best option is to fix the package, but if that's not feasible for whatever reason the strict build-id behavior can be turned off through a macro, either in spec of the affected package(s):

%global _missing_build_ids_terminate_build 0

or in the macro configuration of the build environment (eg ~/.rpmmacros):

%_missing_build_ids_terminate_build 0


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