mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
linuxPackages.openafs: Patch for Linux kernel 6.12.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
23e89b7da8
commit
2a6bf99e78
|
@ -20,17 +20,32 @@ let
|
|||
modDestDir = "$out/lib/modules/${kernel.modDirVersion}/extra/openafs";
|
||||
kernelBuildDir = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
|
||||
fetchBase64Patch = args: (fetchpatch args).overrideAttrs (o: {
|
||||
postFetch = "mv $out p; base64 -d p > $out; " + o.postFetch;
|
||||
});
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "openafs";
|
||||
version = "${version}-${kernel.modDirVersion}";
|
||||
inherit src;
|
||||
|
||||
patches = [ ];
|
||||
patches = [
|
||||
# Linux: Define Clear/Set PageError macros as NOPs
|
||||
(fetchpatch {
|
||||
url = "https://gerrit.openafs.org/changes/15964/revisions/917d071a1b3c3e23c984ca8e5501ddccd62a01b6/patch";
|
||||
decode = "base64 -d";
|
||||
hash = "sha256-WqAHRN1YZj7Cz4X4iF1K3DJC1h8nXlnA9gveClL3KHc=";
|
||||
})
|
||||
# Linux: Refactor afs_linux_write_begin() variants
|
||||
(fetchpatch {
|
||||
url = "https://gerrit.openafs.org/changes/15965/revisions/c955b666b904b96620df10328a9a37c2fb5f2ed6/patch";
|
||||
decode = "base64 -d";
|
||||
hash = "sha256-U2W+8YrD1K7Pb/Jq08uBcuPnGkVvcSyTpwaWWcTbq0w=";
|
||||
})
|
||||
# Linux: Use folios for aops->write_begin/end
|
||||
(fetchpatch {
|
||||
url = "https://gerrit.openafs.org/changes/15966/revisions/d1706bdc5080b86b1876d10f062c369e8d898188/patch";
|
||||
decode = "base64 -d";
|
||||
hash = "sha256-jY+r9LO/4g6K9J1stxNCa38nyr1/J3beOhG9YilEbzg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake flex libtool_2 perl which bison ]
|
||||
++ kernel.moduleBuildDependencies;
|
||||
|
|
Loading…
Reference in a new issue