Migration question and binary question

Brandon Allbery allbery.b at gmail.com
Thu May 8 15:52:26 PDT 2014


On Thu, May 8, 2014 at 6:26 PM, Jerry <lanceboyle at qwest.net> wrote:

> I redirected this output to .txt files. Do you have a quick way (script)
> to use these echoed files during reinstallation?


I don't need to do it often enough to script it, I generally build it on
the fly :)

    port echo active and requested | perl -lpe 's/[ \t]+\@[^-+]+/ /;
s/^/port install /'

Output is something you can feed to /bin/sh, via sudo; you may want to
check it for sanity and possibly add/remove some things manually. One thing
it doesn't deal with is possible changes in default variants, because it's
difficult to script. For example, the default perl5 variant has changed
from +perl5_12 to +perl5_16 within the past several months --- you may want
to take the chance to upgrade stuff to the new default rather than
propagating the old. It also doesn't try to deal with dependencies, so
there is some chance that a dependency of something earlier in the list
will install with default variants something later in the list with an
explicit variant; there's no good way to deal with this in MacPorts
currently, especially when variants can alter dependencies (and I'm not
sure that a "good way to deal with this" even exists).

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140508/c0d55cf4/attachment.html>


More information about the macports-users mailing list