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

ffmpeg + SDL #24658

Closed
vcunat opened this issue Apr 5, 2017 · 6 comments
Closed

ffmpeg + SDL #24658

vcunat opened this issue Apr 5, 2017 · 6 comments
Labels
0.kind: regression Something that worked before working no longer

Comments

@vcunat
Copy link
Member

vcunat commented Apr 5, 2017

ffmpeg-3.2 (I think) dropped support for version 1 of SDL. As a result, some stuff gets missing unexpectedly in our builds, e.g. ffplay in ffmpeg-full (which was just noticed on IRC).

Both 17.03 and unstable/master are affected.

@vcunat vcunat added the 0.kind: regression Something that worked before working no longer label Apr 5, 2017
@vcunat
Copy link
Member Author

vcunat commented Apr 5, 2017

/cc maintainers @codyopel, @Fuuzetsu.

@MP2E
Copy link

MP2E commented Apr 7, 2017

Partially fixed with PR #24698

the regular ffmpeg package will be a little bit trickier due to generic.nix

@codyopel
Copy link
Member

codyopel commented Apr 7, 2017

This is kinda ugly but is all that needs to be changed for SDL.

{ sdlSupport ? !stdenv.isArm, SDL, SDL2 }:
{
  buildInputs = optional sdlSupport (if minVer "3.2" then SDL2 else SDL);
  configureFlags = [
    (ifMinVer "2.5" (if ! minVer "3.2" && sdlSupport then "--enable-sdl" else null))
    (ifMinVer "3.2" (if sdlSupport then "--enable-sdl2" else null))
  ];
}

I partially scrapped this build and rewrote it a while back, if you look back in the commit history before we dropped support for older versions it should give you some ideas for a cleaner generic build. This build also merges ffmpeg and ffmpeg-full into a single derivation.
https://github.com/triton/triton/tree/master/pkgs/all-pkgs/f/ffmpeg as well as the overrides in all-packages.nix

MP2E pushed a commit to MP2E/nixpkgs that referenced this issue Apr 23, 2017
addresses issue NixOS#24658

special thanks to codyopel who suggested this solution!
@MP2E
Copy link

MP2E commented Apr 23, 2017

Apologies, got side-tracked with work. Thanks codyopel, this is very helpful! I have created a PR based off of your comment. I think that in the long run, unifying ffmpeg and ffmpeg-full is a good idea. For now though, my PR should fully address this issue

MP2E pushed a commit that referenced this issue Apr 30, 2017
addresses issue #24658

special thanks to codyopel who suggested this solution!
@MP2E
Copy link

MP2E commented Apr 30, 2017

Fixed as of dfd371d

@MP2E MP2E closed this as completed Apr 30, 2017
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/why-isnt-there-an-official-built-in-way-to-find-what-package-provides-a-specific-executable/22937/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: regression Something that worked before working no longer
Projects
None yet
Development

No branches or pull requests

4 participants