This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] build fix when source tree is fully read-only
- From: "Jan Beulich" <jbeulich at novell dot com>
- To: <java-patches at gcc dot gnu dot org>
- Date: Tue, 26 Feb 2008 09:08:26 +0000
- Subject: [PATCH] build fix when source tree is fully read-only
While the $(TOOLS_ZIP) rule in classpath/tools/Makefile.{am,in} is
broken in more general respects (i.e. it doesn't tolerate being
interrupted and the make then later be resumed), this patch fixes the
most immediate problem of insufficient permissions to remove the copied
asm/ and classes/ trees, if those (and perhaps the entire source tree)
had undergone a 'chmod -R a-w', resulting in a build failure.
Built and tested on i686-pc-linux-gnu, x86_64-unknown-linux-gnu, and
ia64-unknown-linux-gnu.
2008-02-26 Jan Beulich <jbeulich@novell.com>
* classpath/tools/Makefile.am ($(TOOLS_ZIP)): Make tree
writeable before attempting to remove them.
* classpath/tools/Makefile.in: Re-generate.
--- 2008-02-25/libjava/classpath/tools/Makefile.am 2008-02-22 11:01:17.000000000 +0100
+++ 2008-02-25/libjava/classpath/tools/Makefile.am 2008-02-25 15:05:34.000000000 +0100
@@ -218,6 +218,7 @@
if test "$(ZIP)" != ""; then $(ZIP) -u -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) uf ../$(TOOLS_ZIP) .; fi; \
cd ..)
+ chmod -R a+w asm classes
rm -rf asm classes classes.lst asm.lst
# Zip file be gone! (and make sure the classes are gone too)
--- 2008-02-25/libjava/classpath/tools/Makefile.in 2008-02-22 11:01:17.000000000 +0100
+++ 2008-02-25/libjava/classpath/tools/Makefile.in 2008-02-25 15:05:34.000000000 +0100
@@ -1158,6 +1158,7 @@
if test "$(ZIP)" != ""; then $(ZIP) -u -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) uf ../$(TOOLS_ZIP) .; fi; \
cd ..)
+ chmod -R a+w asm classes
rm -rf asm classes classes.lst asm.lst
# Zip file be gone! (and make sure the classes are gone too)