1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
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
bsd.apache.mk
bsd.autotools.mk Document the LIBTOOLIZE_ARGS variable 2013-08-31 12:02:46 +00:00
bsd.commands.mk
bsd.cran.mk
bsd.database.mk
bsd.destdir.mk
bsd.drupal.mk
bsd.efl.mk
bsd.emacs.mk
bsd.fpc.mk
bsd.gcc.mk
bsd.gecko.mk
bsd.gnome.mk
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
bsd.java.mk
bsd.kde4.mk
bsd.ldap.mk
bsd.licenses.db.mk
bsd.licenses.mk
bsd.linux-apps.mk
bsd.linux-rpm.mk
bsd.local.mk
bsd.lua.mk
bsd.ocaml.mk
bsd.octave.mk
bsd.openssl.mk
bsd.options.desc.mk Arts was removed: 2013-08-28 18:29:38 +00:00
bsd.options.mk
bsd.pbi.mk
bsd.perl.mk
bsd.php.mk
bsd.pkgng.mk
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
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.python.mk
bsd.qt.mk
bsd.ruby.mk
bsd.scons.mk
bsd.sdl.mk
bsd.sites.mk Remove dead sites from MASTER_SITE_PERL 2013-08-31 11:50:27 +00:00
bsd.tcl.mk
bsd.tex.mk
bsd.wx.mk
bsd.xfce.mk
bsd.xorg.mk