Feature request: statically compile kptools-linux and kptools-android
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, c, linux
- Domain
- build-system, mobile-dev, operating-systems
Research direction
Start by inspecting the build configuration for the kptools-linux and kptools-android targets and identify their current dynamic library dependencies. Build both targets with static linking, then verify that the Linux binary runs on a non-glibc distribution and that the Android binary runs in recovery mode. Done means both binaries include the needed dependencies without relying on system libraries.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
I am unable to run kptools-linux in distros that don't use glibc (example: alpine linux).
Also unable to run kptools-android in recovery mode.
Describe the solution you'd like
Statically compiling kptools-linux will allow it to run on any x86_64 distro, regardless if they are using glibc or not.
And statically compiling kptools-android will allow it to run in recovery mode, assuming:
- flashing apatch.zip fails, and user has to manual patch
- user extracting stock boot.img from device using recovery mode
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Current versions of kptools-android and kptools-linux are dynamically compiled, meaning they need the system's libraries to function.
Static compile will solve this issue by bundling all dependencies inside the binary.
- Dominant language
- C
- Stars
- 1.6k
- Forks
- 401
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bmax121/KernelPatch
-
booloopOpen
Difficulty 5/5 Over a week Newbie friendliness 6/100
bmax121/KernelPatch#346 ·
Maintainers usually reply within 4 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
bmax121/KernelPatch#344 ·
Maintainers usually reply within 4 days
-
Patch Failed (Redmi Note 9 Merlin) (4.19.325-cip136-st20-g26d86a5027fb)Possibly taken @bmax121 claimed this 24 days ago. Open
bmax121/KernelPatch#343 · 1 assignee ·
Maintainers usually reply within 4 days
-
official LineageOS on nicepool: APpatch patching fails but only if done via recovery sideloadMay be free again @bmax121 claimed this 43 days ago, and no pull request is open. Open
bmax121/KernelPatch#332 · 1 assignee ·
Maintainers usually reply within 4 days
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
bmax121/KernelPatch#329 · 2 comments ·
Maintainers usually reply within 4 days
All issues in bmax121/KernelPatch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 5 days
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
bug severity: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AlessandroSangiuliano/Uros#1014 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
OpenXiangShan/NEMU#1314 ·
Maintainers usually reply within 1 day