{"id":19378814,"url":"https://github.com/linbit/saas","last_synced_at":"2025-04-23T19:32:31.139Z","repository":{"id":38098875,"uuid":"211117848","full_name":"LINBIT/saas","owner":"LINBIT","description":"Spatch As A Service","archived":false,"fork":false,"pushed_at":"2024-12-09T12:13:03.000Z","size":46,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-02T19:11:28.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LINBIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-26T15:08:13.000Z","updated_at":"2024-12-09T12:12:55.000Z","dependencies_parsed_at":"2024-11-19T09:20:23.565Z","dependency_job_id":"3b13606d-5742-4422-8f80-3d13b63dab11","html_url":"https://github.com/LINBIT/saas","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fsaas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fsaas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fsaas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fsaas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LINBIT","download_url":"https://codeload.github.com/LINBIT/saas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250499922,"owners_count":21440715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:07:29.496Z","updated_at":"2025-04-23T19:32:30.778Z","avatar_url":"https://github.com/LINBIT.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saas - Spatch As A Service\n\nStarting from DRBD kernel module version 9.0.20 we use [spatch](http://coccinelle.lip6.fr/) to generate\ncompatibility patches that are required to build the kernel module on a host machine. Older kernels need\ndifferent and more patches than new ones as we try to use latest Linux upstream features as our base line in\nDRBD.\n\nWhile using `spatch` makes maintenance a lot easier, it slightly complicates things for users just trying to\ncompile one of our release-tarballs on their machine.\n\nOur tarballs ship with a wide range of pre-generated patches, but we can never build for everybody (e.g.,\nlocally patched kernels, distribution kernels of distributions we don't build for in the first place,...).\n\nAdditionally, `spatch` is a beast on its own. As of now we require a very current version that is not packaged\nin any distribution, and even if, we actually don't like to force a ton of OCaml dependencies on everybody\ntrying to build a release-tarball.\n\nThis is where `saas` comes into the picture. It is a web service, hosted by [LINBIT](https://www.linbit.com),\nthat takes as input a \"DRBD tarball version\", and a \"compat.h\" (which describes the capabilities of your\nkernel). From that, it generates a patch with `spatch`, and returns it.\n\n## API\nFor the regular user, this is handled transparently by our `Makefile`s. A manual call looks similar to this:\n\n```\ncurl -d \"$(cat compat.h | base64 -)\" -X POST http://localhost:8080/api/v1/spatch/9.0.20-0rc2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fsaas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinbit%2Fsaas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fsaas/lists"}