[oi-dev] Downloading archives to a common area

Alasdair Lumsden alasdairrr at gmail.com
Sat May 5 16:35:15 UTC 2012


Hi All,

One improvement we added to s10-userland, was to download archives to a single top level archives directory instead of into the component directory.

We used:

$(WS_TOP)/archives

We did this by defining "USERLAND_ARCHIVES?= $(WS_TOP)/archives" in shared-macros.mk and fixing up prep.mk.

There are a few benefits to this, one is that if you have lots of illumos-userland workspaces, they can all share a single archive directory. It can be NFS or lofs mounted, and it makes rsyncing the contents of that directory up to our mirror archive a lot easier than manually picking through all the component directories.

It also lets us add $(WS_TOP)/archives to .hgignore and no longer have to put up with seeing downloaded archives in the "hg status" output.

Before I begin work on this changeset for illumos-userland, does anyone have any feedback?

Cheers,

Alasdair


More information about the oi-dev mailing list