freebsd-ports/Mk
Bryan Drewery 1045299f41 - make fetch/checksum: If a fetched file does not match the expected size,
delete it and try the next site, if there is one to try.

  Normally fetch(1) will detect that the size is wrong, fail, and the 'fetch'
  target will move on to the next site:

  => Attempting to fetch http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-r9723.tar.gz
  fetch: http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-r9723.tar.gz: size mismatch: expected 155321, actual 163319
  => Attempting to fetch http://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/sunpoet/agedu-r9723.tar.gz
  agedu-r9723.tar.gz                            100% of  151 kB  259 kBps

  However, if the remote server does not properly advertise the size of the file,
  fetch(1) will still download the file, and succeed. The 'fetch' target then
  stops, assuming it has a proper file. This is returned to 'checksum', which fails,
  and then tries a refetch, but on the same broken site. In this example, the size
  is expected to be 214984, but a 4830 size is fetched and checksummed.

  => Attempting to fetch http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz
  fetch: http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz: size unknown
  fetch: http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz: size of remote file is not known
  picpuz-2.1.1.tar.gz                                   4830  B   48 kBps
  ===> Fetching all distfiles required by picpuz-2.1.1_5 for building
  => SHA256 Checksum mismatch for picpuz-2.1.1.tar.gz.

  Now the 'fetch' target will verify the size is proper before returning to
  'checksum':

  => Attempting to fetch http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz
  fetch: http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz: size unknown
  fetch: http://kornelix.squarespace.com/storage/downloads/picpuz-2.1.1.tar.gz: size of remote file is not known
  picpuz-2.1.1.tar.gz                                   4830  B  130 kBps
  => Fetched file size mismatch (expected 214984 actual 4830)
  => Trying next site
  => Attempting to fetch http://www.stasyan.com/devel/distfiles/picpuz-2.1.1.tar.gz
  picpuz-2.1.1.tar.gz                           100% of  209 kB   20 kBps 00m00s
  ===> Fetching all distfiles required by picpuz-2.1.1_5 for building
  => SHA256 Checksum OK for picpuz-2.1.1.tar.gz.

Reviewed by:	bapt
With hat:	portmgr
2013-08-31 13:22:01 +00:00
..
Uses Fix grammar in comment 2013-08-25 16:38:15 +00:00
bsd.apache.mk - prepare for apache24 2013-03-26 21:31:27 +00:00
bsd.autotools.mk Document the LIBTOOLIZE_ARGS variable 2013-08-31 12:02:46 +00:00
bsd.commands.mk Define MAKE_CMD in post.mk to allow anything to overwrite it 2013-07-30 06:32:01 +00:00
bsd.cran.mk - Add Archive path to MASTER_SITES to fetch archived CRAN tar ball 2012-11-21 14:31:35 +00:00
bsd.database.mk Fix BUILD_DEPENDS line for devel/subversion builds with STATIC option. 2013-08-05 19:43:39 +00:00
bsd.destdir.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.drupal.mk - Remove CVS reference 2013-05-20 00:45:26 +00:00
bsd.efl.mk - Remove edb from valid evas loaders, since it's invalid for almost a year 2013-07-04 20:31:44 +00:00
bsd.emacs.mk GNU Emacs updates 2013-03-30 05:13:30 +00:00
bsd.fpc.mk - Remove CVS reference 2013-05-20 00:45:26 +00:00
bsd.gcc.mk Merge two loops and initialize _GCC_FOUND${v} and check whether USE_GCC 2013-03-29 11:26:14 +00:00
bsd.gecko.mk - update firefox to 23.0 2013-08-08 18:42:03 +00:00
bsd.gnome.mk The FreeBSD GNOME team presents a Glib and Gtk+ 3 update. 2013-07-31 11:57:45 +00:00
bsd.gnustep.mk Fix a copy-and-paste error and a reversed condition in bsd.gnustep.mk 2013-08-29 13:03:20 +00:00
bsd.gstreamer.mk Update to 1.0.9. 2013-08-21 11:24:07 +00:00
bsd.java.mk - Remove CVS reference 2013-05-20 00:45:26 +00:00
bsd.kde4.mk Update the KDE Software Compilation to 4.10.5. 2013-07-04 23:34:32 +00:00
bsd.ldap.mk bmake is quite strict with != make it really happy 2013-05-02 17:12:43 +00:00
bsd.licenses.db.mk - The APACHE license is specifically rejected by copyfree at: 2013-05-20 12:24:43 +00:00
bsd.licenses.mk - Set IGNORE if BATCH is set [1] 2012-06-26 15:27:54 +00:00
bsd.linux-apps.mk Remove support for QT 3.3 now that we have QT 4.5 2013-07-12 18:34:22 +00:00
bsd.linux-rpm.mk - Finish removal of support for Linux 2.4 in bsd.linux-apps.mk and 2013-05-30 09:11:52 +00:00
bsd.local.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.lua.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.ocaml.mk - Assign bsd.ruby.mk to ruby@ [1] 2011-12-15 19:47:53 +00:00
bsd.octave.mk - USE_GMAKE to USES=gmake. 2013-07-06 01:48:53 +00:00
bsd.openssl.mk Adjust the LDFLAGS from USE_NCURSES and USE_OPENSSL to fix build with clang: 2012-12-10 17:51:48 +00:00
bsd.options.desc.mk Arts was removed: 2013-08-28 18:29:38 +00:00
bsd.options.mk Document the new bsd.options.mk knobs. 2013-08-01 12:32:52 +00:00
bsd.pbi.mk - Fix bsd.pbi.mk being processed twice when including both 2013-03-11 00:51:39 +00:00
bsd.perl.mk - Sync comment with default PERL_VERSION 2013-08-22 17:09:46 +00:00
bsd.php.mk Welcome PHP 5.5! 2013-06-24 14:32:11 +00:00
bsd.pkgng.mk - Fix pkg2ng due to UID/ID not being defined. 2013-07-05 12:29:35 +00:00
bsd.port.mk - make fetch/checksum: If a fetched file does not match the expected size, 2013-08-31 13:22:01 +00:00
bsd.port.options.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Replicate r321735 fix to bsd.port.subdir.mk as it suffers the same bug 2013-06-25 12:34:12 +00:00
bsd.python.mk - document the PYTHON_VER variable for port Makefiles 2013-08-25 08:12:59 +00:00
bsd.qt.mk KDE3 and QT3 expired on 2013-07-01, remove these ports. 2013-07-26 19:19:20 +00:00
bsd.ruby.mk - Update to 1.9.3-p448 2013-07-11 20:07:33 +00:00
bsd.scons.mk - Remove emacs mode, -*- mode: ...; -*- [1] 2012-05-23 08:17:49 +00:00
bsd.sdl.mk Welcome SDL2 to the FreeBSD ports system! 2013-06-21 19:56:27 +00:00
bsd.sites.mk Remove dead sites from MASTER_SITE_PERL 2013-08-31 11:50:27 +00:00
bsd.tcl.mk - Switch default version of Tcl/Tk from 8.5 to 8.6 2013-05-21 08:59:02 +00:00
bsd.tex.mk - Update ls-R after fmtutil. 2013-06-08 11:48:04 +00:00
bsd.wx.mk Not supported upstream anymore, consider using more recent versions 2012-10-26 06:23:33 +00:00
bsd.xfce.mk - sysutils/garcon update to 0.2.1 2013-05-08 16:18:57 +00:00
bsd.xorg.mk The FreeBSD x11 team proudly presents 2013-05-25 14:37:02 +00:00