pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/mk/fetch



On 17/09/15 07:48, Joerg Sonnenberger wrote:
On Wed, Sep 16, 2015 at 01:29:11PM +1200, David Sainty wrote:
On 16/09/15 01:16, Joerg Sonnenberger wrote:
On Tue, Sep 15, 2015 at 06:26:45PM +1200, David Sainty wrote:
On 14/09/15 03:03, Joerg Sonnenberger wrote:
Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun Sep 13 15:03:57 UTC 2015

Modified Files:
        pkgsrc/mk/fetch: bsd.fetch-vars.mk fetch.mk

Log Message:
Introduce IGNORE_INTERACTIVE_FETCH to allow trying to fetch files from
the override site, even for INTERACTIVE_STATE=stage or FETCH_MESSAGE.
Ignore all backup sites as they won't have the distfile anyway, the
fetch wouldn't be interactive in first place otherwise.

This breaks for PKG_RESUME_TRANSFERS=yes.
Please retry with the updated version.

% fgrep NetBSD: mk/fetch/fetch.mk
# $NetBSD: fetch.mk,v 1.67 2015/09/14 08:27:13 joerg Exp $

% ( cd lang/oracle-jdk8 && make PKG_RESUME_TRANSFERS=yes fetch )
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Checking for vulnerabilities in oracle-jdk8-8.0.60
=> Fetching jdk-8u60-linux-i586.tar.gz
usage: fetch [-c] [-d dir] [-f distinfo] [-p hook] [-r] [-v] file site ...
*** Error code 1
Works perfectly fine here giving the FETCH_MESSAGE.


Ah, I think that means you don't install oracle-jdk8 normally and don't already have the distfile. I can see I wasn't entirely clear about the precondition :)

The problem isn't so much at the fetch stage, but that "make install" fails after you have downloaded the distfiles. I.e. the package cannot actually be installed without disabling resumable transfers.

You could try a different package that you do normally install that has an interactive fetch (I.e. you have interactively fetched the distfiles already). Or creating zero length stub distfiles would also simulate my scenario:

cd lang/oracle-jre8
d=`make show-var VARNAME=DISTDIR`; touch "$d/jce_policy-8.zip" "$d/jre-8u60-linux-i586.tar.gz"
make PKG_RESUME_TRANSFERS=yes install

=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Checking for vulnerabilities in oracle-jre8-8.0.60
=> Fetching jce_policy-8.zip
usage: fetch [-c] [-d dir] [-f distinfo] [-p hook] [-r] [-v] file site ...
*** Error code 1




Home | Main Index | Thread Index | Old Index