torsdag den 4 november 2010 klockan 00:09 skrev Ludovic Courtès detta: > Hello, > > > > +# Check that the port is still available > > > +netstat -na | grep -q "^$PROTO .*$PORT " > > > +if test $? -eq 0; then > > > + echo "Desired port $PORT/$PROTO is already in use." > > > + exit 1 > > > +fi > > > > This breaks because ???netstat??? may not be in $PATH; in particular, it > > breaks the Hydra builder: <http://hydra.nixos.org/build/727555>. > > > > Why is netstat not in PATH? > > Why would it be? :-) > > Only dependencies explicitly specify appear in $PATH in Nix(OS) > builders.
What about "grep", "egrep", "sed", possibly "awk"? In a second patch I incorporated a statement PATH=/bin:/usr/bin/:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin Would this be sufficient? Regards, Mats E A
