SableVM SDK - chmod bug

David Bélanger <[email protected]> Thu, 26 May 2005 23:30:41 -0400
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
Hi,

Two bugs with SableVM SDK 1.12_pre2:

Bug #1:

In SableVM SDK, the main ./configure sets +x permissions on files in
bin/ (at the end, after AC_OUTPUT).  If ./config.status is run after (to
regenerate files), the chmod code does not get execute and script do not
have execute permissions - making the build fail later.

In particular, it fails on Gentoo when built with the packaging tools.

One way to fix it: Moving that code somewhere into the main Makefile.am.
See path attached.


Bug #2:

In sablevm-classpath, there is a undefined CLASSPATH_WITH_JAR macro
in configure.ac:

checking for date... /bin/date
checking for find... /usr/bin/find
/var/tmp/portage/sablevm-sdk-1.12_pre2/work/sablevm-sdk-1.12-pre2/sablevm-classpath/configure:
line 26661: CLASSPATH_WITH_JAR: command not found
checking for fastjar...
/var/tmp/portage/sablevm-sdk-1.12_pre2/work/sablevm-sdk-1.12-pre2/bin/fastjar
configure: creating ./config.status
config.status: creating Makefile
config.status: creating external/Makefile


David


---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
chmod.patch (text/plain, 439 B)
--- Makefile.am.orig	2005-05-26 22:48:51.253764984 -0400
+++ Makefile.am	2005-05-26 22:51:11.488446072 -0400
@@ -26,6 +26,11 @@
 configure-all: configure-extra
 
 configure-early: configure
+	for one in java javac fastjar jikes; do \
+	  unlink bin/$${one}-live &>/dev/null || true; \
+	  chmod +x bin/$$one; \
+	  ln -s $one bin/$${one}-live; \
+	done
 	@list='$(EARLY_CONFIGURE)'; \
 	export MAKEFLAGS=''; \
 	for subdir in $$list; do \