So I have some of the older FreeBSD versions (6.4, 8.4) still running at the company and I'd like to install and update a bunch of tools, such as Python 2.7, Midnight Commander, Tmux, Vim and so on. Anyway, I don't seem to have the luxury of getting to use pkg
(pkgng). For the scope of this question let's only consider FreeBSD 6.4.
Now it's easy to fetch the latest ports from http://ftp.freebsd.org/pub/FreeBSD/ports/ports/ and replace the local ports folder with that, but that only starts the pain.
Evidently pmake
is outdated and should be updated "somehow" first. When I just try any make
inside /usr/ports
after replacing the original /usr/ports
, I end up with errors like these:
[root@fbsd6_32 /usr/ports/editors/vim-lite]# make
"/usr/ports/Mk/bsd.options.mk", line 287: Need an operator
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
"/usr/ports/Mk/bsd.sites.mk", line 1049: Malformed conditional (!empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan")
Unknown modifier 't'
Unknown modifier 't'
Unknown modifier 't'
"/usr/ports/Mk/bsd.port.mk", line 2955: warning: Missing closing parenthesis for defined()
Unknown modifier 't'
"/usr/ports/Mk/bsd.port.mk", line 2955: Malformed conditional (((!defined(OPTIONS_DEFINE) && !defined(OPTIONS_SINGLE) && !defined(OPTIONS_MULTI)) && !defined(OPTIONS_GROUP) && !defined(OPTIONS_RADIO) || defined(CONFIG_DONE_${PKGBASE:tu}) || defined(PACKAGE_BUILDING) || defined(BATCH)))
Unknown modifier 't'
# [...] many many more lines
7 open conditionals:
at line 5797 (evaluated to true)
at line 5797 (evaluated to true)
at line 5797 (evaluated to true)
at line 5797 (evaluated to true)
at line 5797 (evaluated to true)
at line 4910 (evaluated to true)
at line 4910 (evaluated to true)
make: fatal errors encountered -- cannot continue
make search name=...
fails accordingly.
How can I recover from this and start installing some of the latest ports? Would it be correct to assume that I need to get pmake
up-to-date first and find it from http://distcache.freebsd.org/ports-distfiles/, build and install that?