メンテナンス・トラブルシュート - pkg・ports - MySQL - 5.7.22 → 5.7.22_2

 クラウディア
1. 概要
2. 解決

1. 概要

 発生は 2018年6月26日。

$ pkg version -vl "<"
mysql57-server-5.7.22              <   needs updating (index has 5.7.22_2)
 により

portupgrade -Rr mysql57-server
 すると

[Reading data from pkg(8) ... - 394 packages found - done]
[Gathering depends for databases/mysql57-server .................... done]
[Exclude up-to-date packages ....................................... done]
--->  Upgrading 'mysql57-server-5.7.22' to 'mysql57-server-5.7.22_2' (databases/mysql57-server)
--->  Building '/usr/ports/databases/mysql57-server'
===>  Cleaning for mysql57-server-5.7.22_2

・・・略・・・

/usr/local/include/openssl/err.h:248:25: note: 'ERR_remove_state' has been explicitly marked deprecated here
DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
                        ^
2 warnings and 4 errors generated.
*** [vio/CMakeFiles/vio.dir/viosslfactories.c.o] Error code 1

make[4]: stopped in /usr/ports/databases/mysql57-server/work/.build
1 error

make[4]: stopped in /usr/ports/databases/mysql57-server/work/.build
*** [vio/CMakeFiles/vio.dir/all] Error code 2

make[3]: stopped in /usr/ports/databases/mysql57-server/work/.build
--- regex/CMakeFiles/regex.dir/all ---
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/ports/databases/mysql57-server/work/.build
*** [regex/CMakeFiles/regex.dir/all] Error code 2

make[3]: stopped in /usr/ports/databases/mysql57-server/work/.build
--- strings/CMakeFiles/strings.dir/all ---
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/ports/databases/mysql57-server/work/.build
*** [strings/CMakeFiles/strings.dir/all] Error code 2

make[3]: stopped in /usr/ports/databases/mysql57-server/work/.build
3 errors

make[3]: stopped in /usr/ports/databases/mysql57-server/work/.build
*** [all] Error code 2

make[2]: stopped in /usr/ports/databases/mysql57-server/work/.build
1 error

make[2]: stopped in /usr/ports/databases/mysql57-server/work/.build
===> 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/databases/mysql57-server
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/mysql57-server
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20180626-94681-19336ox env UPGRADE_TOOL=portupgrade UPGRADE_PORT=mysql57-server-5.7.22 UPGRADE_PORT_VER=5.7.22 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	! databases/mysql57-server (mysql57-server-5.7.22)	(unknown build error)

cd /usr/ports/databases/mysql57-server
make /usr/ports/databases/mysql57-server
 をやってみましたが、同じ結果になりました。  さて困った。

2. 解決

 これは、放っておいたら、いつの間にか解決しておりました。  きっと、次のバージョンがリリースされた時点で、うまく、「make」できるようになっていたんでしょうな。  2021年1月22日時点で、下記のような状況になっております。

$ pkg version -v | grep mysql57
mysql57-client-5.7.32              =   up-to-date with index
mysql57-server-5.7.32              =   up-to-date with index