dev-java/icedtea-bin: Fix removal of files on arm, closes #623784
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 15 Jul 2017 18:16:22 +0000 (19:16 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 15 Jul 2017 18:17:07 +0000 (19:17 +0100)
The arm -> aarch32 symlink causes globbing to return duplicates and rm
therefore fails.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-java/icedtea-bin/icedtea-bin-3.4.0.ebuild

index 3aa3b0f759c73955df0031f3655224a14dc9a2e2..7ff07f71af74d2a7831b30584affbfb38ed22670 100644 (file)
@@ -81,12 +81,15 @@ pkg_pretend() {
 src_prepare() {
        default
 
+       # I wouldn't normally use -f below but symlinks in the arm files
+       # make this fail otherwise and any other approach would be tedious.
+
        if ! use alsa; then
-               rm -v */jre/lib/*/libjsoundalsa.* || die
+               rm -fv */jre/lib/*/libjsoundalsa.* || die
        fi
 
        if use headless-awt; then
-               rm -vr */jre/lib/*/lib*{[jx]awt,splashscreen}* \
+               rm -fvr */jre/lib/*/lib*{[jx]awt,splashscreen}* \
                   */{,jre/}bin/policytool */bin/appletviewer || die
        fi
 }