From owner-freebsd-ports@FreeBSD.ORG Wed Apr 1 07:13:28 2015 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 718101A5; Wed, 1 Apr 2015 07:13:28 +0000 (UTC) Received: from gw.catspoiler.org (cl-1657.chi-02.us.sixxs.net [IPv6:2001:4978:f:678::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00F06D1A; Wed, 1 Apr 2015 07:13:27 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id t317DJCX002188; Tue, 31 Mar 2015 23:13:23 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201504010713.t317DJCX002188@gw.catspoiler.org> Date: Wed, 1 Apr 2015 00:13:19 -0700 (PDT) From: Don Lewis Subject: Re: github tags containing "/" To: bdrewery@FreeBSD.org In-Reply-To: <551B977F.1030809@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 07:13:28 -0000 On 1 Apr, Bryan Drewery wrote: > On 4/1/2015 1:54 AM, Don Lewis wrote: >> I'm working on a couple of new ports where I'm using fetching the >> distfiles from github. One quirk is that the tags start with a prefix >> of "tags/v". I'm setting PKGNAMEPREFIX=${PYTHON_PKGNAMEPREFIX}. >> >> If I follow the example for in the Porters Handbook using >> DISTVERSIONPREFIX=tags/v then the distfile gets named >> ${PORTNAME}-tags/v${PORTVERSION}_GH0.tar.gz, >> which seems somewhat undesirable. This seems to be a bit misleading >> and risky because this port is just a python wrapper around another >> library that also has the same PORTNAME. That port hasn't been >> converted to fetch from github, and when it does it seems like there >> would be a chance of collisions. >> >> I seem to get better results by setting GH_TAGNAME=tags/v${PORTVERSION}. >> In that case, the distfile gets named >> ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-tags-v${PORTVERSION}_GH0.tar.gz. >> This seems to be excessively verbose, but safer. >> >> Thoughts? >> > > Can you please be more specific on what port this is and possibly > provide a patch? The ports aren't in the tree yet. This is the Makefile for one of them: # $FreeBSD$ PORTNAME= wdns PORTVERSION= 0.6.0 #DISTVERSIONPREFIX= tags/v CATEGORIES= dns python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= truckman@FreeBSD.org COMMENT= Python wrapper for dns/wdns LICENSE= APACHE20 BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython LIB_DEPENDS= libwdns.so:${PORTSDIR}/dns/wdns USE_GITHUB= yes GH_ACCOUNT= farsightsec GH_PROJECT= pywdns GH_TAGNAME= tags/v${PORTVERSION} USE_PYTHON= distutils autoplist USES= pkgconfig python post-patch: ${REINPLACE_CMD} -e "1s+ python+ ${PYTHON_CMD}+" ${WRKSRC}/setup.py ${REINPLACE_CMD} -e "1s+ python+ ${PYTHON_CMD}+" ${WRKSRC}/gen_pywdns_constants .include