Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 773017 - kernel-rt-{debug,trace}-debuginfo conflicts against kernel-debuginfo
kernel-rt-{debug,trace}-debuginfo conflicts against kernel-debuginfo
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel (Show other bugs)
2.1
Unspecified Unspecified
high Severity unspecified
: 2.3
: 2.3
Assigned To: Clark Williams
Jiri Kastner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-10 12:01 EST by David Sommerseth
Modified: 2016-05-22 19:34 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: devel packages contain two executable files: scripts/conmakehash and scripts/pnmtologo that are never changed between kernel variants and generate the same hash value for all variants. Consequence: debuginfo conflicts occur on these files Fix: remove these files from the -devel packages since they are not used in generation of kernel modules. Result: No debuginfo conflicts
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-06 14:24:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0566 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2013-03-06 19:24:01 EST

  None (edit)
Description David Sommerseth 2012-01-10 12:01:45 EST
If kernel-debuginfo is already installed and kernel-rt-{debug,trace}-debuginfo packages are attempted to be installed, it will fail with messages like this:

file /usr/lib/debug/.build-id/02/ab97e575bc185ed650edaca072f9df144fc200 from install of kernel-rt-trace-debuginfo-3.0.9-rt26.45.el6rt.x86_64 conflicts with file from package kernel-debug-debuginfo-2.6.32-220.2.1.el6.x86_64 file /usr/lib/debug/.build-id/02/ab97e575bc185ed650edaca072f9df144fc200.debug from install of kernel-rt-trace-debuginfo-3.0.9-rt26.45.el6rt.x86_64 conflicts with file from package kernel-debug-debuginfo-2.6.32-220.2.1.el6.x86_64 file /usr/lib/debug/.build-id/98/bf6d34ce45d92547d67425abd1d631960ea71d from install of kernel-rt-trace-debuginfo-3.0.9-rt26.45.el6rt.x86_64 conflicts with file from package kernel-debug-debuginfo-2.6.32-220.2.1.el6.x86_64 file /usr/lib/debug/.build-id/98/bf6d34ce45d92547d67425abd1d631960ea71d.debug from install of kernel-rt-trace-debuginfo-3.0.9-rt26.45.el6rt.x86_64 conflicts with file from package kernel-debug-debuginfo-2.6.32-220.2.1.el6.x86_64 

This is found in kernel-rt-3.0.9-rt26.45
Comment 1 Luis Claudio R. Goncalves 2012-01-11 06:29:58 EST
Just clarifying, the conflict happens between these two packages:

    kernel-rt-trace-debuginfo

    kernel-debug-debuginfo
Comment 2 Clark Williams 2012-02-03 15:43:58 EST
Ok, can we please come up with a list of steps to reproduce this? It looks like you have to install the kernel-debuginfo stuff from a lookaside repo?
Comment 3 Clark Williams 2012-08-20 16:30:48 EDT
There seem to be two files that cause conflicts:

scripts/conmakehash
scripts/pnmtologo

Both are executables that are compiled when the BuildKernel macro is invoked. 

We Since the first comment from David, I've seen the conflict shift from the trace kernel to the vanilla kernel. I suspect we're hitting some corner-case in the debuginfo generation script. 

My solution so far is to go into the kernel-rt script, in the definition of the BuildKernel macro and add the following change:


diff --git a/MRG/kernel-rt.spec b/MRG/kernel-rt.spec
index de6b22a..8b7e88d 100644
--- a/MRG/kernel-rt.spec
+++ b/MRG/kernel-rt.spec
@@ -963,6 +963,11 @@ BuildKernel() {
     fi
     rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*.o
     rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/*/*.o
+
+    # hack to remove .build-id conflict with RHEL kernel debuginfo
+    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/conmakehash
+    rm -f $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/scripts/pnmtologo
+
     if [ -d arch/%{asmarch}/include ]; then
       cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
     fi

Just build the kernel-rt-3.2.23-rt37.55.el6rt package and it seems to avoid the conflict issue.
Comment 7 errata-xmlrpc 2013-03-06 14:24:55 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0566.html

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