changeset 2588:a366a80437b7

PR2454: install-data-local needs to check that classes.jsa actually exists 2015-06-17 Andrew John Hughes <gnu_andrew@member.fsf.org> PR2454: install-data-local needs to check that classes.jsa actually exists * Makefile.am: (install-data-local): Remove conditionals around classes.jsa installation, instead just checking that the file exists. Create the directory for it first, as technically install-data-local does not depend on install-exec-local and so should be self-sufficient. * NEWS: Updated.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Thu, 18 Jun 2015 20:27:38 +0100
parents f9e92005cb3e
children cc59adf48734
files ChangeLog Makefile.am NEWS
diffstat 3 files changed, 16 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 18 00:31:17 2015 +0100
+++ b/ChangeLog	Thu Jun 18 20:27:38 2015 +0100
@@ -1,3 +1,16 @@
+2015-06-17  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+	PR2454: install-data-local needs to check that
+	classes.jsa actually exists
+	* Makefile.am:
+	(install-data-local): Remove conditionals around
+	classes.jsa installation, instead just checking
+	that the file exists. Create the directory for it
+	first, as technically install-data-local does not
+	depend on install-exec-local and so should be
+	self-sufficient.
+	* NEWS: Updated.
+
 2015-06-17  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	PR2448: Install TRADEMARK, COPYING and ChangeLog
--- a/Makefile.am	Thu Jun 18 00:31:17 2015 +0100
+++ b/Makefile.am	Thu Jun 18 20:27:38 2015 +0100
@@ -2495,18 +2495,13 @@
 	${mkinstalldirs} $(DESTDIR)$(htmldir)
 	cp -RP $(BUILD_OUTPUT_DIR)/docs/* $(DESTDIR)$(htmldir)
 endif
-if !ENABLE_JAMVM
-if !ENABLE_CACAO
-if !ZERO_BUILD
 	for vms in client server ; do \
-	  if [ -d $(BUILD_SDK_DIR)/jre/lib/$(INSTALL_ARCH_DIR)/$${vms} ] ; then \
+	  if [ -f $(BUILD_SDK_DIR)/jre/lib/$(INSTALL_ARCH_DIR)/$${vms}/classes.jsa ] ; then \
+	    ${mkinstalldirs} $(DESTDIR)${prefix}/jre/lib/$(INSTALL_ARCH_DIR)/$${vms} ; \
 	    $(INSTALL_DATA) $(BUILD_SDK_DIR)/jre/lib/$(INSTALL_ARCH_DIR)/$${vms}/classes.jsa \
 	      $(DESTDIR)${prefix}/jre/lib/$(INSTALL_ARCH_DIR)/$${vms} ; \
 	  fi ; \
 	done
-endif
-endif
-endif
 # Target Aliases
 # ===============
 
--- a/NEWS	Thu Jun 18 00:31:17 2015 +0100
+++ b/NEWS	Thu Jun 18 20:27:38 2015 +0100
@@ -111,6 +111,7 @@
   - PR2443: install stage fails where BUILD_ARCH_DIR != INSTALL_ARCH_DIR
   - PR2447: Allow greater control of Javadoc installation directory
   - PR2448: Install TRADEMARK, COPYING and ChangeLog as RPM spec file does
+  - PR2454: install-data-local needs to check that classes.jsa actually exists
   - Don't substitute 'j' for '-j' inside -I directives
   - Extend 8041658 to all files in the HotSpot build.
   - Remove jcheck