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

更新tar版本

# cd /usr/ports/graphics/png
# make install
===> Found saved configuration for png-1.5.17
===> Fetching all distfiles required by png-1.5.17 for building
===> Extracting for png-1.5.17
=> SHA256 Checksum OK for libpng-1.5.17.tar.xz.
=> SHA256 Checksum OK for libpng-1.5.17-apng.patch.gz.
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/png.
# cd /usr/ports/archivers/libarchive
# make install
# ln -sf /usr/local/bin/bsdtar /usr/bin/tar
# cd /usr/ports/graphics/png
# make install

搞定收工

[FreeBSD] port 更新: portsnap

很久沒碰FreeBSD了 轉眼間已經9.1Release了
最早用的cvsup後來改為csup
現在好像都用portsnap了
筆記一下

設定檔: /etc/portsnap.conf
SERVERNAME=portsnap.tw.freebsd.org

第一次抓取port資料
portsnap fetch extract

更新port資料
portsnap fetch update