From owner-freebsd-ports@freebsd.org Sun Mar 18 23:32:15 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69388F5DDC8 for ; Sun, 18 Mar 2018 23:32:15 +0000 (UTC) (envelope-from SRS0=xO/A=GI=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 086E26D5FC for ; Sun, 18 Mar 2018 23:32:14 +0000 (UTC) (envelope-from SRS0=xO/A=GI=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 498A72846F; Mon, 19 Mar 2018 00:32:12 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 5ED2C28411; Mon, 19 Mar 2018 00:32:02 +0100 (CET) Subject: Re: github fetch not working (solved, mostly) To: freebsd@dreamchaser.org, FreeBSD Mailing List References: <442fe78c-0a9a-8b40-237f-5aecdffa8e57@dreamchaser.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <0f143ac2-52ba-0212-8d86-5b147daa0d2f@quip.cz> Date: Mon, 19 Mar 2018 00:32:01 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2018 23:32:15 -0000 >> Where did you get this version number? DISTVERSION=    g20161113 > > I was trying to follow example 5.13 in the porter's handbook. > However, this particular git tree has only a main branch and no > tags, so it's not a perfect fit. > >> What about this >> >> PORTNAME=       ufraw-devel PORTVERSION=    g20161113 CATEGORIES= >> graphics MASTER_SITES=   GH >> >> MAINTAINER=     freebsd@dreamchaser.org COMMENT=        Read and >> manipulate raw images from digital cameras >> >> LICENSE=        GPLv2 >> >> USE_GITHUB=     yes GH_ACCOUNT=     sergiomb2 GH_PROJECT=     ufraw >> GH_TAGNAME=     6d3259a >> >> .include > > Unfortunately, that yields the same results. > However, thanks for the hints; > I did get it to work as follows: > > MASTER_SITES=   https://github.com/sergiomb2/ufraw/archive/ > DISTNAME=       master > > The link shown on the website for a "Download zip file" is >   https://github.com/sergiomb2/ufraw/archive/master.zip > But the file fetched was >   ufraw-devel/master.tar.gz > > $ make fetch > ... > => Attempting to fetch > https://github.com/sergiomb2/ufraw/archive/master.tar.gz > fetch: https://github.com/sergiomb2/ufraw/archive/master.tar.gz: size of > remote file is not known > > However, I'm still puzzled because this method totally ignores all the > special hooks that are supposed to make a git repository work. This is the wrong way. master.zip is the moving target. If somebody commit something, then master.zip will be different and distinfo will not match. You need to fetch exact revision from github. You may clone this repo and make new release on github in your repo. Or you can fetch master.zip, rename it to something useful and upload somewehere where your Makefile can fetch it. Miroslav Lachman