* [gentoo-commits] portage r11577 - main/branches/prefix/bin
@ 2008-09-28 10:54 Fabian Groffen (grobian)
0 siblings, 0 replies; only message in thread
From: Fabian Groffen (grobian) @ 2008-09-28 10:54 UTC (permalink / raw
To: gentoo-commits
Author: grobian
Date: 2008-09-28 10:54:48 +0000 (Sun, 28 Sep 2008)
New Revision: 11577
Modified:
main/branches/prefix/bin/ebuild.sh
Log:
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.
Modified: main/branches/prefix/bin/ebuild.sh
===================================================================
--- main/branches/prefix/bin/ebuild.sh 2008-09-27 22:16:26 UTC (rev 11576)
+++ main/branches/prefix/bin/ebuild.sh 2008-09-28 10:54:48 UTC (rev 11577)
@@ -273,7 +273,7 @@
}
# 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-28 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 10:54 [gentoo-commits] portage r11577 - main/branches/prefix/bin Fabian Groffen (grobian)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox