Skip to content

Commit

Permalink
[Backport release-24.05] linuxPackages.openafs: Patch for Linux kerne…
Browse files Browse the repository at this point in the history
…l 6.12 (#361600)
  • Loading branch information
wolfgangwalther authored Dec 11, 2024
2 parents 5650e3f + 8054319 commit f68ea49
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions pkgs/servers/openafs/1.8/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f68ea49

Please sign in to comment.