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
Update for BusyBox 1.36.1 #9
Conversation
osm0sis
commented
May 23, 2023
•
edited
edited
- remove upstreamed/resolved patches
- rebase patches over released stable 1.36.1
- fix KBuild parsing of .S files for Android.mk
- add new patch to fix direct loopback mount and losetup next loop
- switch to recommending the Magisk SELinux fork to ensure Android compatibility
This comment was marked as outdated.
This comment was marked as outdated.
c84064a
to
cfcd237
Compare
This comment was marked as outdated.
This comment was marked as outdated.
One final force-push to fix loop mounts on kernels < 5.x; the new TRY_LOOP_CONFIGURE is supposed to fallback gracefully, but something doesn't work correctly, even with my new patch, so update config options to revert to old behavior. |
when build with the newest Sources in README.md, it report some error :
|
Built back when I did it; will need to try it again. I've just gotten a report today that there may be an issue with the SELinux applets not working even though they built correctly, so maybe some build fixes for the upstream libselinux stuff to look into in general... 🤔 Edit: For starters, likely ndk-box-kitchen will now need to switch to using the Magisk SELinux fork, and that may resolve things: https://github.com/topjohnwu/selinux |
Yep, https://github.com/topjohnwu/selinux got things building again. Makes more sense to keep it in sync with that than constantly hoping upstream works. I'll update the README. 👍 |
- remove upstreamed/resolved patches - rebase patches over released stable 1.36.1 - fix KBuild parsing of .S files for Android.mk - add new patch to fix direct loopback mount and losetup next loop - switch to recommending the Magisk SELinux fork to ensure Android compatibility
7384855
to
f9fc384
Compare
Oh, @topjohnwu, I didn't expect the merge just yet... there's still some issue with the SELinux applets not working correctly which I'm trying to track down. E.g. |
I've tried rolling my NDK back to r23c and SELinux back to 3.3 which were out when we built 1.34.1, and I've tried building 1.34.1 using the latest SELinux and pcre, but none of that gets Edit: Hmm, rolling back to the Magisk submodule commit pcre @ 8e12681 didn't get it working either. I'm at a loss here. 😕 Edit 2: Could it be my switch to a WSL2 env? Hopefully that's the case, and Magisk's busybox will build fine... 🤞 |
@osm0sis I've built the source code along with the Magisk tree and everything is working just fine |
Hmm, weird. The only thing I can think of is that it must be my WSL2 or something. No idea how to debug that, but I'll figure something out. Glad it's working with Magisk at least! |
@topjohnwu, turns out that was the clue I needed! lto_fix.lds is missing over here so SELinux was broken in anything directly built from ndk-box-kitchen. PR incoming. 🙂 |