FreeBSD 10.0-RELEASEアプグレードのまとめ

OSのアプデート

# freebsd upgrade -r 10.0-RELEASE

あとはメッセージにしたがう。

ports

iconvとgettextまわり。/usr/ports/UPDATEING参照。

  AFFECTS: 10-CURRENT users with any port depending on converters/libiconv
  AUTHOR: madpilot@FreeBSD.org

  10-CURRENT after r254273 (committed on August 13, 2013) has an
  implementation of iconv enabled by default in libc.

  Due to this change some major overhauling of the ports tree has
  been necessary to move the ports to using that implementation.

  People using pkgng binary packages should have little problems,
  "pkg upgrade" will update all software to not depend on libiconv
  anymore, once updated packages are available. Please make sure to
  perform a "pkg autoremove" after that and check that libiconv is
  correctly removed by it.

  If you are using ports the update requires some manual intervention.
  The following procedure should be followed:

  # pkg query %ro libiconv >ports_to_update
  # pkg delete -f libiconv
  # cat ports_to_update | xargs portmaster

  or:

  # pkg query %ro libiconv >ports_to_update
  # pkg delete -f libiconv
  # cat ports_to_update | xargs portupgrade -f

10-CURRENTではiconvがlibcでサポートされているので、iconvを利用しているports/packageのリビルドが必要。converter/iconvが残っているとportsのリビルドに失敗する

その後gettextも以下の手順で更新する必要がある。先にgettextを削除しておかないと、

20130316:
  AFFECTS: users of converters/libiconv and devel/gettext
  AUTHOR: bapt@FreeBSD.org

  libiconv now handles the lib/charset.alias file instead of devel/gettext.
  If you are using pkgng 'and' upgrading from source with portupgrade or
  portmaster, first delete gettext, upgrade libiconv, then reinstall gettext.

  This will break sudo, so you *must* do this in a root shell (sudo -i)
  if you use sudo.

  # pkg delete -f devel/gettext
  # portmaster converters/libiconv devel/gettext
    or
  # pkg delete -f devel/gettext
  # portupgrade converters/libiconv devel/gettext

しかしこれをやってしまうと今度はglib20がビルドできなくなってしまう。理由は前述。今のところ libiconvが無いとビルドできないのがgimpくらいであるので、gimp使わないならlibiconvは完全削除でいいような気もするが・・

Posted by issei

カテゴリ: 雑記