File pbc-git-01-6edb1a2b83562c0e9391e251b123dadb2c5a6fc9.patch of Package post-build-checks.13997
commit 6edb1a2b83562c0e9391e251b123dadb2c5a6fc9
Author: Dominique Leuenberger <dimstar@opensuse.org>
Date: Mon Dec 30 14:13:15 2019 +0100
99-check-remove-rpms: preserve libgomp variants
The package libgomp1 is being pulled in by RPM (since 4.15, for parallel processing).
While building alternative versions of gcc, the post-build-checks install (forcibly)
libgomp1-gccX, overwriting /usr/lib64/libgomp.so.1. Later on, the RPMs are being uninstalled again,
resulting in libgomp.so.1 being deleted (libgomp1 being broken)
Any future call to RPM will fail, as depending libraries are now missing. Since this is the same
special case as with libgcc and libstdc++, we handle libgomp the same way by keeping the freshly
built RPM installed
diff --git a/checks/99-check-remove-rpms b/checks/99-check-remove-rpms
index a7fb2a7..01adf7f 100755
--- a/checks/99-check-remove-rpms
+++ b/checks/99-check-remove-rpms
@@ -65,9 +65,9 @@ for RPM in `reorder "${RPM_FILE_LIST[@]}"`; do
echo "(keeping $PKG because of $N)"
continue
fi
- # Do not remove libgcc or libstdc++ variants
+ # Do not remove libgcc, libstdc++ and libgomp variants
case ${PKG} in
- libgcc*|libstdc++*)
+ libgcc*|libgomp*|libstdc++*)
;;
*)
RPM_ERASE_LIST="$RPM_ERASE_LIST $PKG"