From 9d590fc480aa419aaafaa23b39536474d9ab065e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 28 Sep 2008 10:54:48 +0000 Subject: [PATCH] Crude hack to solve rmdir .../var/tmp/binpkgs/cat/pkg-ver: Invalid argument and alike for var/tmp/portage/... on Solaris. rmtree(2) returns EINVAL on Solaris if the argument (the dir to remove) is the current directory, or the argument ends with '.'. Since we cd to PORTAGE_BUILDDIR we indeed cannot remove it anymore on Solaris. Hence, we now try to go to the parent of this dir, but ultimately a better solution should be found. svn path=/main/branches/prefix/; revision=11577 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 27f579d01..f039b1d8a 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -273,7 +273,7 @@ register_die_hook() { } # Ensure that $PWD is sane whenever possible. -cd "$PORTAGE_BUILDDIR" 2>/dev/null +cd "${PORTAGE_BUILDDIR}"/.. 2>/dev/null #if no perms are specified, dirs/files will have decent defaults #(not secretive, but not stupid) -- 2.26.2