Skip to content

openafs: fix OpenAFS 1.6 on Linux 4.20 - #56862

Merged
veprbl merged 4 commits into
NixOS:masterfrom
artemist:openafs-1.6-linux_4_20
Mar 6, 2019
Merged

veprbl merged 4 commits into
NixOS:masterfrom
artemist:openafs-1.6-linux_4_20

Conversation

@artemist

@artemist artemist commented Mar 5, 2019

Copy link
Copy Markdown
Member
Motivation for this change

I have been requested to add linuxPackages_latest support to OpenAFS 1.6. I found working patches, although not enough for 5.0

Things done

This patch cherry-picks commits from the OpenAFS git repository using
git show to add support for Linux 4.20 for OpenAFS 1.6.

There do not seem to be patches in the Git repository for full Linux 5.0
support, although I have added the ones which exist so far.

This patch has been tested on Linux 4.4, 4.14, 4.20, and is confirmed to
fail on Linux 5.0. It does not change the drv of the openafs package,
only linuxPackages_*.openafs.

  • 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.

This patch cherry-picks commits from the OpenAFS git repository using
`git show` to add support for Linux 4.20 for OpenAFS 1.6.

There do not seem to be patches in the Git repository for full Linux 5.0
support, although I have added the ones which exist so far.

This patch has been tested on Linux 4.4, 4.14, 4.20, and is confirmed to
fail on Linux 5.0. It does not change the drv of the openafs package,
only linuxPackages_*.openafs.
@veprbl

veprbl commented Mar 5, 2019

Copy link
Copy Markdown
Member

cc @spacefrogg

@veprbl
veprbl requested a review from maggesi March 5, 2019 03:28
@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 Mar 5, 2019
@artemist

artemist commented Mar 5, 2019 •

Copy link
Copy Markdown
Member Author

@GrahamcOfBorg build linuxPackages_4_20.openafs

Edit, oops, I can't do this. Can someone else run this for me?

@veprbl

veprbl commented Mar 5, 2019

Copy link
Copy Markdown
Member

@GrahamcOfBorg build linuxPackages_4_20.openafs

@veprbl

veprbl commented Mar 5, 2019

Copy link
Copy Markdown
Member

@GrahamcOfBorg build linuxPackages_4_20.openafs

Comment thread pkgs/servers/openafs/1.6/default.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.

Builds against most kernels (except hardened). Works.

@spacefrogg

Copy link
Copy Markdown
Contributor

@artemist Thanks for the effort! Looks good from my side.

@artemist

artemist commented Mar 6, 2019

Copy link
Copy Markdown
Member Author

@veprbl That's an annoying issue with struct layout randomization. i'm writing a patch I'll submit upstream after some testing, but it's out of scope for this PR (and quite possibly nixpkgs)

@veprbl
veprbl merged commit 8a8628f into NixOS:master Mar 6, 2019
@artemist
artemist deleted the openafs-1.6-linux_4_20 branch March 13, 2019 17:40
adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
openafs: fix OpenAFS 1.6 on Linux 4.20

This patch cherry-picks commits from the OpenAFS git repository to
add support for Linux 4.20 to OpenAFS 1.6.

There do not seem to be patches in the Git repository for full Linux 5.0
support, although I have added the ones which exist so far.

This patch has been tested on Linux 4.4, 4.14, 4.20, and is confirmed to
fail on Linux 5.0. It does not change the drv of the openafs package,
only linuxPackages_*.openafs.
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.

4 participants