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

mpv: we package waf, no reason to inline it #24790

Closed
wants to merge 1 commit into from

Conversation

peterhoeg
Copy link
Member

@peterhoeg peterhoeg commented Apr 10, 2017

Motivation for this change

@aszlig, you inlined this ages ago (fdd9d13), but it seems to work fine with the one we carry in nixpkgs.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @AndersonTorres, @rnhmjoj and @fpletz to be potential reviewers.

@FRidh
Copy link
Member

FRidh commented Apr 10, 2017

Typically waf is included in the distribution of the package that uses it. Is this package an exception?

@peterhoeg
Copy link
Member Author

mpv will try to download waf and then run it, which obviously doesn't work for us. The workaround introduced was to have nix pull it down instead, but as it is already available in nixpkgs, we might as well just use that.

@AndersonTorres
Copy link
Member

AndersonTorres commented Apr 10, 2017

mpv is a special case.
It doesn't embed waf inside sources as the other softwares usually do, but it actively downloads and checksum-verifies a particular waf version instead.
Also, waf's original developer doesn't think waf is made to be a system-wide application to be packaged, as we traditionaly do with Autotools or CMake. His point of view is waf is a build script, included as part of the source code bundle of every particular project which uses it [1].

I think our approach is currently the best we can do in due respect to the original developers - mpv and waf (and nixpkgs of course :))

1 - https://groups.google.com/forum/#!msg/waf-users/iK01e_K_WfQ/6n7AVlthYXIJ (see the last lines, the answer to 4th point)

@peterhoeg
Copy link
Member Author

So all other packages except for pflask embed waf.

So just because we can use the version in nixpkgs to build mpv doesn't mean it will continue to be the case of course. I'm still in favour of just using the version we have as it makes mpv simpler (not by much admittedly).

Any thoughts from the maintainer, @aszlig ?

@aszlig
Copy link
Member

aszlig commented Apr 10, 2017

@peterhoeg: I've just removed the attribute from buildInputs to prevent setup hooks being run, causing a build failure. Also, I'm not a maintainer of mpv, but from the URL @AndersonTorres provided above, I'd probably leave it as it is, because while it may save a few lines of Nix code, it might break mpv as soon as the waf package in <nixpkgs> is updated.

@peterhoeg
Copy link
Member Author

Guys, sorry about the maintainer confusion y'day. Let's leave as is to avoid problems.

@peterhoeg peterhoeg closed this Apr 11, 2017
@peterhoeg peterhoeg deleted the f/mpv branch April 11, 2017 00:19
@peterhoeg peterhoeg restored the f/mpv branch April 11, 2017 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants