PREFERRED_PROVIDER
If multiple recipes provide an item, this variable determines which recipe should be given preference. You should always suffix the variable with the name of the provided item, and you should set it to the PN of the recipe to which you want to give precedence. Some examples:
複数のレシピがアイテムを提供する場合、この変数はどのレシピに優先権を与えるべきかを決定します。変数には常に提供されるアイテムのサフィックスを付ける必要があります。優先順位を付けるレシピの PN に設定する必要があります。
例
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" PREFERRED_PROVIDER_virtual/xserver = "xserver-xf86" PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
PROVIDES
A list of aliases that a recipe also provides. These aliases are useful for satisfying dependencies of other recipes during the build (as specified by DEPENDS).
レシピが提供するエイリアスのリストです。これらのエイリアスは、ビルド中に( DEPENDS で指定された)他のレシピの依存関係を満たすのに役立ちます。
Note A recipe's own PN is implicitly already in its PROVIDES list.
注記 レシピ自身の PN は、暗黙で PROVIDES のリストに入っています。
python3 が "No module named 'encodings'" エラーで失敗する
事象
python3 の実行が次のエラーで失敗する
$ python3 Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' Aborted
翻訳:
Python の致命的なエラー: Py_Initialize: ローカルのエンコードを取得できません 取り込みエラー: 'encodings' という名前のモジュールはありません 中断しました
原因
codecs モジュールがインストールされていないため
対処
codecs モジュールをインストールする
Anaconda Prompt 起動時に Python が動作を停止する
問題
Anaconda Prompt の起動時に次のエラーが発生する。
Python は動作を停止しました
原因
旧い環境変数 "PYTHONHOME=C:\Python27" が残っていたため。
解決方法
環境変数 "PYTHONHOME" を削除する。
参考
Issue 27054: Python installation problem: No module named 'encodings' - Python tracker
git diff の結果をファイルごとに分割する
$ csplit 差分ファイル /^diff\ / {*}
例:
$ csplit a.diff /^diff\ / {*}
ルートファイルシステムを読み取り専用でマウントしているのに mount コマンドの rootfs 行に rw と表示される
結論
"rootfs" 行は無視して、"/dev/root" 行を見る。