From: Keith Marshall <keithmarshall@us...> - 2014-01-12 12:43:50
On 11/01/14 17:54, Geert Janssens wrote:
> Unfortunately I haven't found a way to tell mingw-get to install into
> a non-default directory. Is such a thing possible ?
Yes. You can adjust the sysroot path settings in
$MINGW_ROOT/var/lib/mingw-get/data/profile.xml, (which you can create as
a copy of $MINGW_ROOT/var/lib/mingw-get/data/defaults.xml, if you
haven't done so already).
The prefix, $MINGW_ROOT is determined from wherever mingw-get itself is
installed -- from the full absolute path equivalent to
$MINGW_ROOT/libexec/mingw-get/mingw-get-0.dll -- and it is represented
by "%R" in the sysroot specification in profile.xml; you may change the
entire sysroot specification to anything you wish.
You may wish to consider creating a separate mingw-get installation,
specifically to manage your specialised package installation tree. You
would need to create an independent $MINGW_ROOT directory tree, with its
own copy, (which may be furnished by use of NTFS hard links), of your
primary $MINGW_ROOT/bin/mingw-get.exe, and everything found within
$MINGW_ROOT/libexec/mingw-get, but you must keep $MINGW_ROOT/var/lib
completely segregated, so its profile.xml and its installation records
remain independent; (if you can set up a symbolic link or directory
junction, so that the $MINGW_ROOT/var/cache/mingw-get directory trees
can be shared, you may save some internet bandwidth for package downloads).
Another option, which you could consider, is using mingw-get to manage
your own package installation; you would not be the first to create a
"foreign" repository, with a mingw-get compatible package catalogue.