linux-sony-amami: Backport getrandom to support libressl on linux < 3.17
This fixes (for the Xperia Z1 compact downstream kernel) #107 (closed).
Many thanks to @michitux for the research.
Note: This is in NO way clean or tested extensively. I just kept throwing patches found by google search for "backport getrandom" until the kernel compiled and booted. The only thing that I can confirm is that this fixes https connections in python2 applications for me.
Merge request reports
Activity
The change looks good. I'm curious if this patch applies cleanly to other downstream kernels as well, and if that is the case it would probably be good to move it to the new common patches folder and have it added by default when creating a new device port.
I'll try to find time to test this with my
samsung-i9100
. But if someone could already test it with another device and confirm whether the patch applies cleanly and downloading from https from the device works with this patch, it would be greatly appreciated (@michitux maybe?).Thank you very much for the MR @mapmot!
By Oliver Smith on 2018-10-21T10:31:55
The patch will apply cleanly on sony-aries, it's the same downstream source. The other downstream kernels - pobably not, most of them are 3.4, as opposed to 3.10 on the Xperias. A good staring point is https://review.slimroms.org/c/SlimRoms/kernel_xiaomi_msm8956/+/30809
some of the stuff was already in the 3.10 kernel, other had to be manually merged.
A reliable test case isapk add py2-pip ; pip install <something>
With unpatched downstream kernel it gets killed immediately when attempting the https connection to python.org.By Valentin Marinov on 2018-10-21T13:07:24
Edited by Administratoradded 7 commits
-
d3ff6adb...45c0d685 - 6 commits from branch
postmarketOS:master
- 905b4e31 - linux-sony-amami: Backport getrandom to support libressl on linux < 3.17
By Oliver Smith on 2018-10-21T15:35:56
-
d3ff6adb...45c0d685 - 6 commits from branch
added 1 commit
- 3603a728 - linux-sony-amami: Backport getrandom to support libressl on linux < 3.17
By Oliver Smith on 2018-10-21T15:37:55
enabled an automatic merge when the pipeline for 3603a728 succeeds
By Oliver Smith on 2018-10-21T15:39:12