Missing permission sets in mx_graal.py

Tom Rodriguez tom.rodriguez at oracle.com
Fri Dec 19 20:29:12 UTC 2014


This fixes the problem with using a read-only JDK as your base image, right?

tom

On Dec 19, 2014, at 12:09 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:

> --- a/mx/mx_graal.py	Thu Dec 18 18:34:21 2014 -0800
> +++ b/mx/mx_graal.py	Fri Dec 19 11:37:53 2014 -0800
> @@ -435,6 +435,8 @@
>             chmodRecursive(jdk, JDK_UNIX_PERMISSIONS_DIR)
>             shutil.move(join(_vmLibDirInJdk(jdk), defaultVM), join(_vmLibDirInJdk(jdk), 'original'))
> 
> +            if mx.get_os() != 'windows':
> +                os.chmod(jvmCfg, JDK_UNIX_PERMISSIONS_FILE)
>             with open(jvmCfg, 'w') as fp:
>                 for line in jvmCfgLines:
>                     fp.write(line)
> @@ -447,6 +449,8 @@
>                     for line in f:
>                         releaseFileLines.append(line)
> 
> +                if mx.get_os() != 'windows':
> +                    os.chmod(releaseFile, JDK_UNIX_PERMISSIONS_FILE)
>                 with open(releaseFile, 'w') as fp:
>                     for line in releaseFileLines:
>                         if line.startswith("SOURCE="):
> 
> Thanks,
> Vladimir



More information about the graal-dev mailing list