-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix #724. build: Add darwin aarch64 to supported architectures #743
Conversation
Good catch ! That's why it was so easy to add support for M1 in #741 , the build did not run 😒 There's an issue when running the integration test suite on Apple M1. It's related to
I'll have a look but if you have any information that can help us get it fixed let us know :) |
@ljrk0 all tests are passing on your host ? just wanna know if the problem is coming from |
Hey, @qkaiser ah, well, that explains it I guess :D I just reproduced locally with the same problem:
|
I could debug the issue, it's related to |
... if I had scrolled through the open PRs on simg2img instead of only the issues, I'd have found the fix there already: I can confirm using |
@ljrk0 thanks for looking into this, I was just about to launch an M1 machine on Scaleway. I would rather fix simg2img locally until it's fixed upstream than skip the test. You can do it this way: diff --git a/overlay.nix b/overlay.nix
index 52e7f81..9e1f71c 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -12,6 +12,15 @@ final: prev:
nativeCheckInputs = (super.nativeCheckInputs or [ ]) ++ [ final.which ];
});
+ simg2img = prev.simg2img.overrideAttrs (super: {
+ postPatch = ''
+ substituteInPlace output_file.cpp \
+ --replace-fail \
+ 'aligned_offset = offset & ~(4096 - 1);' \
+ 'aligned_offset = offset & ~(sysconf(_SC_PAGESIZE) - 1);'
+ '';
+ });
+
# Own package updated independently of nixpkgs
jefferson = final.callPackage ./nix/jefferson { }; |
Awesome -- I still have to learn a lot about Nix :) I just wanted to test this locally, but Nix now complains that I have it installed already:
Unfortunately the suggested command fails:
And the profile list being:
a bit at loss here but meanwhile I update the PR and we can see what the CI says! |
At least this test seems to run as expected now:
Let's see whether the CI swallows it too :) |
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.
Thank you very much for your contribution @ljrk0 !
It seems like #741 only added M1 to the CI build but Nix still claimed the architecture as unsupported (cf. #724). This adds macOS on ARM to the Nix supported architectures (confirmed locally).