Bug 1947256 - glibc: multilib objects should be marked %missingok in RPM spec
Summary: glibc: multilib objects should be marked %missingok in RPM spec
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: glibc
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: glibc team
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1889978
TreeView+ depends on / blocked
 
Reported: 2021-04-08 05:30 UTC by Florian Weimer
Modified: 2023-07-18 14:30 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-16 12:26:10 UTC
Type: Enhancement
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2021-04-08 05:30:35 UTC
Without %missingok, RPM will print confusing errors during in-place upgrades to Red Hat Enterprise Linux 9, like this:

warning: file /lib64/power9/libthread_db.so.1: remove failed: No such file or directory
warning: file /lib64/power9/libthread_db-1.0.so: remove failed: No such file or directory
warning: file /lib64/power9/librt.so.1: remove failed: No such file or directory
warning: file /lib64/power9/librt-2.33.so: remove failed: No such file or directory
warning: file /lib64/power9/libpthread.so.0: remove failed: No such file or directory
warning: file /lib64/power9/libpthread-2.33.so: remove failed: No such file or directory
warning: file /lib64/power9/libm.so.6: remove failed: No such file or directory
warning: file /lib64/power9/libm-2.33.so: remove failed: No such file or directory
warning: file /lib64/power9/libc.so.6: remove failed: No such file or directory
warning: file /lib64/power9/libc-2.33.so: remove failed: No such file or directory

I reviewed the RPM source code and %missingok is the only way to suppress this warning.

Comment 2 Florian Weimer 2021-06-18 08:31:40 UTC
I'm no longer sure if this worthwhile to do. We will likely have ldconfig warnings during in-place upgrades from Red Hat Enterprise Linux 8 to 9 if we install glibc's DSOs under their sonames, not versioned files (see Fedora bug 1652867). That warning won't go away because it makes sense for ldconfig in general. And if we cannot get down to zero warnings, we still need to document something, and documenting another warning isn't too much trouble.

Comment 3 Florian Weimer 2021-09-16 12:26:10 UTC
Closing as per comment 2.


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