如何降级 FreeBSD 上的所有端口

How to downgrade all ports on FreeBSD

我的服务器上安装了 FreeBSD 7.2。尝试安装一些归档程序,我使用命令 portsnap fetch、portsnap extract 升级了所有端口。

现在当我尝试用 make 编译任何程序时,我遇到了很多错误:

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

"/usr/ports/Mk/bsd.port.mk", line 5546: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 5546: Unexpected end of file in for loop.

"/usr/ports/Mk/bsd.port.mk", line 5546: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 5546: Unexpected end of file in for loop.

"/usr/ports/Mk/bsd.port.mk", line 5546: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 5546: Unexpected end of file in for loop.

"/usr/ports/Mk/bsd.port.mk", line 5546: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 5546: Unexpected end of file in for loop.

"/usr/ports/Mk/bsd.port.mk", line 6036: Unclosed conditional/for loop
"/usr/ports/Mk/bsd.port.mk", line 6036: Unexpected end of file in for loop.

我只需要将所有端口降级到以前的版本。

我在这里找到了解决方案 - FREEBSD: make install Unknown modifier 'u' Variable ALL_OPTIONS is recursive

刚刚用原文件替换了/usr/ports/Mk/*,从ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/your版本的FreeBSD/

下载

据我所知,Roland Smith 也提出了同样的建议。