I'm trying to update a FreeBSD server to fix the Heartbleed bug. I only deal with updating this server on an occasional basis; every few months or so. I've used portsnap and portupgrade in the past to install updates (I've read they are the preferred method). The process never seems to be without some problem or other, but this time I've been stumped. I haven't found any obvious clues on the Web. What should I try next, to update my system? (I also have to update Apache and some other things, but I tried openssl first. I get fairly similar errors when trying to update, for example, ruby.)
After I use portsnap to fetch & update the ports, here's what happens next (leaving out the -R makes no difference):
After I use portsnap to fetch & update the ports, here's what happens next (leaving out the -R makes no difference):
myserver# portupgrade -R openssl
Code:
Unknown modifier 't'
Unknown modifier 't'
"/usr/ports/Mk/bsd.port.mk", line 1775: Malformed conditional (defined(USE_LDCONFIG) && ${USE_LDCONFIG:tl} == "yes")
Unknown modifier 't'
Unknown modifier 't'
"/usr/ports/Mk/bsd.sites.mk", line 957: Malformed conditional (!empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan")
Unknown modifier 't'
"/usr/ports/Mk/bsd.port.mk", line 2929: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 2929: Unexpected end of file in for loop.
"/usr/ports/Mk/bsd.port.mk", line 6706: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 6706: Unexpected end of file in for loop.
make: fatal errors encountered -- cannot continue
** Makefile possibly broken: security/openssl:
/usr/local/sbin/portupgrade:1481:in `get_pkgname': Makefile broken (MakefileBrokenError)
from /usr/local/sbin/portupgrade:616:in `main'
from /usr/local/sbin/portupgrade:607:in `each'
from /usr/local/sbin/portupgrade:607:in `main'
from /usr/local/sbin/portupgrade:581:in `catch'
from /usr/local/sbin/portupgrade:581:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call'
from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order'
from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch'
from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order'
from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch'
from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!'
from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order'
from /usr/local/sbin/portupgrade:558:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
from /usr/local/sbin/portupgrade:230:in `new'
from /usr/local/sbin/portupgrade:230:in `main'
from /usr/local/sbin/portupgrade:2234
myserver#