8210440: [Linux,Mac] jpackager script in exploded jdk is not executable JDK-8200758-branch
authorherrick
Mon, 17 Sep 2018 16:19:46 -0400
branchJDK-8200758-branch
changeset 56886 f5b66a48b87b
parent 56885 4c56efca06ca
child 56887 93db8a13c4c5
8210440: [Linux,Mac] jpackager script in exploded jdk is not executable Submitted-by: almatvee Reviewed-by: herrick, kcr
make/launcher/Launcher-jdk.packager.gmk
--- a/make/launcher/Launcher-jdk.packager.gmk	Mon Sep 17 09:29:21 2018 -0400
+++ b/make/launcher/Launcher-jdk.packager.gmk	Mon Sep 17 16:19:46 2018 -0400
@@ -52,11 +52,18 @@
 
 else
 
+  # Chmod to avoid permission issues for exploded JDK
+define copy-and-chmod
+    $(install-file)
+    $(CHMOD) +x $@
+endef
+
 #copy script for Unix
 $(eval $(call SetupCopyFiles, COPY_JPACKAGERSCRIPT, \
     SRC := $(TOPDIR)/src/jdk.packager/unix/scripts/, \
     DEST := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
     FILES := jpackager, \
+    MACRO := copy-and-chmod, \
 ))
 
 TARGETS += $(COPY_JPACKAGERSCRIPT)