On Wed, Apr 25, 2012 at 10:48 PM, Jan Stary <h...@stare.cz> wrote: > On Apr 25 23:34:24, Alan Corey wrote: >> I've seen this before, I wonder if there's some environment variable >> I can set to stop it? >> >> I try make fetch on a port, it fails due to a bad site. I hit >> Ctrl-C to stop it, it goes to the next site and downloads the file. >> Then it deletes the file when it finishes. > > I can confirm this happens; for example, audio/sox:
as pointed out by Alexander Hall it is make doing this because before the target is build, the process is aborted: $ cat > touch_tmp_testdottxt.sh #!/bin/sh set -x touch /tmp/test.txt # sleep 5 second allow for ^C echo sleeping for 5 second. go ahead and control-C out of make sleep 5 echo done! $ cat > Makefile test.txt: /bin/sh touch_tmp_testdottxt.sh $ make -n /bin/sh touch_tmp_testdottxt.sh $ make /bin/sh touch_tmp_testdottxt.sh + touch /tmp/test.txt + echo sleeping for 5 second. go ahead and control-C out of make sleeping for 5 second. go ahead and control-C out of make + sleep 5 ^C*** test.txt removed HTH, --patrick > # make fetch > ===> Checking files for sox-14.4.0p1 >>> Fetch http://downloads.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C http fetch aborted. >>> Fetch http://easynews.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://puzzle.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://optusnet.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ftp: Error retrieving file: 404 Not Found >>> Fetch http://heanet.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://jaist.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C http fetch aborted. >>> Fetch http://nchc.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://switch.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://kent.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://internap.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ftp: no address associated with name: internap.dl.sourceforge.net >>> Fetch http://mesh.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://ovh.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://surfnet.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://ufpr.dl.sourceforge.net/sourceforge/sox/sox-14.4.0.tar.gz > ^C>> Fetch http://ftp.openbsd.org/pub/OpenBSD/distfiles//sox-14.4.0.tar.gz > sox-14.4.0.tar.gz 100% |********************************| 1079 KB 00:03 > *** /usr/ports/distfiles/sox-14.4.0.tar.gz removed