Skip to content

linuxPackages.ati_drivers_x11: patch for kernel 4.7+ #19810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2016

Conversation

jerith666
Copy link
Contributor

Motivation for this change

Yet another case of binary ATI drivers lagging behind kernel API changes.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

uses patch from commit 392aac08 in https://aur.archlinux.org/packages/catalyst/

Confirmed working with minecraft and starcraft 2 locally.

Sorry, something went wrong.

@mention-bot
Copy link

@jerith666, thanks for your PR! By analyzing the history of the files in this pull request, we identified @heydojo, @MarcWeber and @edwtjo to be potential reviewers.

./patches/kernel-4.6-page_cache_release-put_page.patch ];
./patches/kernel-4.6-page_cache_release-put_page.patch ]
++ optionals ( kernel != null &&
(builtins.compareVersions kernel.version "4.7") >= 0 )
Copy link
Member

Choose a reason for hiding this comment

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

Could we not use versionAtLeast and/or versionOlder instead? Seems cleaner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought I looked for something like that when I did the 4.6 patches and didn't find it. I'll try to revise tonight.

@grahamc
Copy link
Member

grahamc commented Oct 24, 2016

Yet another case of binary ATI drivers lagging behind kernel API changes.

Hey, Matt!

Thank you so much for the contribution, and keeping these up to date. I know how frustrating it is to find out after the fact that kernel updates have broken your drivers, I've had the same experience with the nvidia drivers myself.

If you would like, you could add yourself as a maintainer to the package, and when we get a kernel update you'll get an email when the package fails. Then you woudl know before you try and upgrade, and give you a chance to patch it sooner. This would be a huge help if you're willing.

Thank you for the patch!

@RonnyPfannschmidt
Copy link
Contributor

its very unfortunate, but i fear #19841 makes this one invalid

@jerith666
Copy link
Contributor Author

I think kernel 4.8, 4.9, etc. will maintain the same API changes that broken with the 4.7 release, though, no? We are doing versionAtLeast, after all. :) (The thing that might make this invalid would be a new ati-drivers release.)

That said, I haven't tested with kernel 4.8. I can do that if you'd like before merging.

@grahamc
Copy link
Member

grahamc commented Nov 8, 2016

Hey @jerith666, sorry for being behind on this. If you could test it with 4.8 (if you'd go so far as building your system and booting to it, that would be ideal) I'd merge it ASAP.

@jerith666
Copy link
Contributor Author

Sorry, I'm behind on it too! I actually did pick it back up last night and got so far as to build it successfully with kernel 4.8, but I haven't booted it yet. Hoping to do that tonight (while waiting for election returns to roll in ... 😄 ).

@jerith666
Copy link
Contributor Author

I can now confirm that this works with kernel 4.8.4 in recent nixos-unstable @ fa4167c. StarCraft II & minecraft are both working.

@fpletz fpletz changed the title patch ati-drivers for kernel 4.7 linuxPackages.ati_drivers_x11: patch for kernel 4.7+ Nov 28, 2016
@fpletz fpletz merged commit f0bdca8 into NixOS:master Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants