Date: Mon, 30 Jul 2018 15:00:53 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Robert <robert.ayrapetyan@gmail.com> Cc: Mathieu Arnold <mat@FreeBSD.org>, freebsd-ports@freebsd.org Subject: Re: porting project with large files (git-lfs) from github Message-ID: <20180730130053.snbqh6y2ralgogcz@ogg.in.absolight.net> In-Reply-To: <b6f59f3c-6ae7-e9a7-6f60-8fae4f19da56@gmail.com> 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> <b6f59f3c-6ae7-e9a7-6f60-8fae4f19da56@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--hkv2tpbqvcyy3s5s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 27, 2018 at 04:31:03PM -0700, Robert wrote: > Thanks, which file hosting is most preferred for large freebsd ports? I do not think we have any preference, or recommendations. Maybe someone else will have an idea. > 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_su= pport/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 contai= n 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: > >=20 > > $ 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' > >=20 > >=20 > > 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. > >=20 > > You will have to run git-archive yourself on a machine where git-lfs is > > installed. Something along the lines of: > >=20 > > git archive --format tar.gz --prefix daal-<commit-hash> -o daal-<commit= hash>.tar.gz <commit hash> > >=20 > > And then host that file somewhere, and use it for your port. > >=20 > > > 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 i= n Makefile. > > > > >=20 > > > > > FreeBSD tries to fetch a tar.gz archive from https://codeload.git= hub.com and > > > > > within such archive there are "large files" which contain somethi= ng like: > > > > >=20 > > > > > version https://git-lfs.github.com/spec/v1 > > > > > oid sha256:e8f293258e38e9689cb87ffbb91c3de2c339a6c074c77115ca86d5= 0b5a48bc64 > > > > > size 20413048 > > > > >=20 > > > > > instead of a real data, so build fails. > > > > >=20 > > > > > 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 s= o I > > > > can have a look? > > > >=20 > > > _______________________________________________ > > > freebsd-ports@freebsd.org mailing list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > > > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.o= rg" > > >=20 >=20 > _______________________________________________ > 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" >=20 --=20 Mathieu Arnold --hkv2tpbqvcyy3s5s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEOraXidLtEhBkQLpbOkUW81GDzkgFAltfDARfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNB QjY5Nzg5RDJFRDEyMTA2NDQwQkE1QjNBNDUxNkYzNTE4M0NFNDgACgkQOkUW81GD zkjWVRAAlmqs87dF2s7LADuaUmpVZZwRJlkodeOpRzbEKVuZ9BPp/jWz2vQqLE29 UDpIkfvP+E6IqOgWDy2jIkjCbeXY4UlM0agE1CAlJlorCjXps0Cjn5Z1lmYFC1R1 V6+za9BgzjDbzn7l4CV/IbGO2uYmnMxSh1KDHXDny5lhAB9DnsnssYILPyIEkbcR Akx1VJ7c1Lq/LAqEoRdWi7J3E5RXPMh1mFZwVUZ1AZB7rOYH0RWhkBP6fK4tkUwv lq12uQ3NOB4FutpzeLmN8Z6VzFzu8TDysjL/YuJwHdYOd69LKCywotQ5GpvlUeoW 5aVc4zP4PQWlc/xduFx4J+kNyjrMyrgGr6ZUykw69OrR1mEN81u034adzheCzI4A HL65gAwqGOgDo+aNJ20qzNc25tvsMnPdA1kqBT6ypx6OV7rJDR5WISYGdcAYt4jX IKIrQrkHaEmSnZXWI3m+gWz0xszQzQrOJJWa5Tt4+X2CBTnlu8GU0XFJvSECDPyG hbBVWAPVRD593Y6esuqd+VNN8endFie0ZdoHC6FlCIuj0MTJCjjCAl6eMsC3elW4 zf+FwZGhx0+xzzjgm6+vBV46Pc2KYgV10M1BF19dUcfvyX5cQRIskuQ5qA96V2w3 NJLE8tYvO3slq6Um60Xi/CKyPidTCFYr/emdBGbLlGwFfkv5pDs= =6L6K -----END PGP SIGNATURE----- --hkv2tpbqvcyy3s5s--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180730130053.snbqh6y2ralgogcz>