Skip to content

openafs_1_8: Include support for Linux 4.20 - #56080

Merged
veprbl merged 1 commit into
NixOS:masterfrom
artemist:openafs-linux_latest
Feb 26, 2019
Merged

veprbl merged 1 commit into
NixOS:masterfrom
artemist:openafs-linux_latest

Conversation

@artemist

Copy link
Copy Markdown
Member
Motivation for this change

OpenAFS version 1.8.2 does not have support for Linux 4.20,
meaning that linuxPackages_latest.openafs_1_8 would fail
to build.

Things done

This patch adds patches taken from the OpenAFS git (via the Arch AUR) to
remove the references to deprecated functions. This has been
tested on Linux 4.20 and Linux 4.14

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

OpenAFS version 1.8.2 does not have support for Linux 4.20,
meaning that linuxPackages_latest.openafs_1_8 would fail
to build.

This patch adds patches taken from the OpenAFS git to
remove the references to deprecated functions. This has been
tested on Linux 4.20 and Linux 4.14

This patch must be removed when OpenAFS 1.8.3 is released
and improved when Linux 5.0 is added to Nix
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Feb 20, 2019

@maggesi maggesi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
(Compiles on my computer, can not test on production though.)

@artemist

Copy link
Copy Markdown
Member Author

I haven't tested the server (I don't have a machine setup for that, and don't feel like making a new Kerberos realm), but I'm successfully logged into several cells and able to interact with files

@artemist

Copy link
Copy Markdown
Member Author

Should I change base to staging or is master fine for <100 rebuilds?

@veprbl

veprbl commented Feb 26, 2019

Copy link
Copy Markdown
Member

@artemist master is fine

Comment thread pkgs/servers/openafs/1.8/module.nix Resolved

@veprbl veprbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Client works

@veprbl

veprbl commented Feb 26, 2019

Copy link
Copy Markdown
Member

cc @spacefrogg

@veprbl

veprbl commented Feb 26, 2019

Copy link
Copy Markdown
Member

So this only provides a fix for 1.8. The default is 1.6 and it will probably need fixing or the default will need to be bumped.

@veprbl
veprbl merged commit 1a95a36 into NixOS:master Feb 26, 2019
@veprbl

veprbl commented Feb 26, 2019

Copy link
Copy Markdown
Member

@artemist Thank you!

@spacefrogg

Copy link
Copy Markdown
Contributor

@artemist Would you consider patching version 1.6 also? Or provide me with guidance on how to acquire the patch for the 1.6 branch?

Testing the server is not necessary. The kernel module solely affects the client.

@artemist

Copy link
Copy Markdown
Member Author

@spacefrogg I've never used OpenAFS 1.6. There are some patches on the git server, but those are for 1.8, and I don't know how well they'll apply to 1.6. You can just try to apply these patches though.

@artemist
artemist deleted the openafs-linux_latest branch March 13, 2019 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants