Bug 768468

Summary: coinstalling older kernels on RHEL6.2 breaks ldconfig
Product: Red Hat Enterprise Linux 6 Reporter: Stephan Wiesand <stephan.wiesand>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2CC: kmcmartin
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-15 13:17:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Stephan Wiesand 2011-12-16 18:14:43 UTC
Description of problem:
The 6.2 kernels change the content of /etc/ld.so.conf.d/kernel-`uname -r`.conf from
"hwcap 0 nosegneg" to "hwcap 1 nosegneg". In %post, there's an attempt to fix the issue of contradictory settings breaking ldconfig:

if grep --silent '^hwcap 0 nosegneg$' /etc/ld.so.conf.d/kernel-*.conf 2> /dev/null; then
  sed -i '/^hwcap 0 nosegneg$/ s/0/1/' /etc/ld.so.conf.d/kernel-*.conf
fi

Alas, this won't work if an older kernel is coinstalled afterwards.

Version-Release number of selected component (if applicable):
2.6.32-220.el6

How reproducible:
100%

Steps to Reproduce:
1. install RHEL 6.2
2. coinstall a kernel from RHEL 6.1
3. run ldconfig
  
Actual results:
ldconfig aborts with "ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-220.el6.x86_64.conf:6: hwcap index 1 already defined as nosegneg"

Comment 3 RHEL Program Management 2012-05-03 05:27:40 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

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 Jes Sorensen 2013-02-15 13:17:25 UTC
Installing older kernels than the version of RHEL installed isn't supported