aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-09-07 23:07:05 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-09-07 23:07:05 +0100
commit1bcd38512f35ab0724279d7fc5bb8e5e1213a9d2 (patch)
treeb4b34b971e6e2e7eae08d20fc46f6f14c1f4bedb
parentgcc-config: store gcc backup into /lib/gcc-backup, not /lib (diff)
downloadgcc-config-1bcd38512f35ab0724279d7fc5bb8e5e1213a9d2.tar.gz
gcc-config-1bcd38512f35ab0724279d7fc5bb8e5e1213a9d2.tar.bz2
gcc-config-1bcd38512f35ab0724279d7fc5bb8e5e1213a9d2.zip
gcc-config: add einfo logging around library backup
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xgcc-config3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc-config b/gcc-config
index 65b30bc..b1cda70 100755
--- a/gcc-config
+++ b/gcc-config
@@ -324,6 +324,7 @@ handle_split_usr() {
# Can be removed in 2021.
for lib in "${EROOT}"/lib*/libgcc_s{.so*,*dylib} "${EROOT}"/lib*/libunwind.so.7* ; do
# If we previously had stuff in /, make sure ldconfig gets re-run.
+ einfo "Removing '${lib}'"
rm -f "${lib}"
old_libs=1
done
@@ -332,6 +333,7 @@ handle_split_usr() {
"${EROOT}"/lib*/"${GENTOO_GCC_BACKUP_DIR}"/libgcc_s.so.* \
"${EROOT}"/lib*/"${GENTOO_GCC_BACKUP_DIR}"/libunwind.so.* ; do
# If we previously had stuff in /, make sure ldconfig gets re-run.
+ einfo "Removing '${lib}'"
rm -f "${lib}"
old_libs=1
done
@@ -350,6 +352,7 @@ handle_split_usr() {
# but for now, that should be safe ...
for gcclib in "${ROOT}${LDPATH}"/lib${gcclib}.so.* ; do
[[ -e ${gcclib} ]] || continue
+ einfo "Backing up '${gcclib}' to '${libdir}"
cp -pP "${gcclib}" "${libdir}"/.gcc.config.new/
# no need to sanity `rm` this as the `mv` should take care
# of it. we also need this step to be completely atomic