pkg・ports アップデート関連 - curl - curl・ja-wordpress・php56-curl
1. 問題 > pkg version -vl "<" curl-7.49.0 > needs updating (index has 7.49.1) ja-wordpress-4.5.2 > needs updating (index has 4.5.3) php56-curl-5.6.22 > needs updating (index has 5.6.23) というので > portupgrade -vRr curl すると ~ 前 略 ~ You have a /usr/local/lib/libcrypto.so file installed, but the framework is unable to determine what port it comes from. Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again. *** [check-makevars] Error code 1 Stop in /usr/ports/ftp/curl. *** [stage] Error code 1 Stop in /usr/ports/ftp/curl. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20160627-32269-krmyo1 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=curl-7.49.0 UPGRADE_PORT_VER=7.49.0 make ** Fix the problem and try again. ---< Build of ftp/curl ended at: 日時 ---< Upgrade of ftp/curl ended at: 日時 ---< ** Upgrade tasks 2: 0 done, 0 ignored, 0 skipped and 1 failed ---< Skipping 'ftp/php56-curl' (php56-curl-5.6.22) because a requisite package 'curl-7.49.0' (ftp/curl) failed (specify -k to force) ---< ** Upgrade tasks 2: 0 done, 0 ignored, 1 skipped and 1 failed ---< Listing the results (+:done / -:ignored / *:skipped / !:failed) ! ftp/curl (curl-7.49.0) (unknown build error) * ftp/php56-curl (php56-curl-5.6.22) ---< Packages processed: 0 done, 0 ignored, 1 skipped and 1 failed ---> Session ended at: 日時 ja-wordpress も php56-curl も curl に依存していて、これが原因で更新できない・・・と。 2. 解決 エラーメッセージを読むとどうも /etc/make.conf をいじらなければならないのと、php56-openssl が必要らしく。 まずは /etc/make.conf に DEFAULT_VERSIONS+=ssl=openssl という1行を加えて cd /usr/ports/security/php56-openssl make make install で portupgrade -vRr curl これで、curl と php56-curl は最新になりました。 続いて portupgrade -vRr ja-wordpress これもどうやらうまくいったようです。
> pkg version -vl "<" curl-7.49.0 > needs updating (index has 7.49.1) ja-wordpress-4.5.2 > needs updating (index has 4.5.3) php56-curl-5.6.22 > needs updating (index has 5.6.23)
> portupgrade -vRr curl
~ 前 略 ~ You have a /usr/local/lib/libcrypto.so file installed, but the framework is unable to determine what port it comes from. Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again. *** [check-makevars] Error code 1 Stop in /usr/ports/ftp/curl. *** [stage] Error code 1 Stop in /usr/ports/ftp/curl. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20160627-32269-krmyo1 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=curl-7.49.0 UPGRADE_PORT_VER=7.49.0 make ** Fix the problem and try again. ---< Build of ftp/curl ended at: 日時 ---< Upgrade of ftp/curl ended at: 日時 ---< ** Upgrade tasks 2: 0 done, 0 ignored, 0 skipped and 1 failed ---< Skipping 'ftp/php56-curl' (php56-curl-5.6.22) because a requisite package 'curl-7.49.0' (ftp/curl) failed (specify -k to force) ---< ** Upgrade tasks 2: 0 done, 0 ignored, 1 skipped and 1 failed ---< Listing the results (+:done / -:ignored / *:skipped / !:failed) ! ftp/curl (curl-7.49.0) (unknown build error) * ftp/php56-curl (php56-curl-5.6.22) ---< Packages processed: 0 done, 0 ignored, 1 skipped and 1 failed ---> Session ended at: 日時
DEFAULT_VERSIONS+=ssl=openssl
cd /usr/ports/security/php56-openssl make make install
portupgrade -vRr curl
portupgrade -vRr ja-wordpress