Daily Ports+ #2: Subversion Upgrades2008年01月17日 16時01分15秒

Ports+ was not able to upgrade subversion and subversion-perl due to lack of network connectivities, yesterday. So, let's get network and try it again.

Make sure I am a root.


% su -l
Password:
#  grep WRK /etc/make.conf
WRKDIRPREFIX=/ports/tmp
# mount -t tmpfs tmpfs /ports/tmp/usr
# df /ports/tmp/usr/
Filesystem 1K-blocks Used   Avail Capacity  Mounted on
tmpfs        3533932    4 3533928     0%    /ports/tmp/usr

I have 2 GB of memory and 2 GB of swap space. Therefore, about 3.5 GB is available for tmpfs. That is large enough for these two packages. By the way, tmpfs will cause periodically causes a painc at shutdown. The cause is force umount results bad memory access in tmp_root. So, make sure to unmount before shutdown to avoid kernel panic.

I start with "test" target, again.


# ports+ test
# upgrade subversion-1.4.4_1 to subversion-1.4.6
# upgrade subversion-perl-1.4.4_1 to subversion-perl-1.4.6

This time, I only specify subversions. I also omit -make-config option because I already have done it, yesterday. In addition, I don't use neither -j nor -k flags because I know these two failed before. Without these options, if something goes wrong, it is easier to see errors.


# ports+ /var/db/pkg/subversion*
/var/db/pkg/apr-db42-1.2.8_2
/var/db/pkg/neon-0.26.4
subversion-1.4.4_1 to subversion-1.4.6

WebDAV/Delta-V repository access module enabled.
To disable it define WITHOUT_NEON

db4 repository backend enabled.
To disable it define WITHOUT_BDB
...
===>  Found saved configuration for subversion-perl-1.4.6
=> subversion-1.4.6.tar.bz2 doesn't seem to exist in /export/ftp/pub/distfile
s/s
ubversion.
=> Attempting to fetch from http://subversion.tigris.org/downloads/.
fetch: subversion-1.4.6.tar.bz2: local modification time does not match remote
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles
/su
bversion/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/subversion/subversion-1
.4.6.tar.bz2: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /export/ftp/pub/distfiles/subversion and try again.
*** Error code 1

Stop in /usr/ports/devel/subversion.
*** Error code 1

Stop in /usr/ports/devel/subversion.
*** Error code 1

Stop in /usr/ports/devel/subversion.
ls: /var/db/pkg/subversion-1.4.6: No such file or directory
gmake: *** [/var/db/pkg/subversion-1.4.6] Error 1

Apparently, it failed again. It says, "fetch: subversion-1.4.6.tar.bz2: local modification time does not match remote." This often indicates ftp failure. Deleting this archive will fix the problem. This is usually caused by stopping, i.e. ctrl-C, in the middle of ftp.

# rm /export/ftp/pub/distfiles/subversion/subversion-1.4.6.tar.bz2 
# ports+ /var/db/pkg/subversion-*
...
Installing /usr/local/lib/perl5/5.8.8/man/man3/SVN::Fs.3
Installing /usr/local/lib/perl5/5.8.8/man/man3/SVN::Client.3
Writing /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/SVN/_Core/.packlist
===> Installing rc.d startup script(s)
===>   Compressing manual pages for subversion-perl-1.4.6
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for subversion-perl-1.4.6
/var/db/pkg/subversion-perl-1.4.6

Removing the archive fixed the problem, and ports+ upgraded these two packages successfully.


# umonut /ports/tmp/usr

Don't forget to unmount tmpfs; otherwise, FreeBSD 7.0-RC will likely to panic at shutdown. Ports+ does not run "make clean" because umount wipes all files in instant.

Previous. Next.

コメント

コメントをどうぞ

※メールアドレスとURLの入力は必須ではありません。 入力されたメールアドレスは記事に反映されず、ブログの管理者のみが参照できます。

※なお、送られたコメントはブログの管理者が確認するまで公開されません。

名前:
メールアドレス:
URL:
コメント:

トラックバック

このエントリのトラックバックURL: http://uyota.asablo.jp/blog/2008/01/17/2564930/tb

※なお、送られたトラックバックはブログの管理者が確認するまで公開されません。