summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2019-06-24 14:12:59 +0200
committerMichael Haubenwallner <haubi@gentoo.org>2019-06-24 14:14:55 +0200
commit91830d78d6f352ee1450263b6466fda5f7c8003c (patch)
tree366e1e51366a19bc2a97f387968598449d597a0a /profiles/prefix
parentmedia-sound/mp3diags: new package (diff)
downloadgentoo-91830d78d6f352ee1450263b6466fda5f7c8003c.tar.gz
gentoo-91830d78d6f352ee1450263b6466fda5f7c8003c.tar.bz2
gentoo-91830d78d6f352ee1450263b6466fda5f7c8003c.zip
prefix/winnt/profile.bashrc: first, check if usr/lib does exist
And fail if creating the back hardlink does fail. Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'profiles/prefix')
-rw-r--r--profiles/prefix/windows/winnt/profile.bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/prefix/windows/winnt/profile.bashrc b/profiles/prefix/windows/winnt/profile.bashrc
index c0eaec08a6df..b8def6390deb 100644
--- a/profiles/prefix/windows/winnt/profile.bashrc
+++ b/profiles/prefix/windows/winnt/profile.bashrc
@@ -62,6 +62,7 @@ post_src_install() {
;;
esac
done
+ [[ -d usr/$(get_libdir) ]] &&
find usr/$(get_libdir) -maxdepth 1 -type f -name '*.dll' |
while read f
do
@@ -69,7 +70,7 @@ post_src_install() {
ebegin "moving ${f} to usr/bin for native loader"
dodir usr/bin || die
mv -f "${f}" usr/bin || die
- ln -sf "../bin/${f##*/}" "${f}"
+ ln -sf "../bin/${f##*/}" "${f}" || die
eend $?
fi
done