From owner-freebsd-ports Tue Mar 26 18:32:29 2002 Delivered-To: freebsd-ports@freebsd.org Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by hub.freebsd.org (Postfix) with ESMTP id 7E70337B417; Tue, 26 Mar 2002 18:32:22 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g2R2WFJ60888; Tue, 26 Mar 2002 21:32:15 -0500 (EST) (envelope-from alane) Date: Tue, 26 Mar 2002 21:32:15 -0500 From: Alan Eldridge To: William Evanson Cc: freebsd-questions@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: Make Fetch resume (Is is possible to do...) Message-ID: <20020327023215.GA60864@wwweasel.geeksrus.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-message-flag: Magic 8-Ball says "Outlook not so good." I'll ask it about Exchange next. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Mar 26, 2002 at 08:19:37PM -0600, William Evanson wrote: >I installed wget and added the line >FETCH_CMD="/usr/local/bin/wget" to my /etc/make.conf file. >With the next make install it launched wget and ran fine. >I tried to test the program by stopping the fetch sequence >on one of the sources near the end. When I restarted the >Make Install is knoticed the file was there and tried to >build it without restarting the fetch sequence. Any ideas??? The fundamental problem here is that the *size* of the file is not available in the ports system. Strictly speaking, it's not necessary. But it would help add a little intelligence to the process. However, let's assume we must work within the framework of the current ports system; we can't add the file sizes somewhere. What *can* we do? When is our first chance to notice that we might have an incomplete file? At md5-checking time. How about a knob that says, if you got an md5 error, try to fetch the file again, using a "resume" command appropriate to the protocol by which the file is being fetched? I have not done a survey yet on the existing hordes of PRs requesting a resumption feature to see if anybody figured this out yet. But I will. Comments? Opinions: could you live with having to set a knob on your make command line, like "make -DRESUME_FETCH"? Committers/portmgr@, does this sound like a doable, and minimally invasive way to give people what they want? -- AlanE "When the going gets weird, the weird turn pro." - HST To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message