メンテナンス・トラブルシュート - PHP - php56-mbstring アップデートエラー
1. 概要 アップデート状況を見ると $ pkg version -vl "<" php56-mbstring-5.6.34_1 < needs updating (index has 5.6.34_2) てなことになっていました。 本記事を書いているのが 2018年3月20日で、確か 5.6.34_1 にアップデートしたのがついこの前だったような気がするので、なんかあったのでしょうな。 でアップデートしようとしたら(他の php 関係もアップデートしてますが、問題をわかりやすくするためにちょっとはしょっています) $ portupgrade -Rr php56-mbstring [Reading data from pkg(8) ... - 358 packages found - done] [Gathering depends for converters/php56-mbstring ...................................................... done] [Gathering depends for lang/php56-extensions ....................................................................................................................................... done] [Exclude up-to-date packages ............................................................. done] ---> Upgrading 'php56-mbstring-5.6.34_1' to 'php56-mbstring-5.6.34_2' (converters/php56-mbstring) ・・・ make[2]: stopped in /usr/ports/converters/php56-mbstring/work/php-5.6.34/ext/mbstring --- mbstring.lo --- 2 warnings generated. 1 error make[2]: stopped in /usr/ports/converters/php56-mbstring/work/php-5.6.34/ext/mbstring ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/converters/php56-mbstring *** Error code 1 Stop. make: stopped in /usr/ports/converters/php56-mbstring ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20180320-65554-5mel0z env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php56-mbstring-5.6.34_1 UPGRADE_PORT_VER=5.6.34_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! converters/php56-mbstring (php56-mbstring-5.6.34_1) (new compiler error) 2. 解決 あれこれやってみましたが、make できないので、次がリリースされるのを待つか・・・と思いながら。 他の更新がないか再度、アップデートの確認。 $ portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Tue Mar 20 07:34:23 JST 2018 to Tue Mar 20 08:51:38 JST 2018. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 5 patches. (5/5) 100.00% done. done. Applying patches... done. Fetching 0 new ports or files... done. $ portsnap update Removing old files and directories... done. Extracting new files: /usr/ports/converters/php56-mbstring/ /usr/ports/converters/php70-mbstring/ /usr/ports/converters/php71-mbstring/ /usr/ports/converters/php72-mbstring/ /usr/ports/devel/py-qtconsole/ Building new INDEX files... done. portsdb -Fu /usr/ports/INDEX-11.bz2 100% of 2248 kB 411 kBps 00m05s done [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 31571 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000..... ..... done] あり? わずかの間に更新されたのかしら? 再度「portupgrade」したら、今度はうまく「make」できました。 うむ、わざわざ書くほどのことでもなかったかもしれない。
$ pkg version -vl "<" php56-mbstring-5.6.34_1 < needs updating (index has 5.6.34_2)
$ portupgrade -Rr php56-mbstring [Reading data from pkg(8) ... - 358 packages found - done] [Gathering depends for converters/php56-mbstring ...................................................... done] [Gathering depends for lang/php56-extensions ....................................................................................................................................... done] [Exclude up-to-date packages ............................................................. done] ---> Upgrading 'php56-mbstring-5.6.34_1' to 'php56-mbstring-5.6.34_2' (converters/php56-mbstring) ・・・ make[2]: stopped in /usr/ports/converters/php56-mbstring/work/php-5.6.34/ext/mbstring --- mbstring.lo --- 2 warnings generated. 1 error make[2]: stopped in /usr/ports/converters/php56-mbstring/work/php-5.6.34/ext/mbstring ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/converters/php56-mbstring *** Error code 1 Stop. make: stopped in /usr/ports/converters/php56-mbstring ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20180320-65554-5mel0z env UPGRADE_TOOL=portupgrade UPGRADE_PORT=php56-mbstring-5.6.34_1 UPGRADE_PORT_VER=5.6.34_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! converters/php56-mbstring (php56-mbstring-5.6.34_1) (new compiler error)
$ portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from ec2-ap-northeast-1.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Tue Mar 20 07:34:23 JST 2018 to Tue Mar 20 08:51:38 JST 2018. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 5 patches. (5/5) 100.00% done. done. Applying patches... done. Fetching 0 new ports or files... done. $ portsnap update Removing old files and directories... done. Extracting new files: /usr/ports/converters/php56-mbstring/ /usr/ports/converters/php70-mbstring/ /usr/ports/converters/php71-mbstring/ /usr/ports/converters/php72-mbstring/ /usr/ports/devel/py-qtconsole/ Building new INDEX files... done. portsdb -Fu /usr/ports/INDEX-11.bz2 100% of 2248 kB 411 kBps 00m05s done [Updating the portsdb <format:bdb_btree> in /usr/ports ... - 31571 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000..... ..... done]