-
-
Notifications
You must be signed in to change notification settings - Fork 307
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 32/64 bit architecture detection #1481
Conversation
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 looks good 🙂
I have noticed this issue myself when building and experimenting with the docker images, I wrote some suggestions for changes to implent making the if-statements work and also add in the previous check as well just in case, please look it over 🙏
Appreciate the guidance, all the best! |
Thanks @DesktopECHO for creating the PR and @ZendaiOwl for reviewing it. I still need to think about the implications of checking with both methods - I'm not 100% sure if that's really what we want yet. I'll have a more thorough look at it until tomorrow |
@DesktopECHO can you please change the target branch for the PR to devel? |
You're welcome 🙏 |
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.
As discussed, I think it is better to only use one way to determine the architecture. I've added corresponding suggestions. :)
(just reopening to retrigger the pipelines, which I fixed in the meantime :P) |
@DesktopECHO Could you do a rebase on devel, please? You can do so with the following commands: git clone https://github.com/DesktopECHO/nextcloudpi.git && cd nextcloudpi # Only if you didn't check out the repo already
git remote add upstream https://github.com/nextcloud/nextcloudpi.git
git fetch upstream
git checkout arm32or64
git rebase upstream/devel
git push -f origin arm32or64 |
After the rebase, I will do some tests and then we should be able to merge this :) |
Learning as I go, thank you for breaking it down :) Co-authored-by: Victor-ray <[email protected]>
Nice.. way more sensible Co-authored-by: Victor-ray <[email protected]>
Co-authored-by: Victor-ray <[email protected]>
Co-authored-by: Victor-ray <[email protected]>
Co-authored-by: Tobias Knöppler <[email protected]>
Co-authored-by: Tobias Knöppler <[email protected]>
Co-authored-by: Tobias Knöppler <[email protected]>
Co-authored-by: Tobias Knöppler <[email protected]>
Sorry for the delay, hope this did the trick:
|
Seems to work well. Thank you! :) |
To determine if the Debian edition hosting NextCloud is 32 or 64 bit, NCP uses
uname -m
. This is mostly fine until you have (for example) a kernel reportingaarch64
that is running Debianarmhf
in a container, whereupon the wheels fall off and scripts break.As opposed to asking the Kernel, it's more reliable to ask the distro if NextCloud is 32 (armv7l, armv8l) or 64 (aarch64) bit to account for all possible hardware setups.