From owner-freebsd-ports@FreeBSD.ORG Sat Jun 1 11:48:47 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E4D73D1F for ; Sat, 1 Jun 2013 11:48:47 +0000 (UTC) (envelope-from steve@mouf.net) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 921BACD2 for ; Sat, 1 Jun 2013 11:48:47 +0000 (UTC) Received: from meatwad.mouf.net (cpe-098-122-135-254.nc.res.rr.com [98.122.135.254]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id r51BmbP1045217 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sat, 1 Jun 2013 11:48:43 GMT (envelope-from steve@mouf.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mouf.net; s=mail; t=1370087326; bh=JN0x6RozKzo16WXUEkCouLSn3XrlaL3rjkXSFca+c8E=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=FkhAJpSEHda0FHg/wt7HVQVePyYeiWZHbt57Cg+oflGtVX1dxvbsayxLHg3LUPmnn 5MHGb2vpzgd8SRPMDPenegzAF4b3E05HO+p2Jmm/ovaRbp0bgRDvx5kFEg8TExaMNN RGNO7vK2cUK/nn/fqfqfL99N+5tH+RbSNfX6wUUU= Message-ID: <51A9DF95.3010604@mouf.net> Date: Sat, 01 Jun 2013 11:48:37 +0000 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130413 Thunderbird/17.0.5 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: fetch: expansion of correct source location in MASTER_SITES fails References: <20130601131703.690b5fc6@thor.walstatt.dyndns.org> In-Reply-To: <20130601131703.690b5fc6@thor.walstatt.dyndns.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Sat, 01 Jun 2013 11:48:43 +0000 (UTC) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.8 at mouf.net X-Virus-Status: Clean Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2013 11:48:48 -0000 On 06/01/13 11:17, O. Hartmann wrote: > > I'm preparing a port and I fail downloading the sources, although the > base URL and the target tar ball are expanded correctly. But the fetch > process then complains with this: > > [...] > ===> pocl-0.8.0 depends on file: /usr/local/sbin/pkg - found > => pocl-0.8rc1.tar.gz doesn't seem to exist in /usr/ports/distfiles/. > => Attempting to fetch > http://sourceforge.net/projects/pocl/files/pocl-0.8rc1.tar.gz fetch: > http://sourceforge.net/projects/pocl/files/pocl-0.8rc1.tar.gz: Moved > Temporarily > > If one the takes the error line named > > fetch http://sourceforge.net/projects/pocl/files/pocl-0.8rc1.tar.gz > > and issue it directly on the console, surprisingly the the fetch works! > This is weird. > > What is wrong here? Is this a bug in fetch? Nothing is wrong here. The "=> Attempting..." line is not trying to tell you what command it is running, but rather what it is doing. This result is perfectly normal due to the default args that ports pass to fetch. See bsd.port.mk: 2214 FETCH_ARGS?= -AFpr The fetch man page will explain these further. For Sourceforge, there is a "SF" macro in bsd.sites.mk which you should use so that users will try the various mirrors. Many ports use this, so there are many examples to follow. Steve