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

Gzdoom: Add mpg123 to RPATH #93329

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

Derpford
Copy link
Contributor

Motivation for this change

Due to the removal of fmod, gzdoom's mp3 handling has been somewhat broken, and loading a .wad or .pk3 that has an mp3 in it can cause crashes. This change prevents the crash by adding mpg123's location to gzdoom's RPATH, ensuring that gzdoom doesn't panic when it can't find it in all the other places it looks (apparently it was checking everywhere from openAL's folder to SDL2's folder, but not in mpg123's own folder).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Derpford and others added 8 commits July 16, 2020 17:20
Update fork to latest nixpkgs master
Gzdoom apparently doesn't add mpg123's path to its RPATH properly when built. This patchelf call should fix it.
postInstall won't have a ${gzdoom} when it's inside the gzdoom derivation.
@Lassulus
Copy link
Member

not sure if patchelfing a binary we build our self is the right approach? Isn't there some way to configure the searchpath?

@Derpford
Copy link
Contributor Author

Derpford commented Jul 25, 2020 via email

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

Please squash the commits.

@stale
Copy link

stale bot commented Jun 2, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2021
@Artturin Artturin marked this pull request as draft March 3, 2023 19:02
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 3, 2023
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
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.

None yet

4 participants