Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2018 16:31:03 -0700
From:      Robert <robert.ayrapetyan@gmail.com>
To:        Mathieu Arnold <mat@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: porting project with large files (git-lfs) from github
Message-ID:  <b6f59f3c-6ae7-e9a7-6f60-8fae4f19da56@gmail.com>
In-Reply-To: <20180727132239.6n4qay7z636tdqya@atuin.in.mat.cc>
References:  <7d8a980d-5b0d-bfd2-790f-579881175e95@gmail.com> <20180726081034.hiu5zoemz5steqz5@atuin.in.mat.cc> <21ac85b2-9d28-5d9f-aa4d-b542b85ea95a@gmail.com> <20180727132239.6n4qay7z636tdqya@atuin.in.mat.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, which file hosting is most preferred for large freebsd ports?


On 07/27/18 06:22, Mathieu Arnold wrote:
> On Thu, Jul 26, 2018 at 08:42:59AM -0700, Robert wrote:
>> Hi, you can find it here:
>> https://github.com/rayrapetyan/daal/tree/FreeBSD_support
>> All files in e.g. https://github.com/rayrapetyan/daal/tree/FreeBSD_support/externals/mklfpk/lnx/lib/intel64
>> are "large files" they are fetching normally when doing git pull, but when
>> downloading from "codeload" (this is what FreeBSD does) - they contain just
>> text hashes...
> Well, yeah, like I said, this repository is using git-lfs, which is not
> part of the Git distribution, but an extension. Doing a clone works for
> you because you have it installed, but it does not work for me because I
> do not, It ends up saying:
>
> $ git clone https://github.com/rayrapetyan/daal.git
> Cloning into 'daal'...
> remote: Counting objects: 35068, done.
> remote: Compressing objects: 100% (20/20), done.
> remote: Total 35068 (delta 3), reused 7 (delta 2), pack-reused 35044
> Receiving objects: 100% (35068/35068), 583.32 MiB | 2.71 MiB/s, done.
> Resolving deltas: 100% (27544/27544), done.
> git-lfs filter-process: git-lfs: not found
> fatal: The remote end hung up unexpectedly
> warning: Clone succeeded, but checkout failed.
> You can inspect what was checked out with 'git status'
> and retry the checkout with 'git checkout -f HEAD'
>
>
> It seems the servers running codeload.g.o do not have git-lfs installed,
> so when they run git-archive(1) you end up with the pointers to the
> large files.
>
> You will have to run git-archive yourself on a machine where git-lfs is
> installed.  Something along the lines of:
>
> git archive --format tar.gz --prefix daal-<commit-hash> -o daal-<commit hash>.tar.gz <commit hash>
>
> And then host that file somewhere, and use it for your port.
>
>> On 07/26/18 01:10, Mathieu Arnold wrote:
>>> On Wed, Jul 25, 2018 at 11:04:41PM -0700, Robert wrote:
>>>> Hi, I'm porting something hosted on github using GH_... options in Makefile.
>>>>
>>>> FreeBSD tries to fetch a tar.gz archive from https://codeload.github.com and
>>>> within such archive there are "large files" which contain something like:
>>>>
>>>> version https://git-lfs.github.com/spec/v1
>>>> oid sha256:e8f293258e38e9689cb87ffbb91c3de2c339a6c074c77115ca86d50b5a48bc64
>>>> size 20413048
>>>>
>>>> instead of a real data, so build fails.
>>>>
>>>> What's the best way to resolve this issue?
>>> Mmmm, I never tried a repository using git-lfs, I am not surprised
>>> git-archive(1) does not work with it though.  What is the project so I
>>> can have a look?
>>>
>> _______________________________________________
>> 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"
>>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6f59f3c-6ae7-e9a7-6f60-8fae4f19da56>