Will upgrading to Mavericks break my Macports? I have a late 2010 Macbook Pro 15", running 10.7.5, with a configured dev environment, containing tons of installed ports (specifically Apache/PHP5.4/MySQL/Mongo/Node etc).

Apparently, the only way to update XCode further is to upgrade to Mavericks. Can anyone tell me how painful would the upgrade be in terms of needing to reinstall/reconfigure all the ports? Would I have to start from scratch, or will my current configuration be preserved?
Macports provides a guide to migration to a new OS.

Basically you need to uninstall all the ports, install a new Macports and Xcode (although only the command line tools are needed for most ports), then reinstall the ports. If you don;t do this then you might well have issues which Macports community can't help you with.

If you put your configurations in new files rather than directly edit files installed by macports these files will not be overwritten. If you directly edited the config files then you will need to copy them from a backup after the reinstall.

Note on the upgrade. Xcode does not provide a gcc compiler for OSX 10.9 and Macports is now using the corresponding C++ standard library. This means that any C++ based port could well have problems if you just kept your old Macports and did not go through the migration. I suspect that other code is likely to carry on running but when you upgrade a port or add a new one things will get confused.