|
|
Log in / Subscribe / Register

LZ4: vendoring in the kernel

LZ4: vendoring in the kernel

Posted Feb 6, 2017 3:57 UTC (Mon) by tterribe (guest, #66972)
In reply to: LZ4: vendoring in the kernel by gregkh
Parent article: LZ4: vendoring in the kernel

We use the approach karkhaz describes in Firefox, also, with some amount of success: each vendored library has an update.sh script which copies the relevant files from a checkout of the relevant upstream version and applies all local patches (usually named after bug numbers that describe the issue and give steps to reproduce). If run, it should produce exactly what is in the tree.

Primarily, it serves as visible documentation so someone doesn't have to remember to run 'git log' on a bunch of files before patching/replacing them. The fact that you have to update it when you patch the vendored code is also a good reminder that someone else (like a future you) will have to deal with that patch on the next code import, and gives good incentive to move patches upstream if possible.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds