[Nix-dev] Making stdenv/setup.sh more verbose

Peter Simons simons at cryp.to
Sat Jan 21 15:16:16 CET 2012


Hi guys,

 > I’m pretty sure it would break stdenv bootstrapping on non-GNU
 > systems, where mkdir & co. don’t support ‘-v’.

yes, indeed. Generally, I am in favor of running cp and mkdir verbosely,
but the -v option isn't portable, so depending on it in code that's run
during bootstrap would be a really bad idea. Maybe the patch should be
modified so that it defines

  alias mkdir="\mkdir -v"
  alias cp="\cp -v"

during initialization if some DEBUG'ish kind of variable is set?

Take care,
Peter



More information about the nix-dev mailing list