commit: c4bb082cab28210b16b44e001f213f9a5ad7d47b Author: Aaron W. Swenson <aaron <AT> grandmasfridge <DOT> org> AuthorDate: Sun Jan 14 15:32:31 2018 +0000 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> CommitDate: Sun Jan 14 15:32:31 2018 +0000 URL: https://gitweb.gentoo.org/proj/postgresql/eselect.git/commit/?id=c4bb082c
Cleanup senseless symlinks Look for broken symlinks in the /usr/include/postgresql-${SLOT} directories. These were made by 2.1. So now we try to clean them up. postgresql.eselect | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/postgresql.eselect b/postgresql.eselect index 5c90b4b..51d7f50 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -382,6 +382,16 @@ do_update() { echo "It should be safe for you to remove '${etc_path}'" fi fi + + # 2.1 would make some bad symlinks where it shouldn't have. We + # attempt to clean them up here. + local badsym + for badsym in $(find "${USR_PATH}"/include/postgresql-* -type l \ + -exec test ! -e {} \; -print) + do + rm "${badsym}" + done + ## End Antiquity Clean Up local active_slot=$(active_slot)