Caching Previously Downloaded Packages?

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Caching Previously Downloaded Packages?

Post by jamesarbrown » Sat Jan 01, 2011 4:51 pm

Hi Pablo,

I was wondering is there anyway of getting the "make garchive" to use create & use cached downloads, so when you step up to a new gar-minimyth it at least looks at what you last downloaded and only downloads the missing packages?

Ie sticks everything into a folder and then tries that folder first before copying into the archive?

Here in crummy internet ADSL hell, the max speed most of the country gets is 8mbits possible. Even my business connection is good and at 20:1 contention runs 6mbits.... ie a darn long time to download for each build... never measured, but bet its still going tomorrow morning and make build will take another >24 hours.

James

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Caching Previously Downloaded Packages?

Post by Pablo » Sat Jan 01, 2011 5:30 pm

Yes.

The build system variable GARCHIVEROOT specifies where the build system saves the downloaded files when

Code: Select all

make garchive
is run, as well as being the first location checked for the files before resulting to download. By default,

Code: Select all

GARCHIVEROOT = $(mm_HOME)/source
However, you can set GARCHIVEROOT to any location that you want. Therefore, if you delete and replace everything under $(mm_HOME) (as it appears you are doing), then you can set GARCHIVEROOT to a directory outside of $(mm_HOME) by setting GARCHIVEROOT in $(HOME)/.minimyth/minimyth.conf.mk so that garchive directory is not removed when you remove $(mm_HOME).
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

jamesarbrown
Contributor
Posts: 98
Joined: Sat Aug 16, 2008 11:14 am

Re: Caching Previously Downloaded Packages?

Post by jamesarbrown » Sun Jan 02, 2011 11:09 am

Cheers Pablo yet again!

That got it away with the following in my minimyth.conf.mk (want to experiment with monit to keep fe up and wife+kids happy)

Code: Select all

mm_HOME                   ?= /storage/minimyth/gar-minimyth-0.24.1-76b1
mm_USER_PACKAGES          ?= utils/monit utils/joe
mm_USER_BIN_LIST          ?= monit joe
mm_MYTH_VERSION           ?= 0.23
mm_XORG_VERSION           ?= 7.4
GARCHIVEROOT              ?= /storage/minimyth/source
But... it hit this error and I don't think its to do with the conf?!

Code: Select all

[===== NOW BUILDING:	xtrans-1.2.6	=====]
install -d cookies/main.d
install -d download
install -d download/partial
 ==> Grabbing download/xtrans-1.2.6.tar.bz2
 	==> Trying file//files/xtrans-1.2.6.tar.bz2
make[4]: Entering directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
make[4]: *** [file//files/xtrans-1.2.6.tar.bz2] Error 1
make[4]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
 	==> Trying file///storage/minimyth/source/xtrans-1.2.6/xtrans-1.2.6.tar.bz2
make[4]: Entering directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
make[4]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
 ==> Grabbing download/xtrans-1.2.6-abstract_only.patch
 	==> Trying file//files/xtrans-1.2.6-abstract_only.patch
make[4]: Entering directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
make[4]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
	[fetch] complete for xtrans.
 ==> Running checksum on xtrans-1.2.6.tar.bz2
c66f9ffd2da4fb012220c6c40ebc7609  download/xtrans-1.2.6.tar.bz2
file xtrans-1.2.6.tar.bz2 passes checksum test!
 ==> Running checksum on xtrans-1.2.6-abstract_only.patch
08ef400beca786ad2283b370d42cdde9  download/xtrans-1.2.6-abstract_only.patch
file xtrans-1.2.6-abstract_only.patch passes checksum test!
	[checksum] complete for xtrans.
cp -Lr download/xtrans-1.2.6.tar.bz2 /storage/minimyth/source/xtrans-1.2.6/xtrans-1.2.6.tar.bz2 
cp: `download/xtrans-1.2.6.tar.bz2' and `/storage/minimyth/source/xtrans-1.2.6/xtrans-1.2.6.tar.bz2' are the same file
make[3]: *** [/storage/minimyth/source/xtrans-1.2.6/xtrans-1.2.6.tar.bz2] Error 1
make[3]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6/xtrans'
make[2]: *** [garchive] Error 2
make[2]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script/xorg-7.6'
make[1]: *** [garchive] Error 2
make[1]: Leaving directory `/storage/minimyth/gar-minimyth-0.24.0-76b1/script'
make: *** [garchive] Error 2

Post Reply