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

raylib: Fix audio #243851

Merged
merged 1 commit into from
Jul 22, 2023
Merged

raylib: Fix audio #243851

merged 1 commit into from
Jul 22, 2023

Conversation

basile-henry
Copy link
Contributor

When upgrading from 4.2.0 to 4.5.0 in #243155 the audio fix was
removed. This fix didn't apply properly any more, because the cmake
build in 4.5.0 is producing shared objects with the wrong version in
the name.

The commit raysan5/raylib@0d4db7a
which fixes the versioning issue does not appear to have made it into
the 4.5.0 tag.

Removing the audio fix did actually makes the project compile, however
when running games built against raylib, no audio device was found.

Description of changes
  • Added patch to fix version of lib in cmake build
  • Restored the audio fix that was present in 4.2.0 that is still relevant
Things done

I have tested a few games in raylib-games to make sure the audio works on my machine (NixOS 23.05)

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 1-10 labels Jul 16, 2023
When upgrading from `4.2.0` to `4.5.0` in NixOS#243155 the audio fix was
removed. This fix didn't apply properly any more, because the `cmake`
build in `4.5.0` is producing shared objects with the wrong version in
the name.

The commit raysan5/raylib@0d4db7a
which fixes the versioning issue does not appear to have made it into
the `4.5.0` tag.

Removing the audio fix did actually makes the project compile, however
when running games built against `raylib`, no audio device was found.
@basile-henry
Copy link
Contributor Author

If you have the time, maybe @t4ccer or @drupol could review this PR? 😇

@basile-henry
Copy link
Contributor Author

Thanks! 😄

What are the next steps to get this merged? Wait for CI? And then someone with write access can merge it or is it automated?

@drupol
Copy link
Contributor

drupol commented Jul 21, 2023

I'll wait for the ci to be done and merge afterwards

@drupol drupol merged commit bc6d173 into NixOS:master Jul 22, 2023
7 of 8 checks passed
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 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants