bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] Re: [PATCH] Inetd and test scripts


From: Mats Erik Andersson
Subject: Re: [bug-inetutils] Re: [PATCH] Inetd and test scripts
Date: Thu, 4 Nov 2010 10:22:23 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]