Upgraded FreeBSD from 8.2 >> 8.4 >> 10.0-RELEASE today. In the process, I believe I have mangled my ports tree quite badly and am having issues upgrading/reinstalling ports (as the upgrade asks me to do).As stands, I think it may have something to do with Python but I'm not sure where to go from here.Upgrading ports fails here.#portname -a===>>> Port directory: /usr/ports/lang/python2make: /usr/ports/Mk/bsd.python.mk line 558: Malformed conditional (${PYTHON_REL} >= 320 && defined(PYTHON_PY3K_PLIST_HACK))make: Fatal errors encountered -- cannot continuemake: /usr/ports/Mk/bsd.python.mk line 558: Malformed conditional (${PYTHON_REL} >= 320 && defined(PYTHON_PY3K_PLIST_HACK))make: Fatal errors encountered -- cannot continue===>>> Launching 'make checksum' for lang/python2 in backgroundmake: /usr/ports/Mk/bsd.python.mk line 558: Malformed conditional (${PYTHON_REL} >= 320 && defined(PYTHON_PY3K_PLIST_HACK))make: Fatal errors encountered -- cannot continueMore info:# less /etc/make.conf# added by use.perl 2014-01-27 15:35:31PERL_VERSION=5.10.1WITH_PKGNG=yes# python -VPython 2.6.6# uname -aFreeBSD herp.derp.herp l 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
FreeBSD Ports Broken -- Python Issue? Portmaster -a
freebsd;python;pkg config
It would appear you have a very old ports tree, probably installed with 8.2. The current default version for perl is 5.16 and python is 2.7. In fact perl 5.10 isn't even available to install any more. There have been many recent ports updates specifically to build on FreeBSD 10.0 that you will need to start building any ports.The easiest way to update your ports tree would be portsnap fetch extract. You may want to delete the old ports tree first to make sure you don't have any old files left over. Any port management tools, like portmaster, will then need to be updated manually before you use them for updating your other ports.FreeBSD 10.0 also uses the new pkgng system that you may be unfamiliar with Read this for more info. Previously you would use pkg_info -Ix perl5 now you would use pkg info -Ix perl5 Also for binary package installs, pkg_add -r lang/perl5.16 has been replaced with pkg install lang/perl5.16.