2026年09月27日 [長年日記]
_ [FreeBSD]glib gobject-introspection のアップデート
gobject-introspection のアップデートで,ninja がエラーを吐いて怒られた。
ちょっと違うアプローチで解決した。まずは削除。UPDATING にもあるが,基本に忠実なことはとても重要。
root # pkg delete -f glib glib-bootstrap gobject-introspection gobject-introspection-bootstrap
root # cd /usr/ports/devel/glib20
root # make clean FLAVOR=bootstrap
root # make clean
root # cd /usr/ports/devel/gobject-introspection
root # make clean FLAVOR=bootstrap
root # make clean
「bootstrap」版の「glib」をインストール。
root # cd /usr/ports/devel/glib20
root # make FLAVOR=bootstrap install clean
「bootstrap」版の「gobject-introspection」を単独でインストール。
root # cd /usr/ports/devel/gobject-introspection
root # make FLAVOR=bootstrap install clean
「bootstrap」環境を利用して,通常版の「glib20」をインストール。
root # cd /usr/ports/devel/glib20
root # make MAKE_JOBS_UNSAFE=yes NO_DIALOG=yes
root # make install clean
通常版の「gobject-introspection」をインストール。
root # cd /usr/ports/devel/gobject-introspection
root # make NO_DIALOG=yes
root # make install clean
「bootstrap」版の「glib」「gobject-introspection」を削除。
root # pkg delete -f glib-bootstrap gobject-introspection-bootstrap
こちらのリンクpkg・ports アップデート関連 - glib - glib-2.84.4,2 → 2.88.3,2の通りで解決した。リンク先が消えると困るのでメモ。