portmaster re-install 問題

The following actions will be taken if you choose to proceed:
Re-install db48-4.8.30.0_2
Re-install ruby20-2.0.0.645,1


portmaster -av|grep moved 1 ↵
===>>> The databases/db42 port moved to databases/db48
===>>> The databases/db42 port moved to databases/db48
===>>> The lang/ruby19 port moved to lang/ruby20
===>>> The lang/ruby19 port moved to lang/ruby20

portmaster -o databases/db48 databases/db42
portmaster -o lang/ruby20 lang/ruby19

FreeBSD gettext 更新問題

筆記一下 gettext 衝突

Installing gettext-runtime-0.19.4...
pkg-static: gettext-runtime-0.19.4 conflicts with gettext-0.18.3.1_1 (installs files into the same place). 
Problematic file: /usr/local/bin/envsubst
*** Error code 70

Stop.
make: stopped in /usr/ports/devel/gettext-runtime

成因:

  The devel/gettext port has been split up in devel/gettext-runtime, a
  lightweight package containing runtime libraries, and devel/gettext-tools,
  a package containing developer tools.  The devel/gettext port still exists
  as a metaport.

  You must first delete the existing installation of gettext and then
  reinstall it.  This will break sudo, so you *must* do this in a root
  shell (sudo -i) if you use sudo.

解決方法

pkg delete -f gettext

參考資料 https://github.com/freebsd/freebsd-ports/blob/master/UPDATING