diff --git a/dev-java/icedtea-bin/icedtea-bin-3.4.0.ebuild b/dev-java/icedtea-bin/icedtea-bin-3.4.0.ebuild index 3aa3b0f759c73..7ff07f71af74d 100644 --- a/dev-java/icedtea-bin/icedtea-bin-3.4.0.ebuild +++ b/dev-java/icedtea-bin/icedtea-bin-3.4.0.ebuild @@ -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 }