-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
jetbrains.idea-ultimate - aarch64-linux #222947
jetbrains.idea-ultimate - aarch64-linux #222947
Conversation
Somehow CLion does not compile. I have to check if it's linked to my changes or not.
|
So I can build and run CLion against this branch, but for whatever reason when running nixpkgs-reviews, libcrypt is not found despite openssl being in the buildInputs. |
Am I misreading this diff, or does this remove all of the |
This diff allows clion to build correctly again, btw: diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix
index f331b6ba93e..c40b787ebf7 100644
--- a/pkgs/applications/editors/jetbrains/default.nix
+++ b/pkgs/applications/editors/jetbrains/default.nix
@@ -65,7 +65,8 @@ let
ls -d $PWD/bin/lldb/linux/x64/lib/python3.8/lib-dynload/* |
xargs patchelf \
--replace-needed libssl.so.10 libssl.so \
- --replace-needed libcrypto.so.10 libcrypto.so
+ --replace-needed libcrypto.so.10 libcrypto.so \
+ --replace-needed libcrypt.so.1 libcrypt.so
autoPatchelf $PWD/bin
|
Good catch, I might have removed it inadvertently when I rebased onto master. I added it back, |
6cb8c8d
to
47ef011
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments. I don't use jetbrains stuff so I'm a bit out of my depth for reviewing this
@@ -11,7 +11,7 @@ | |||
, lib | |||
, ant | |||
, ninja | |||
|
|||
, clang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this clang
ever get used in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I will delete it. Good catch again :)
extract_jar "$JOGAMP_DIR"/gluegen-rt-natives-"$OS"-"$DEPS_ARCH".jar lib natives/"$OS"-"$DEPS_ARCH" | ||
|
||
|
||
if [ "$OS" == "macosx" ] || [ "$TARGET_ARCH" == "x86_64" ]; then | ||
extract_jar "$JOGAMP_DIR"/gluegen-rt-natives-"$OS"-"$DEPS_ARCH".jar lib natives/"$OS"-"$DEPS_ARCH" | ||
fi | ||
jmod create --class-path gluegen-rt.jar --libs lib gluegen.rt.jmod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the motivation for this? Are no native libs required at all for aarch64-linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like it, it's backported from the original script (from the JetBrains repo). Without it, the aarch64 build would fail IIRC.
Taken from : https://github.com/JetBrains/jcef/blob/dev/jb/tools/common/create_modules.sh#L46
Not sure why, but when I try to build this package on my Nixos (running on M1) I got a segmentation fault (that I didn't have when running in a VM). I put the PR back to draft until I figure something out. Opened an issue in Jetbrains JBR repository: JetBrains/JetBrainsRuntime#224 |
Hi! Is this PR still up-to-date as of today? |
Hey @drupol it's not up-to-date yet, I will try to pull the latest changes and backport my changes. But the issue still occurs on my end, I can compile ARM64 using a VM, but using real hardware (M1, M1 Pro CPUs) I keep getting a segfault when compiling |
I didn't use |
Merge conflict, please rebase. |
Description of changes
Adding aarch64-linux as a supported platform for
jetbrains.idea-ultimate
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)