Порты FreeBSD переехали с cvs на svn. Перенастраиваем обновление.

И так, порты FreeBSD переехали на svn и если при обновлении портов вы видите следующее:
"/usr/ports/Mk/bsd.port.mk", line 4: warning: ACTION REQUIRED
"/usr/ports/Mk/bsd.port.mk", line 5: warning: You are using a ports file that originated from CVS!!
"/usr/ports/Mk/bsd.port.mk", line 6: warning: The FreeBSD project has switched from CVS to SubVersion.
"/usr/ports/Mk/bsd.port.mk", line 7: warning: This CVS repository is NO LONGER UPDATED! If you see this
"/usr/ports/Mk/bsd.port.mk", line 8: warning: message then your tree is STALE and you need to follow
"/usr/ports/Mk/bsd.port.mk", line 9: warning: the update instructions to receive any more updates.
"/usr/ports/Mk/bsd.port.mk", line 10: warning: Original announcement:
"/usr/ports/Mk/bsd.port.mk", line 11: warning: http://lists.freebsd.org/pipermail/freebsd-ports/2012-September/078099.html
"/usr/ports/Mk/bsd.port.mk", line 12: warning: Reminder:
"/usr/ports/Mk/bsd.port.mk", line 13: warning: http://lists.freebsd.org/pipermail/freebsd-announce/2013-January/001451.html
"/usr/ports/Mk/bsd.port.mk", line 14: warning: UPDATE INSTRUCTIONS:
"/usr/ports/Mk/bsd.port.mk", line 15: warning: http://wiki.freebsd.org/CvsIsDeprecated

Значит вы все еще обновляетесь с cvs. процедура перенастройки следующая:
1.Удаляем или переносим директории /usr/ports и /usr/src

[kron@ikroni:~]> sudo mv /usr/ports/ /usr/ports_old
[kron@ikroni:~]> sudo mv /usr/src/ /usr/src_old

Теперь создаем локальные копии /usr/ports, /usr/src и /usr/doc с svn, процедура может затянуться(И не перепутайте для base версию вашего RELENG, в моем случае 8.3):

sudo svn checkout https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
sudo svn checkout https://svn0.us-west.freebsd.org/base/releng/8.3/ /usr/src
sudo svn checkout https://svn0.us-west.freebsd.org/doc/head /usr/doc

И теперь приведем скрипт обновления к нормальному виду:

#!/bin/sh
'/usr/local/bin/svn' update /usr/ports
'/usr/local/bin/svn' update /usr/src
'/usr/local/bin/svn' update /usr/doc
'/usr/local/sbin/portsdb' -F
'/usr/local/sbin/portsdb' -u
'/usr/local/sbin/pkgdb' -uFa
'/usr/local/sbin/portsclean' -DDL
'/usr/sbin/pkg_version' -v -L=
'/usr/local/sbin/portaudit' -Fda

Разместим его в /usr/local/bin, дадим права на запуск

sudo chmod +x /usr/local/bin/update

И запустим для проверки:

sudo update

На выходе должно быть что-то похожее на это:

[kron@ikroni:/usr/local/bin]> sudo update
Updating '/usr/ports':
U /usr/ports/audio/schism/Makefile
U /usr/ports/audio/beast/distinfo
D /usr/ports/audio/beast/files/patch-bse_bsecxxplugin.hh
D /usr/ports/audio/beast/files/patch-bse_bseloader-bsewave.cc
D /usr/ports/audio/beast/files/patch-bse_bseloader-guspatch.cc
D /usr/ports/audio/beast/files/patch-bse_bseloader-oggvorbis.cc
D /usr/ports/audio/beast/files/patch-tools_bsefextract.cc
D /usr/ports/audio/beast/files/patch-bse_bseloader.h
D /usr/ports/audio/beast/files/patch-birnet_birnetcdefs.h
D /usr/ports/audio/beast/files/patch-configure
U /usr/ports/audio/beast/pkg-plist
U /usr/ports/audio/beast/Makefile
U /usr/ports/net/x2goclient/distinfo
U /usr/ports/net/x2goclient/pkg-plist
U /usr/ports/net/x2goclient/Makefile
U /usr/ports/multimedia/xmms/pkg-plist
U /usr/ports/multimedia/xmms/Makefile
U /usr/ports/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd_VM_OBJECT_RENAME.c
U /usr/ports/emulators/virtualbox-ose-kmod/Makefile
Updated to revision 315204.
Updating '/usr/src':
At revision 248698.
Updating '/usr/doc':
At revision 41310.
/usr/ports/INDEX-8.bz2 100% of 1669 kB 199 kBps
done
[Updating the portsdb
in /usr/ports ... - 24255 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.. ..... done]
---> Updating the pkgdb
---> Checking the package registry database
Stale origin: 'lang/tcl-modules': perhaps moved or obsoleted.
-> The port 'lang/tcl-modules' was removed on 2013-02-06 because:
"Modules are now part of the base Tcl distributions"
Skipped. (running in non-interactive mode; specify -i to ask)
Detecting unreferenced distfiles...
/usr/local/sbin/portsclean:622:in `chdir': No such file or directory - /usr/ports/distfiles (Errno::ENOENT)
from /usr/local/sbin/portsclean:622:in `scan_distfiles'
from /usr/local/sbin/portsclean:230:in `distclean'
from /usr/local/sbin/portsclean:155:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize'
from /usr/local/sbin/portsclean:70:in `new'
from /usr/local/sbin/portsclean:70:in `main'
from /usr/local/sbin/portsclean:727
p5-JSON-PP-2.27200_1 < needs updating (port has 2.27202)
p5-Net-SSLeay-1.52 < needs updating (port has 1.54)
php5-5.4.12 < needs updating (port has 5.4.13)
php5-bz2-5.4.12 < needs updating (port has 5.4.13)
php5-ctype-5.4.12 < needs updating (port has 5.4.13)
php5-dom-5.4.12 < needs updating (port has 5.4.13)
php5-fileinfo-5.4.12 < needs updating (port has 5.4.13)
php5-filter-5.4.12 < needs updating (port has 5.4.13)
php5-ftp-5.4.12 < needs updating (port has 5.4.13)
php5-gd-5.4.12 < needs updating (port has 5.4.13)
php5-gettext-5.4.12 < needs updating (port has 5.4.13)
php5-gmp-5.4.12 < needs updating (port has 5.4.13)
php5-hash-5.4.12 < needs updating (port has 5.4.13)
php5-iconv-5.4.12 < needs updating (port has 5.4.13)
php5-json-5.4.12 < needs updating (port has 5.4.13)
php5-mbstring-5.4.12 < needs updating (port has 5.4.13)
php5-mcrypt-5.4.12 < needs updating (port has 5.4.13)
php5-mysql-5.4.12 < needs updating (port has 5.4.13)
php5-mysqli-5.4.12 < needs updating (port has 5.4.13)
php5-openssl-5.4.12 < needs updating (port has 5.4.13)
php5-pdo-5.4.12 < needs updating (port has 5.4.13)
php5-phar-5.4.12 < needs updating (port has 5.4.13)
php5-posix-5.4.12 < needs updating (port has 5.4.13)
php5-session-5.4.12 < needs updating (port has 5.4.13)
php5-simplexml-5.4.12 < needs updating (port has 5.4.13)
php5-sqlite3-5.4.12 < needs updating (port has 5.4.13)
php5-tokenizer-5.4.12 < needs updating (port has 5.4.13)
php5-xml-5.4.12 < needs updating (port has 5.4.13)
php5-xmlreader-5.4.12 < needs updating (port has 5.4.13)
php5-xmlwriter-5.4.12 < needs updating (port has 5.4.13)
php5-zip-5.4.12 < needs updating (port has 5.4.13)
php5-zlib-5.4.12 < needs updating (port has 5.4.13)
pkgconf-0.8.12 < needs updating (port has 0.9.1_2)
portupgrade-2.4.10.4_1,2 < needs updating (port has 2.4.10.5_1,2)
smartmontools-6.0 < needs updating (port has 6.1)
squid-3.2.8 < needs updating (port has 3.2.9)
tcl-modules-8.5.13 ! Comparison failed
wordpress-3.2.1,1 < needs updating (port has 3.5.1,1)
zoneinfo-2012.j < needs updating (port has 2013.b)
auditfile.tbz 100% of 85 kB 100 kBps
New database installed.
Database created: понедельник, 25 марта 2013 г. 12:45:04 (MSK)
Affected package: php5-5.4.12
Type of problem: php5 -- Multiple vulnerabilities.
Reference:

Так же кому приспичило и нет желания или возможности прямо сейчас все это делать, но нужно срочно обновиться можно обновить следующим образом:

# cd /usr/src
# make update SVN_UPDATE=yes

Удачной работы с FreeBSD!!
По материалам: blog.ikroni.info

Запись опубликована в рубрике *Unix,*Linux, FreeBSD. Добавьте в закладки постоянную ссылку.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Я не спамер This plugin created by Alexei91