Automatically reinstall ports (UPDATE)

Jeff Singleton gvibe06 at gmail.com
Sun Mar 4 16:34:44 PST 2012


Hi All

I just wanted to see if we could bump this reinstall method up to a more
stable status.

I can and do confirm that under MacPorts 2.0.4, Xcode 4.3 (with persistent
License Agreement), and +universal variant enabled…the restore ports TCL
script, and steps provided on the Migration Info website
https://trac.macports.org/wiki/Migration does work flawlessly.

What I did was purposely installed and used some 210 ports (some are
dependencies) for a period of about 30 days. During which time, I utilized
several areas of development, including a lot of Android related compiles
for some rom development, and Android applications, and also a good bit of
Security tools development and testing.

At some point, I got the feeling that some of my system utilities were not
being called when compiling one of the Android roms I help test. During the
investigation, I came to the conclusion that possibly my compiler was the
problem, so decided to move up to GCC 4.6 (port gcc46), and this is where I
encountered some issues with building a port that had once built
successfully after being patched (http://trac.macports.org/ticket/33152).

Enter my decision to rebuild my entire ports tree.

Below are the steps I used from the Migration page:

port -qv installed > myports.txt

port -fp uninstall --follow-dependents installed

port clean all

curl -O http://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
chmod +x restore_ports.tcl
sudo ./restore_ports.tcl myports.txt

Here are the ports and dependencies that were rebuilt successfully using
this method:

  a52dec aalib arm-none-eabi-binutils arm-none-eabi-gcc autoconf automake
bison bzip2 cairo cmake cmake cppunit curl
  curl-ca-bundle cyrus-sasl2 db46 dirac e2fsprogs expat faac findutils flac
fontconfig freetype gcc43 gcc_select gdbm
  gettext ghostscript giflib git-core glib2 glpk gmake gmp gnupg gnupg2
gperf gpg-agent groff gsed help2man icu imlib2
  jasper jbig2dec jbigkit jpeg lame lcms lcms2 libassuan libcaca libdca
libdv libedit libffi libgcrypt libgpg-error libiconv
  libid3tag libidn libiptcdata libksba libmad libmng libmodplug libmpc
libogg liboil libpaper libpixman libpng libsdl
  libsdl_gfx libsdl_image libsdl_pango libsdl_sound libsndfile libtheora
libtool libusb libusb-compat libvorbis libxml2
  lzo2 m4 mpfr mplayer-devel ncurses ncursesw netpbm openjpeg openldap
openssl orc ossp-uuid p5.12-class-accessor
  p5.12-class-data-inheritable p5.12-class-dbi p5.12-class-dbi-uuid
p5.12-class-trigger p5.12-clone p5.12-data-uuid p5.12-dbi
  p5.12-dbix-contextualfetch p5.12-error p5.12-ima-dbi p5.12-io-stringy
p5.12-lingua-en-inflect p5.12-locale-gettext
  p5.12-params-util p5.12-sql-statement p5.12-test-simple
p5.12-universal-moniker p5.12-uuid p5.12-version pango pcre perl5
  perl5.12 physfs pinentry pkgconfig pngcrush popt psutils pth python27
python_select readline rsync schroedinger schroedinger
  smpeg speex sqlite3 tcp_wrappers texinfo tiff twolame x264
xorg-bigreqsproto xorg-compositeproto xorg-damageproto
  xorg-evieproto xorg-fixesproto xorg-fontcacheproto xorg-fontsproto
xorg-inputproto xorg-kbproto xorg-libfontenc xorg-libice
  xorg-libpthread-stubs xorg-libsm xorg-libX11 xorg-libXau xorg-libXaw
xorg-libxcb xorg-libXcomposite xorg-libXcursor
  xorg-libXdamage xorg-libXdmcp xorg-libXevie xorg-libXext xorg-libXfixes
xorg-libXfont xorg-libXfontcache xorg-libXi
  xorg-libXinerama xorg-libxkbfile xorg-libxkbui xorg-libXmu xorg-libXp
xorg-libXrandr xorg-libXres xorg-libXScrnSaver
  xorg-libXt xorg-libXTrap xorg-libXtst xorg-libXv xorg-libXvMC
xorg-libXxf86dga xorg-libXxf86misc xorg-libXxf86vm
  xorg-printproto xorg-randrproto xorg-recordproto xorg-renderproto
xorg-resourceproto xorg-scrnsaverproto xorg-trapproto
  xorg-util-macros xorg-videoproto xorg-xcb-proto xorg-xcmiscproto
xorg-xextproto xorg-xf86bigfontproto xorg-xf86dgaproto
  xorg-xf86miscproto xorg-xf86vidmodeproto xorg-xineramaproto xorg-xproto
xorg-xtrans xpm xrender XviD xz yasm zlib

--
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120304/988c4eeb/attachment.html>


More information about the macports-users mailing list