8210440: [Linux,Mac] jpackager script in exploded jdk is not executable
Submitted-by: almatvee
Reviewed-by: herrick, kcr
--- 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)