by MarkSweep · 5y ago · 0 comments
Maybe there is a startup idea here, in making it easier to manage and patch third party dependencies, like how of the big tech companies do?
CTA: send me a message if you like build systems and packages managers and Git and want to manage a billion forks. Worst case scenario we start a support group.
It's most often not as simple as "patch third party dependencies". The Linux kernel is quite infamous for having so many refactorings and reworkings that you can count the amount of proprietary drivers for current (!) kernel versions on one hand. IIRC, the only one viable at the moment is NVIDIA's weird shim, with the longest other holdout Paragon NTFS having gone for open-sourcing a couple weeks ago.
Everyone else (cough Android or general embedded PSPs/BSPs) is stuck with fossilized kernel versions. Take apart any cheap router firmware and you'll likely see a 2.6.x kernel and even older u-boot versions since no one wants to do the work necessary to port over all the custom cruft to a modern version, and no one wants to commit stuff upstream as the Linux kernel maintainers won't even think about accepting the shoddy quality that is common in the embedded space, not to mention people being afraid of violating NDAs.
Yeah they recently gave up on supporting older hardware on new kernels, now one of my machines is stuck on Linux 5.4 LTS.
(Nouveau can't do Audio over HDMI on that hardware.)
This isn't something I budgeted time for, or something I even roadmapped for, which means the build process is going to be a 30-minute kludge and will likely incur greater-than-normal ongoing overhead.
My workflow is usually like this: * upstream has a bug. * find and fix the bug, send a PR. * update the Nix code to build with either the PR branch as the source, or the PR diff as a patch.
What's missing is a good tool to scan for new releases and remove the override. Other than that it works really well.
It's much nicer to run a terraform provider from a branch than having to publish a temporary fork to registry.terraform.io
My edits are purely additive so I have it as a patch file that I simply apply to the nix package definition. So far it has applied cleanly on many different terraform versions I use in the wild.