Bug 773017 - kernel-rt-{debug,trace}-debuginfo conflicts against kernel-debuginfo
Summary: kernel-rt-{debug,trace}-debuginfo conflicts against kernel-debuginfo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 2.3
: 2.3
Assignee: Clark Williams
QA Contact: Jiri Kastner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-10 17:01 UTC by David Sommerseth
Modified: 2016-05-22 23:34 UTC (History)
6 users (show)

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
Clone Of:
Environment:
Last Closed: 2013-03-06 19:24:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0566 0 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2013-03-07 00:24:01 UTC

Description David Sommerseth 2012-01-10 17:01:45 UTC
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 11:29:58 UTC
Just clarifying, the conflict happens between these two packages:

    kernel-rt-trace-debuginfo

    kernel-debug-debuginfo

Comment 2 Clark Williams 2012-02-03 20:43:58 UTC
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 20:30:48 UTC
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 19:24:55 UTC
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.