bkw777 / mainline

Install mainline kernel packages from kernel.ubuntu.com
GNU General Public License v3.0
1.05k stars 72 forks source link

[FEATURE] GNU linux-libre support? - Kernel without the nonfree blobs #232

Open SamuelMarks opened 1 year ago

SamuelMarks commented 1 year ago

Details: https://www.fsfla.org/ikiwiki/selibre/linux-libre/

In terms of .deb packages, you can see a directory listing here https://linux-libre.fsfla.org/pub/linux-libre/freesh/pool/main/l/

bkw777 commented 1 year ago

This interesting and at least theoretically doable because there are .debs and the site looks consistent and parseable.

It would require a whole different process for scraping and presenting which is not effortless. But I was in the middle of replacing the old process anyway because the original ukuu way is using regexs to parse the index.htmls, and that is basically why we don't have support for any of the different kernel flavors except -generic.

I used to think the kernel filenames and version strings were too free-form and inconsistent and that there was no rules to reliably dissect them, but lately I looked at them again and I think I see a consistent pattern that applies to all the names & versions even going all the way back to the oldest ones. So I was going to replace the current regex-based parser with one that splits up the names & versions into the tokens that make them up, and then I'll be able to support all the -pae -lpae -rt -whatever flavors.

Along the way doing that, since it means largely replacing all the site-scraper and name/version parsing stuff anyway, maybe I can also seperate all that stuff into like a site-interface plugin, and that would make it possible to add other plugins for other sources of debs like this one.

This will not happen fast so don't hold your breath, but I just wanted to say I do like it and can see a way to do it.