NetBSD Problem Report #39896

From www@NetBSD.org  Tue Nov 11 17:45:14 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id D665A63B8A9
	for <gnats-bugs@gnats.netbsd.org>; Tue, 11 Nov 2008 17:45:14 +0000 (UTC)
Message-Id: <20081111174514.A5DAE63B898@narn.NetBSD.org>
Date: Tue, 11 Nov 2008 17:45:14 +0000 (UTC)
From: erich.enke@gmail.com
Reply-To: erich.enke@gmail.com
To: gnats-bugs@NetBSD.org
Subject: 2008Q3 htmllint: Failed downloads.  Japanese version?
X-Send-Pr-Version: www-1.0

>Number:         39896
>Category:       pkg
>Synopsis:       2008Q3 htmllint: Failed downloads.  Japanese version?
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 11 17:50:00 +0000 2008
>Closed-Date:    Sat Feb 16 07:33:21 +0000 2013
>Last-Modified:  Sat Feb 16 07:35:03 +0000 2013
>Originator:     Erich Enke
>Release:        5.0_BETA
>Organization:
>Environment:
NetBSD ansible 5.0_BETA NetBSD 5.0_BETA (GENERIC) #0: Sun Nov  9 10:27:24 PST 2008  epte@ansible:/usr/build/obj/sys/arch/i386/compile/GENERIC i386
>Description:
I can't get it to do it now, but before, it would download the htmllint distfile completely from a .jp server, complain it was the wrong size, and fail out.  Now, having removed the distfile and make cleaned, I'm trying to install it again, but now I'm stuck in IPv6 land.  Having only started using NetBSD again after a long hiatus, I'm still searching for how to turn off this IPv6 in pkgsrc and to use the conventional IPv4 until I'm ready to switch it myself.  I'm guessing I have an intermediate router than can't handle IPv6.  I can successfully ping google with IPv4.  Example output from IPv6:

# make install | tee log
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Fetching htmllint.zip
=> Downloaded size:        0 bytes
=> Total size: 705521 bytes
fetch: Unable to verify fetched file htmllint.zip
ftp: Can't connect to `2001:708:10:9::20:1:21': No route to host
fetch: Unable to fetch expected file htmllint.zip
ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:21': No route to host
fetch: Unable to verify fetched file htmllint.zip
ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:80': No route to host
  (restarting at 726362fetch: Unable to verify fetched file htmllint.zip
ftp: Can't connect to `2001:6c8:6:4::7:21': No route to host
ftp: Can't connect to `2001:4f8:0:2::e:21': No route to host
No such directory.
fetch: Unable to fetch expected file htmllint.zip
*** Error code 1

So I manually downloaded ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/htmllint-20051019/htmllint.zip

make install then was able to complete.  However, upon doing htmllint --help, I got output that was in some sort of different encoding.  A snippet appears below:

    -igndoctype   : HTML  DOCTYPE ̵뀹롣
    -usedoctype   : HTML  DOCTYPE ̵뀷ʀ(*)
    -igncharset   : CHARSET λȥɀΰ̵뀹롣
    -usecharset   : CHARSET λȥɀΰ̵뀷ʀ(*)
    -local        : HTML ΥեλȀĀ롣(*)
    -nolocal      : HTML ΥեλȀػ߀롣
    -after <date> : ʹ߀Υե΀ߥå롣
                     <date> = YYYY-MM-DD-hh-mm-ss (ڀǀաހǀDz)
                            = @file (ΥեΥॹ׀)
    -r <dir>      : §եΥǥ쥯ȥꀹ롣
                    ꀬʀ htmllint ƱȀ߀ʀ롣

I tried a variety of different encodings in Konsole.  I tried it on the console on ttyE0.  Similar encoding confusion.  Likewise, I tried viewing /usr/pkg/share/httpd/httpdoc/htmlint/index.html.  The parts that did render seemed to be in Japanese.
>How-To-Repeat:
cd /usr/pkgsrc/www/htmllint
make install
(fails)

go get ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/htmllint-20051019/htmllint.zip

make install
htmllint --help
(encoding strangeness)
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: erich.enke@gmail.com
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads.  Japanese version?
Date: Fri, 14 Nov 2008 12:36:03 -0600 (CST)

 On Tue, 11 Nov 2008, erich.enke@gmail.com wrote:

 > I can't get it to do it now, but before, it would download the htmllint 
 > distfile completely from a .jp server, complain it was the wrong size, 
 > and fail out.  Now, having removed the distfile and make cleaned, I'm 
 > trying to install it again, but now I'm stuck in IPv6 land.  Having only 
 > started using NetBSD again after a long hiatus, I'm still searching for 
 > how to turn off this IPv6 in pkgsrc and to use the conventional IPv4 
 > until I'm ready to switch it myself.  I'm guessing I have an 
 > intermediate router than can't handle IPv6.  I can successfully ping 
 > google with IPv4.  Example output from IPv6:
 > 
 > # make install | tee log
 > => Bootstrap dependency digest>=20010302: found digest-20080510
 > => Fetching htmllint.zip
 > => Downloaded size:        0 bytes
 > => Total size: 705521 bytes
 > fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:708:10:9::20:1:21': No route to host
 > fetch: Unable to fetch expected file htmllint.zip
 > ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:21': No route to host
 > fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:80': No route to host
 >   (restarting at 726362fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:6c8:6:4::7:21': No route to host
 > ftp: Can't connect to `2001:4f8:0:2::e:21': No route to host

 You can ignore the IPv6 warnings.

 > No such directory.

 That sounds like the IPv4 worked, but the file doesn't exist.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads.  Japanese version?
Date: Sat, 15 Nov 2008 18:40:21 +0900

 On Wed, 12 Nov 2008 02:50:00 +0900, <erich.enke@gmail.com> wrote:

 > # make install | tee log
 > => Bootstrap dependency digest>=20010302: found digest-20080510
 > => Fetching htmllint.zip
 > => Downloaded size:        0 bytes
 > => Total size: 705521 bytes
 > fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:708:10:9::20:1:21': No route to host
 > fetch: Unable to fetch expected file htmllint.zip
 > ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:21': No route to host
 > fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:80': No route to host
 >   (restarting at 726362fetch: Unable to verify fetched file htmllint.zip
 > ftp: Can't connect to `2001:6c8:6:4::7:21': No route to host
 > ftp: Can't connect to `2001:4f8:0:2::e:21': No route to host
 > No such directory.
 > fetch: Unable to fetch expected file htmllint.zip
 > *** Error code 1

 Where MASTER_SITE_BACKUP point to on your environment?

 > make install then was able to complete.  However, upon doing htmllint --help, I got output that was in some sort of different encoding.  A snippet appears below:
 (snip)
 > I tried a variety of different encodings in Konsole.  I tried it on the console on ttyE0.  Similar encoding confusion.  Likewise, I tried viewing /usr/pkg/share/httpd/httpdoc/htmlint/index.html.  The parts that did render seemed to be in Japanese.

 www/htmllint is known as "Another HTML-lint", it only support Japanese messages (EUC-JP encoding).
 Support of English messages is noted in TODO, but no plan.

From: "Erich Enke" <erich.enke@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Sat, 15 Nov 2008 09:33:18 -0800

 I couldn't find anything on the netbsd site or in the archives that
 would tell me whether simply replying to this email will get it to the
 right place in the gnats system.  Hope this works...

 >  Where MASTER_SITE_BACKUP point to on your environment?

 # cd /usr/pkgsrc/www/htmllint
 # make -V MASTER_SITE_BACKUP
 ftp://ftp.fi.NetBSD.org/pub/NetBSD/packages/distfiles/
 ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
 http://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/
 ftp://ftp.FreeBSD.org/pub/FreeBSD/distfiles/

 I just tried doing a make again.  This time ftp.NetBSD.org got
 queried.  Before, I had all IPv6 not found, and it didn't rotate off
 of those servers.  It was stuck in IPv6 land.  Now it seems to be
 rotating servers when I do a make.  Maybe the /dev/dice didn't favor
 me.

 I'll append the output of the attempted fetch.

 >  www/htmllint is known as "Another HTML-lint", it only support Japanese messages (EUC-JP encoding).
 >  Support of English messages is noted in TODO, but no plan.

 AH.  That explains that.  Thank you for clearing that up.

 Here's the fetch output:

 # rm ../../distfiles/htmllint-20051019/htmllint.zip.pkgsrc.resume
 # make
 => Bootstrap dependency digest>=20010302: found digest-20080510
 => Fetching htmllint.zip
 => Downloaded size:        0 bytes
 => Total size: 705521 bytes
 Requesting http://openlab.ring.gr.jp/k16/htmllint/archives/htmllint.zip
 100% |***********************************|   709 KiB  104.48 KiB/s    00:00 ETA
 726362 bytes retrieved in 00:06 (104.47 KiB/s)
 fetch: Unable to verify fetched file htmllint.zip
 Trying 2001:708:10:9::20:1:21 ...
 ftp: Can't connect to `2001:708:10:9::20:1:21': No route to host
 Trying 193.166.3.2:21 ...
 Connected to ftp.funet.fi.
 220---------- Welcome to Pure-FTPd [privsep] ----------
 220-You are user number 478 of 1000 allowed.
 220-Local time is now 19:30. Server port: 21.
 220-Only anonymous FTP is allowed here
 220-IPv6 connections are also welcome on this server.
 220 You will be disconnected after 30 minutes of inactivity.
 331-Welcome to the FUNET anonymous ftp archive
 331-
 331-
 331-FTP.FUNET.FI is a service of the Finnish Academic and Research Network
 331-FUNET, and is located at CSC,the Finnish IT center for science,
 331-in Keilaranta 14, Espoo, Finland
 331-
 331-The main server is a Primepower 450 from Fujitsu-Siemens Computers.
 331-It has four SPARC64 V processors and 16 Gigabytes of memory
 331-Main storage is a fully redundant EMC Fibrecat CX300
 331-fiber channel RAID array currently with over 8TB of space for public files.
 331-We have a dedicated 1Gbit/s connection to Funet which in turn connects
 331-with 10Gbit/s to NORDUnet, Geant and Internet2.
 331-
 331-This archive is also available over the IPv6 network via ftp.ipv6.funet.fi
 331-WWW-browser users can also try http://www.nic.funet.fi/pub/
 331-
 331-See the README file for more information about this archive.
 331-
 331-All anonymous FTP transactions will be logged for possible later analysis
 331-and statistics.  If you don't like this policy, please disconnect now!
 331-
 331-Please mail to problems@nic.funet.fi in case of problems
 331-
 331-Monday 15-19 finnish time is the regular Funet service window
 331-We may have service breaks earlier on Mondays or some other days
 if necessary
 331 Any password will work
 230 Any password will work
 Remote system type is UNIX.
 Using binary mode to transfer files.
 200 TYPE is now 8-bit binary
 250 OK. Current directory is /pub
 250-EXPORT NOTICE
 250-
 250-Please note that portions of this FTP site contain cryptographic
 250-software controlled under the Export Administration Regulations (EAR).
 250-
 250-None of this software may be downloaded or otherwise exported or
 250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
 250-Sudan, North Korea, Syria or any other country to which the U.S. has
 250-embargoed goods.
 250-
 250-By downloading or using said software, you are agreeing to the
 250-foregoing and you are representing and warranting that you are not
 250-located in, under the control of, or a national or resident of any
 250-such country or on any such list.
 250 OK. Current directory is /.m/mirrors5/ftp.netbsd.org/pub/NetBSD
 250 OK. Current directory is /.m/mirrors5/ftp.netbsd.org/pub/NetBSD/packages
 250 OK. Current directory is
 /.m/mirrors5/ftp.netbsd.org/pub/NetBSD/packages/distfiles
 250 OK. Current directory is
 /.m/mirrors5/ftp.netbsd.org/pub/NetBSD/packages/distfiles/htmllint-20051019
 local: htmllint.zip.pkgsrc.resume remote: htmllint.zip
 227 Entering Passive Mode (193,166,3,2,225,223)
 350 Restarting at 726362
 451-Restart offset 726362 is too large for file size 705521.
 451 Restart offset reset to 0
 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
 221 Logout.
 fetch: Unable to fetch expected file htmllint.zip
 Trying 2001:4f8:4:7:230:48ff:fe31:43f2:21 ...
 ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:21': No route to host
 Trying 204.152.190.13:21 ...
 Connected to ftp.NetBSD.org.
 220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20080913) ready.
 331 Guest login ok, type your name as password.
 230-
     The NetBSD Project FTP Server located in Redwood City, CA, USA
     100 Mbps connectivity courtesy of                        ,        ,
     Internet Systems Consortium                 WELCOME!    /(        )`
                                                             \ \___   / |
       +--- Currently Supported Platforms ----+              /- _  `-/  '
       |  acorn[26,32], algor, alpha, amd64,  |             (/\/ \ \   /\
       |   amiga[,ppc], arc, atari, bebox,    |             / /   | `    \
       |   cats, cesfic, cobalt, dreamcast,   |             O O   ) /    |
       |  evb[arm,mips,ppc,sh3], hp[300,700], |             `-^--'`<     '
       |       hpc[arm,mips,sh], i386,        |            (_.)  _  )   /
       |      ibmnws, iyonix, luna68k,        |              .___/`    /
       |    mac[m68k,ppc], mipsco, mmeye,     |               `-----' /
       |      mvme[m68k,ppc], netwinders,     |  <----.     __ / __   \
       |   news[m68k,mips], next68k, ofppc,   |  <----|====O)))==) \) /====
       | playstation2, pmax, prep, sandpoint, |  <----'    `--' `.__,' \
       |  sbmips, sgimips, shark, sparc[,64], |               |        |
       |      sun[2,3], vax, x68k, xen        |                \       /
       +--------------------------------------+           ______( (_  / \_____
       See our website at http://www.NetBSD.org/        ,'  ,-----'   |       \
        We log all FTP transfers and commands.          `--{__________)  (FL) \/
 230-
     EXPORT NOTICE

     Please note that portions of this FTP site contain cryptographic
     software controlled under the Export Administration Regulations (EAR).

     None of this software may be downloaded or otherwise exported or
     re-exported into (or to a national or resident of) Cuba, Iran, Libya,
     Sudan, North Korea, Syria or any other country to which the U.S. has
     embargoed goods.

     By downloading or using said software, you are agreeing to the
     foregoing and you are representing and warranting that you are not
     located in, under the control of, or a national or resident of any
     such country or on any such list.
 230 Guest login ok, access restrictions apply.
 Remote system type is UNIX.
 Using binary mode to transfer files.
 200 Type set to I.
 250 CWD command successful.
 250-
     EXPORT NOTICE

     Please note that portions of this FTP site contain cryptographic
     software controlled under the Export Administration Regulations (EAR).

     None of this software may be downloaded or otherwise exported or
     re-exported into (or to a national or resident of) Cuba, Iran, Libya,
     Sudan, North Korea, Syria or any other country to which the U.S. has
     embargoed goods.

     By downloading or using said software, you are agreeing to the
     foregoing and you are representing and warranting that you are not
     located in, under the control of, or a national or resident of any
     such country or on any such list.
 250-
     Please read the file README
       it was last modified on Sat Nov  1 12:45:49 2008 - 14 days ago
     Please read the file README.export-control
       it was last modified on Thu Apr  5 15:05:11 2007 - 590 days ago
     Please read the file README.sup
       it was last modified on Mon Oct 13 12:39:44 2008 - 33 days ago
 250 CWD command successful.
 250 CWD command successful.
 250 CWD command successful.
 250 CWD command successful.
 local: htmllint.zip.pkgsrc.resume remote: htmllint.zip
 229 Entering Extended Passive Mode (|||52373|)
 350 Restarting at 726362. Send STORE or RETRIEVE to initiate transfer.
 150 Opening BINARY mode data connection for 'htmllint.zip' (705521 bytes).
 100% |***********************************|   709 KiB    0.00 KiB/s    --:-- ETA
 426 Data connection: Invalid argument.
 221-
     Data traffic for this session was 0 bytes in 1 file.
     Total traffic for this session was 4556 bytes in 1 transfer.
 221 Thank you for using the FTP service on ftp.NetBSD.org.
 fetch: Unable to verify fetched file htmllint.zip
 Trying 2001:4f8:4:7:230:48ff:fe31:43f2:80 ...
 ftp: Can't connect to `2001:4f8:4:7:230:48ff:fe31:43f2:80': No route to host
 Trying 204.152.190.13:80 ...
 Requesting http://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/htmllint-20051019/htmllint.zip
   (restarting at 726362)
 already done
 fetch: Unable to verify fetched file htmllint.zip
 Trying 2001:6c8:6:4::7:21 ...
 ftp: Can't connect to `2001:6c8:6:4::7:21': No route to host
 Trying 2001:4f8:0:2::e:21 ...
 ftp: Can't connect to `2001:4f8:0:2::e:21': No route to host
 Trying 62.243.72.50:21 ...
 Connected to ftp.FreeBSD.org.
 220 ftp.FreeBSD.org NcFTPd Server (licensed copy) ready.
 331 Guest login ok, send your complete e-mail address as password.
 230-You are user #106 of 800 simultaneous users allowed.
 230-
 230 Logged in anonymously.
 Remote system type is UNIX.
 Using binary mode to transfer files.
 200 Type okay.
 250 "/pub" is new cwd.
 250-"/pub/FreeBSD" is new cwd.
 250-
 250-If you're looking for one of the FreeBSD releases, please look in the
 250-releases/${ARCH}/${RELNAME} directory, where ARCH = "alpha", "amd64",
 250-"i386", "ia64", "pc98", or "sparc64" and RELNAME = the release
 250-you're interested in, e.g. "6.1-RELEASE" or "5.5-RELEASE".
 250-
 250
 250 "/pub/FreeBSD/ports/distfiles" is new cwd.
 550 No such directory.
 221 Goodbye.
 fetch: Unable to fetch expected file htmllint.zip
 *** Error code 1

 Stop.
 make: stopped in /usr/pkgsrc/www/htmllint

From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Sun, 16 Nov 2008 02:37:58 +0900 (JST)

 In message <da6d98c10811150933x60b3621bg42423fb8827413dc@mail.gmail.com>
 	on Sat, 15 Nov 2008 09:33:18 -0800,
 	"Erich Enke" <erich.enke@gmail.com> wrote:
 > # rm ../../distfiles/htmllint-20051019/htmllint.zip.pkgsrc.resume
 > # make
 > => Bootstrap dependency digest>=20010302: found digest-20080510
 > => Fetching htmllint.zip
 > => Downloaded size:        0 bytes
 > => Total size: 705521 bytes
 > Requesting http://openlab.ring.gr.jp/k16/htmllint/archives/htmllint.zip
 > 100% |***********************************|   709 KiB  104.48 KiB/s    00:00 ETA
 > 726362 bytes retrieved in 00:06 (104.47 KiB/s)
 It seems that this is newer version of htmllint and it should be
 updated as htmllint-20080926 though I don't check its contents yet.

 -- 
 Takahiro Kambe <taca@back-street.net>

From: "Erich Enke" <erich.enke@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Sat, 15 Nov 2008 09:52:36 -0800

 >  > Requesting http://openlab.ring.gr.jp/k16/htmllint/archives/htmllint.zip
 >  > 100% |***********************************|   709 KiB  104.48 KiB/s    00:00 ETA
 >  > 726362 bytes retrieved in 00:06 (104.47 KiB/s)
 >  It seems that this is newer version of htmllint and it should be
 >  updated as htmllint-20080926 though I don't check its contents yet.

 But what's this about, on the ftp.netbsd.org site?

 150 Opening BINARY mode data connection for 'htmllint.zip' (705521 bytes).
 100% |***********************************|   709 KiB    0.00 KiB/s    --:-- ETA
 426 Data connection: Invalid argument.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Mon, 17 Nov 2008 20:46:55 +0900

 OK, you have PKG_RESUME_TRANSFERS=YES, doesn't it?

 1. fetch htmllint.zip from MASTER_SITES as htmllint.zip.pkgsrc.resume
 2. newer distfile than expected, failed to verify
 3. switch to to the next site, from MASTER_SITE_BACKUP
 4. try to resume fetch using broken htmllint.zip.pkgsrc.resume....

 Following patch should fixes this problem, but remain one cloud,
 is there a fetch command, fetch is uncompleted, but exit code is 0?

 Index: mk/fetch/fetch
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/fetch/fetch,v
 retrieving revision 1.10
 diff -u -r1.10 fetch
 --- mk/fetch/fetch	15 Sep 2008 21:07:46 -0000	1.10
 +++ mk/fetch/fetch	17 Nov 2008 11:45:24 -0000
 @@ -280,6 +280,7 @@
  		if ${TEST} -f $path; then
  			${CP} -f $path $outputpath
  		else
 +			${RM} -f $outputpath
  			${TOUCH} $outputpath
  		fi
  	fi
 Index: mk/fetch/fetch.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/fetch/fetch.mk,v
 retrieving revision 1.37
 diff -u -r1.37 fetch.mk
 --- mk/fetch/fetch.mk	8 Oct 2008 15:39:07 -0000	1.37
 +++ mk/fetch/fetch.mk	17 Nov 2008 11:45:24 -0000
 @@ -226,6 +226,7 @@
  			FETCH_RESUME_ARGS=${FETCH_RESUME_ARGS:Q}	\
  			FETCH_OUTPUT_ARGS=${FETCH_OUTPUT_ARGS:Q}	\
  			MKDIR=${TOOLS_MKDIR:Q} MV=${TOOLS_MV:Q}		\
 +			RM=${TOOLS_RM:Q}				\
  			TEST=${TOOLS_TEST:Q} TOUCH=${TOOLS_TOUCH:Q}	\
  			WC=${TOOLS_WC:Q}				\
  		${SH} ${PKGSRCDIR}/mk/fetch/fetch

From: "Erich Enke" <erich.enke@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39896: 2008Q3 htmllint: Failed downloads. Japanese version?
Date: Mon, 17 Nov 2008 08:11:58 -0800

 >  OK, you have PKG_RESUME_TRANSFERS=YES, doesn't it?

 Yes.  From the output above, that's why I included the part where I
 deleted the resume file:

 # rm ../../distfiles/htmllint-20051019/htmllint.zip.pkgsrc.resume
 # make
 => Bootstrap dependency digest>=20010302: found digest-20080510
 => Fetching htmllint.zip
 => Downloaded size:        0 bytes
 => Total size: 705521 bytes
 Requesting http://openlab.ring.gr.jp/k16/htmllint/archives/htmllint.zip
 100% |***********************************|   709 KiB  104.48 KiB/s    00:00 ETA
 726362 bytes retrieved in 00:06 (104.47 KiB/s)
 fetch: Unable to verify fetched file htmllint.zip

 The "unable to verify" is coming from a clean fetch.  The
 ftp.netbsd.org "Data connection: invalid argument" might be related to
 PKG_RESUME_TRANSFERS=YES, but the first one from openlab.ring.gr.jp
 cannot be, I don't think.

 I'll give the patch a try, and also try it without resuming transfers
 when I get a chance today or tomorrow.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 16 Feb 2013 07:33:21 +0000
State-Changed-Why:
commited proposed patch and if fix the issue.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39896 CVS commit: pkgsrc/mk/fetch
Date: Sat, 16 Feb 2013 07:32:29 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sat Feb 16 07:32:29 UTC 2013

 Modified Files:
 	pkgsrc/mk/fetch: fetch fetch.mk

 Log Message:
 Remove fetched file if fetch command succeeds to fetch but checksum mismatch
 with PKG_RESUME_TRANSFERS=YES.

 PR 39896.


 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 pkgsrc/mk/fetch/fetch
 cvs rdiff -u -r1.59 -r1.60 pkgsrc/mk/fetch/fetch.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.