Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636688 - sys-boot/raspberrypi-firmware-9999: Fetch shallow clone of firmware git repo
Summary: sys-boot/raspberrypi-firmware-9999: Fetch shallow clone of firmware git repo
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-06 12:15 UTC by Michael Seifert
Modified: 2018-01-15 16:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Seifert 2017-11-06 12:15:50 UTC
The live ebuild for raspberrypi-firmware clones the full git repository which is >6GB in size. To avoid an unnecessarily big download, raspberrpi-firmware-9999 should only do a shallow clone of the upstream git repository.

Patch available: https://github.com/gentoo/gentoo/pull/6101

Reproducible: Always
Comment 1 Oleg Korsak 2018-01-15 02:11:24 UTC
Also it fails to build right after fetching. Raises some kind of git error
Comment 2 Michael Seifert 2018-01-15 16:20:39 UTC
(In reply to Oleg Korsak from comment #1)
> Also it fails to build right after fetching. Raises some kind of git error

I just tried to reproduce your issue:
I removed raspberrypi_firmware.git in distfiles, set EGIT_CLONE_TYPE="shallow" in make.conf and emerged sys-boot/raspberrypi-firmware-9999. It worked without issues for me. I am not sure I can help out, especially since you did not post the exact git error :)
I think it would be best to report your error in a separate issue.

I am closing this bug just as I closed the original Pull Request.
My current understanding is the following: individual ebuilds should not set EGIT_CLONE_TYPE. They should only set EGIT_MIN_CLONE_TYPE in order to override the default value if necessary. If the user wants to do a shallow clone of a certain package, he has to set EGIT_CLONE_TYPE in package.env or in make.conf.