Bug 1983639

Summary: glibc: Remove glibc-hwcaps multilibs on updates [rhel-8]
Product: Red Hat Enterprise Linux 8 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, sipoyare
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1983643 (view as bug list) Environment:
Last Closed: 2021-07-21 11:23:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1983677    
Bug Blocks:    

Description Florian Weimer 2021-07-19 10:25:05 UTC
The Lua code to remove ELF multilibs does not iterate over all glibc-hwcaps subdirectories, so it misses the power9 multilib added in bug 1956357.

Comment 2 Florian Weimer 2021-07-21 11:23:51 UTC
I misremembered how this works. During the update if the old and new glibc ship a multilib, it is replaced in place, so there is no issue. We cannot remove glibc-hwcaps multilibs proactively because doing so in %post would remove the already-overwritten new files. At the end of the RPM transaction, the glibc-hwcaps multilib would be gone, which is not what we want.