FreeBSD: pkg_version: Failed to get PKGNAME from /usr/ports/…

Автор: | 20/07/2012
 

Про обновление портов подробно описано тут>>>, но иногда процесс проверки установленных приложений прерывается с такой ошибкой:

# pkg_version -v | grep “need”
“Makefile”, line 124: Could not find /usr/ports/Mk/bsd.openssl.mk
make: fatal errors encountered — cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/www/apache22/Makefile!
“/usr/ports/Mk/bsd.port.mk”, line 1374: Could not find /usr/ports/Mk/bsd.openssl.mk
make: fatal errors encountered — cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/dns/bind97/Makefile!
“/usr/ports/print/cups-client/../cups-base/Makefile”, line 142: Could not find /usr/ports/Mk/bsd.openssl.mk
make: fatal errors encountered — cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/print/cups-client/Makefile!
“/usr/ports/print/cups-image/../cups-base/Makefile”, line 142: Could not find /usr/ports/Mk/bsd.openssl.mk
make: fatal errors encountered — cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/print/cups-image/Makefile!
“Makefile”, line 104: Could not find /usr/ports/Mk/bsd.openssl.mk
make: fatal errors encountered — cannot continue
pkg_version: Failed to get PKGNAME from /usr/ports/ftp/curl/Makefile!

Решается такая проблема обновлением коллекции портов:

# portsnap fetch
# portsnap extract

Так же, обновить дерево портов можно из SVN, как это делать описано тут>>>.