我仍然收到有关旧 pkg 工具已被弃用的警告,并说我应该切换到 pkgng,尽管我几周前就按照指示进行了切换。我做了 pkg2ng 的事情,旧的 pkg 甚至无法再读取信息(如果我尝试,则显示为损坏)。我的 /etc/make.conf 也设置为使用 pkgng。然而,在进行 ports 更新(通过 portmaster)时,我仍然看到有关旧 pkg 系统消失的警告。我错过了什么?
答案1
我猜你抱怨的消息是这样的:
pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/
If you do not want to see this message again set NO_WARNING_PKG_INSTALL_EOL=yes in your make.conf
根据来自 ports 的说法,只有在未设置Mk/bsd.port.mk
时才会显示此消息:WITH_PKGNG
.if !defined(WITH_PKGNG) && !defined(NO_WARNING_PKG_INSTALL_EOL)
WARNING+= "pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng"
WARNING+= "http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/"
WARNING+= "If you do not want to see this message again set NO_WARNING_PKG_INSTALL_EOL=yes in your make.conf"
.endif
也就是说,如果您的/etc/make.conf
不包含有效的:
WITH_PKGNG=yes