1. 概要
発生は、2026年7月7日。
「FreeBSD 15.1 RELEASE」上でのことであります。
2. 状況
portversion -v | grep '<'
[Reading data from pkg(8) ... - 447 packages found - done]
ImageMagick7-7.1.2.25 < needs updating (port has 7.1.2.25_1)
bind-tools-9.20.24 < needs updating (port has 9.20.24_1)
ffmpeg-8.1.2,1 < needs updating (port has 8.1.2_1,1)
gpgme-2.1.0 < needs updating (port has 2.1.2)
jansson-2.15.0 < needs updating (port has 2.15.1)
libclc-llvm19-19.1.7 < needs updating (port has 22.1.5)
libjxl-0.11.2 < needs updating (port has 0.12.0)
spirv-llvm-translator-llvm19-19.1.20 < needs updating (port has 22.1.4)
spirv-llvm-translator-llvm22-22.1.3 < needs updating (port has 22.1.4)
「llvm」のものはさておいて。
他のものの多くは、「libjxl」に引きずられておる。
アップグレードしようとすると。
env BATCH=yes portupgrade -rR libjxl
・・・ 略 ・・・
[ 96% 246/256] /usr/bin/c++ -DFJXL_ENABLE_AVX512=0 -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -Denc_fast_lossless_EXPORTS -I/usr/ports/graphics/libjxl/work/libjxl-0.12.0 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fno-rtti -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNDEBUG -std=c++17 -flto -fPIC -DFJXL_STANDALONE "-DHWY_DISABLED_TARGETS=(HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_RVV|HWY_SSSE3|HWY_SVE|HWY_SVE_256|HWY_SVE2|HWY_SVE2_128)" -fmacro-prefix-map=/usr/ports/graphics/libjxl/work/libjxl-0.12.0=. -funwind-tables -Xclang -mrelax-all -fno-omit-frame-pointer -Wno-builtin-macro-redefined -Wall -MD -MT tools/CMakeFiles/enc_fast_lossless.dir/__/lib/jxl/enc_fast_lossless.cc.o -MF tools/CMakeFiles/enc_fast_lossless.dir/__/lib/jxl/enc_fast_lossless.cc.o.d -o tools/CMakeFiles/enc_fast_lossless.dir/__/lib/jxl/enc_fast_lossless.cc.o -c /usr/ports/graphics/libjxl/work/libjxl-0.12.0/lib/jxl/enc_fast_lossless.cc
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped making "all" in /usr/ports/graphics/libjxl
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20260707-36277-5ioixm env UPGRADE_TOOL=portupgrade UPGRADE_PORT=libjxl-0.11.2 UPGRADE_PORT_VER=0.11.2 make
** Fix the problem and try again.
---> Skipping 'multimedia/ffmpeg' (ffmpeg-8.1.2,1) because a requisite package 'libjxl-0.11.2' (graphics/libjxl) failed (specify -k to force)
---> Skipping 'graphics/ImageMagick7' (ImageMagick7-7.1.2.25) because a requisite package 'libjxl-0.11.2' (graphics/libjxl) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! graphics/libjxl (libjxl-0.11.2) (unknown build error)
* multimedia/ffmpeg (ffmpeg-8.1.2,1)
* graphics/ImageMagick7 (ImageMagick7-7.1.2.25)
となります。
「Gemini」伍長に相談すると。
エラーの核心は、man ページの作成(a2x コマンドの実行)に必要な Python の asciidoc モジュールが見つからないことにあります。
FreeBSD の Ports 環境において、a2x コマンド(textproc/asciidoc)が依存する Python バージョンと、現在システムでデフォルトになっている Python バージョン(python3.12)の間でズレが生じているか、あるいは asciidoc 自体が正しくインストール・認識されていない可能性が高いです。
う~ん、明示的にアンインストールしたつもりはないが・・・。
3. 対策
「Gemini」伍長の言うとおりにしてみます。
cd /usr/ports/textproc/asciidoc/
オプションは、ありません。
make NO_DIALOG=yes
make reinstall
「reinstall」でないとエラーになったので、インストールはされていたのです。
その後。
env BATCH=yes portupgrade -rR libjxl
が、すんなり通りました。
4. 参考サイト
本ページは、「Gemini」伍長を参考にさせていただきました。