Conversation
d0f4b4b to
7011307
Compare
emilazy
left a comment
There was a problem hiding this comment.
Yeah this is fine. But also maybe let’s just unconditionally skip the demos? I’m really sceptical anyone cares about them and it bloats FFmpeg’s closure and it really does not seem worth it to do split outputs here.
I don’t think we need to patch SDL_CFLAGS etc.; we can just override them in makeFlags. Just patching install should suffice.
not offering the demos is valid. however, we need to patch away the SDL_CFLAGS because otherwise |
|
Can’t we just use |
7011307 to
0315706
Compare
0315706 to
eb72529
Compare
good call, i keep forgetting how cursed |
|
I originally packaged it for the demos, the library is just the supporting machinery for those. Although, it is true that qrtest is more useful than the camera integrations, and qrtest is installed in a way unaffected by this PR. Apparently ffmpeg has videofilter quirc, which tries to add QR-code content from the video to video metadata? No idea how to use that. |
|
@7c6f434c does this mean you actually use and maintain those demos? |
|
Nowadays I am no longer on the hook for handling large amount of 2D-coded paper documents, so fine with me to drop GUI demos. If you then try to also drop qrtest (no additional dependencies there), though, then remove me from maintainers. |
|
Oh i didn't ever plan on dropping qrtest - the whole point of this is drop the SDL1 dependency going into ffmpeg, because ffmpeg is important and SDL1 is crusty and old. There is absolutely no reason to drop something that doesn't pull deps. |
|
|
I am confused if there is work left to do here or not. LGTM and I would merge it. |
this depends on whether we go emilys route (drop the demos outright), in which case this is ready. Or we go my original route adding a |
Am I missing something? This should not be in ffmpeg, only ffmpeg-full. We don't really care about a little closure bloat in ffmpeg-full; that's the whole point. Dropping old crufty demos that rely on SDL1 seems like a good idea regardless though. |
|
Yeah, i only realized after opening the PR this didn't go into ffmpeg, only ffmpeg-full. So this is indeed less impact than i thought initially. |
|
This broke |
Can you run #389753 through a builder? This is a partial revert (which does keep the SDL drop), and should fix it. But i can't really test. |
the
quircpackage depends on SDL for some demos and a test of those demos.See upstream readme (demo) and upstream readme (test)
We already conditionally patched out the demos because they don't seem to build on darwin. It makes sense to provide a minimal package with basically only the lib output. The minimal package can get away without SDL dependencies pulled in to ffmpeg. ffmpeg is a core package, reducing the size of the derivation as well as reducing potentially vulnerable dependencies is a good thing.
I have not tested the impact of this.
ffmpeg-fullstill builds and no longer lists SDL1 as a dependency through quirc (it lists it through libvisual until #388447 hits repos). Putting this here mostly to track. I am not sure how to actually use and test this plugin through ffmpeg. Help is appreciated. But seeing as darwin didn't provide the demos anyways and still builds ffmpeg, this really should be fine.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.