• 追加された行はこの色です。
  • 削除された行はこの色です。
*cvsup [#qa314376]

#contents

**リンク集 [#i61ed298]

-http://m.u.packet-workz.co.jp/doc/portupgrade.html
-http://hiiro-sou.hp.infoseek.co.jp/unix/tips/portsupg.html

**エラー [#ifb58a43]

# portversion -v

[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFOQ

→http://blog.portwrite.jp/2006/07/portupgrade.html

 rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db

で解決とのこと。

**openldap [#e1ea3f64]

エラーが出たので以下の方法で対処。

http://x.haun.org/diary/200607_2.html#d20060717_08

**xorg [#i9075183]

※Software Design 2007年7月号 P198より

2007年5月20日より、ports上のX.Orgは6.9から7.2になったためアップデートには特殊な手順が必要。また、portupgradeではなくportupgrade-develを使用した方が良い。手順は以下。

 # portupgrade -f -o ports-mgmt/portupgrade-devel portupgrade

その上で、

 # export XORG_UPGRADE=yes
 # portupgrade -Rf libXft

を実行した上でアップデートする。

 # sh /usr/ports/Tools/scripts/mergebase.sh
This script will attempt to backup /usr/X11R6 into
/usr/tmp/mergebase/oldx11base.20070627.202740.tar and then move the
contents onto /usr/local. It will then replace /usr/X11R6
with a symbolic link, pointing to /usr/local. After that,
the script will attempt to change some settings in /etc
that by default point to both /usr/X11R6 and /usr/local
to remove references to /usr/X11R6; specifically, the files
that could get altered are /etc/periodic.conf
/etc/manpath.config /etc/rc.conf.

Be advised that this script expects default environment,
notably it assumes that you have not changed $X11BASE and
$LOCALBASE variables from their default values and that
/usr/X11R6 is regular directory and not separate mount.

If these assumptions are not correct, either edit this script
to change $X11BASE $LOCALBASE and/or $BACKUPDIR values or
do the merge by hand (perhaps using this script as a rough guide).

Enter 'yes' to continue, anything else will exit script: 

CONFLICTING FILESと表示された場合はそのファイルの名前をとりあえず変更しておいて再度チャレンジする。で、完了後にチャレンジ。

 # portupgrade -rRcC xorg-libraries-6.9.0

→やっぱり失敗。portupgrade -f(以下略)でもだめ。

[[Computer/FreeBSD]]


リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS