From owner-freebsd-ports@freebsd.org Fri Sep 1 16:53:52 2017 Return-Path: Delivered-To: freebsd-ports@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 6060AE1A4D3 for ; Fri, 1 Sep 2017 16:53:52 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 449A27F080 for ; Fri, 1 Sep 2017 16:53:52 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 43C22E1A4D2; Fri, 1 Sep 2017 16:53:52 +0000 (UTC) Delivered-To: ports@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 433F6E1A4D1 for ; Fri, 1 Sep 2017 16:53:52 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 1BBC27F07F for ; Fri, 1 Sep 2017 16:53:51 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E9C9B21286; Fri, 1 Sep 2017 12:53:50 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute4.internal (MEProxy); Fri, 01 Sep 2017 12:53:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Nqkz4D DAb/PfDu3LIwj71ZdgSr6ZzWPFldz+JNPuy9s=; b=EuBljczh6mGAarroOMDKQq usVAOGjo74vOZCBk9lkNKBb6JqMn+Dgjr0PTEDNelcIrwQP7ezahYYA0Vaxw7Iyk hNJsXRW9bE2EMQx4x+T9y3l3w6/nTpkTJ9+eMK16r9iWA7A6Px1mCs8Y2wALrxkL pXKS+I0YkmsSNLOcGB+6CQbmtAv46PrHNGfkJM7l5ubVO22hxDJhbwmSzK63CODy T07QE5ttb2X1MB/6pGDOldLkPbMfuwPk241bIzk37Jx8PEO45y8BSAtQGn/08iFp JJye/BIIHixkyhOwgCKKybMDgpCJJcfHa1o7Ec15VURee13TEwhkforjrX/YHu3w == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id CAC8648003; Fri, 1 Sep 2017 12:53:50 -0400 (EDT) Message-Id: <1504284830.794543.1092454472.7353C7D3@webmail.messagingengine.com> From: Tobias Kortkamp To: Yuri , ports@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-13b5a8c9 Subject: Re: Some github projects aren't fetchable using commit hash References: Date: Fri, 01 Sep 2017 18:53:50 +0200 In-Reply-To: X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 16:53:52 -0000 On Fri, Sep 1, 2017, at 18:24, Yuri wrote: > FYI: > > > Some github URLs that ports framework uses to fetch by hash fail with no > apparent reason. Here are two examples: > > > https://codeload.github.com/grame-cncm/guidolib/tar.gz/2ec126d > > https://codeload.github.com/libretro/picodrive/tar.gz/40cd7bc > > > I've contacted GitHub, they acknowledged the problem, but offered no > solution besides of "we are working on this". Below is my communication > with GitHub support. In libretro/picodrive there are two objects which have the same abbreviated hash. Probably best to use the full hash. $ git cat-file -p 40cd7bc error: short SHA1 40cd7bc is ambiguous hint: The candidates are: hint: 40cd7bc4 commit 2017-08-18 - Add this to pico.h hint: 40cd7bc9 blob fatal: Not a valid object name 40cd7bc > > Yuri > > > --- > > > Hi Yuri, > > Thanks for reaching out about this, and sorry for delayed response! > > We've taken a look at the trouble you're experiencing, and suspect that > this might be a bug, so we've opened an internal issue for our engineers > to investigate further. > > While we don't yet have a specific ETA on a fix, we'll be sure to update > you as soon as there's any news to share. > > Also, thank you for the wonderful detail in your email! It helped > enormously with our initial investigations. > > Warm regards, > > Friday > > Looking at two projects: one tarball fetch succeeds, the other one > fails. > > Fetching the tarball of https://github.com/libretro/emux using > https://codeload.github.com/libretro/emux/tar.gz/df14439 - succeeds. > > Fetching the tarball of https://github.com/libretro/picodrive using > https://codeload.github.com/libretro/picodrive/tar.gz/40cd7bc - > fails. > > Both URLs are built from {account}/{project}/{hash} combination in > the same way. Both should succeed. > This is also how FreeBSD ports download tarballs. > > Failure log: > > |# wget https://codeload.github.com/libretro/picodrive/tar.gz/40cd7bc > --2017-08-28 21:18:35-- > https://codeload.github.com/libretro/picodrive/tar.gz/40cd7bc > Resolving codeload.github.com (codeload.github.com)... > 192.30.255.121, 192.30.255.120 Connecting to codeload.github.com > (codeload.github.com)|192.30.255.121|:443... connected. HTTP request > sent, awaiting response... 404 Not Found 2017-08-28 21:18:35 ERROR > 404: Not Found. | > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"