View previous topic :: View next topic |
Author |
Message |
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Sat Feb 06, 2016 8:30 am Post subject: [SOLVED] Keep source based ebuild cached in distfiles. |
|
|
I have some self-made \*-9999.ebuild (it gets the source code from my github account). Two of them is for kernel modules, so every time I need to build a new kernel, also I need to build those. But as they are source based it needs an active internet connection, but also as one of them is for a wireless interface driver I get stacked in a "chicken or the egg" dilema.
Is there any ebuild way for caching the git source downloaded in distfiles?
My ebuild is right here: https://github.com/alinefr/alinefr-overlay/blob/master/net-wireless/rt3290sta/rt3290sta-99999999.ebuild
Last edited by alinefr on Sat Feb 06, 2016 3:39 pm; edited 2 times in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Feb 06, 2016 9:17 am Post subject: Re: Keep source based (eg. git) ebuild cached in distfiles. |
|
|
alinefr wrote: | Is there any ebuild way for caching the git source downloaded in distfiles? |
alinefr ... you're inheriting git-2.eclass and so the sources should be kept in $DISTDIR/egit-src/ ... the eclass also provides the following variable, which if non-empty should prevent a 'git pull'
git-2.eclass: | # @ECLASS-VARIABLE: EVCS_OFFLINE
# @DEFAULT_UNSET
# @DESCRIPTION:
# If non-empty this variable prevents performance of any online
# operations. |
HTH & best ... khay |
|
Back to top |
|
|
alinefr Tux's lil' helper
Joined: 05 Jul 2009 Posts: 113 Location: São Paulo, Brasil
|
Posted: Sat Feb 06, 2016 3:18 pm Post subject: |
|
|
Yes, the source was right on ./egit-src. As I rebuild it from genkernel, what I had to do is to set CMD_CALLBACK in genkernel.conf like this:
CMD_CALLBACK="EVCS_OFFLINE=1 emerge --quiet @module-rebuild"
Thank you! |
|
Back to top |
|
|
|