commit: e694c331b21c9dfe8a856aca7fbc1ccf9db9b0a4
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 27 21:45:16 2024 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Apr 27 21:49:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e694c331
media-libs/libgpod: Fix removal of empty /tmp directory
It's not clear why this failed in the bug report, but let's check whether
${ED}/tmp exists before removing it.
Closes: https://bugs.gentoo.org/900927
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
media-libs/libgpod/libgpod-0.8.3-r7.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/media-libs/libgpod/libgpod-0.8.3-r7.ebuild
b/media-libs/libgpod/libgpod-0.8.3-r7.ebuild
index 87203a063b15..959027f94d84 100644
--- a/media-libs/libgpod/libgpod-0.8.3-r7.ebuild
+++ b/media-libs/libgpod/libgpod-0.8.3-r7.ebuild
@@ -66,7 +66,7 @@ src_configure() {
src_install() {
default
rm "${ED}"/usr/$(get_libdir)/pkgconfig/libgpod-sharp.pc || die
- use udev && rmdir "${ED}"/tmp || die
+ [[ -d ${ED}/tmp ]] && rmdir "${ED}"/tmp || die
find "${ED}" -name '*.la' -type f -delete || die
}