From owner-freebsd-ports@FreeBSD.ORG Wed Jun 6 05:52:45 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 245DA106564A for ; Wed, 6 Jun 2012 05:52:45 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9AA0A8FC16 for ; Wed, 6 Jun 2012 05:52:44 +0000 (UTC) Received: by lbon10 with SMTP id n10so5678987lbo.13 for ; Tue, 05 Jun 2012 22:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=zJobI9/bocC0pnycT2VLSPlYwuERAbwLakukvFWYmVM=; b=0iXpY8C/5ET4w3qm9sx+5JHrViYShAoIP9eomN7fy3YOrVnLoVskMzcDfTyy4LJLx+ mzJ+ZqhHq2YPt2WHxAr0qrkybik94aj86wW0lA6Z26mpXmDISgOBVzzL5PWzraVyeEaf VDCQNK/GcmhJDqF0ap1bEVJ3DM1aFeXj42TpFbwvorMNC4NIyDH0WsISdaud7bi/IUl5 ldxpOhQvyn3JGvJDHXTB4tfDrcUaD+MCaTohRvreFl3SSay0MjHD6zHuou89j+XRbZmF ResnaqVRk382hSua5pyiKvjICdllOsIv02z9rFfHQi9ScQ+IegYzm42tq7nobwhAQEwI KAkA== MIME-Version: 1.0 Received: by 10.112.99.71 with SMTP id eo7mr9523552lbb.84.1338961963565; Tue, 05 Jun 2012 22:52:43 -0700 (PDT) Received: by 10.152.24.131 with HTTP; Tue, 5 Jun 2012 22:52:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 6 Jun 2012 07:52:43 +0200 Message-ID: From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: 'make extract' downloads already downloaded file X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 05:52:45 -0000 On Tue, Jun 5, 2012 at 7:12 PM, Fernando Apestegu=EDa wrote: > Hi all, > > I'm having a problem with a port I am currently maintaining. This is > the log from pointyhat: > > erwin@freefall:cad/openvsp> make fetch > =3D=3D=3D> =A0License check disabled, port has not defined LICENSE > /usr/bin/fetch -o /home/erwin/tmp/OpenVSP_2.0_Community.tar.gz > https://nodeload.github.com/OpenVSP/OpenVSP/tarball/OpenVSP_2.0_Community > /home/erwin/tmp/OpenVSP_2.0_Community.tar.gz =A0100% of 2808 kB 1271 kBps > erwin@freefall:cad/openvsp> make extract > =3D=3D=3D> =A0License check disabled, port has not defined LICENSE > /usr/bin/fetch -o /home/erwin/tmp/OpenVSP_2.0_Community.tar.gz > https://nodeload.github.com/OpenVSP/OpenVSP/tarball/OpenVSP_2.0_Community > /home/erwin/tmp/OpenVSP_2.0_Community.tar.gz =A0100% of 2808 kB 1208 kBps > =3D=3D=3D> =A0Extracting for openvsp-2.0_1 > =3D> SHA256 Checksum OK for OpenVSP_2.0_Community.tar.gz. > erwin@freefall:cad/openvsp> > > This[1] is the current Makefile > > According to Erwin there's something wrong with the redefinition of > DISTNAME and do-fetch that confuses the infrastructure. I tried to do > the same thing I do in another port I maintain, math/dynare[2] which > doesn't suffer this problem. This is the Makefile I'm working on: Correction: math/dynare suffers the same problem. I finally have a fix for this (check for the presence of DISTNAME in DISTDI= R before trying to download the file). Thanks. > > > # Port makefile for: =A0 =A0openvsp > # Date created: =A0 =A0 =A0 =A0 Apr 10 2012 > # Whom: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Fernando Apesteguia > # > # $FreeBSD$ > > PORTNAME=3D =A0 =A0 =A0 openvsp > PORTVERSION=3D =A0 =A02.0 > CATEGORIES=3D =A0 =A0 cad > MASTER_SITES=3D > https://nodeload.github.com/OpenVSP/OpenVSP/tarball/OpenVSP_${PORTVERSION= }_Community > > MAINTAINER=3D =A0 =A0 fernando.apesteguia@gmail.com > COMMENT=3D =A0 =A0 =A0 =A0Create a 3D model of an aircraft defined by > engineering parameters > > BUILD_DEPENDS=3D =A0${LOCALBASE}/lib/libopenNURBS.a:${PORTSDIR}/graphics/= opennurbs > > LIB_DEPENDS+=3D =A0 fltk:${PORTSDIR}/x11-toolkits/fltk > LIB_DEPENDS+=3D =A0 xml2:${PORTSDIR}/textproc/libxml2 > LIB_DEPENDS+=3D =A0 jpeg:${PORTSDIR}/graphics/jpeg > LIB_DEPENDS+=3D =A0 png:${PORTSDIR}/graphics/png > LIB_DEPENDS+=3D =A0 Xinerama:${PORTSDIR}/x11/libXinerama > LIB_DEPENDS+=3D =A0 Xft:${PORTSDIR}/x11-fonts/libXft > > WRKSRC=3D =A0 =A0 =A0 =A0 ${WRKDIR}/OpenVSP-OpenVSP-574d7c3/src > > USE_CMAKE=3D =A0 =A0 =A0yes > USE_DOS2UNIX=3D =A0 yes > > EXAMPLESDIR=3D =A0 =A0${PREFIX}/share/examples/openvsp > > do-fetch: > =A0 =A0 =A0 =A0fetch -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${MASTER_SI= TES} > > do-install: > =A0 =A0 =A0 =A0@${INSTALL_PROGRAM} ${WRKSRC}/vsp/vsp ${PREFIX}/bin > =A0 =A0 =A0 =A0@${MKDIR} ${EXAMPLESDIR} > .for i in airfoil cabin fonts fuselage models setup textures > =A0 =A0 =A0 =A0@${MKDIR} ${EXAMPLESDIR}/${i} > =A0 =A0 =A0 =A0@${INSTALL_DATA} ${WRKSRC}/../examples/${i}/* ${EXAMPLESDI= R}/${i} > .endfor > > .include > > Still, after a 'make checksum', invoking a 'make extract' causes the > tarball to be downloaded again. I checked and the file exists in > /usr/ports/distfiles > > Any ideas of what the problem is? > > Thanks in advance. > > > [1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/cad/openvsp/Makefile?rev= =3D1.2;content-type=3Dtext%2Fplain > [2] http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/dynare/Makefile?rev= =3D1.5;content-type=3Dtext%2Fplain