Details
-
Type:
Story
-
Status: Won't Fix
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: lsstsw
-
Labels:None
-
Story Points:5
-
Team:SQuaRE
Description
To reduce disk usage, it is very handy to be able to make build/afwdata and stack/afwdata/BLAH be symlinks. build/ is easy: just make the symlink and then never have touch it unless you rm your whole stack. stack/afwdata/BLAH is harder: each time you rebuild something that depends on afwdata, it will install a new copy of afwdata, which you'll have to manually remove and declare your symlink with a new tag.
A couple of ways to make this more automatic:
- lsstsw checks whether build/afwdata is a symlink, and if so just makes the new stack "install" a symlink to the same directory.
- Check for some environment variable (e.g. AFWDATA_BASE_DIR or something) and if that exists, just make a symlink to it, or make a dummy eups table that points to that directory and don't put anything in stack at all.
Attachments
Issue Links
- relates to
-
DM-22305 Remove eups dependencies from data packages
- Done
I've attached a short bash script that does the cleaning up. Modify the two directories at the top as appropriate, and run it after you rebuild lsstsw, and it will remove any new testdata directories and replace them with symlinks, in a way that I believe to be fairly safe.