Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Keep source based ebuild cached in distfiles.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Sat Feb 06, 2016 8:30 am    Post subject: [SOLVED] Keep source based ebuild cached in distfiles. Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Feb 06, 2016 9:17 am    Post subject: Re: Keep source based (eg. git) ebuild cached in distfiles. Reply with quote

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
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Sat Feb 06, 2016 3:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum