From 95cc2e8d4c0607803d926964f2b7b5b129d4e294 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 4 Jan 2018 09:28:36 +0100 Subject: [PATCH] glibc_post_upgrade: Explain why removing platform directories is needed --- glibc_post_upgrade.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glibc_post_upgrade.c b/glibc_post_upgrade.c index ae48737..ad3215c 100644 --- a/glibc_post_upgrade.c +++ b/glibc_post_upgrade.c @@ -73,6 +73,14 @@ main (void) int i, j, fd; off_t base; ssize_t ret; + + /* In order to support in-place upgrades, we must immediately remove + obsolete platform directories after installing a new glibc + version. RPM only deletes files removed by updates near the end + of the transaction. If we did not remove the obsolete platform + directories here, they would be preferred by the dynamic linker + during the execution of subsequent RPM scriptlets, likely + resulting in process startup failures. */ const char *remove_dirs[] = { #if defined (__i386__)