From owner-svn-ports-head@freebsd.org Fri Aug 18 13:57:02 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E3E4DE3073; Fri, 18 Aug 2017 13:57:02 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1BF9863FFA; Fri, 18 Aug 2017 13:57:02 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 5DB2B29EA; Fri, 18 Aug 2017 13:57:01 +0000 (UTC) Date: Fri, 18 Aug 2017 13:57:01 +0000 From: Alexey Dokuchaev To: Mathieu Arnold Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r448034 - head/Mk Message-ID: <20170818135701.GC77829@FreeBSD.org> References: <201708161250.v7GCoAZa030778@repo.freebsd.org> <20170818130323.GA77829@FreeBSD.org> <7fc6a440-3ace-0552-843f-7922701525b5@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7fc6a440-3ace-0552-843f-7922701525b5@FreeBSD.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 13:57:02 -0000 On Fri, Aug 18, 2017 at 03:45:23PM +0200, Mathieu Arnold wrote: > Le 18/08/2017 ?? 15:03, Alexey Dokuchaev a ??crit : > > On Wed, Aug 16, 2017 at 12:50:10PM +0000, Mathieu Arnold wrote: > >> New Revision: 448034 > >> URL: https://svnweb.freebsd.org/changeset/ports/448034 > >> > >> Log: > >> Add a git-clone target to clone the github repositories referenced in > >> ports using USE_GITHUB. > > What is it useful for (specifically within the ports tree) that fetching > > specific commit hash won't provide? Cloning the repo implies that one's > > intended to work on it and thus needs all the history. For an arbitrary > > port that one wants to build it's an overkill. Also, how feasible is to > > cache cloned repo (like we cache normal distfiles now)? > > This is an easy way for the port maintainer to get the repository to > check for newer versions, patches, or running git describe on a commit > hash, or whatever they want to do with the repository, without having to > look at the Makefile to see what the account and projects are, and type > the git clone line. > > It is not supposed to be used during the build process, I see, thanks for explanation. > and as such, I do not see why it would be needed to cache things. Or > how caching would work. Exactly. :-) ./danfe