Skip to content
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

{SDL1, SDL_compat}: migrate to by-name #339311

Merged
merged 14 commits into from
Sep 5, 2024
Merged

Conversation

AndersonTorres
Copy link
Member

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@AndersonTorres
Copy link
Member Author

Related: #274836

@emilazy
Copy link
Member

emilazy commented Sep 3, 2024

I’d rather drop SDL1 in favour of the compatibility library than refactor it.

@peterhoeg
Copy link
Member

I’d rather drop SDL1 in favour of the compatibility library than refactor it.

I don't have any real numbers to back this up and my info is at least a year old, but there were problems in the past with SDL_compat breaking applications when swapping it in for SDL1. I don't know how big a problem it is and I appreciate that that number will continue to go down but for now, I am very much in favour of retaining both. That being said, we should absolutely try migrating as many as possible to SDL_compat.

@AndersonTorres
Copy link
Member Author

If you're having trouble, ping @NixOS/nixpkgs-vet

I do not even know what is happening here...

@AndersonTorres AndersonTorres marked this pull request as draft September 4, 2024 15:02
- finalAttrs design pattern
- get rid of nested with in meta
And green-alias both SDL1 and SDL_classic to it.
@AndersonTorres
Copy link
Member Author

By running it locally, SDL_compat zero-rebuilds.
Given that this PR is mass-rebuilding, I will try to split it.

@AndersonTorres
Copy link
Member Author

AndersonTorres commented Sep 4, 2024

Hey!
Why giving name s for the patches caused mass rebuilds?

@philiptaron
Copy link
Contributor

philiptaron commented Sep 4, 2024

Hey! Why giving name s for the patches caused mass rebuilds?

nix-diff will tell you. That being said, it's not so bad to target staging and call it a day if you like the change you've made in the PR.

@AndersonTorres
Copy link
Member Author

Since @pbsds is dealing with the SDL1 "upgrade" (basically, packaging HEAD) at #274836, doing this particular cleanup is not worth the hassle.

@AndersonTorres AndersonTorres marked this pull request as ready for review September 4, 2024 22:54
@philiptaron philiptaron merged commit 0223e69 into NixOS:master Sep 5, 2024
28 of 30 checks passed
@AndersonTorres AndersonTorres deleted the rework-sdl branch September 5, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants