Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention how to apply xattr to downloaded GraalVM #54

Open
borkdude opened this issue Aug 28, 2021 · 5 comments
Open

Mention how to apply xattr to downloaded GraalVM #54

borkdude opened this issue Aug 28, 2021 · 5 comments

Comments

@borkdude
Copy link
Member

Normally I set GRAALVM_HOME to my downloaded GraalVM installation which currently looks like: /Users/borkdude/Downloads/graalvm-ce-java11-21.2.0/Contents/Home. Since Big Sur I need to apply sudo xattr -r -d com.apple.quarantine to the GraalVM installation to remove the quarantine attribute. But this does not work when you pass include Contents/Home: pass the part without it, like:

sudo xattr -r -d com.apple.quarantine $GRAALVM_HOME/../..

or

sudo xattr -r -d com.apple.quarantine /Users/borkdude/Downloads/graalvm-ce-java11-21.2.0/Contents/Home
@borkdude
Copy link
Member Author

Actually the above is wrong, you should (according to a GraalVM slack user):

xattr -c download.file.tar.gz"

and then extract the file.

@sogaiu
Copy link
Contributor

sogaiu commented Aug 29, 2021

According to an online xattr man page for macos:

Clear all attributes including their associated values:
      xattr -c [-rsv] file ...

So I guess this gets rid of the quarantine attribute but any others as well. No clue whether there are usually any other ones.

@borkdude
Copy link
Member Author

@sogaiu Perhaps it works like this, but I'm not sure:

When extracting a tar.gz the files inside the tar.gz inherit the attributes from the tar.gz file?

How else can macOS place these attributes on files inside a tar.gz file? Does it process the tar.gz file while downloading and rewrites all files inside of it? Not sure!

@borkdude
Copy link
Member Author

It seems that's how it works if the information on this website is correct:

https://www.advsofteng.com/macos_unquarantine.html

@sogaiu
Copy link
Contributor

sogaiu commented Aug 29, 2021

Nice find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants